[02:59:08]OFD Sender: No OFD packet to send [02:59:13]OFD Sender: No OFD packet to send [02:59:18]OFD Sender: No OFD packet to send [02:59:23]OFD Sender: No OFD packet to send [02:59:28]OFD Sender: No OFD packet to send [02:59:33]OFD Sender: No OFD packet to send [02:59:38]OFD Sender: No OFD packet to send [02:59:43]OFD Sender: No OFD packet to send [02:59:48]OFD Sender: No OFD packet to send [02:59:53]OFD Sender: No OFD packet to send [02:59:58]OFD Sender: No OFD packet to send [03:00:03]OFD Sender: No OFD packet to send [03:00:08]OFD Sender: No OFD packet to send [03:00:13]OFD Sender: No OFD packet to send [03:00:18]OFD Sender: No OFD packet to send [03:00:23]OFD Sender: No OFD packet to send [03:00:28]OFD Sender: No OFD packet to send [03:00:33]OFD Sender: No OFD packet to send [03:00:38]OFD Sender: No OFD packet to send [03:00:43]OFD Sender: No OFD packet to send [03:00:48]OFD Sender: No OFD packet to send [03:00:53]OFD Sender: No OFD packet to send [03:00:58]OFD Sender: No OFD packet to send [03:01:03]OFD Sender: No OFD packet to send [03:01:08]OFD Sender: No OFD packet to send [03:01:13]OFD Sender: No OFD packet to send [03:01:18]OFD Sender: No OFD packet to send [03:01:23]OFD Sender: No OFD packet to send [03:01:28]OFD Sender: No OFD packet to send [03:01:33]OFD Sender: No OFD packet to send [03:01:38]OFD Sender: No OFD packet to send [03:01:43]OFD Sender: No OFD packet to send [03:01:48]OFD Sender: No OFD packet to send [03:01:53]OFD Sender: No OFD packet to send [03:01:58]OFD Sender: No OFD packet to send [03:02:03]OFD Sender: No OFD packet to send [03:02:08]OFD Sender: No OFD packet to send [03:02:13]OFD Sender: No OFD packet to send [03:02:18]OFD Sender: No OFD packet to send [03:02:23]OFD Sender: No OFD packet to send [03:02:28]OFD Sender: No OFD packet to send [03:02:33]OFD Sender: No OFD packet to send [03:02:38]OFD Sender: No OFD packet to send [03:02:43]OFD Sender: No OFD packet to send [03:02:48]OFD Sender: No OFD packet to send [03:02:53]OFD Sender: No OFD packet to send [03:02:58]OFD Sender: No OFD packet to send [03:03:03]OFD Sender: No OFD packet to send [03:03:08]OFD Sender: No OFD packet to send [03:03:13]OFD Sender: No OFD packet to send [03:03:18]OFD Sender: No OFD packet to send [03:03:23]OFD Sender: No OFD packet to send [03:03:28]OFD Sender: No OFD packet to send [03:03:33]OFD Sender: No OFD packet to send [03:03:38]OFD Sender: No OFD packet to send [03:03:43]OFD Sender: No OFD packet to send [03:03:48]OFD Sender: No OFD packet to send [03:03:53]OFD Sender: No OFD packet to send [03:03:58]OFD Sender: No OFD packet to send [03:04:03]OFD Sender: No OFD packet to send [03:04:08]OFD Sender: No OFD packet to send [03:04:13]OFD Sender: No OFD packet to send [03:04:18]OFD Sender: No OFD packet to send [03:04:23]OFD Sender: No OFD packet to send [03:04:28]OFD Sender: No OFD packet to send [03:04:33]OFD Sender: No OFD packet to send [03:04:38]OFD Sender: No OFD packet to send [03:04:43]OFD Sender: No OFD packet to send [03:04:48]OFD Sender: No OFD packet to send [03:04:53]OFD Sender: No OFD packet to send [03:04:58]OFD Sender: No OFD packet to send [03:05:03]OFD Sender: No OFD packet to send [03:05:08]OFD Sender: No OFD packet to send [03:05:13]OFD Sender: No OFD packet to send [03:05:18]OFD Sender: No OFD packet to send [03:05:23]OFD Sender: No OFD packet to send [03:05:28]OFD Sender: No OFD packet to send [03:05:33]OFD Sender: No OFD packet to send [03:05:38]OFD Sender: No OFD packet to send [03:05:43]OFD Sender: No OFD packet to send [03:05:48]OFD Sender: No OFD packet to send [03:05:53]OFD Sender: No OFD packet to send [03:05:58]OFD Sender: No OFD packet to send [03:06:03]OFD Sender: No OFD packet to send [03:06:08]OFD Sender: No OFD packet to send [03:06:13]OFD Sender: No OFD packet to send [03:06:18]OFD Sender: No OFD packet to send [03:06:23]OFD Sender: No OFD packet to send [03:06:28]OFD Sender: No OFD packet to send [03:06:33]OFD Sender: No OFD packet to send [03:06:38]OFD Sender: No OFD packet to send [03:06:43]OFD Sender: No OFD packet to send [03:06:48]OFD Sender: No OFD packet to send [03:06:53]OFD Sender: No OFD packet to send [03:06:58]OFD Sender: No OFD packet to send [03:07:03]OFD Sender: No OFD packet to send [03:07:08]OFD Sender: No OFD packet to send [03:07:13]OFD Sender: No OFD packet to send [03:07:18]OFD Sender: No OFD packet to send [03:07:23]OFD Sender: No OFD packet to send [03:07:28]OFD Sender: No OFD packet to send [03:07:33]OFD Sender: No OFD packet to send [03:07:38]OFD Sender: No OFD packet to send [03:07:43]OFD Sender: No OFD packet to send [03:07:48]OFD Sender: No OFD packet to send [03:07:53]OFD Sender: No OFD packet to send [03:07:58]OFD Sender: No OFD packet to send [03:08:03]OFD Sender: No OFD packet to send [03:08:08]OFD Sender: No OFD packet to send [03:08:13]OFD Sender: No OFD packet to send [03:08:18]OFD Sender: No OFD packet to send [03:08:23]OFD Sender: No OFD packet to send [03:08:28]OFD Sender: No OFD packet to send [03:08:33]OFD Sender: No OFD packet to send [03:08:38]OFD Sender: No OFD packet to send [03:08:41]accept exits with 7 [03:08:41]New connection [03:08:41]New thread 3066797412 created [03:08:41]Thread 3066654052 joined [03:08:41]Waiting for new connection... [03:08:41] Sock 7.Parse request [03:08:41]Sock 7.Check first char [03:08:41]Sock 7.First char is OK [03:08:41]request: POST /json_proto HTTP/1.0 [03:08:41]Method: POST [03:08:41]URL: /json_proto [03:08:41]Method is POST - this is cgi request [03:08:41]url: /json_proto [03:08:41]query_string will be loaded in cgi processing [03:08:41]execute_cgi json_proto POST (null) [03:08:41]execute_cgi path=json_proto method=POST [03:08:41]POST find Content-Length [03:08:41]Host: 172.17.60.69:8080 [03:08:41]Content-Length: 631 [03:08:41]Content-Type: application/json [03:08:41] [03:08:41]POST finish read [03:08:41]Found Content-Length = 631 [03:08:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73334", "tax_sys" : 0, "items" : [ { "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 40.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:08:41]execute_script... [03:08:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73334", "tax_sys" : 0, "items" : [ { "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 40.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:08:41]POST & json_proto [03:08:41]process_json_proto [03:08:41]json parsed OK: [03:08:41]protocol is kg_v1.0 [03:08:41]action value=close_receipt [03:08:41]process_action close_receipt [03:08:41]cmd_close_receipt [03:08:41]MH_GetDate [03:08:41]Write to MH i2c: F0 00 00 62 04 55 [03:08:41]Write i2c OK [03:08:41]MH_I2C_Read... [03:08:41]Read from MH i2c: F0 [03:08:41]MH_I2C_Read... [03:08:41]Read from MH i2c: F0 09 00 [03:08:41]MH_I2C_Read... [03:08:41]Read from MH i2c: F0 09 00 62 04 00 BB 33 5D 66 6A 96 4A 66 BF [03:08:41]GetLastDocTimeStamp 1717379463 [03:08:41]current date 1717384123 [03:08:41]FM_GetShiftState [03:08:41]SAM_PROTO_GetShiftState [03:08:41]wFMCommunicate request_size=4 [03:08:41]MH_SAM_APDU [03:08:41]CAPDU: 80 13 01 00 [03:08:41]Write to MH i2c: E2 08 00 63 04 80 13 01 00 00 00 00 00 E4 [03:08:41]Write i2c OK [03:08:41]MH_I2C_Read... [03:08:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:08:41]Read from MH i2c: E2 [03:08:41]MH_I2C_Read... [03:08:41]Read from MH i2c: E2 0E 00 [03:08:41]MH_I2C_Read... [03:08:41]Read from MH i2c: E2 0E 00 63 04 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 B0 [03:08:41]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [03:08:41]wFMCommunicate OK [03:08:41]SAM_PROTO_GetShiftState done [03:08:41]FM_GetShiftState done [03:08:41]opened in 1717373173 [03:08:41]opened+sec_in_day 1717459573 [03:08:41]quantity*price = 4000 [03:08:41]sum+1 = 4001 [03:08:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 40.00 НСП 1% : 0.35 НДС 12% : 4.25 Наличными: 40.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 3 03.06.2024 03:08 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63745 ФПД: 231355348061360 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T030843&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63745&fm=231355348061360&tin=02508201610067®Number=0000000000092737&sum=4000 0 [03:08:42]StoreToDocumentArchive [03:08:42]shift 373 fd 63745 [03:08:42]save to /storage/0373/doc_00063745 [03:08:42]save last doc name /storage/0373/doc_00063745 to /storage/kkm_last_doc_name [03:08:42]save OK [03:08:42]Clear old archive folders... [03:08:42]ProcessDocumentItem done err = 0, tmpTLVsize=271 [03:08:42]tlvbuf is 008ABD50 [03:08:42]SAM_PROTO_ClearQueue [03:08:42]wFMCommunicate request_size=4 [03:08:42]MH_SAM_APDU [03:08:42]CAPDU: 80 09 00 00 [03:08:42]Write to MH i2c: E2 08 00 70 04 80 09 00 00 00 00 00 00 E6 [03:08:42]Write i2c OK [03:08:42]MH_I2C_Read... [03:08:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:08:42]Read from MH i2c: E2 [03:08:42]MH_I2C_Read... [03:08:42]Read from MH i2c: E2 03 00 [03:08:42]MH_I2C_Read... [03:08:42]Read from MH i2c: E2 03 00 70 04 00 90 00 E8 [03:08:42]RAPDU: 90 00 [03:08:42]wFMCommunicate OK [03:08:42]SAM_PROTO_ClearQueue done [03:08:42]KKMCreateOFDPacket [03:08:42]OFDProtocolAddRootSTLVToBuf [03:08:42]FM_MakeSignedData [03:08:42]FM_MakeSignedData [03:08:42]SAM_PROTO_SignData [03:08:42]wFMCommunicate request_size=4 [03:08:42]MH_SAM_APDU [03:08:42]CAPDU: 80 0D 01 02 [03:08:42]Write to MH i2c: E2 08 00 71 04 80 0D 01 02 00 00 00 00 EE [03:08:42]Write i2c OK [03:08:42]MH_I2C_Read... [03:08:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:08:42]Read from MH i2c: E2 [03:08:42]MH_I2C_Read... [03:08:42]Read from MH i2c: E2 03 00 [03:08:42]MH_I2C_Read... [03:08:42]Read from MH i2c: E2 03 00 71 04 00 90 00 E9 [03:08:42]RAPDU: 90 00 [03:08:42]wFMCommunicate OK [03:08:42]wFMCommunicate request_size=255 [03:08:42]MH_SAM_APDU [03:08:42]CAPDU: 80 0D 02 02 FA 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 BB 33 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 [03:08:42]Write to MH i2c: E2 02 01 72 04 80 0D 02 02 FA 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 BB 33 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 00 [03:08:42]Write i2c OK [03:08:42]MH_I2C_Read... [03:08:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:08:42]Read from MH i2c: E2 [03:08:42]MH_I2C_Read... [03:08:42]Read from MH i2c: E2 03 00 [03:08:42]MH_I2C_Read... [03:08:42]Read from MH i2c: E2 03 00 72 04 00 90 00 EA [03:08:42]RAPDU: 90 00 [03:08:42]wFMCommunicate OK [03:08:42]wFMCommunicate request_size=30 [03:08:42]MH_SAM_APDU [03:08:42]CAPDU: 80 0D 02 02 19 30 38 37 35 30 37 34 10 04 04 00 01 F9 00 00 35 04 06 00 D2 6A 9D 56 8C B0 [03:08:42]Write to MH i2c: E2 21 00 73 04 80 0D 02 02 19 00 30 38 37 35 30 37 34 10 04 04 00 01 F9 00 00 35 04 06 00 D2 6A 9D 56 8C B0 00 00 4E [03:08:42]Write i2c OK [03:08:42]MH_I2C_Read... [03:08:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:08:42]Read from MH i2c: E2 [03:08:42]MH_I2C_Read... [03:08:42]Read from MH i2c: E2 03 00 [03:08:42]MH_I2C_Read... [03:08:42]Read from MH i2c: E2 03 00 73 04 00 90 00 EB [03:08:42]RAPDU: 90 00 [03:08:42]wFMCommunicate OK [03:08:42]wFMCommunicate request_size=4 [03:08:42]MH_SAM_APDU [03:08:42]CAPDU: 80 0D 03 02 [03:08:42]Write to MH i2c: E2 08 00 74 04 80 0D 03 02 00 00 00 00 F3 [03:08:42]Write i2c OK [03:08:42]MH_I2C_Read... [03:08:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:08:42]Read from MH i2c: E2 [03:08:42]MH_I2C_Read... [03:08:42]Read from MH i2c: E2 0B 00 [03:08:42]MH_I2C_Read... [03:08:42]Read from MH i2c: E2 0B 00 74 04 00 5D 15 5C D1 A8 DC AA 84 90 00 45 [03:08:42]RAPDU: 5D 15 5C D1 A8 DC AA 84 90 00 [03:08:42]wFMCommunicate OK [03:08:42]SAM_PROTO_SignData done [03:08:42]FM_MakeSignedData done [03:08:42]CreateOFDProtocolMessage [03:08:42]wFMCommunicate request_size=4 [03:08:42]MH_SAM_APDU [03:08:42]CAPDU: 80 11 00 00 [03:08:42]Write to MH i2c: E2 08 00 75 04 80 11 00 00 00 00 00 00 F3 [03:08:42]Write i2c OK [03:08:42]MH_I2C_Read... [03:08:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:08:43]Read from MH i2c: E2 [03:08:43]MH_I2C_Read... [03:08:43]Read from MH i2c: E2 17 00 [03:08:43]MH_I2C_Read... [03:08:43]Read from MH i2c: E2 17 00 75 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 45 [03:08:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [03:08:43]wFMCommunicate OK [03:08:43]CreateOFDProtocolMessage done [03:08:43]OFDSenderStorePacket 63745 [03:08:43]StoreOFDPacket docnum=63745 [03:08:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 23 01 00 00 BB AD 1B 01 1E F0 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 BB 33 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 01 F9 00 00 35 04 06 00 D2 6A 9D 56 8C B0 5D 15 5C D1 A8 DC AA 84 [03:08:43]CheckFolder [03:08:43]dirname=/storage/ofd_packets [03:08:43]CheckFolder done [03:08:43]ProducePacketName [03:08:43]name=ofd_packets/00063745 [03:08:43]NVStorageSaveData ofd_packets/00063745 [03:08:43]File name is /storage/ofd_packets/00063745 [03:08:43]Write 321 bytes [03:08:43]NVStorageSaveData done [03:08:43]OFDSenderStorePacket done [03:08:43]KKMCreateOFDPacket done [03:08:43]NVStorageSaveData kkm_last_timestamp [03:08:43]File name is /storage/kkm_last_timestamp [03:08:43]Write 4 bytes [03:08:43]NVStorageSaveData done [03:08:43]ExternCall_PrintAddStr [03:08:43]wPrintStart [03:08:43]Write to MH i2c: 01 00 00 76 04 7A [03:08:43]Write i2c OK [03:08:43]MH_I2C_Read... [03:08:43]Read from MH i2c: 01 [03:08:43]MH_I2C_Read... [03:08:43]Read from MH i2c: 01 07 00 [03:08:43]MH_I2C_Read... [03:08:43]Read from MH i2c: 01 07 00 76 04 00 00 00 00 00 FF 0F 8F [03:08:43]RasterBufferAndPrint [03:08:43]line Счет N : (3)73334 [03:08:43]line ИНН: 02508201610067 [03:08:43]line Контрольно-Кассовый Чек [03:08:43]line ПРОДАЖА [03:08:43]line Товар: 4700000160211 [03:08:43]line Вода Легенда 0,5л [03:08:43]line 1.000 * 40.00 [03:08:43]line = 40.00 [03:08:43]line НДС 12% НСП 1% [03:08:43]line > о реализуемом товаре [03:08:43]line ИТОГО: 40.00 [03:08:43]line НСП 1% : 0.35 [03:08:43]line НДС 12% : 4.25 [03:08:43]line Наличными: 40.00 [03:08:43]line Безнал.: 0.00 [03:08:43]line Место: АЗС № 117 "Партнер Нефть" [03:08:43]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [03:08:43]line СНО: Общий режим [03:08:43]line Чек 3 03.06.2024 03:08 [03:08:43]line Смена: 373 ФФД: 1.0 [03:08:43]line ЗНМ: 0300000031 [03:08:43]line РНМ: 0000000000092737 [03:08:43]line Версия ККМ: 001 [03:08:43]line ФМ: 0000000000875074 [03:08:43]line ФД: 63745 [03:08:43]line ФПД: 231355348061360 [03:08:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T030843&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63745&fm=231355348061360&tin=02508201610067®Number=0000000000092737&sum=4000 [03:08:43]line 0 [03:08:43]OFD Sender: Processing packet 63745 [packets to send 14, broken 13] [03:08:43]ProducePacketName [03:08:43]name=ofd_packets/00063745 [03:08:43]OFD Sender: To server: pG, [03:08:43]CommunicateWithHost lk.salyk.kg:30040 [03:08:43]ConnectInit lk.salyk.kg [03:08:43]written 0, free lines is 4095 [03:08:43]Connected sock=10 [03:08:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 23 01 00 00 BB AD 1B 01 1E F0 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 BB 33 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 01 F9 00 00 35 04 06 00 D2 6A 9D 56 8C B0 5D 15 5C D1 A8 DC AA 84 [03:08:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 4D B4 47 00 71 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 35 30 37 34 10 04 04 00 01 F9 00 00 F4 03 04 00 8D DF 5C 66 B6 04 01 00 00 6C A4 18 15 69 FB A2 3E [03:08:43]CommunicateWithHost err = 0 [03:08:43]CheckOFDResponse [03:08:43]1017 (14) - 77093643461234 [03:08:43]1041 (16) - 0000000000875074 [03:08:43]1040 (4) - 63745 [03:08:43]1012 (4) - 02.06.2024 21:09 [03:08:43]1206 (1) - 0 [03:08:43]OFD Sender: Remove packet 63745 [03:08:43]ProducePacketName [03:08:43]name=ofd_packets/00063745 [03:08:43]NVStorageDeleteData [03:08:43]Write to MH i2c: 01 00 00 9E 04 A2 [03:08:43]Write i2c OK [03:08:43]MH_I2C_Read... [03:08:43]Read from MH i2c: 01 [03:08:43]MH_I2C_Read... [03:08:43]Read from MH i2c: 01 07 00 [03:08:43]MH_I2C_Read... [03:08:43]Read from MH i2c: 01 07 00 9E 04 00 00 00 00 00 FE 0C B3 [03:08:43]RasterBufferAndPrint [03:08:43]line [03:08:43]line [03:08:43]line [03:08:43]line [03:08:43]line [03:08:43]written 0, free lines is 3332 [03:08:43]MH_Cut [03:08:43]Write to MH i2c: D1 01 00 A5 04 01 7B [03:08:43]Write i2c OK [03:08:43]MH_I2C_Read... [03:08:43]Read from MH i2c: D1 [03:08:43]MH_I2C_Read... [03:08:43]Read from MH i2c: D1 01 00 [03:08:43]MH_I2C_Read... [03:08:43]Read from MH i2c: D1 01 00 A5 04 00 7A [03:08:43]Write to MH i2c: 01 00 00 A6 04 AA [03:08:43]Write i2c OK [03:08:43]MH_I2C_Read... [03:08:44]OFD Sender: No OFD packet to send [03:08:44]*** Cut start [03:08:44]*** Partial cut [03:08:44]*** CUTSNS_PIN = 1 [03:08:44]*** CUTSNS_PIN = 0 [03:08:44]*** Brake cut motor [03:08:45]Read from MH i2c: 01 [03:08:45]MH_I2C_Read... [03:08:45]*** Stop cut motor [03:08:45]*** Cut end [03:08:45]Read from MH i2c: 01 07 00 [03:08:45]MH_I2C_Read... [03:08:45]Read from MH i2c: 01 07 00 A6 04 00 00 00 00 00 FF 0F BF [03:08:45]process_action close_receipt done [03:08:45]requested_data is exist [03:08:45]produce_requested_data [03:08:45]requested_item fm.sn is exist - process it [03:08:45]wFMCommunicate request_size=4 [03:08:45]MH_SAM_APDU [03:08:45]CAPDU: 80 11 00 00 [03:08:45]Write to MH i2c: E2 08 00 A7 04 80 11 00 00 00 00 00 00 25 [03:08:45]Write i2c OK [03:08:45]MH_I2C_Read... [03:08:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:08:45]Read from MH i2c: E2 [03:08:45]MH_I2C_Read... [03:08:45]Read from MH i2c: E2 17 00 [03:08:45]MH_I2C_Read... [03:08:45]Read from MH i2c: E2 17 00 A7 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 77 [03:08:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [03:08:45]wFMCommunicate OK [03:08:45]requested_item fd.num is exist - process it [03:08:45]SAM_PROTO_GetFieldsCounters [03:08:45]wFMCommunicate request_size=4 [03:08:45]MH_SAM_APDU [03:08:45]CAPDU: 80 13 00 00 [03:08:45]Write to MH i2c: E2 08 00 A8 04 80 13 00 00 00 00 00 00 28 [03:08:45]Write i2c OK [03:08:45]MH_I2C_Read... [03:08:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:08:45]Read from MH i2c: E2 [03:08:45]MH_I2C_Read... [03:08:45]Read from MH i2c: E2 62 00 [03:08:45]MH_I2C_Read... [03:08:45]Read from MH i2c: E2 62 00 A8 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 01 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 C4 [03:08: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 01 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:08:45]wFMCommunicate OK [03:08:45]SAM_PROTO_GetFieldsCounters done [03:08:45]requested_item shift.num is exist - process it [03:08:45]requested_item shift.opened is exist - process it [03:08:45]req_shift_opened [03:08:45]FM_GetShiftState [03:08:45]SAM_PROTO_GetShiftState [03:08:45]wFMCommunicate request_size=4 [03:08:45]MH_SAM_APDU [03:08:45]CAPDU: 80 13 01 00 [03:08:45]Write to MH i2c: E2 08 00 A9 04 80 13 01 00 00 00 00 00 2A [03:08:45]Write i2c OK [03:08:45]MH_I2C_Read... [03:08:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:08:45]Read from MH i2c: E2 [03:08:45]MH_I2C_Read... [03:08:45]Read from MH i2c: E2 0E 00 [03:08:45]MH_I2C_Read... [03:08:45]Read from MH i2c: E2 0E 00 A9 04 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 F6 [03:08:45]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [03:08:45]wFMCommunicate OK [03:08:45]SAM_PROTO_GetShiftState done [03:08:45]FM_GetShiftState done [03:08:45]req_shift_opened done [03:08:45]requested_item shift.open_date is exist - process it [03:08:45]req_shift_open_date [03:08:45]req_shift_open_date done [03:08:45]produce_requested_data done [03:08:45]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63745,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [03:08:45]process_action_free close_receipt [03:08:45]json_value_free [03:08:45]json_value_free done [03:08:45]process_json_proto returns [03:08:45]Send response to host [03:08:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63745,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [03:08:45]free response buf [03:08:45]execute_script done [03:08:45]execute_script returns [03:08:45]free content buf [03:08:45]Sock 7.Close socket [03:08:45]Sock 7.Thread stoped [03:08:49]OFD Sender: No OFD packet to send [03:08:54]OFD Sender: No OFD packet to send [03:08:59]OFD Sender: No OFD packet to send [03:09:04]OFD Sender: No OFD packet to send [03:09:09]OFD Sender: No OFD packet to send [03:09:14]OFD Sender: No OFD packet to send [03:09:19]OFD Sender: No OFD packet to send [03:09:24]OFD Sender: No OFD packet to send [03:09:29]OFD Sender: No OFD packet to send [03:09:34]OFD Sender: No OFD packet to send [03:09:39]OFD Sender: No OFD packet to send [03:09:44]OFD Sender: No OFD packet to send [03:09:49]OFD Sender: No OFD packet to send [03:09:54]OFD Sender: No OFD packet to send [03:09:59]OFD Sender: No OFD packet to send [03:10:04]OFD Sender: No OFD packet to send [03:10:09]OFD Sender: No OFD packet to send [03:10:14]OFD Sender: No OFD packet to send [03:10:19]OFD Sender: No OFD packet to send [03:10:24]OFD Sender: No OFD packet to send [03:10:29]OFD Sender: No OFD packet to send [03:10:34]OFD Sender: No OFD packet to send [03:10:39]OFD Sender: No OFD packet to send [03:10:44]OFD Sender: No OFD packet to send [03:10:49]OFD Sender: No OFD packet to send [03:10:54]OFD Sender: No OFD packet to send [03:10:59]OFD Sender: No OFD packet to send [03:11:04]OFD Sender: No OFD packet to send [03:11:09]OFD Sender: No OFD packet to send [03:11:14]OFD Sender: No OFD packet to send [03:11:19]OFD Sender: No OFD packet to send [03:11:24]OFD Sender: No OFD packet to send [03:11:29]OFD Sender: No OFD packet to send [03:11:34]OFD Sender: No OFD packet to send [03:11:39]OFD Sender: No OFD packet to send [03:11:44]OFD Sender: No OFD packet to send [03:11:49]OFD Sender: No OFD packet to send [03:11:54]OFD Sender: No OFD packet to send [03:11:59]OFD Sender: No OFD packet to send [03:12:04]OFD Sender: No OFD packet to send [03:12:09]OFD Sender: No OFD packet to send [03:12:14]OFD Sender: No OFD packet to send [03:12:19]OFD Sender: No OFD packet to send [03:12:24]OFD Sender: No OFD packet to send [03:12:29]OFD Sender: No OFD packet to send [03:12:34]OFD Sender: No OFD packet to send [03:12:39]OFD Sender: No OFD packet to send [03:12:44]OFD Sender: No OFD packet to send [03:12:49]OFD Sender: No OFD packet to send [03:12:54]OFD Sender: No OFD packet to send [03:12:59]OFD Sender: No OFD packet to send [03:13:04]OFD Sender: No OFD packet to send [03:13:09]OFD Sender: No OFD packet to send [03:13:14]OFD Sender: No OFD packet to send [03:13:19]OFD Sender: No OFD packet to send [03:13:24]OFD Sender: No OFD packet to send [03:13:29]OFD Sender: No OFD packet to send [03:13:34]OFD Sender: No OFD packet to send [03:13:39]OFD Sender: No OFD packet to send [03:13:44]OFD Sender: No OFD packet to send [03:13:49]OFD Sender: No OFD packet to send [03:13:54]OFD Sender: No OFD packet to send [03:13:59]OFD Sender: No OFD packet to send [03:14:04]OFD Sender: No OFD packet to send [03:14:09]OFD Sender: No OFD packet to send [03:14:14]OFD Sender: No OFD packet to send [03:14:19]OFD Sender: No OFD packet to send [03:14:24]OFD Sender: No OFD packet to send [03:14:29]OFD Sender: No OFD packet to send [03:14:34]OFD Sender: No OFD packet to send [03:14:39]OFD Sender: No OFD packet to send [03:14:44]OFD Sender: No OFD packet to send [03:14:49]OFD Sender: No OFD packet to send [03:14:54]OFD Sender: No OFD packet to send [03:14:59]OFD Sender: No OFD packet to send [03:15:04]OFD Sender: No OFD packet to send [03:15:09]OFD Sender: No OFD packet to send [03:15:14]OFD Sender: No OFD packet to send [03:15:19]OFD Sender: No OFD packet to send [03:15:24]OFD Sender: No OFD packet to send [03:15:29]OFD Sender: No OFD packet to send [03:15:34]OFD Sender: No OFD packet to send [03:15:39]OFD Sender: No OFD packet to send [03:15:44]OFD Sender: No OFD packet to send [03:15:49]OFD Sender: No OFD packet to send [03:15:54]OFD Sender: No OFD packet to send [03:15:59]OFD Sender: No OFD packet to send [03:16:04]OFD Sender: No OFD packet to send [03:16:09]OFD Sender: No OFD packet to send [03:16:14]OFD Sender: No OFD packet to send [03:16:19]OFD Sender: No OFD packet to send [03:16:24]OFD Sender: No OFD packet to send [03:16:29]OFD Sender: No OFD packet to send [03:16:34]OFD Sender: No OFD packet to send [03:16:39]OFD Sender: No OFD packet to send [03:16:44]OFD Sender: No OFD packet to send [03:16:49]OFD Sender: No OFD packet to send [03:16:54]OFD Sender: No OFD packet to send [03:16:59]OFD Sender: No OFD packet to send [03:17:04]OFD Sender: No OFD packet to send [03:17:09]OFD Sender: No OFD packet to send [03:17:14]OFD Sender: No OFD packet to send [03:17:19]OFD Sender: No OFD packet to send [03:17:24]OFD Sender: No OFD packet to send [03:17:29]OFD Sender: No OFD packet to send [03:17:34]OFD Sender: No OFD packet to send [03:17:39]OFD Sender: No OFD packet to send [03:17:44]OFD Sender: No OFD packet to send [03:17:49]OFD Sender: No OFD packet to send [03:17:54]OFD Sender: No OFD packet to send [03:17:59]OFD Sender: No OFD packet to send [03:18:04]OFD Sender: No OFD packet to send [03:18:09]OFD Sender: No OFD packet to send [03:18:14]OFD Sender: No OFD packet to send [03:18:19]OFD Sender: No OFD packet to send [03:18:24]OFD Sender: No OFD packet to send [03:18:29]OFD Sender: No OFD packet to send [03:18:34]OFD Sender: No OFD packet to send [03:18:39]OFD Sender: No OFD packet to send [03:18:44]OFD Sender: No OFD packet to send [03:18:49]OFD Sender: No OFD packet to send [03:18:54]OFD Sender: No OFD packet to send [03:18:59]OFD Sender: No OFD packet to send [03:19:04]OFD Sender: No OFD packet to send [03:19:09]OFD Sender: No OFD packet to send [03:19:14]OFD Sender: No OFD packet to send [03:19:19]OFD Sender: No OFD packet to send [03:19:24]OFD Sender: No OFD packet to send [03:19:29]OFD Sender: No OFD packet to send [03:19:34]OFD Sender: No OFD packet to send [03:19:39]OFD Sender: No OFD packet to send [03:19:44]OFD Sender: No OFD packet to send [03:19:49]OFD Sender: No OFD packet to send [03:19:54]OFD Sender: No OFD packet to send [03:19:59]OFD Sender: No OFD packet to send [03:20:04]OFD Sender: No OFD packet to send [03:20:09]OFD Sender: No OFD packet to send [03:20:14]OFD Sender: No OFD packet to send [03:20:19]OFD Sender: No OFD packet to send [03:20:24]OFD Sender: No OFD packet to send [03:20:29]OFD Sender: No OFD packet to send [03:20:34]OFD Sender: No OFD packet to send [03:20:39]OFD Sender: No OFD packet to send [03:20:44]OFD Sender: No OFD packet to send [03:20:49]OFD Sender: No OFD packet to send [03:20:54]OFD Sender: No OFD packet to send [03:20:59]OFD Sender: No OFD packet to send [03:21:04]OFD Sender: No OFD packet to send [03:21:09]OFD Sender: No OFD packet to send [03:21:14]OFD Sender: No OFD packet to send [03:21:19]OFD Sender: No OFD packet to send [03:21:24]OFD Sender: No OFD packet to send [03:21:29]OFD Sender: No OFD packet to send [03:21:34]OFD Sender: No OFD packet to send [03:21:39]OFD Sender: No OFD packet to send [03:21:44]OFD Sender: No OFD packet to send [03:21:49]OFD Sender: No OFD packet to send [03:21:54]OFD Sender: No OFD packet to send [03:21:59]OFD Sender: No OFD packet to send [03:22:04]OFD Sender: No OFD packet to send [03:22:09]OFD Sender: No OFD packet to send [03:22:14]OFD Sender: No OFD packet to send [03:22:19]OFD Sender: No OFD packet to send [03:22:24]OFD Sender: No OFD packet to send [03:22:29]OFD Sender: No OFD packet to send [03:22:34]OFD Sender: No OFD packet to send [03:22:39]OFD Sender: No OFD packet to send [03:22:44]OFD Sender: No OFD packet to send [03:22:49]OFD Sender: No OFD packet to send [03:22:54]OFD Sender: No OFD packet to send [03:22:59]OFD Sender: No OFD packet to send [03:23:04]OFD Sender: No OFD packet to send [03:23:09]OFD Sender: No OFD packet to send [03:23:14]OFD Sender: No OFD packet to send [03:23:19]OFD Sender: No OFD packet to send [03:23:24]OFD Sender: No OFD packet to send [03:23:29]OFD Sender: No OFD packet to send [03:23:34]OFD Sender: No OFD packet to send [03:23:39]OFD Sender: No OFD packet to send [03:23:44]OFD Sender: No OFD packet to send [03:23:49]OFD Sender: No OFD packet to send [03:23:54]OFD Sender: No OFD packet to send [03:23:59]OFD Sender: No OFD packet to send [03:24:04]OFD Sender: No OFD packet to send [03:24:09]OFD Sender: No OFD packet to send [03:24:14]OFD Sender: No OFD packet to send [03:24:19]OFD Sender: No OFD packet to send [03:24:24]OFD Sender: No OFD packet to send [03:24:29]OFD Sender: No OFD packet to send [03:24:34]OFD Sender: No OFD packet to send [03:24:39]OFD Sender: No OFD packet to send [03:24:44]OFD Sender: No OFD packet to send [03:24:49]OFD Sender: No OFD packet to send [03:24:54]OFD Sender: No OFD packet to send [03:24:59]OFD Sender: No OFD packet to send [03:25:04]OFD Sender: No OFD packet to send [03:25:09]OFD Sender: No OFD packet to send [03:25:14]OFD Sender: No OFD packet to send [03:25:19]OFD Sender: No OFD packet to send [03:25:24]OFD Sender: No OFD packet to send [03:25:29]OFD Sender: No OFD packet to send [03:25:34]OFD Sender: No OFD packet to send [03:25:39]OFD Sender: No OFD packet to send [03:25:44]OFD Sender: No OFD packet to send [03:25:49]OFD Sender: No OFD packet to send [03:25:54]OFD Sender: No OFD packet to send [03:25:59]OFD Sender: No OFD packet to send [03:26:04]OFD Sender: No OFD packet to send [03:26:09]OFD Sender: No OFD packet to send [03:26:15]OFD Sender: No OFD packet to send [03:26:20]OFD Sender: No OFD packet to send [03:26:25]OFD Sender: No OFD packet to send [03:26:30]OFD Sender: No OFD packet to send [03:26:35]OFD Sender: No OFD packet to send [03:26:40]OFD Sender: No OFD packet to send [03:26:45]OFD Sender: No OFD packet to send [03:26:50]OFD Sender: No OFD packet to send [03:26:55]OFD Sender: No OFD packet to send [03:27:00]OFD Sender: No OFD packet to send [03:27:05]OFD Sender: No OFD packet to send [03:27:10]OFD Sender: No OFD packet to send [03:27:15]OFD Sender: No OFD packet to send [03:27:20]OFD Sender: No OFD packet to send [03:27:25]OFD Sender: No OFD packet to send [03:27:30]OFD Sender: No OFD packet to send [03:27:35]OFD Sender: No OFD packet to send [03:27:40]OFD Sender: No OFD packet to send [03:27:45]OFD Sender: No OFD packet to send [03:27:50]OFD Sender: No OFD packet to send [03:27:55]OFD Sender: No OFD packet to send [03:28:00]OFD Sender: No OFD packet to send [03:28:05]OFD Sender: No OFD packet to send [03:28:10]OFD Sender: No OFD packet to send [03:28:15]OFD Sender: No OFD packet to send [03:28:20]OFD Sender: No OFD packet to send [03:28:25]OFD Sender: No OFD packet to send [03:28:30]OFD Sender: No OFD packet to send [03:28:35]OFD Sender: No OFD packet to send [03:28:40]OFD Sender: No OFD packet to send [03:28:45]OFD Sender: No OFD packet to send [03:28:50]OFD Sender: No OFD packet to send [03:28:55]OFD Sender: No OFD packet to send [03:29:00]OFD Sender: No OFD packet to send [03:29:05]OFD Sender: No OFD packet to send [03:29:10]OFD Sender: No OFD packet to send [03:29:15]OFD Sender: No OFD packet to send [03:29:20]OFD Sender: No OFD packet to send [03:29:25]OFD Sender: No OFD packet to send [03:29:30]OFD Sender: No OFD packet to send [03:29:35]OFD Sender: No OFD packet to send [03:29:40]OFD Sender: No OFD packet to send [03:29:45]OFD Sender: No OFD packet to send [03:29:50]OFD Sender: No OFD packet to send [03:29:55]OFD Sender: No OFD packet to send [03:30:00]OFD Sender: No OFD packet to send [03:30:05]OFD Sender: No OFD packet to send [03:30:10]OFD Sender: No OFD packet to send [03:30:15]OFD Sender: No OFD packet to send [03:30:20]OFD Sender: No OFD packet to send [03:30:25]OFD Sender: No OFD packet to send [03:30:30]OFD Sender: No OFD packet to send [03:30:35]OFD Sender: No OFD packet to send [03:30:40]OFD Sender: No OFD packet to send [03:30:45]OFD Sender: No OFD packet to send [03:30:50]OFD Sender: No OFD packet to send [03:30:55]OFD Sender: No OFD packet to send [03:31:00]OFD Sender: No OFD packet to send [03:31:05]OFD Sender: No OFD packet to send [03:31:10]OFD Sender: No OFD packet to send [03:31:15]OFD Sender: No OFD packet to send [03:31:20]OFD Sender: No OFD packet to send [03:31:25]OFD Sender: No OFD packet to send [03:31:30]OFD Sender: No OFD packet to send [03:31:35]OFD Sender: No OFD packet to send [03:31:40]OFD Sender: No OFD packet to send [03:31:45]OFD Sender: No OFD packet to send [03:31:50]OFD Sender: No OFD packet to send [03:31:55]OFD Sender: No OFD packet to send [03:32:00]OFD Sender: No OFD packet to send [03:32:05]OFD Sender: No OFD packet to send [03:32:10]OFD Sender: No OFD packet to send [03:32:15]OFD Sender: No OFD packet to send [03:32:20]OFD Sender: No OFD packet to send [03:32:25]OFD Sender: No OFD packet to send [03:32:30]OFD Sender: No OFD packet to send [03:32:35]OFD Sender: No OFD packet to send [03:32:40]OFD Sender: No OFD packet to send [03:32:45]OFD Sender: No OFD packet to send [03:32:50]OFD Sender: No OFD packet to send [03:32:55]OFD Sender: No OFD packet to send [03:33:00]OFD Sender: No OFD packet to send [03:33:05]OFD Sender: No OFD packet to send [03:33:10]OFD Sender: No OFD packet to send [03:33:15]OFD Sender: No OFD packet to send [03:33:20]OFD Sender: No OFD packet to send [03:33:25]OFD Sender: No OFD packet to send [03:33:30]OFD Sender: No OFD packet to send [03:33:35]OFD Sender: No OFD packet to send [03:33:40]OFD Sender: No OFD packet to send [03:33:45]OFD Sender: No OFD packet to send [03:33:50]OFD Sender: No OFD packet to send [03:33:55]OFD Sender: No OFD packet to send [03:34:00]OFD Sender: No OFD packet to send [03:34:05]OFD Sender: No OFD packet to send [03:34:10]OFD Sender: No OFD packet to send [03:34:15]OFD Sender: No OFD packet to send [03:34:20]OFD Sender: No OFD packet to send [03:34:25]OFD Sender: No OFD packet to send [03:34:30]OFD Sender: No OFD packet to send [03:34:35]OFD Sender: No OFD packet to send [03:34:40]OFD Sender: No OFD packet to send [03:34:45]OFD Sender: No OFD packet to send [03:34:50]OFD Sender: No OFD packet to send [03:34:55]OFD Sender: No OFD packet to send [03:35:00]OFD Sender: No OFD packet to send [03:35:05]OFD Sender: No OFD packet to send [03:35:10]OFD Sender: No OFD packet to send [03:35:15]OFD Sender: No OFD packet to send [03:35:20]OFD Sender: No OFD packet to send [03:35:25]OFD Sender: No OFD packet to send [03:35:30]OFD Sender: No OFD packet to send [03:35:35]OFD Sender: No OFD packet to send [03:35:40]OFD Sender: No OFD packet to send [03:35:45]OFD Sender: No OFD packet to send [03:35:50]OFD Sender: No OFD packet to send [03:35:55]OFD Sender: No OFD packet to send [03:36:00]OFD Sender: No OFD packet to send [03:36:05]OFD Sender: No OFD packet to send [03:36:10]OFD Sender: No OFD packet to send [03:36:15]OFD Sender: No OFD packet to send [03:36:20]OFD Sender: No OFD packet to send [03:36:25]OFD Sender: No OFD packet to send [03:36:30]OFD Sender: No OFD packet to send [03:36:35]OFD Sender: No OFD packet to send [03:36:40]OFD Sender: No OFD packet to send [03:36:45]OFD Sender: No OFD packet to send [03:36:50]OFD Sender: No OFD packet to send [03:36:51]accept exits with 9 [03:36:51]New connection [03:36:51]New thread 3066654052 created [03:36:51]Thread 3066797412 joined [03:36:51]Waiting for new connection... [03:36:51] Sock 9.Parse request [03:36:51]Sock 9.Check first char [03:36:51]Sock 9.First char is OK [03:36:51]request: POST /json_proto HTTP/1.0 [03:36:51]Method: POST [03:36:51]URL: /json_proto [03:36:51]Method is POST - this is cgi request [03:36:51]url: /json_proto [03:36:51]query_string will be loaded in cgi processing [03:36:51]execute_cgi json_proto POST (null) [03:36:51]execute_cgi path=json_proto method=POST [03:36:51]POST find Content-Length [03:36:51]Host: 172.17.60.69:8080 [03:36:51]Content-Length: 621 [03:36:51]Content-Type: application/json [03:36:51] [03:36:51]POST finish read [03:36:51]Found Content-Length = 621 [03:36:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73335", "tax_sys" : 0, "items" : [ { "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 151.00, "quantity" : 1.000, "sum" : 151.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 151.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:36:51]execute_script... [03:36:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73335", "tax_sys" : 0, "items" : [ { "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 151.00, "quantity" : 1.000, "sum" : 151.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 151.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:36:51]POST & json_proto [03:36:51]process_json_proto [03:36:51]json parsed OK: [03:36:51]protocol is kg_v1.0 [03:36:51]action value=close_receipt [03:36:51]process_action close_receipt [03:36:51]cmd_close_receipt [03:36:51]MH_GetDate [03:36:51]Write to MH i2c: F0 00 00 AA 04 9D [03:36:51]Write i2c OK [03:36:51]MH_I2C_Read... [03:36:51]Read from MH i2c: F0 [03:36:51]MH_I2C_Read... [03:36:51]Read from MH i2c: F0 09 00 [03:36:51]MH_I2C_Read... [03:36:51]Read from MH i2c: F0 09 00 AA 04 00 55 3A 5D 66 6A 96 4A 66 A8 [03:36:51]GetLastDocTimeStamp 1717384123 [03:36:51]current date 1717385813 [03:36:51]FM_GetShiftState [03:36:51]SAM_PROTO_GetShiftState [03:36:51]wFMCommunicate request_size=4 [03:36:51]MH_SAM_APDU [03:36:51]CAPDU: 80 13 01 00 [03:36:51]Write to MH i2c: E2 08 00 AB 04 80 13 01 00 00 00 00 00 2C [03:36:51]Write i2c OK [03:36:51]MH_I2C_Read... [03:36:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:36:51]Read from MH i2c: E2 [03:36:51]MH_I2C_Read... [03:36:51]Read from MH i2c: E2 0E 00 [03:36:51]MH_I2C_Read... [03:36:51]Read from MH i2c: E2 0E 00 AB 04 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 F8 [03:36:51]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [03:36:51]wFMCommunicate OK [03:36:51]SAM_PROTO_GetShiftState done [03:36:51]FM_GetShiftState done [03:36:51]opened in 1717373173 [03:36:51]opened+sec_in_day 1717459573 [03:36:51]quantity*price = 15100 [03:36:51]sum+1 = 15101 [03:36:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 151.00 НСП 1% : 1.34 НДС 12% : 16.03 Наличными: 151.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 4 03.06.2024 03:36 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63746 ФПД: 47036227287115 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T033653&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63746&fm=47036227287115&tin=02508201610067®Number=0000000000092737&sum=15100 0 [03:36:52]StoreToDocumentArchive [03:36:52]shift 373 fd 63746 [03:36:52]save to /storage/0373/doc_00063746 [03:36:52]save last doc name /storage/0373/doc_00063746 to /storage/kkm_last_doc_name [03:36:52]save OK [03:36:52]Clear old archive folders... [03:36:52]ProcessDocumentItem done err = 0, tmpTLVsize=274 [03:36:52]tlvbuf is 008BE8F0 [03:36:52]SAM_PROTO_ClearQueue [03:36:52]wFMCommunicate request_size=4 [03:36:52]MH_SAM_APDU [03:36:52]CAPDU: 80 09 00 00 [03:36:52]Write to MH i2c: E2 08 00 B8 04 80 09 00 00 00 00 00 00 2E [03:36:52]Write i2c OK [03:36:52]MH_I2C_Read... [03:36:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:36:52]Read from MH i2c: E2 [03:36:52]MH_I2C_Read... [03:36:52]Read from MH i2c: E2 03 00 [03:36:52]MH_I2C_Read... [03:36:52]Read from MH i2c: E2 03 00 B8 04 00 90 00 30 [03:36:52]RAPDU: 90 00 [03:36:52]wFMCommunicate OK [03:36:52]SAM_PROTO_ClearQueue done [03:36:52]KKMCreateOFDPacket [03:36:52]OFDProtocolAddRootSTLVToBuf [03:36:52]FM_MakeSignedData [03:36:52]FM_MakeSignedData [03:36:52]SAM_PROTO_SignData [03:36:52]wFMCommunicate request_size=4 [03:36:52]MH_SAM_APDU [03:36:52]CAPDU: 80 0D 01 02 [03:36:52]Write to MH i2c: E2 08 00 B9 04 80 0D 01 02 00 00 00 00 36 [03:36:52]Write i2c OK [03:36:52]MH_I2C_Read... [03:36:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:36:52]Read from MH i2c: E2 [03:36:52]MH_I2C_Read... [03:36:52]Read from MH i2c: E2 03 00 [03:36:52]MH_I2C_Read... [03:36:52]Read from MH i2c: E2 03 00 B9 04 00 90 00 31 [03:36:52]RAPDU: 90 00 [03:36:52]wFMCommunicate OK [03:36:52]wFMCommunicate request_size=255 [03:36:52]MH_SAM_APDU [03:36:52]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 55 3A 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 [03:36:52]Write to MH i2c: E2 02 01 BA 04 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 55 3A 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 00 00 CE [03:36:52]Write i2c OK [03:36:52]MH_I2C_Read... [03:36:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:36:52]Read from MH i2c: E2 [03:36:52]MH_I2C_Read... [03:36:52]Read from MH i2c: E2 03 00 [03:36:52]MH_I2C_Read... [03:36:52]Read from MH i2c: E2 03 00 BA 04 00 90 00 32 [03:36:52]RAPDU: 90 00 [03:36:52]wFMCommunicate OK [03:36:52]wFMCommunicate request_size=33 [03:36:52]MH_SAM_APDU [03:36:52]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 35 30 37 34 10 04 04 00 02 F9 00 00 35 04 06 00 2A C7 79 9E 78 4B [03:36:52]Write to MH i2c: E2 24 00 BB 04 80 0D 02 02 1C 00 30 30 30 30 38 37 35 30 37 34 10 04 04 00 02 F9 00 00 35 04 06 00 2A C7 79 9E 78 4B 00 00 8D [03:36:52]Write i2c OK [03:36:52]MH_I2C_Read... [03:36:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:36:52]Read from MH i2c: E2 [03:36:52]MH_I2C_Read... [03:36:52]Read from MH i2c: E2 03 00 [03:36:52]MH_I2C_Read... [03:36:52]Read from MH i2c: E2 03 00 BB 04 00 90 00 33 [03:36:52]RAPDU: 90 00 [03:36:52]wFMCommunicate OK [03:36:52]wFMCommunicate request_size=4 [03:36:52]MH_SAM_APDU [03:36:52]CAPDU: 80 0D 03 02 [03:36:52]Write to MH i2c: E2 08 00 BC 04 80 0D 03 02 00 00 00 00 3B [03:36:52]Write i2c OK [03:36:52]MH_I2C_Read... [03:36:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:36:52]Read from MH i2c: E2 [03:36:52]MH_I2C_Read... [03:36:52]Read from MH i2c: E2 0B 00 [03:36:52]MH_I2C_Read... [03:36:52]Read from MH i2c: E2 0B 00 BC 04 00 25 21 DC D1 19 99 CF E3 90 00 93 [03:36:52]RAPDU: 25 21 DC D1 19 99 CF E3 90 00 [03:36:52]wFMCommunicate OK [03:36:52]SAM_PROTO_SignData done [03:36:52]FM_MakeSignedData done [03:36:52]CreateOFDProtocolMessage [03:36:52]wFMCommunicate request_size=4 [03:36:52]MH_SAM_APDU [03:36:52]CAPDU: 80 11 00 00 [03:36:52]Write to MH i2c: E2 08 00 BD 04 80 11 00 00 00 00 00 00 3B [03:36:52]Write i2c OK [03:36:52]MH_I2C_Read... [03:36:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:36:52]Read from MH i2c: E2 [03:36:52]MH_I2C_Read... [03:36:52]Read from MH i2c: E2 17 00 [03:36:52]MH_I2C_Read... [03:36:52]Read from MH i2c: E2 17 00 BD 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 8D [03:36:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [03:36:52]wFMCommunicate OK [03:36:52]CreateOFDProtocolMessage done [03:36:52]OFDSenderStorePacket 63746 [03:36:52]StoreOFDPacket docnum=63746 [03:36:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 26 01 00 00 BC ED 1E 01 2D 94 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 55 3A 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 02 F9 00 00 35 04 06 00 2A C7 79 9E 78 4B 25 21 DC D1 19 99 CF E3 [03:36:52]CheckFolder [03:36:52]dirname=/storage/ofd_packets [03:36:52]CheckFolder done [03:36:52]ProducePacketName [03:36:52]name=ofd_packets/00063746 [03:36:52]NVStorageSaveData ofd_packets/00063746 [03:36:52]File name is /storage/ofd_packets/00063746 [03:36:52]Write 324 bytes [03:36:52]NVStorageSaveData done [03:36:52]OFDSenderStorePacket done [03:36:52]KKMCreateOFDPacket done [03:36:52]NVStorageSaveData kkm_last_timestamp [03:36:52]File name is /storage/kkm_last_timestamp [03:36:52]Write 4 bytes [03:36:52]NVStorageSaveData done [03:36:52]ExternCall_PrintAddStr [03:36:52]wPrintStart [03:36:52]Write to MH i2c: 01 00 00 BE 04 C2 [03:36:52]Write i2c OK [03:36:52]MH_I2C_Read... [03:36:52]Read from MH i2c: 01 [03:36:52]MH_I2C_Read... [03:36:52]Read from MH i2c: 01 07 00 [03:36:52]MH_I2C_Read... [03:36:52]Read from MH i2c: 01 07 00 BE 04 00 00 00 00 00 FF 0F D7 [03:36:52]RasterBufferAndPrint [03:36:52]line Счет N : (3)73335 [03:36:52]line ИНН: 02508201610067 [03:36:52]line Контрольно-Кассовый Чек [03:36:52]line ПРОДАЖА [03:36:52]line Товар: 48741958 [03:36:52]line Сигареты Parliament Aqua Blue [03:36:52]line 1.000 * 151.00 [03:36:52]line = 151.00 [03:36:52]line НДС 12% НСП 1% [03:36:53]line > о реализуемом товаре [03:36:53]line ИТОГО: 151.00 [03:36:53]line НСП 1% : 1.34 [03:36:53]line НДС 12% : 16.03 [03:36:53]line Наличными: 151.00 [03:36:53]line Безнал.: 0.00 [03:36:53]line Место: АЗС № 117 "Партнер Нефть" [03:36:53]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [03:36:53]line СНО: Общий режим [03:36:53]line Чек 4 03.06.2024 03:36 [03:36:53]line Смена: 373 ФФД: 1.0 [03:36:53]line ЗНМ: 0300000031 [03:36:53]line РНМ: 0000000000092737 [03:36:53]line Версия ККМ: 001 [03:36:53]line ФМ: 0000000000875074 [03:36:53]line ФД: 63746 [03:36:53]line ФПД: 47036227287115 [03:36:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T033653&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63746&fm=47036227287115&tin=02508201610067®Number=0000000000092737&sum=15100 [03:36:53]line 0 [03:36:53]OFD Sender: Processing packet 63746 [packets to send 14, broken 13] [03:36:53]ProducePacketName [03:36:53]name=ofd_packets/00063746 [03:36:53]OFD Sender: To server: pG, [03:36:53]CommunicateWithHost lk.salyk.kg:30040 [03:36:53]ConnectInit lk.salyk.kg [03:36:53]written 0, free lines is 4095 [03:36:53]Connected sock=10 [03:36:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 26 01 00 00 BC ED 1E 01 2D 94 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 55 3A 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 02 F9 00 00 35 04 06 00 2A C7 79 9E 78 4B 25 21 DC D1 19 99 CF E3 [03:36:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 89 B0 47 00 E9 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 35 30 37 34 10 04 04 00 02 F9 00 00 F4 03 04 00 28 E6 5C 66 B6 04 01 00 00 53 4B 97 9C EC B5 76 4B [03:36:53]CommunicateWithHost err = 0 [03:36:53]CheckOFDResponse [03:36:53]1017 (14) - 77093643461234 [03:36:53]1041 (16) - 0000000000875074 [03:36:53]1040 (4) - 63746 [03:36:53]1012 (4) - 02.06.2024 21:37 [03:36:53]1206 (1) - 0 [03:36:53]OFD Sender: Remove packet 63746 [03:36:53]ProducePacketName [03:36:53]name=ofd_packets/00063746 [03:36:53]NVStorageDeleteData [03:36:53]Write to MH i2c: 01 00 00 E7 04 EB [03:36:53]Write i2c OK [03:36:53]MH_I2C_Read... [03:36:53]Read from MH i2c: 01 [03:36:53]MH_I2C_Read... [03:36:53]Read from MH i2c: 01 07 00 [03:36:53]MH_I2C_Read... [03:36:53]Read from MH i2c: 01 07 00 E7 04 00 00 00 00 00 CD 0C CB [03:36:53]RasterBufferAndPrint [03:36:53]line [03:36:53]line [03:36:53]line [03:36:53]line [03:36:53]line [03:36:53]written 0, free lines is 3282 [03:36:53]MH_Cut [03:36:53]Write to MH i2c: D1 01 00 EE 04 01 C4 [03:36:53]Write i2c OK [03:36:53]MH_I2C_Read... [03:36:53]Read from MH i2c: D1 [03:36:53]MH_I2C_Read... [03:36:53]Read from MH i2c: D1 01 00 [03:36:53]MH_I2C_Read... [03:36:53]Read from MH i2c: D1 01 00 EE 04 00 C3 [03:36:53]Write to MH i2c: 01 00 00 EF 04 F3 [03:36:53]Write i2c OK [03:36:53]MH_I2C_Read... [03:36:54]OFD Sender: No OFD packet to send [03:36:54]*** Cut start [03:36:54]*** Partial cut [03:36:54]*** CUTSNS_PIN = 1 [03:36:54]*** CUTSNS_PIN = 0 [03:36:54]*** Brake cut motor [03:36:55]Read from MH i2c: 01 [03:36:55]MH_I2C_Read... [03:36:55]*** Stop cut motor [03:36:55]*** Cut end [03:36:55]Read from MH i2c: 01 07 00 [03:36:55]MH_I2C_Read... [03:36:55]Read from MH i2c: 01 07 00 EF 04 00 00 00 00 00 FF 0F 08 [03:36:55]process_action close_receipt done [03:36:55]requested_data is exist [03:36:55]produce_requested_data [03:36:55]requested_item fm.sn is exist - process it [03:36:55]wFMCommunicate request_size=4 [03:36:55]MH_SAM_APDU [03:36:55]CAPDU: 80 11 00 00 [03:36:55]Write to MH i2c: E2 08 00 F0 04 80 11 00 00 00 00 00 00 6E [03:36:55]Write i2c OK [03:36:55]MH_I2C_Read... [03:36:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:36:55]Read from MH i2c: E2 [03:36:55]MH_I2C_Read... [03:36:55]Read from MH i2c: E2 17 00 [03:36:55]MH_I2C_Read... [03:36:55]Read from MH i2c: E2 17 00 F0 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 C0 [03:36:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [03:36:55]wFMCommunicate OK [03:36:55]requested_item fd.num is exist - process it [03:36:55]SAM_PROTO_GetFieldsCounters [03:36:55]wFMCommunicate request_size=4 [03:36:55]MH_SAM_APDU [03:36:55]CAPDU: 80 13 00 00 [03:36:55]Write to MH i2c: E2 08 00 F1 04 80 13 00 00 00 00 00 00 71 [03:36:55]Write i2c OK [03:36:55]MH_I2C_Read... [03:36:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:36:55]Read from MH i2c: E2 [03:36:55]MH_I2C_Read... [03:36:55]Read from MH i2c: E2 62 00 [03:36:55]MH_I2C_Read... [03:36:55]Read from MH i2c: E2 62 00 F1 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 02 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 11 [03:36: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 02 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:36:55]wFMCommunicate OK [03:36:55]SAM_PROTO_GetFieldsCounters done [03:36:55]requested_item shift.num is exist - process it [03:36:55]requested_item shift.opened is exist - process it [03:36:55]req_shift_opened [03:36:55]FM_GetShiftState [03:36:55]SAM_PROTO_GetShiftState [03:36:55]wFMCommunicate request_size=4 [03:36:55]MH_SAM_APDU [03:36:55]CAPDU: 80 13 01 00 [03:36:55]Write to MH i2c: E2 08 00 F2 04 80 13 01 00 00 00 00 00 73 [03:36:55]Write i2c OK [03:36:55]MH_I2C_Read... [03:36:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:36:55]Read from MH i2c: E2 [03:36:55]MH_I2C_Read... [03:36:55]Read from MH i2c: E2 0E 00 [03:36:55]MH_I2C_Read... [03:36:55]Read from MH i2c: E2 0E 00 F2 04 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 3F [03:36:55]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [03:36:55]wFMCommunicate OK [03:36:55]SAM_PROTO_GetShiftState done [03:36:55]FM_GetShiftState done [03:36:55]req_shift_opened done [03:36:55]requested_item shift.open_date is exist - process it [03:36:55]req_shift_open_date [03:36:55]req_shift_open_date done [03:36:55]produce_requested_data done [03:36:55]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63746,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [03:36:55]process_action_free close_receipt [03:36:55]json_value_free [03:36:55]json_value_free done [03:36:55]process_json_proto returns [03:36:55]Send response to host [03:36:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63746,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [03:36:55]free response buf [03:36:55]execute_script done [03:36:55]execute_script returns [03:36:55]free content buf [03:36:55]Sock 9.Close socket [03:36:55]Sock 9.Thread stoped [03:36:59]OFD Sender: No OFD packet to send [03:37:04]OFD Sender: No OFD packet to send [03:37:09]OFD Sender: No OFD packet to send [03:37:14]OFD Sender: No OFD packet to send [03:37:19]OFD Sender: No OFD packet to send [03:37:24]OFD Sender: No OFD packet to send [03:37:29]OFD Sender: No OFD packet to send [03:37:34]OFD Sender: No OFD packet to send [03:37:39]OFD Sender: No OFD packet to send [03:37:44]OFD Sender: No OFD packet to send [03:37:49]OFD Sender: No OFD packet to send [03:37:54]OFD Sender: No OFD packet to send [03:37:59]OFD Sender: No OFD packet to send [03:38:04]OFD Sender: No OFD packet to send [03:38:09]OFD Sender: No OFD packet to send [03:38:14]OFD Sender: No OFD packet to send [03:38:19]OFD Sender: No OFD packet to send [03:38:24]OFD Sender: No OFD packet to send [03:38:29]OFD Sender: No OFD packet to send [03:38:34]OFD Sender: No OFD packet to send [03:38:39]OFD Sender: No OFD packet to send [03:38:44]OFD Sender: No OFD packet to send [03:38:49]OFD Sender: No OFD packet to send [03:38:54]OFD Sender: No OFD packet to send [03:38:59]OFD Sender: No OFD packet to send [03:39:04]OFD Sender: No OFD packet to send [03:39:09]OFD Sender: No OFD packet to send [03:39:14]OFD Sender: No OFD packet to send [03:39:19]OFD Sender: No OFD packet to send [03:39:24]OFD Sender: No OFD packet to send [03:39:29]OFD Sender: No OFD packet to send [03:39:31]accept exits with 7 [03:39:31]New connection [03:39:31]New thread 3066797412 created [03:39:31]Thread 3066654052 joined [03:39:31]Waiting for new connection... [03:39:31] Sock 7.Parse request [03:39:31]Sock 7.Check first char [03:39:31]Sock 7.First char is OK [03:39:31]request: POST /json_proto HTTP/1.0 [03:39:31]Method: POST [03:39:31]URL: /json_proto [03:39:31]Method is POST - this is cgi request [03:39:31]url: /json_proto [03:39:31]query_string will be loaded in cgi processing [03:39:31]execute_cgi json_proto POST (null) [03:39:31]execute_cgi path=json_proto method=POST [03:39:31]POST find Content-Length [03:39:31]Host: 172.17.60.69:8080 [03:39:31]Content-Length: 823 [03:39:31]Content-Type: application/json [03:39:31] [03:39:31]POST finish read [03:39:31]Found Content-Length = 823 [03:39:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73336", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:39:31]execute_script... [03:39:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73336", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:39:31]POST & json_proto [03:39:31]process_json_proto [03:39:31]json parsed OK: [03:39:31]protocol is kg_v1.0 [03:39:31]action value=close_receipt [03:39:31]process_action close_receipt [03:39:31]cmd_close_receipt [03:39:31]MH_GetDate [03:39:31]Write to MH i2c: F0 00 00 F3 04 E6 [03:39:31]Write i2c OK [03:39:31]MH_I2C_Read... [03:39:31]Read from MH i2c: F0 [03:39:31]MH_I2C_Read... [03:39:31]Read from MH i2c: F0 09 00 [03:39:31]MH_I2C_Read... [03:39:31]Read from MH i2c: F0 09 00 F3 04 00 F5 3A 5D 66 6A 96 4A 66 91 [03:39:31]GetLastDocTimeStamp 1717385813 [03:39:31]current date 1717385973 [03:39:31]FM_GetShiftState [03:39:31]SAM_PROTO_GetShiftState [03:39:31]wFMCommunicate request_size=4 [03:39:31]MH_SAM_APDU [03:39:31]CAPDU: 80 13 01 00 [03:39:31]Write to MH i2c: E2 08 00 F4 04 80 13 01 00 00 00 00 00 75 [03:39:31]Write i2c OK [03:39:31]MH_I2C_Read... [03:39:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:39:31]Read from MH i2c: E2 [03:39:31]MH_I2C_Read... [03:39:31]Read from MH i2c: E2 0E 00 [03:39:31]MH_I2C_Read... [03:39:31]Read from MH i2c: E2 0E 00 F4 04 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 41 [03:39:31]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [03:39:31]wFMCommunicate OK [03:39:31]SAM_PROTO_GetShiftState done [03:39:31]FM_GetShiftState done [03:39:31]opened in 1717373173 [03:39:31]opened+sec_in_day 1717459573 [03:39:31]quantity*price = 14000 [03:39:31]sum+1 = 14001 [03:39:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 0.00 Безнал.: 140.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 5 03.06.2024 03:39 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000875074 ФД: 63747 ФПД: 47385325758571 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T033933&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63747&fm=47385325758571&tin=02508201610067®Number=0000000000092737&sum=14000 0 [03:39:32]StoreToDocumentArchive [03:39:32]shift 373 fd 63747 [03:39:32]save to /storage/0373/doc_00063747 [03:39:32]save last doc name /storage/0373/doc_00063747 to /storage/kkm_last_doc_name [03:39:32]save OK [03:39:32]Clear old archive folders... [03:39:32]ProcessDocumentItem done err = 0, tmpTLVsize=275 [03:39:32]tlvbuf is 008B9830 [03:39:32]SAM_PROTO_ClearQueue [03:39:32]wFMCommunicate request_size=4 [03:39:32]MH_SAM_APDU [03:39:32]CAPDU: 80 09 00 00 [03:39:32]Write to MH i2c: E2 08 00 01 05 80 09 00 00 00 00 00 00 78 [03:39:32]Write i2c OK [03:39:32]MH_I2C_Read... [03:39:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:39:32]Read from MH i2c: E2 [03:39:32]MH_I2C_Read... [03:39:32]Read from MH i2c: E2 03 00 [03:39:32]MH_I2C_Read... [03:39:32]Read from MH i2c: E2 03 00 01 05 00 90 00 7A [03:39:32]RAPDU: 90 00 [03:39:32]wFMCommunicate OK [03:39:32]SAM_PROTO_ClearQueue done [03:39:32]KKMCreateOFDPacket [03:39:32]OFDProtocolAddRootSTLVToBuf [03:39:32]FM_MakeSignedData [03:39:32]FM_MakeSignedData [03:39:32]SAM_PROTO_SignData [03:39:32]wFMCommunicate request_size=4 [03:39:32]MH_SAM_APDU [03:39:32]CAPDU: 80 0D 01 02 [03:39:32]Write to MH i2c: E2 08 00 02 05 80 0D 01 02 00 00 00 00 80 [03:39:32]Write i2c OK [03:39:32]MH_I2C_Read... [03:39:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:39:32]Read from MH i2c: E2 [03:39:32]MH_I2C_Read... [03:39:32]Read from MH i2c: E2 03 00 [03:39:32]MH_I2C_Read... [03:39:32]Read from MH i2c: E2 03 00 02 05 00 90 00 7B [03:39:32]RAPDU: 90 00 [03:39:32]wFMCommunicate OK [03:39:32]wFMCommunicate request_size=255 [03:39:32]MH_SAM_APDU [03:39:32]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 F5 3A 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 [03:39:32]Write to MH i2c: E2 02 01 03 05 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 F5 3A 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 00 00 80 [03:39:32]Write i2c OK [03:39:32]MH_I2C_Read... [03:39:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:39:32]Read from MH i2c: E2 [03:39:32]MH_I2C_Read... [03:39:32]Read from MH i2c: E2 03 00 [03:39:32]MH_I2C_Read... [03:39:32]Read from MH i2c: E2 03 00 03 05 00 90 00 7C [03:39:32]RAPDU: 90 00 [03:39:32]wFMCommunicate OK [03:39:32]wFMCommunicate request_size=34 [03:39:32]MH_SAM_APDU [03:39:32]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 03 F9 00 00 35 04 06 00 2B 18 C1 82 68 6B [03:39:32]Write to MH i2c: E2 25 00 04 05 80 0D 02 02 1D 00 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 03 F9 00 00 35 04 06 00 2B 18 C1 82 68 6B 00 00 98 [03:39:32]Write i2c OK [03:39:32]MH_I2C_Read... [03:39:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:39:32]Read from MH i2c: E2 [03:39:32]MH_I2C_Read... [03:39:32]Read from MH i2c: E2 03 00 [03:39:32]MH_I2C_Read... [03:39:32]Read from MH i2c: E2 03 00 04 05 00 90 00 7D [03:39:32]RAPDU: 90 00 [03:39:32]wFMCommunicate OK [03:39:32]wFMCommunicate request_size=4 [03:39:32]MH_SAM_APDU [03:39:32]CAPDU: 80 0D 03 02 [03:39:32]Write to MH i2c: E2 08 00 05 05 80 0D 03 02 00 00 00 00 85 [03:39:32]Write i2c OK [03:39:32]MH_I2C_Read... [03:39:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:39:32]Read from MH i2c: E2 [03:39:32]MH_I2C_Read... [03:39:32]Read from MH i2c: E2 0B 00 [03:39:32]MH_I2C_Read... [03:39:32]Read from MH i2c: E2 0B 00 05 05 00 A7 20 EE 96 1B 07 AB 77 90 00 15 [03:39:32]RAPDU: A7 20 EE 96 1B 07 AB 77 90 00 [03:39:32]wFMCommunicate OK [03:39:32]SAM_PROTO_SignData done [03:39:32]FM_MakeSignedData done [03:39:32]CreateOFDProtocolMessage [03:39:32]wFMCommunicate request_size=4 [03:39:32]MH_SAM_APDU [03:39:32]CAPDU: 80 11 00 00 [03:39:32]Write to MH i2c: E2 08 00 06 05 80 11 00 00 00 00 00 00 85 [03:39:32]Write i2c OK [03:39:32]MH_I2C_Read... [03:39:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:39:33]Read from MH i2c: E2 [03:39:33]MH_I2C_Read... [03:39:33]Read from MH i2c: E2 17 00 [03:39:33]MH_I2C_Read... [03:39:33]Read from MH i2c: E2 17 00 06 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 D7 [03:39:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [03:39:33]wFMCommunicate OK [03:39:33]CreateOFDProtocolMessage done [03:39:33]OFDSenderStorePacket 63747 [03:39:33]StoreOFDPacket docnum=63747 [03:39:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 27 01 00 00 9B 7A 1F 01 11 12 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 F5 3A 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 03 F9 00 00 35 04 06 00 2B 18 C1 82 68 6B A7 20 EE 96 1B 07 AB 77 [03:39:33]CheckFolder [03:39:33]dirname=/storage/ofd_packets [03:39:33]CheckFolder done [03:39:33]ProducePacketName [03:39:33]name=ofd_packets/00063747 [03:39:33]NVStorageSaveData ofd_packets/00063747 [03:39:33]File name is /storage/ofd_packets/00063747 [03:39:33]Write 325 bytes [03:39:33]NVStorageSaveData done [03:39:33]OFDSenderStorePacket done [03:39:33]KKMCreateOFDPacket done [03:39:33]NVStorageSaveData kkm_last_timestamp [03:39:33]File name is /storage/kkm_last_timestamp [03:39:33]Write 4 bytes [03:39:33]NVStorageSaveData done [03:39:33]ExternCall_PrintAddStr [03:39:33]wPrintStart [03:39:33]Write to MH i2c: 01 00 00 07 05 0C [03:39:33]Write i2c OK [03:39:33]MH_I2C_Read... [03:39:33]Read from MH i2c: 01 [03:39:33]MH_I2C_Read... [03:39:33]Read from MH i2c: 01 07 00 [03:39:33]MH_I2C_Read... [03:39:33]Read from MH i2c: 01 07 00 07 05 00 00 00 00 00 FF 0F 21 [03:39:33]RasterBufferAndPrint [03:39:33]line Счет N : (3)73336 [03:39:33]line ИНН: 02508201610067 [03:39:33]line Контрольно-Кассовый Чек [03:39:33]line ПРОДАЖА [03:39:33]line Товар: 48743587 [03:39:33]line Сигареты Winston XStyle Silver [03:39:33]line 1.000 * 140.00 [03:39:33]line = 140.00 [03:39:33]line НДС 12% НСП 1% [03:39:33]line > о реализуемом товаре [03:39:33]line ИТОГО: 140.00 [03:39:33]line НСП 1% : 1.24 [03:39:33]line НДС 12% : 14.87 [03:39:33]line Наличными: 0.00 [03:39:33]line Безнал.: 140.00 [03:39:33]line Место: АЗС № 117 "Партнер Нефть" [03:39:33]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [03:39:33]line СНО: Общий режим [03:39:33]line Чек 5 03.06.2024 03:39 [03:39:33]line Смена: 373 ФФД: 1.0 [03:39:33]line ЗНМ: 0300000031 [03:39:33]line РНМ: 0000000000092737 [03:39:33]line Версия ККМ: 001 [03:39:33]line Платежная система: АКБ Кыргызстан [03:39:33]line ФМ: 0000000000875074 [03:39:33]line ФД: 63747 [03:39:33]line ФПД: 47385325758571 [03:39:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T033933&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63747&fm=47385325758571&tin=02508201610067®Number=0000000000092737&sum=14000 [03:39:33]line 0 [03:39:33]OFD Sender: Processing packet 63747 [packets to send 14, broken 13] [03:39:33]ProducePacketName [03:39:33]name=ofd_packets/00063747 [03:39:33]OFD Sender: To server: pG, [03:39:33]CommunicateWithHost lk.salyk.kg:30040 [03:39:33]ConnectInit lk.salyk.kg [03:39:33]written 0, free lines is 4095 [03:39:33]Connected sock=10 [03:39:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 27 01 00 00 9B 7A 1F 01 11 12 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 F5 3A 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 03 F9 00 00 35 04 06 00 2B 18 C1 82 68 6B A7 20 EE 96 1B 07 AB 77 [03:39:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 D4 56 47 00 CB B0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 03 F9 00 00 F4 03 04 00 C8 E6 5C 66 B6 04 01 00 00 4B 22 40 65 AD 2B 7B 95 [03:39:33]CommunicateWithHost err = 0 [03:39:33]CheckOFDResponse [03:39:33]1017 (14) - 77093643461234 [03:39:33]1041 (16) - 0000000000875074 [03:39:33]1040 (4) - 63747 [03:39:33]1012 (4) - 02.06.2024 21:40 [03:39:33]1206 (1) - 0 [03:39:33]OFD Sender: Remove packet 63747 [03:39:33]ProducePacketName [03:39:33]name=ofd_packets/00063747 [03:39:33]NVStorageDeleteData [03:39:33]Write to MH i2c: 01 00 00 32 05 37 [03:39:33]Write i2c OK [03:39:33]MH_I2C_Read... [03:39:33]Read from MH i2c: 01 [03:39:33]MH_I2C_Read... [03:39:33]Read from MH i2c: 01 07 00 [03:39:33]MH_I2C_Read... [03:39:33]Read from MH i2c: 01 07 00 32 05 00 00 00 00 00 C2 0C 0C [03:39:33]RasterBufferAndPrint [03:39:33]line [03:39:33]line [03:39:33]line [03:39:33]line [03:39:33]line [03:39:33]written 0, free lines is 3272 [03:39:33]MH_Cut [03:39:33]Write to MH i2c: D1 01 00 39 05 01 10 [03:39:33]Write i2c OK [03:39:33]MH_I2C_Read... [03:39:33]Read from MH i2c: D1 [03:39:33]MH_I2C_Read... [03:39:33]Read from MH i2c: D1 01 00 [03:39:33]MH_I2C_Read... [03:39:33]Read from MH i2c: D1 01 00 39 05 00 0F [03:39:33]Write to MH i2c: 01 00 00 3A 05 3F [03:39:33]Write i2c OK [03:39:33]MH_I2C_Read... [03:39:34]OFD Sender: No OFD packet to send [03:39:34]*** Cut start [03:39:34]*** Partial cut [03:39:34]*** CUTSNS_PIN = 1 [03:39:34]*** CUTSNS_PIN = 0 [03:39:34]*** Brake cut motor [03:39:35]Read from MH i2c: 01 [03:39:35]MH_I2C_Read... [03:39:35]*** Stop cut motor [03:39:35]*** Cut end [03:39:35]Read from MH i2c: 01 07 00 [03:39:35]MH_I2C_Read... [03:39:35]Read from MH i2c: 01 07 00 3A 05 00 00 00 00 00 FF 0F 54 [03:39:35]process_action close_receipt done [03:39:35]requested_data is exist [03:39:35]produce_requested_data [03:39:35]requested_item fm.sn is exist - process it [03:39:35]wFMCommunicate request_size=4 [03:39:35]MH_SAM_APDU [03:39:35]CAPDU: 80 11 00 00 [03:39:35]Write to MH i2c: E2 08 00 3B 05 80 11 00 00 00 00 00 00 BA [03:39:35]Write i2c OK [03:39:35]MH_I2C_Read... [03:39:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:39:35]Read from MH i2c: E2 [03:39:35]MH_I2C_Read... [03:39:35]Read from MH i2c: E2 17 00 [03:39:35]MH_I2C_Read... [03:39:35]Read from MH i2c: E2 17 00 3B 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 0C [03:39:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [03:39:35]wFMCommunicate OK [03:39:35]requested_item fd.num is exist - process it [03:39:35]SAM_PROTO_GetFieldsCounters [03:39:35]wFMCommunicate request_size=4 [03:39:35]MH_SAM_APDU [03:39:35]CAPDU: 80 13 00 00 [03:39:35]Write to MH i2c: E2 08 00 3C 05 80 13 00 00 00 00 00 00 BD [03:39:35]Write i2c OK [03:39:35]MH_I2C_Read... [03:39:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:39:35]Read from MH i2c: E2 [03:39:35]MH_I2C_Read... [03:39:35]Read from MH i2c: E2 62 00 [03:39:35]MH_I2C_Read... [03:39:35]Read from MH i2c: E2 62 00 3C 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 03 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 61 [03:39:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 03 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:39:35]wFMCommunicate OK [03:39:35]SAM_PROTO_GetFieldsCounters done [03:39:35]requested_item shift.num is exist - process it [03:39:35]requested_item shift.opened is exist - process it [03:39:35]req_shift_opened [03:39:35]FM_GetShiftState [03:39:35]SAM_PROTO_GetShiftState [03:39:35]wFMCommunicate request_size=4 [03:39:35]MH_SAM_APDU [03:39:35]CAPDU: 80 13 01 00 [03:39:35]Write to MH i2c: E2 08 00 3D 05 80 13 01 00 00 00 00 00 BF [03:39:35]Write i2c OK [03:39:35]MH_I2C_Read... [03:39:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:39:35]Read from MH i2c: E2 [03:39:35]MH_I2C_Read... [03:39:35]Read from MH i2c: E2 0E 00 [03:39:35]MH_I2C_Read... [03:39:35]Read from MH i2c: E2 0E 00 3D 05 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 8B [03:39:35]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [03:39:35]wFMCommunicate OK [03:39:35]SAM_PROTO_GetShiftState done [03:39:35]FM_GetShiftState done [03:39:35]req_shift_opened done [03:39:35]requested_item shift.open_date is exist - process it [03:39:35]req_shift_open_date [03:39:35]req_shift_open_date done [03:39:35]produce_requested_data done [03:39:35]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63747,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [03:39:35]process_action_free close_receipt [03:39:35]json_value_free [03:39:35]json_value_free done [03:39:35]process_json_proto returns [03:39:35]Send response to host [03:39:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63747,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [03:39:35]free response buf [03:39:35]execute_script done [03:39:35]execute_script returns [03:39:35]free content buf [03:39:35]Sock 7.Close socket [03:39:35]Sock 7.Thread stoped [03:39:39]OFD Sender: No OFD packet to send [03:39:44]OFD Sender: No OFD packet to send [03:39:49]OFD Sender: No OFD packet to send [03:39:54]OFD Sender: No OFD packet to send [03:39:59]OFD Sender: No OFD packet to send [03:40:04]OFD Sender: No OFD packet to send [03:40:09]OFD Sender: No OFD packet to send [03:40:14]OFD Sender: No OFD packet to send [03:40:19]OFD Sender: No OFD packet to send [03:40:24]OFD Sender: No OFD packet to send [03:40:29]OFD Sender: No OFD packet to send [03:40:34]OFD Sender: No OFD packet to send [03:40:39]OFD Sender: No OFD packet to send [03:40:44]OFD Sender: No OFD packet to send [03:40:49]OFD Sender: No OFD packet to send [03:40:54]OFD Sender: No OFD packet to send [03:40:59]OFD Sender: No OFD packet to send [03:41:04]OFD Sender: No OFD packet to send [03:41:09]OFD Sender: No OFD packet to send [03:41:14]OFD Sender: No OFD packet to send [03:41:19]OFD Sender: No OFD packet to send [03:41:24]OFD Sender: No OFD packet to send [03:41:29]OFD Sender: No OFD packet to send [03:41:34]OFD Sender: No OFD packet to send [03:41:39]OFD Sender: No OFD packet to send [03:41:44]OFD Sender: No OFD packet to send [03:41:49]OFD Sender: No OFD packet to send [03:41:54]OFD Sender: No OFD packet to send [03:41:59]OFD Sender: No OFD packet to send [03:42:04]OFD Sender: No OFD packet to send [03:42:09]OFD Sender: No OFD packet to send [03:42:14]OFD Sender: No OFD packet to send [03:42:19]OFD Sender: No OFD packet to send [03:42:24]OFD Sender: No OFD packet to send [03:42:29]OFD Sender: No OFD packet to send [03:42:34]OFD Sender: No OFD packet to send [03:42:39]OFD Sender: No OFD packet to send [03:42:44]OFD Sender: No OFD packet to send [03:42:49]OFD Sender: No OFD packet to send [03:42:54]OFD Sender: No OFD packet to send [03:42:59]OFD Sender: No OFD packet to send [03:43:04]OFD Sender: No OFD packet to send [03:43:09]OFD Sender: No OFD packet to send [03:43:14]OFD Sender: No OFD packet to send [03:43:19]OFD Sender: No OFD packet to send [03:43:24]OFD Sender: No OFD packet to send [03:43:29]OFD Sender: No OFD packet to send [03:43:34]OFD Sender: No OFD packet to send [03:43:39]OFD Sender: No OFD packet to send [03:43:44]OFD Sender: No OFD packet to send [03:43:49]OFD Sender: No OFD packet to send [03:43:54]OFD Sender: No OFD packet to send [03:43:59]OFD Sender: No OFD packet to send [03:44:04]OFD Sender: No OFD packet to send [03:44:09]OFD Sender: No OFD packet to send [03:44:14]OFD Sender: No OFD packet to send [03:44:19]OFD Sender: No OFD packet to send [03:44:24]OFD Sender: No OFD packet to send [03:44:29]OFD Sender: No OFD packet to send [03:44:34]OFD Sender: No OFD packet to send [03:44:39]OFD Sender: No OFD packet to send [03:44:44]OFD Sender: No OFD packet to send [03:44:49]OFD Sender: No OFD packet to send [03:44:54]OFD Sender: No OFD packet to send [03:44:59]OFD Sender: No OFD packet to send [03:45:04]OFD Sender: No OFD packet to send [03:45:09]OFD Sender: No OFD packet to send [03:45:14]OFD Sender: No OFD packet to send [03:45:19]OFD Sender: No OFD packet to send [03:45:24]OFD Sender: No OFD packet to send [03:45:29]OFD Sender: No OFD packet to send [03:45:34]OFD Sender: No OFD packet to send [03:45:39]OFD Sender: No OFD packet to send [03:45:44]OFD Sender: No OFD packet to send [03:45:49]OFD Sender: No OFD packet to send [03:45:54]OFD Sender: No OFD packet to send [03:45:59]OFD Sender: No OFD packet to send [03:46:04]OFD Sender: No OFD packet to send [03:46:09]OFD Sender: No OFD packet to send [03:46:14]OFD Sender: No OFD packet to send [03:46:19]OFD Sender: No OFD packet to send [03:46:24]OFD Sender: No OFD packet to send [03:46:29]OFD Sender: No OFD packet to send [03:46:34]OFD Sender: No OFD packet to send [03:46:39]OFD Sender: No OFD packet to send [03:46:44]OFD Sender: No OFD packet to send [03:46:49]OFD Sender: No OFD packet to send [03:46:54]OFD Sender: No OFD packet to send [03:46:59]OFD Sender: No OFD packet to send [03:47:04]OFD Sender: No OFD packet to send [03:47:09]OFD Sender: No OFD packet to send [03:47:14]OFD Sender: No OFD packet to send [03:47:19]OFD Sender: No OFD packet to send [03:47:24]OFD Sender: No OFD packet to send [03:47:29]OFD Sender: No OFD packet to send [03:47:34]OFD Sender: No OFD packet to send [03:47:39]OFD Sender: No OFD packet to send [03:47:44]OFD Sender: No OFD packet to send [03:47:49]OFD Sender: No OFD packet to send [03:47:54]OFD Sender: No OFD packet to send [03:47:59]OFD Sender: No OFD packet to send [03:48:04]OFD Sender: No OFD packet to send [03:48:09]OFD Sender: No OFD packet to send [03:48:14]OFD Sender: No OFD packet to send [03:48:19]OFD Sender: No OFD packet to send [03:48:24]OFD Sender: No OFD packet to send [03:48:29]OFD Sender: No OFD packet to send [03:48:34]OFD Sender: No OFD packet to send [03:48:39]OFD Sender: No OFD packet to send [03:48:44]OFD Sender: No OFD packet to send [03:48:49]OFD Sender: No OFD packet to send [03:48:54]OFD Sender: No OFD packet to send [03:48:59]OFD Sender: No OFD packet to send [03:49:04]OFD Sender: No OFD packet to send [03:49:09]OFD Sender: No OFD packet to send [03:49:14]OFD Sender: No OFD packet to send [03:49:19]OFD Sender: No OFD packet to send [03:49:24]OFD Sender: No OFD packet to send [03:49:29]OFD Sender: No OFD packet to send [03:49:34]OFD Sender: No OFD packet to send [03:49:39]OFD Sender: No OFD packet to send [03:49:44]OFD Sender: No OFD packet to send [03:49:49]OFD Sender: No OFD packet to send [03:49:54]OFD Sender: No OFD packet to send [03:49:59]OFD Sender: No OFD packet to send [03:50:04]OFD Sender: No OFD packet to send [03:50:09]OFD Sender: No OFD packet to send [03:50:14]OFD Sender: No OFD packet to send [03:50:19]OFD Sender: No OFD packet to send [03:50:24]OFD Sender: No OFD packet to send [03:50:29]OFD Sender: No OFD packet to send [03:50:34]OFD Sender: No OFD packet to send [03:50:39]OFD Sender: No OFD packet to send [03:50:44]OFD Sender: No OFD packet to send [03:50:49]OFD Sender: No OFD packet to send [03:50:54]OFD Sender: No OFD packet to send [03:50:59]OFD Sender: No OFD packet to send [03:51:04]OFD Sender: No OFD packet to send [03:51:09]OFD Sender: No OFD packet to send [03:51:14]OFD Sender: No OFD packet to send [03:51:19]OFD Sender: No OFD packet to send [03:51:24]OFD Sender: No OFD packet to send [03:51:29]OFD Sender: No OFD packet to send [03:51:34]OFD Sender: No OFD packet to send [03:51:39]OFD Sender: No OFD packet to send [03:51:44]OFD Sender: No OFD packet to send [03:51:49]OFD Sender: No OFD packet to send [03:51:54]OFD Sender: No OFD packet to send [03:51:59]OFD Sender: No OFD packet to send [03:52:04]OFD Sender: No OFD packet to send [03:52:09]OFD Sender: No OFD packet to send [03:52:14]OFD Sender: No OFD packet to send [03:52:19]OFD Sender: No OFD packet to send [03:52:24]OFD Sender: No OFD packet to send [03:52:29]OFD Sender: No OFD packet to send [03:52:34]OFD Sender: No OFD packet to send [03:52:39]OFD Sender: No OFD packet to send [03:52:44]OFD Sender: No OFD packet to send [03:52:49]OFD Sender: No OFD packet to send [03:52:54]OFD Sender: No OFD packet to send [03:52:59]OFD Sender: No OFD packet to send [03:53:04]OFD Sender: No OFD packet to send [03:53:09]OFD Sender: No OFD packet to send [03:53:14]OFD Sender: No OFD packet to send [03:53:19]OFD Sender: No OFD packet to send [03:53:24]OFD Sender: No OFD packet to send [03:53:29]OFD Sender: No OFD packet to send [03:53:34]OFD Sender: No OFD packet to send [03:53:39]OFD Sender: No OFD packet to send [03:53:44]OFD Sender: No OFD packet to send [03:53:49]OFD Sender: No OFD packet to send [03:53:54]OFD Sender: No OFD packet to send [03:53:59]OFD Sender: No OFD packet to send [03:54:04]OFD Sender: No OFD packet to send [03:54:09]OFD Sender: No OFD packet to send [03:54:14]OFD Sender: No OFD packet to send [03:54:19]OFD Sender: No OFD packet to send [03:54:24]OFD Sender: No OFD packet to send [03:54:29]OFD Sender: No OFD packet to send [03:54:34]OFD Sender: No OFD packet to send [03:54:39]OFD Sender: No OFD packet to send [03:54:44]OFD Sender: No OFD packet to send [03:54:49]OFD Sender: No OFD packet to send [03:54:54]OFD Sender: No OFD packet to send [03:54:59]OFD Sender: No OFD packet to send [03:55:04]OFD Sender: No OFD packet to send [03:55:09]OFD Sender: No OFD packet to send [03:55:14]OFD Sender: No OFD packet to send [03:55:19]OFD Sender: No OFD packet to send [03:55:25]OFD Sender: No OFD packet to send [03:55:30]OFD Sender: No OFD packet to send [03:55:35]OFD Sender: No OFD packet to send [03:55:40]OFD Sender: No OFD packet to send [03:55:45]OFD Sender: No OFD packet to send [03:55:50]OFD Sender: No OFD packet to send [03:55:55]OFD Sender: No OFD packet to send [03:56:00]OFD Sender: No OFD packet to send [03:56:05]OFD Sender: No OFD packet to send [03:56:10]OFD Sender: No OFD packet to send [03:56:15]OFD Sender: No OFD packet to send [03:56:20]OFD Sender: No OFD packet to send [03:56:25]OFD Sender: No OFD packet to send [03:56:30]OFD Sender: No OFD packet to send [03:56:35]OFD Sender: No OFD packet to send [03:56:40]OFD Sender: No OFD packet to send [03:56:45]OFD Sender: No OFD packet to send [03:56:50]OFD Sender: No OFD packet to send [03:56:55]OFD Sender: No OFD packet to send [03:57:00]OFD Sender: No OFD packet to send [03:57:05]OFD Sender: No OFD packet to send [03:57:10]OFD Sender: No OFD packet to send [03:57:15]OFD Sender: No OFD packet to send [03:57:20]OFD Sender: No OFD packet to send [03:57:25]OFD Sender: No OFD packet to send [03:57:30]OFD Sender: No OFD packet to send [03:57:35]OFD Sender: No OFD packet to send [03:57:40]OFD Sender: No OFD packet to send [03:57:45]OFD Sender: No OFD packet to send [03:57:50]OFD Sender: No OFD packet to send [03:57:55]OFD Sender: No OFD packet to send [03:58:00]OFD Sender: No OFD packet to send [03:58:05]OFD Sender: No OFD packet to send [03:58:10]OFD Sender: No OFD packet to send [03:58:15]OFD Sender: No OFD packet to send [03:58:20]OFD Sender: No OFD packet to send [03:58:25]OFD Sender: No OFD packet to send [03:58:30]OFD Sender: No OFD packet to send [03:58:35]OFD Sender: No OFD packet to send [03:58:40]OFD Sender: No OFD packet to send [03:58:45]OFD Sender: No OFD packet to send [03:58:50]OFD Sender: No OFD packet to send [03:58:55]OFD Sender: No OFD packet to send [03:59:00]OFD Sender: No OFD packet to send [03:59:05]OFD Sender: No OFD packet to send [03:59:10]OFD Sender: No OFD packet to send [03:59:15]OFD Sender: No OFD packet to send [03:59:20]OFD Sender: No OFD packet to send [03:59:25]OFD Sender: No OFD packet to send [03:59:30]OFD Sender: No OFD packet to send [03:59:35]OFD Sender: No OFD packet to send [03:59:40]OFD Sender: No OFD packet to send [03:59:45]OFD Sender: No OFD packet to send [03:59:50]OFD Sender: No OFD packet to send [03:59:55]OFD Sender: No OFD packet to send [04:00:00]OFD Sender: No OFD packet to send [04:00:05]OFD Sender: No OFD packet to send [04:00:10]OFD Sender: No OFD packet to send [04:00:15]OFD Sender: No OFD packet to send [04:00:20]OFD Sender: No OFD packet to send [04:00:25]OFD Sender: No OFD packet to send [04:00:30]OFD Sender: No OFD packet to send [04:00:35]OFD Sender: No OFD packet to send [04:00:40]OFD Sender: No OFD packet to send [04:00:45]OFD Sender: No OFD packet to send [04:00:50]OFD Sender: No OFD packet to send [04:00:55]OFD Sender: No OFD packet to send [04:01:00]OFD Sender: No OFD packet to send [04:01:05]OFD Sender: No OFD packet to send [04:01:10]OFD Sender: No OFD packet to send [04:01:15]OFD Sender: No OFD packet to send [04:01:20]OFD Sender: No OFD packet to send [04:01:25]OFD Sender: No OFD packet to send [04:01:30]OFD Sender: No OFD packet to send [04:01:35]OFD Sender: No OFD packet to send [04:01:40]OFD Sender: No OFD packet to send [04:01:45]OFD Sender: No OFD packet to send [04:01:50]OFD Sender: No OFD packet to send [04:01:55]OFD Sender: No OFD packet to send [04:02:00]OFD Sender: No OFD packet to send [04:02:05]OFD Sender: No OFD packet to send [04:02:10]OFD Sender: No OFD packet to send [04:02:15]OFD Sender: No OFD packet to send [04:02:20]OFD Sender: No OFD packet to send [04:02:25]OFD Sender: No OFD packet to send [04:02:30]OFD Sender: No OFD packet to send [04:02:35]OFD Sender: No OFD packet to send [04:02:40]OFD Sender: No OFD packet to send [04:02:45]OFD Sender: No OFD packet to send [04:02:50]OFD Sender: No OFD packet to send [04:02:55]OFD Sender: No OFD packet to send [04:03:00]OFD Sender: No OFD packet to send [04:03:05]OFD Sender: No OFD packet to send [04:03:10]OFD Sender: No OFD packet to send [04:03:15]OFD Sender: No OFD packet to send [04:03:20]OFD Sender: No OFD packet to send [04:03:25]OFD Sender: No OFD packet to send [04:03:30]OFD Sender: No OFD packet to send [04:03:35]OFD Sender: No OFD packet to send [04:03:40]OFD Sender: No OFD packet to send [04:03:45]OFD Sender: No OFD packet to send [04:03:50]OFD Sender: No OFD packet to send [04:03:55]OFD Sender: No OFD packet to send [04:04:00]OFD Sender: No OFD packet to send [04:04:05]OFD Sender: No OFD packet to send [04:04:10]OFD Sender: No OFD packet to send [04:04:15]OFD Sender: No OFD packet to send [04:04:20]OFD Sender: No OFD packet to send [04:04:25]OFD Sender: No OFD packet to send [04:04:30]OFD Sender: No OFD packet to send [04:04:35]OFD Sender: No OFD packet to send [04:04:40]OFD Sender: No OFD packet to send [04:04:45]OFD Sender: No OFD packet to send [04:04:50]OFD Sender: No OFD packet to send [04:04:55]OFD Sender: No OFD packet to send [04:05:00]OFD Sender: No OFD packet to send [04:05:05]OFD Sender: No OFD packet to send [04:05:10]OFD Sender: No OFD packet to send [04:05:15]OFD Sender: No OFD packet to send [04:05:20]OFD Sender: No OFD packet to send [04:05:25]OFD Sender: No OFD packet to send [04:05:30]OFD Sender: No OFD packet to send [04:05:35]OFD Sender: No OFD packet to send [04:05:40]OFD Sender: No OFD packet to send [04:05:45]OFD Sender: No OFD packet to send [04:05:50]OFD Sender: No OFD packet to send [04:05:55]OFD Sender: No OFD packet to send [04:06:00]OFD Sender: No OFD packet to send [04:06:05]OFD Sender: No OFD packet to send [04:06:10]OFD Sender: No OFD packet to send [04:06:15]OFD Sender: No OFD packet to send [04:06:20]OFD Sender: No OFD packet to send [04:06:25]OFD Sender: No OFD packet to send [04:06:30]OFD Sender: No OFD packet to send [04:06:35]OFD Sender: No OFD packet to send [04:06:40]OFD Sender: No OFD packet to send [04:06:45]OFD Sender: No OFD packet to send [04:06:50]OFD Sender: No OFD packet to send [04:06:55]OFD Sender: No OFD packet to send [04:07:00]OFD Sender: No OFD packet to send [04:07:05]OFD Sender: No OFD packet to send [04:07:10]OFD Sender: No OFD packet to send [04:07:15]OFD Sender: No OFD packet to send [04:07:20]OFD Sender: No OFD packet to send [04:07:25]OFD Sender: No OFD packet to send [04:07:30]OFD Sender: No OFD packet to send [04:07:35]OFD Sender: No OFD packet to send [04:07:40]OFD Sender: No OFD packet to send [04:07:45]OFD Sender: No OFD packet to send [04:07:50]OFD Sender: No OFD packet to send [04:07:55]OFD Sender: No OFD packet to send [04:08:00]OFD Sender: No OFD packet to send [04:08:05]OFD Sender: No OFD packet to send [04:08:10]OFD Sender: No OFD packet to send [04:08:15]OFD Sender: No OFD packet to send [04:08:20]OFD Sender: No OFD packet to send [04:08:25]OFD Sender: No OFD packet to send [04:08:30]OFD Sender: No OFD packet to send [04:08:35]OFD Sender: No OFD packet to send [04:08:40]OFD Sender: No OFD packet to send [04:08:45]OFD Sender: No OFD packet to send [04:08:50]OFD Sender: No OFD packet to send [04:08:55]OFD Sender: No OFD packet to send [04:09:00]OFD Sender: No OFD packet to send [04:09:05]OFD Sender: No OFD packet to send [04:09:10]OFD Sender: No OFD packet to send [04:09:15]OFD Sender: No OFD packet to send [04:09:20]OFD Sender: No OFD packet to send [04:09:25]OFD Sender: No OFD packet to send [04:09:30]OFD Sender: No OFD packet to send [04:09:35]OFD Sender: No OFD packet to send [04:09:40]OFD Sender: No OFD packet to send [04:09:45]OFD Sender: No OFD packet to send [04:09:50]OFD Sender: No OFD packet to send [04:09:55]OFD Sender: No OFD packet to send [04:10:00]OFD Sender: No OFD packet to send [04:10:05]OFD Sender: No OFD packet to send [04:10:10]OFD Sender: No OFD packet to send [04:10:15]OFD Sender: No OFD packet to send [04:10:20]OFD Sender: No OFD packet to send [04:10:25]OFD Sender: No OFD packet to send [04:10:30]OFD Sender: No OFD packet to send [04:10:35]OFD Sender: No OFD packet to send [04:10:40]OFD Sender: No OFD packet to send [04:10:45]OFD Sender: No OFD packet to send [04:10:50]OFD Sender: No OFD packet to send [04:10:55]OFD Sender: No OFD packet to send [04:11:00]OFD Sender: No OFD packet to send [04:11:05]OFD Sender: No OFD packet to send [04:11:10]OFD Sender: No OFD packet to send [04:11:15]OFD Sender: No OFD packet to send [04:11:20]OFD Sender: No OFD packet to send [04:11:25]OFD Sender: No OFD packet to send [04:11:30]OFD Sender: No OFD packet to send [04:11:35]OFD Sender: No OFD packet to send [04:11:40]OFD Sender: No OFD packet to send [04:11:45]OFD Sender: No OFD packet to send [04:11:50]OFD Sender: No OFD packet to send [04:11:55]OFD Sender: No OFD packet to send [04:12:00]OFD Sender: No OFD packet to send [04:12:05]OFD Sender: No OFD packet to send [04:12:10]OFD Sender: No OFD packet to send [04:12:15]OFD Sender: No OFD packet to send [04:12:20]OFD Sender: No OFD packet to send [04:12:25]OFD Sender: No OFD packet to send [04:12:30]OFD Sender: No OFD packet to send [04:12:35]OFD Sender: No OFD packet to send [04:12:40]OFD Sender: No OFD packet to send [04:12:45]OFD Sender: No OFD packet to send [04:12:50]OFD Sender: No OFD packet to send [04:12:51]accept exits with 9 [04:12:51]New connection [04:12:51]New thread 3066654052 created [04:12:51]Thread 3066797412 joined [04:12:51]Waiting for new connection... [04:12:51] Sock 9.Parse request [04:12:51]Sock 9.Check first char [04:12:51]Sock 9.First char is OK [04:12:51]request: POST /json_proto HTTP/1.0 [04:12:51]Method: POST [04:12:51]URL: /json_proto [04:12:51]Method is POST - this is cgi request [04:12:51]url: /json_proto [04:12:51]query_string will be loaded in cgi processing [04:12:51]execute_cgi json_proto POST (null) [04:12:51]execute_cgi path=json_proto method=POST [04:12:51]POST find Content-Length [04:12:51]Host: 172.17.60.69:8080 [04:12:51]Content-Length: 973 [04:12:51]Content-Type: application/json [04:12:51] [04:12:51]POST finish read [04:12:51]Found Content-Length = 973 [04:12:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73337", "tax_sys" : 0, "items" : [ { "code": "2000032780025", "name": "\u0421\u043E\u0441\u0438\u0441\u043A\u0430 \u0432 \u0442\u0435\u0441\u0442\u0435 DC 110\u0433", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000032780015", "name": "\u0421\u043B\u043E\u0439\u043A\u0430 DC \u0442\u0440\u0435\u0443\u0433\u043E\u043B\u044C\u043D\u0430\u044F \u043A\u0443\u0440\u0438\u0446\u0430 110\u0433", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:12:51]execute_script... [04:12:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73337", "tax_sys" : 0, "items" : [ { "code": "2000032780025", "name": "\u0421\u043E\u0441\u0438\u0441\u043A\u0430 \u0432 \u0442\u0435\u0441\u0442\u0435 DC 110\u0433", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000032780015", "name": "\u0421\u043B\u043E\u0439\u043A\u0430 DC \u0442\u0440\u0435\u0443\u0433\u043E\u043B\u044C\u043D\u0430\u044F \u043A\u0443\u0440\u0438\u0446\u0430 110\u0433", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:12:51]POST & json_proto [04:12:51]process_json_proto [04:12:51]json parsed OK: [04:12:51]protocol is kg_v1.0 [04:12:51]action value=close_receipt [04:12:51]process_action close_receipt [04:12:51]cmd_close_receipt [04:12:51]MH_GetDate [04:12:51]Write to MH i2c: F0 00 00 3E 05 32 [04:12:51]Write i2c OK [04:12:51]MH_I2C_Read... [04:12:51]Read from MH i2c: F0 [04:12:51]MH_I2C_Read... [04:12:51]Read from MH i2c: F0 09 00 [04:12:51]MH_I2C_Read... [04:12:51]Read from MH i2c: F0 09 00 3E 05 00 C5 42 5D 66 6A 96 4A 66 B5 [04:12:51]GetLastDocTimeStamp 1717385973 [04:12:51]current date 1717387973 [04:12:51]FM_GetShiftState [04:12:51]SAM_PROTO_GetShiftState [04:12:51]wFMCommunicate request_size=4 [04:12:51]MH_SAM_APDU [04:12:51]CAPDU: 80 13 01 00 [04:12:51]Write to MH i2c: E2 08 00 3F 05 80 13 01 00 00 00 00 00 C1 [04:12:51]Write i2c OK [04:12:51]MH_I2C_Read... [04:12:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:12:51]Read from MH i2c: E2 [04:12:51]MH_I2C_Read... [04:12:51]Read from MH i2c: E2 0E 00 [04:12:51]MH_I2C_Read... [04:12:51]Read from MH i2c: E2 0E 00 3F 05 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 8D [04:12:51]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [04:12:51]wFMCommunicate OK [04:12:51]SAM_PROTO_GetShiftState done [04:12:51]FM_GetShiftState done [04:12:51]opened in 1717373173 [04:12:51]opened+sec_in_day 1717459573 [04:12:51]quantity*price = 6000 [04:12:51]sum+1 = 6001 [04:12:51]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000032780015 Слойка DC треугольная курица 110г 1.000 * 65.00 = 65.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 125.00 НСП 1% : 1.10 НДС 12% : 13.27 Наличными: 125.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 6 03.06.2024 04:12 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63748 ФПД: 170543900043589 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T041253&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63748&fm=170543900043589&tin=02508201610067®Number=0000000000092737&sum=12500 0 [04:12:52]StoreToDocumentArchive [04:12:52]shift 373 fd 63748 [04:12:52]save to /storage/0373/doc_00063748 [04:12:52]save last doc name /storage/0373/doc_00063748 to /storage/kkm_last_doc_name [04:12:52]save OK [04:12:52]Clear old archive folders... [04:12:52]ProcessDocumentItem done err = 0, tmpTLVsize=408 [04:12:52]tlvbuf is 008BCCC0 [04:12:52]SAM_PROTO_ClearQueue [04:12:52]wFMCommunicate request_size=4 [04:12:52]MH_SAM_APDU [04:12:52]CAPDU: 80 09 00 00 [04:12:52]Write to MH i2c: E2 08 00 4C 05 80 09 00 00 00 00 00 00 C3 [04:12:52]Write i2c OK [04:12:52]MH_I2C_Read... [04:12:52]Read from MH i2c: E2 [04:12:52]MH_I2C_Read... [04:12:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:12:52]Read from MH i2c: E2 03 00 [04:12:52]MH_I2C_Read... [04:12:52]Read from MH i2c: E2 03 00 4C 05 00 90 00 C5 [04:12:52]RAPDU: 90 00 [04:12:52]wFMCommunicate OK [04:12:52]SAM_PROTO_ClearQueue done [04:12:52]KKMCreateOFDPacket [04:12:52]OFDProtocolAddRootSTLVToBuf [04:12:52]FM_MakeSignedData [04:12:52]FM_MakeSignedData [04:12:52]SAM_PROTO_SignData [04:12:52]wFMCommunicate request_size=4 [04:12:52]MH_SAM_APDU [04:12:52]CAPDU: 80 0D 01 02 [04:12:52]Write to MH i2c: E2 08 00 4D 05 80 0D 01 02 00 00 00 00 CB [04:12:52]Write i2c OK [04:12:52]MH_I2C_Read... [04:12:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:12:52]Read from MH i2c: E2 [04:12:52]MH_I2C_Read... [04:12:52]Read from MH i2c: E2 03 00 [04:12:52]MH_I2C_Read... [04:12:52]Read from MH i2c: E2 03 00 4D 05 00 90 00 C6 [04:12:52]RAPDU: 90 00 [04:12:52]wFMCommunicate OK [04:12:52]wFMCommunicate request_size=255 [04:12:52]MH_SAM_APDU [04:12:52]CAPDU: 80 0D 02 02 FA 03 00 98 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 32 35 06 04 25 00 D0 A1 D0 BE D1 81 D0 B8 D1 81 D0 BA D0 B0 20 D0 B2 20 D1 82 D0 B5 D1 81 D1 82 D0 B5 20 44 43 20 31 31 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 31 35 06 04 39 00 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 44 43 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 BA D1 83 D1 80 D0 B8 D1 86 D0 B0 20 31 31 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 [04:12:52]Write to MH i2c: E2 02 01 4E 05 80 0D 02 02 FA 00 03 00 98 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 32 35 06 04 25 00 D0 A1 D0 BE D1 81 D0 B8 D1 81 D0 BA D0 B0 20 D0 B2 20 D1 82 D0 B5 D1 81 D1 82 D0 B5 20 44 43 20 31 31 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 31 35 06 04 39 00 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 44 43 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 BA D1 83 D1 80 D0 B8 D1 86 D0 B0 20 31 31 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 17 [04:12:52]Write i2c OK [04:12:52]MH_I2C_Read... [04:12:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:12:52]Read from MH i2c: E2 [04:12:52]MH_I2C_Read... [04:12:52]Read from MH i2c: E2 03 00 [04:12:52]MH_I2C_Read... [04:12:52]Read from MH i2c: E2 03 00 4E 05 00 90 00 C7 [04:12:52]RAPDU: 90 00 [04:12:52]wFMCommunicate OK [04:12:52]wFMCommunicate request_size=167 [04:12:52]MH_SAM_APDU [04:12:52]CAPDU: 80 0D 02 02 A2 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 C5 42 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 04 F9 00 00 35 04 06 00 9B 1B D8 94 A9 45 [04:12:52]Write to MH i2c: E2 AA 00 4F 05 80 0D 02 02 A2 00 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 C5 42 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 04 F9 00 00 35 04 06 00 9B 1B D8 94 A9 45 00 00 4E [04:12:52]Write i2c OK [04:12:52]MH_I2C_Read... [04:12:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:12:53]Read from MH i2c: E2 [04:12:53]MH_I2C_Read... [04:12:53]Read from MH i2c: E2 03 00 [04:12:53]MH_I2C_Read... [04:12:53]Read from MH i2c: E2 03 00 4F 05 00 90 00 C8 [04:12:53]RAPDU: 90 00 [04:12:53]wFMCommunicate OK [04:12:53]wFMCommunicate request_size=4 [04:12:53]MH_SAM_APDU [04:12:53]CAPDU: 80 0D 03 02 [04:12:53]Write to MH i2c: E2 08 00 50 05 80 0D 03 02 00 00 00 00 D0 [04:12:53]Write i2c OK [04:12:53]MH_I2C_Read... [04:12:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:12:53]Read from MH i2c: E2 [04:12:53]MH_I2C_Read... [04:12:53]Read from MH i2c: E2 0B 00 [04:12:53]MH_I2C_Read... [04:12:53]Read from MH i2c: E2 0B 00 50 05 00 E2 70 F6 3B BF 7A BA 41 90 00 88 [04:12:53]RAPDU: E2 70 F6 3B BF 7A BA 41 90 00 [04:12:53]wFMCommunicate OK [04:12:53]SAM_PROTO_SignData done [04:12:53]FM_MakeSignedData done [04:12:53]CreateOFDProtocolMessage [04:12:53]wFMCommunicate request_size=4 [04:12:53]MH_SAM_APDU [04:12:53]CAPDU: 80 11 00 00 [04:12:53]Write to MH i2c: E2 08 00 51 05 80 11 00 00 00 00 00 00 D0 [04:12:53]Write i2c OK [04:12:53]MH_I2C_Read... [04:12:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:12:53]Read from MH i2c: E2 [04:12:53]MH_I2C_Read... [04:12:53]Read from MH i2c: E2 17 00 [04:12:53]MH_I2C_Read... [04:12:53]Read from MH i2c: E2 17 00 51 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 22 [04:12:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [04:12:53]wFMCommunicate OK [04:12:53]CreateOFDProtocolMessage done [04:12:53]OFDSenderStorePacket 63748 [04:12:53]StoreOFDPacket docnum=63748 [04:12:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 AC 01 00 00 B9 C4 A4 01 68 8B 5A 03 01 00 03 00 98 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 32 35 06 04 25 00 D0 A1 D0 BE D1 81 D0 B8 D1 81 D0 BA D0 B0 20 D0 B2 20 D1 82 D0 B5 D1 81 D1 82 D0 B5 20 44 43 20 31 31 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 31 35 06 04 39 00 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 44 43 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 BA D1 83 D1 80 D0 B8 D1 86 D0 B0 20 31 31 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 C5 42 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 04 F9 00 00 35 04 06 00 9B 1B D8 94 A9 45 E2 70 F6 3B BF 7A BA 41 [04:12:53]CheckFolder [04:12:53]dirname=/storage/ofd_packets [04:12:53]CheckFolder done [04:12:53]ProducePacketName [04:12:53]name=ofd_packets/00063748 [04:12:53]NVStorageSaveData ofd_packets/00063748 [04:12:53]File name is /storage/ofd_packets/00063748 [04:12:53]Write 458 bytes [04:12:53]NVStorageSaveData done [04:12:53]OFDSenderStorePacket done [04:12:53]KKMCreateOFDPacket done [04:12:53]NVStorageSaveData kkm_last_timestamp [04:12:53]File name is /storage/kkm_last_timestamp [04:12:53]Write 4 bytes [04:12:53]NVStorageSaveData done [04:12:53]ExternCall_PrintAddStr [04:12:53]wPrintStart [04:12:53]Write to MH i2c: 01 00 00 52 05 57 [04:12:53]Write i2c OK [04:12:53]MH_I2C_Read... [04:12:53]OFD Sender: Processing packet 63748 [packets to send 14, broken 13] [04:12:53]Read from MH i2c: ProducePacketName [04:12:53]01 name=ofd_packets/00063748 [04:12:53] [04:12:53]MH_I2C_Read... [04:12:53]OFD Sender: To server: pG, [04:12:53]Read from MH i2c: CommunicateWithHost lk.salyk.kg:30040 [04:12:53]01 ConnectInit lk.salyk.kg [04:12:53]07 00 [04:12:53]MH_I2C_Read... [04:12:53]Read from MH i2c: 01 07 00 52 05 00 00 00 00 00 FF 0F 6C [04:12:53]RasterBufferAndPrint [04:12:53]line Счет N : (3)73337 [04:12:53]line ИНН: 02508201610067 [04:12:53]line Контрольно-Кассовый Чек [04:12:53]line ПРОДАЖА [04:12:53]line Товар: 2000032780025 [04:12:53]line Сосиска в тесте DC 110г [04:12:53]line 1.000 * 60.00 [04:12:53]line = 60.00 [04:12:53]line НДС 12% НСП 1% [04:12:53]line > о реализуемом товаре [04:12:53]line Товар: 2000032780015 [04:12:53]line Слойка DC треугольная курица 110г [04:12:53]line 1.000 * 65.00 [04:12:53]line = 65.00 [04:12:53]line НДС 12% НСП 1% [04:12:53]line > о реализуемом товаре [04:12:53]line ИТОГО: 125.00 [04:12:53]line НСП 1% : 1.10 [04:12:53]line НДС 12% : 13.27 [04:12:53]line Наличными: 125.00 [04:12:53]line Безнал.: 0.00 [04:12:53]line Место: АЗС № 117 "Партнер Нефть" [04:12:53]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [04:12:53]line СНО: Общий режим [04:12:53]line Чек 6 03.06.2024 04:12 [04:12:53]line Смена: 373 ФФД: 1.0 [04:12:53]line ЗНМ: 0300000031 [04:12:53]line РНМ: 0000000000092737 [04:12:53]line Версия ККМ: 001 [04:12:53]line ФМ: 0000000000875074 [04:12:53]line ФД: 63748 [04:12:53]line ФПД: 170543900043589 [04:12:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T041253&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63748&fm=170543900043589&tin=02508201610067®Number=0000000000092737&sum=12500 [04:12:53]line 0 [04:12:53]written 0, free lines is 4095 [04:12:53]Connected sock=11 [04:12:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 AC 01 00 00 B9 C4 A4 01 68 8B 5A 03 01 00 03 00 98 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 32 35 06 04 25 00 D0 A1 D0 BE D1 81 D0 B8 D1 81 D0 BA D0 B0 20 D0 B2 20 D1 82 D0 B5 D1 81 D1 82 D0 B5 20 44 43 20 31 31 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 31 35 06 04 39 00 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 44 43 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 BA D1 83 D1 80 D0 B8 D1 86 D0 B0 20 31 31 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 C5 42 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 04 F9 00 00 35 04 06 00 9B 1B D8 94 A9 45 E2 70 F6 3B BF 7A BA 41 [04:12:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 8C 3B 47 00 A6 2C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 04 F9 00 00 F4 03 04 00 98 EE 5C 66 B6 04 01 00 00 9B FB E8 13 F4 27 6E 7E [04:12:53]CommunicateWithHost err = 0 [04:12:53]CheckOFDResponse [04:12:53]1017 (14) - 77093643461234 [04:12:53]1041 (16) - 0000000000875074 [04:12:53]1040 (4) - 63748 [04:12:53]1012 (4) - 02.06.2024 22:13 [04:12:53]1206 (1) - 0 [04:12:53]OFD Sender: Remove packet 63748 [04:12:53]ProducePacketName [04:12:53]name=ofd_packets/00063748 [04:12:53]NVStorageDeleteData [04:12:54]Write to MH i2c: 01 00 00 81 05 86 [04:12:54]Write i2c OK [04:12:54]MH_I2C_Read... [04:12:54]Read from MH i2c: 01 [04:12:54]MH_I2C_Read... [04:12:54]Read from MH i2c: 01 07 00 [04:12:54]MH_I2C_Read... [04:12:54]Read from MH i2c: 01 07 00 81 05 00 00 00 00 00 A3 0C 3C [04:12:54]RasterBufferAndPrint [04:12:54]line [04:12:54]line [04:12:54]line [04:12:54]line [04:12:54]line [04:12:54]written 0, free lines is 3242 [04:12:54]MH_Cut [04:12:54]Write to MH i2c: D1 01 00 88 05 01 5F [04:12:54]Write i2c OK [04:12:54]MH_I2C_Read... [04:12:54]Read from MH i2c: D1 [04:12:54]MH_I2C_Read... [04:12:54]Read from MH i2c: D1 01 00 [04:12:54]MH_I2C_Read... [04:12:54]Read from MH i2c: D1 01 00 88 05 00 5E [04:12:54]Write to MH i2c: 01 00 00 89 05 8E [04:12:54]Write i2c OK [04:12:54]MH_I2C_Read... [04:12:54]OFD Sender: No OFD packet to send [04:12:54]*** Cut start [04:12:54]*** Partial cut [04:12:54]*** CUTSNS_PIN = 1 [04:12:54]*** CUTSNS_PIN = 0 [04:12:55]*** Brake cut motor [04:12:55]Read from MH i2c: 01 [04:12:55]MH_I2C_Read... [04:12:55]*** Stop cut motor [04:12:55]*** Cut end [04:12:55]Read from MH i2c: 01 07 00 [04:12:55]MH_I2C_Read... [04:12:55]Read from MH i2c: 01 07 00 89 05 00 00 00 00 00 FF 0F A3 [04:12:55]process_action close_receipt done [04:12:55]requested_data is exist [04:12:55]produce_requested_data [04:12:55]requested_item fm.sn is exist - process it [04:12:55]wFMCommunicate request_size=4 [04:12:55]MH_SAM_APDU [04:12:55]CAPDU: 80 11 00 00 [04:12:55]Write to MH i2c: E2 08 00 8A 05 80 11 00 00 00 00 00 00 09 [04:12:55]Write i2c OK [04:12:55]MH_I2C_Read... [04:12:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:12:55]Read from MH i2c: E2 [04:12:55]MH_I2C_Read... [04:12:55]Read from MH i2c: E2 17 00 [04:12:55]MH_I2C_Read... [04:12:55]Read from MH i2c: E2 17 00 8A 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 5B [04:12:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [04:12:55]wFMCommunicate OK [04:12:55]requested_item fd.num is exist - process it [04:12:55]SAM_PROTO_GetFieldsCounters [04:12:55]wFMCommunicate request_size=4 [04:12:55]MH_SAM_APDU [04:12:55]CAPDU: 80 13 00 00 [04:12:55]Write to MH i2c: E2 08 00 8B 05 80 13 00 00 00 00 00 00 0C [04:12:55]Write i2c OK [04:12:55]MH_I2C_Read... [04:12:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:12:55]Read from MH i2c: E2 [04:12:55]MH_I2C_Read... [04:12:55]Read from MH i2c: E2 62 00 [04:12:55]MH_I2C_Read... [04:12:55]Read from MH i2c: E2 62 00 8B 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 04 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 B4 [04:12:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 04 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:12:55]wFMCommunicate OK [04:12:55]SAM_PROTO_GetFieldsCounters done [04:12:55]requested_item shift.num is exist - process it [04:12:55]requested_item shift.opened is exist - process it [04:12:55]req_shift_opened [04:12:55]FM_GetShiftState [04:12:55]SAM_PROTO_GetShiftState [04:12:55]wFMCommunicate request_size=4 [04:12:55]MH_SAM_APDU [04:12:55]CAPDU: 80 13 01 00 [04:12:55]Write to MH i2c: E2 08 00 8C 05 80 13 01 00 00 00 00 00 0E [04:12:55]Write i2c OK [04:12:55]MH_I2C_Read... [04:12:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:12:55]Read from MH i2c: E2 [04:12:55]MH_I2C_Read... [04:12:55]Read from MH i2c: E2 0E 00 [04:12:55]MH_I2C_Read... [04:12:55]Read from MH i2c: E2 0E 00 8C 05 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 DA [04:12:55]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [04:12:55]wFMCommunicate OK [04:12:55]SAM_PROTO_GetShiftState done [04:12:55]FM_GetShiftState done [04:12:55]req_shift_opened done [04:12:55]requested_item shift.open_date is exist - process it [04:12:55]req_shift_open_date [04:12:55]req_shift_open_date done [04:12:55]produce_requested_data done [04:12:55]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63748,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [04:12:55]process_action_free close_receipt [04:12:55]json_value_free [04:12:55]json_value_free done [04:12:55]process_json_proto returns [04:12:55]Send response to host [04:12:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63748,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [04:12:55]free response buf [04:12:55]execute_script done [04:12:55]execute_script returns [04:12:55]free content buf [04:12:55]Sock 9.Close socket [04:12:55]Sock 9.Thread stoped [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:18]accept exits with 10 [04:13:18]New connection [04:13:18]New thread 3066797412 created [04:13:18]Thread 3066654052 joined [04:13:18]Waiting for new connection... [04:13:18] Sock 10.Parse request [04:13:18]Sock 10.Check first char [04:13:18]Sock 10.First char is OK [04:13:18]request: POST /json_proto HTTP/1.0 [04:13:18]Method: POST [04:13:18]URL: /json_proto [04:13:18]Method is POST - this is cgi request [04:13:18]url: /json_proto [04:13:18]query_string will be loaded in cgi processing [04:13:18]execute_cgi json_proto POST (null) [04:13:18]execute_cgi path=json_proto method=POST [04:13:18]POST find Content-Length [04:13:18]Host: 172.17.60.69:8080 [04:13:18]Content-Length: 707 [04:13:18]Content-Type: application/json [04:13:18] [04:13:18]POST finish read [04:13:18]Found Content-Length = 707 [04:13:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73338", "tax_sys" : 0, "items" : [ { "code": "2000032780015", "name": "\u0421\u043B\u043E\u0439\u043A\u0430 DC \u0442\u0440\u0435\u0443\u0433\u043E\u043B\u044C\u043D\u0430\u044F \u043A\u0443\u0440\u0438\u0446\u0430 110\u0433", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:13:18]execute_script... [04:13:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73338", "tax_sys" : 0, "items" : [ { "code": "2000032780015", "name": "\u0421\u043B\u043E\u0439\u043A\u0430 DC \u0442\u0440\u0435\u0443\u0433\u043E\u043B\u044C\u043D\u0430\u044F \u043A\u0443\u0440\u0438\u0446\u0430 110\u0433", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:13:18]POST & json_proto [04:13:18]process_json_proto [04:13:18]json parsed OK: [04:13:18]protocol is kg_v1.0 [04:13:18]action value=close_receipt [04:13:18]process_action close_receipt [04:13:18]cmd_close_receipt [04:13:18]MH_GetDate [04:13:18]Write to MH i2c: F0 00 00 8D 05 81 [04:13:18]Write i2c OK [04:13:18]MH_I2C_Read... [04:13:18]Read from MH i2c: F0 [04:13:18]MH_I2C_Read... [04:13:18]Read from MH i2c: F0 09 00 [04:13:18]MH_I2C_Read... [04:13:18]Read from MH i2c: F0 09 00 8D 05 00 E0 42 5D 66 6A 96 4A 66 1F [04:13:18]GetLastDocTimeStamp 1717387973 [04:13:18]current date 1717388000 [04:13:18]FM_GetShiftState [04:13:18]SAM_PROTO_GetShiftState [04:13:18]wFMCommunicate request_size=4 [04:13:18]MH_SAM_APDU [04:13:18]CAPDU: 80 13 01 00 [04:13:18]Write to MH i2c: E2 08 00 8E 05 80 13 01 00 00 00 00 00 10 [04:13:18]Write i2c OK [04:13:18]MH_I2C_Read... [04:13:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:13:18]Read from MH i2c: E2 [04:13:18]MH_I2C_Read... [04:13:18]Read from MH i2c: E2 0E 00 [04:13:18]MH_I2C_Read... [04:13:18]Read from MH i2c: E2 0E 00 8E 05 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 DC [04:13:18]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [04:13:18]wFMCommunicate OK [04:13:18]SAM_PROTO_GetShiftState done [04:13:18]FM_GetShiftState done [04:13:18]opened in 1717373173 [04:13:18]opened+sec_in_day 1717459573 [04:13:18]quantity*price = 6500 [04:13:18]sum+1 = 6501 [04:13:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 65.00 НСП 1% : 0.57 НДС 12% : 6.90 Наличными: 65.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 7 03.06.2024 04:13 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63749 ФПД: 111344135279782 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T041320&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63749&fm=111344135279782&tin=02508201610067®Number=0000000000092737&sum=6500 0 [04:13:19]StoreToDocumentArchive [04:13:19]shift 373 fd 63749 [04:13:19]save to /storage/0373/doc_00063749 [04:13:19]save last doc name /storage/0373/doc_00063749 to /storage/kkm_last_doc_name [04:13:19]save OK [04:13:19]Clear old archive folders... [04:13:19]ProcessDocumentItem done err = 0, tmpTLVsize=299 [04:13:19]tlvbuf is 00890230 [04:13:19]SAM_PROTO_ClearQueue [04:13:19]wFMCommunicate request_size=4 [04:13:19]MH_SAM_APDU [04:13:19]CAPDU: 80 09 00 00 [04:13:19]Write to MH i2c: E2 08 00 9B 05 80 09 00 00 00 00 00 00 12 [04:13:19]Write i2c OK [04:13:19]MH_I2C_Read... [04:13:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:13:19]Read from MH i2c: E2 [04:13:19]MH_I2C_Read... [04:13:19]Read from MH i2c: E2 03 00 [04:13:19]MH_I2C_Read... [04:13:19]Read from MH i2c: E2 03 00 9B 05 00 90 00 14 [04:13:19]RAPDU: 90 00 [04:13:19]wFMCommunicate OK [04:13:19]SAM_PROTO_ClearQueue done [04:13:19]KKMCreateOFDPacket [04:13:19]OFDProtocolAddRootSTLVToBuf [04:13:19]FM_MakeSignedData [04:13:19]FM_MakeSignedData [04:13:19]SAM_PROTO_SignData [04:13:19]wFMCommunicate request_size=4 [04:13:19]MH_SAM_APDU [04:13:19]CAPDU: 80 0D 01 02 [04:13:19]Write to MH i2c: E2 08 00 9C 05 80 0D 01 02 00 00 00 00 1A [04:13:19]Write i2c OK [04:13:19]MH_I2C_Read... [04:13:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:13:19]Read from MH i2c: E2 [04:13:19]MH_I2C_Read... [04:13:19]Read from MH i2c: E2 03 00 [04:13:19]MH_I2C_Read... [04:13:19]Read from MH i2c: E2 03 00 9C 05 00 90 00 15 [04:13:19]RAPDU: 90 00 [04:13:19]wFMCommunicate OK [04:13:19]wFMCommunicate request_size=255 [04:13:19]MH_SAM_APDU [04:13:19]CAPDU: 80 0D 02 02 FA 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 31 35 06 04 39 00 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 44 43 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 BA D1 83 D1 80 D0 B8 D1 86 D0 B0 20 31 31 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 E0 42 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 [04:13:19]Write to MH i2c: E2 02 01 9D 05 80 0D 02 02 FA 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 31 35 06 04 39 00 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 44 43 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 BA D1 83 D1 80 D0 B8 D1 86 D0 B0 20 31 31 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 E0 42 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 00 00 26 [04:13:19]Write i2c OK [04:13:19]MH_I2C_Read... [04:13:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:13:19]Read from MH i2c: E2 [04:13:19]MH_I2C_Read... [04:13:19]Read from MH i2c: E2 03 00 [04:13:19]MH_I2C_Read... [04:13:19]Read from MH i2c: E2 03 00 9D 05 00 90 00 16 [04:13:19]RAPDU: 90 00 [04:13:19]wFMCommunicate OK [04:13:19]wFMCommunicate request_size=58 [04:13:19]MH_SAM_APDU [04:13:19]CAPDU: 80 0D 02 02 35 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 05 F9 00 00 35 04 06 00 65 44 53 A1 94 A6 [04:13:19]Write to MH i2c: E2 3D 00 9E 05 80 0D 02 02 35 00 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 05 F9 00 00 35 04 06 00 65 44 53 A1 94 A6 00 00 E3 [04:13:19]Write i2c OK [04:13:19]MH_I2C_Read... [04:13:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:13:19]Read from MH i2c: E2 [04:13:19]MH_I2C_Read... [04:13:19]Read from MH i2c: E2 03 00 [04:13:19]MH_I2C_Read... [04:13:19]Read from MH i2c: E2 03 00 9E 05 00 90 00 17 [04:13:19]RAPDU: 90 00 [04:13:19]wFMCommunicate OK [04:13:19]wFMCommunicate request_size=4 [04:13:19]MH_SAM_APDU [04:13:19]CAPDU: 80 0D 03 02 [04:13:19]Write to MH i2c: E2 08 00 9F 05 80 0D 03 02 00 00 00 00 1F [04:13:19]Write i2c OK [04:13:19]MH_I2C_Read... [04:13:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:13:19]Read from MH i2c: E2 [04:13:19]MH_I2C_Read... [04:13:19]Read from MH i2c: E2 0B 00 [04:13:19]MH_I2C_Read... [04:13:19]Read from MH i2c: E2 0B 00 9F 05 00 EA F0 9F FD 97 88 42 52 90 00 49 [04:13:19]RAPDU: EA F0 9F FD 97 88 42 52 90 00 [04:13:20]wFMCommunicate OK [04:13:20]SAM_PROTO_SignData done [04:13:20]FM_MakeSignedData done [04:13:20]CreateOFDProtocolMessage [04:13:20]wFMCommunicate request_size=4 [04:13:20]MH_SAM_APDU [04:13:20]CAPDU: 80 11 00 00 [04:13:20]Write to MH i2c: E2 08 00 A0 05 80 11 00 00 00 00 00 00 1F [04:13:20]Write i2c OK [04:13:20]MH_I2C_Read... [04:13:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:13:20]Read from MH i2c: E2 [04:13:20]MH_I2C_Read... [04:13:20]Read from MH i2c: E2 17 00 [04:13:20]MH_I2C_Read... [04:13:20]Read from MH i2c: E2 17 00 A0 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 71 [04:13:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [04:13:20]wFMCommunicate OK [04:13:20]CreateOFDProtocolMessage done [04:13:20]OFDSenderStorePacket 63749 [04:13:20]StoreOFDPacket docnum=63749 [04:13:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 3F 01 00 00 A1 9E 37 01 1A A8 5A 03 01 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 31 35 06 04 39 00 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 44 43 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 BA D1 83 D1 80 D0 B8 D1 86 D0 B0 20 31 31 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 E0 42 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 05 F9 00 00 35 04 06 00 65 44 53 A1 94 A6 EA F0 9F FD 97 88 42 52 [04:13:20]CheckFolder [04:13:20]dirname=/storage/ofd_packets [04:13:20]CheckFolder done [04:13:20]ProducePacketName [04:13:20]name=ofd_packets/00063749 [04:13:20]NVStorageSaveData ofd_packets/00063749 [04:13:20]File name is /storage/ofd_packets/00063749 [04:13:20]Write 349 bytes [04:13:20]NVStorageSaveData done [04:13:20]OFDSenderStorePacket done [04:13:20]KKMCreateOFDPacket done [04:13:20]NVStorageSaveData kkm_last_timestamp [04:13:20]File name is /storage/kkm_last_timestamp [04:13:20]Write 4 bytes [04:13:20]NVStorageSaveData done [04:13:20]ExternCall_PrintAddStr [04:13:20]wPrintStart [04:13:20]Write to MH i2c: 01 00 00 A1 05 A6 [04:13:20]OFD Sender: Processing packet 63749 [packets to send 14, broken 13] [04:13:20]ProducePacketName [04:13:20]name=ofd_packets/00063749 [04:13:20]OFD Sender: To server: pG, [04:13:20]CommunicateWithHost lk.salyk.kg:30040 [04:13:20]ConnectInit lk.salyk.kg [04:13:20]Write i2c OK [04:13:20]MH_I2C_Read... [04:13:20]Read from MH i2c: 01 [04:13:20]MH_I2C_Read... [04:13:20]Read from MH i2c: 01 07 00 [04:13:20]MH_I2C_Read... [04:13:20]Read from MH i2c: 01 07 00 A1 05 00 00 00 00 00 FF 0F BB [04:13:20]RasterBufferAndPrint [04:13:20]line Счет N : (3)73338 [04:13:20]line ИНН: 02508201610067 [04:13:20]line Контрольно-Кассовый Чек [04:13:20]line ПРОДАЖА [04:13:20]line Товар: 2000032780015 [04:13:20]line Слойка DC треугольная курица 110г [04:13:20]line 1.000 * 65.00 [04:13:20]line = 65.00 [04:13:20]line НДС 12% НСП 1% [04:13:20]line > о реализуемом товаре [04:13:20]line ИТОГО: 65.00 [04:13:20]line НСП 1% : 0.57 [04:13:20]line НДС 12% : 6.90 [04:13:20]line Наличными: 65.00 [04:13:20]line Безнал.: 0.00 [04:13:20]line Место: АЗС № 117 "Партнер Нефть" [04:13:20]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [04:13:20]line СНО: Общий режим [04:13:20]line Чек 7 03.06.2024 04:13 [04:13:20]line Смена: 373 ФФД: 1.0 [04:13:20]line ЗНМ: 0300000031 [04:13:20]line РНМ: 0000000000092737 [04:13:20]line Версия ККМ: 001 [04:13:20]line ФМ: 0000000000875074 [04:13:20]line ФД: 63749 [04:13:20]line ФПД: 111344135279782 [04:13:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T041320&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63749&fm=111344135279782&tin=02508201610067®Number=0000000000092737&sum=6500 [04:13:20]line 0 [04:13:20]Connected sock=9 [04:13:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 3F 01 00 00 A1 9E 37 01 1A A8 5A 03 01 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 31 35 06 04 39 00 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 44 43 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 BA D1 83 D1 80 D0 B8 D1 86 D0 B0 20 31 31 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 E0 42 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 05 F9 00 00 35 04 06 00 65 44 53 A1 94 A6 EA F0 9F FD 97 88 42 52 [04:13:20]written 0, free lines is 4095 [04:13:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 D6 F1 47 00 99 38 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 05 F9 00 00 F4 03 04 00 B3 EE 5C 66 B6 04 01 00 00 C6 0C D2 3B 37 E5 FB 59 [04:13:20]CommunicateWithHost err = 0 [04:13:20]CheckOFDResponse [04:13:20]1017 (14) - 77093643461234 [04:13:20]1041 (16) - 0000000000875074 [04:13:20]1040 (4) - 63749 [04:13:20]1012 (4) - 02.06.2024 22:14 [04:13:20]1206 (1) - 0 [04:13:20]OFD Sender: Remove packet 63749 [04:13:20]ProducePacketName [04:13:20]name=ofd_packets/00063749 [04:13:20]NVStorageDeleteData [04:13:20]Write to MH i2c: 01 00 00 CA 05 CF [04:13:20]Write i2c OK [04:13:20]MH_I2C_Read... [04:13:20]Read from MH i2c: 01 [04:13:20]MH_I2C_Read... [04:13:20]Read from MH i2c: 01 07 00 [04:13:20]MH_I2C_Read... [04:13:20]Read from MH i2c: 01 07 00 CA 05 00 00 00 00 00 F8 0C DA [04:13:20]RasterBufferAndPrint [04:13:20]line [04:13:20]line [04:13:20]line [04:13:20]line [04:13:20]line [04:13:20]written 0, free lines is 3330 [04:13:20]MH_Cut [04:13:20]Write to MH i2c: D1 01 00 D1 05 01 A8 [04:13:20]Write i2c OK [04:13:20]MH_I2C_Read... [04:13:20]Read from MH i2c: D1 [04:13:20]MH_I2C_Read... [04:13:20]Read from MH i2c: D1 01 00 [04:13:20]MH_I2C_Read... [04:13:20]Read from MH i2c: D1 01 00 D1 05 00 A7 [04:13:20]Write to MH i2c: 01 00 00 D2 05 D7 [04:13:20]Write i2c OK [04:13:20]MH_I2C_Read... [04:13:21]OFD Sender: No OFD packet to send [04:13:21]*** Cut start [04:13:21]*** Partial cut [04:13:21]*** CUTSNS_PIN = 1 [04:13:21]*** CUTSNS_PIN = 0 [04:13:21]*** Brake cut motor [04:13:22]Read from MH i2c: 01 [04:13:22]MH_I2C_Read... [04:13:22]*** Stop cut motor [04:13:22]*** Cut end [04:13:22]Read from MH i2c: 01 07 00 [04:13:22]MH_I2C_Read... [04:13:22]Read from MH i2c: 01 07 00 D2 05 00 00 00 00 00 FF 0F EC [04:13:22]process_action close_receipt done [04:13:22]requested_data is exist [04:13:22]produce_requested_data [04:13:22]requested_item fm.sn is exist - process it [04:13:22]wFMCommunicate request_size=4 [04:13:22]MH_SAM_APDU [04:13:22]CAPDU: 80 11 00 00 [04:13:22]Write to MH i2c: E2 08 00 D3 05 80 11 00 00 00 00 00 00 52 [04:13:22]Write i2c OK [04:13:22]MH_I2C_Read... [04:13:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:13:22]Read from MH i2c: E2 [04:13:22]MH_I2C_Read... [04:13:22]Read from MH i2c: E2 17 00 [04:13:22]MH_I2C_Read... [04:13:22]Read from MH i2c: E2 17 00 D3 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 A4 [04:13:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [04:13:22]wFMCommunicate OK [04:13:22]requested_item fd.num is exist - process it [04:13:22]SAM_PROTO_GetFieldsCounters [04:13:22]wFMCommunicate request_size=4 [04:13:22]MH_SAM_APDU [04:13:22]CAPDU: 80 13 00 00 [04:13:22]Write to MH i2c: E2 08 00 D4 05 80 13 00 00 00 00 00 00 55 [04:13:22]Write i2c OK [04:13:22]MH_I2C_Read... [04:13:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:13:22]Read from MH i2c: E2 [04:13:22]MH_I2C_Read... [04:13:22]Read from MH i2c: E2 62 00 [04:13:22]MH_I2C_Read... [04:13:22]Read from MH i2c: E2 62 00 D4 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 05 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 01 [04:13:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 05 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:13:22]wFMCommunicate OK [04:13:22]SAM_PROTO_GetFieldsCounters done [04:13:22]requested_item shift.num is exist - process it [04:13:22]requested_item shift.opened is exist - process it [04:13:22]req_shift_opened [04:13:22]FM_GetShiftState [04:13:22]SAM_PROTO_GetShiftState [04:13:22]wFMCommunicate request_size=4 [04:13:22]MH_SAM_APDU [04:13:22]CAPDU: 80 13 01 00 [04:13:22]Write to MH i2c: E2 08 00 D5 05 80 13 01 00 00 00 00 00 57 [04:13:22]Write i2c OK [04:13:22]MH_I2C_Read... [04:13:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:13:22]Read from MH i2c: E2 [04:13:22]MH_I2C_Read... [04:13:22]Read from MH i2c: E2 0E 00 [04:13:22]MH_I2C_Read... [04:13:22]Read from MH i2c: E2 0E 00 D5 05 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 23 [04:13:22]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [04:13:22]wFMCommunicate OK [04:13:22]SAM_PROTO_GetShiftState done [04:13:22]FM_GetShiftState done [04:13:22]req_shift_opened done [04:13:22]requested_item shift.open_date is exist - process it [04:13:22]req_shift_open_date [04:13:22]req_shift_open_date done [04:13:22]produce_requested_data done [04:13:22]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63749,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [04:13:22]process_action_free close_receipt [04:13:22]json_value_free [04:13:22]json_value_free done [04:13:22]process_json_proto returns [04:13:22]Send response to host [04:13:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63749,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [04:13:22]free response buf [04:13:22]execute_script done [04:13:22]execute_script returns [04:13:22]free content buf [04:13:22]Sock 10.Close socket [04:13:22]Sock 10.Thread stoped [04:13:26]OFD Sender: No OFD packet to send [04:13:31]OFD Sender: No OFD packet to send [04:13:36]OFD Sender: No OFD packet to send [04:13:41]OFD Sender: No OFD packet to send [04:13:46]OFD Sender: No OFD packet to send [04:13:51]OFD Sender: No OFD packet to send [04:13:56]OFD Sender: No OFD packet to send [04:14:01]OFD Sender: No OFD packet to send [04:14:06]OFD Sender: No OFD packet to send [04:14:11]OFD Sender: No OFD packet to send [04:14:16]OFD Sender: No OFD packet to send [04:14:21]OFD Sender: No OFD packet to send [04:14:26]OFD Sender: No OFD packet to send [04:14:31]OFD Sender: No OFD packet to send [04:14:36]OFD Sender: No OFD packet to send [04:14:41]OFD Sender: No OFD packet to send [04:14:46]OFD Sender: No OFD packet to send [04:14:51]OFD Sender: No OFD packet to send [04:14:56]OFD Sender: No OFD packet to send [04:15:01]OFD Sender: No OFD packet to send [04:15:06]OFD Sender: No OFD packet to send [04:15:11]OFD Sender: No OFD packet to send [04:15:16]OFD Sender: No OFD packet to send [04:15:21]OFD Sender: No OFD packet to send [04:15:26]OFD Sender: No OFD packet to send [04:15:31]OFD Sender: No OFD packet to send [04:15:36]OFD Sender: No OFD packet to send [04:15:41]OFD Sender: No OFD packet to send [04:15:46]OFD Sender: No OFD packet to send [04:15:51]OFD Sender: No OFD packet to send [04:15:56]OFD Sender: No OFD packet to send [04:16:01]OFD Sender: No OFD packet to send [04:16:06]OFD Sender: No OFD packet to send [04:16:11]OFD Sender: No OFD packet to send [04:16:16]OFD Sender: No OFD packet to send [04:16:21]OFD Sender: No OFD packet to send [04:16:26]OFD Sender: No OFD packet to send [04:16:31]OFD Sender: No OFD packet to send [04:16:36]OFD Sender: No OFD packet to send [04:16:41]OFD Sender: No OFD packet to send [04:16:46]OFD Sender: No OFD packet to send [04:16:51]OFD Sender: No OFD packet to send [04:16:56]OFD Sender: No OFD packet to send [04:17:01]OFD Sender: No OFD packet to send [04:17:06]OFD Sender: No OFD packet to send [04:17:11]OFD Sender: No OFD packet to send [04:17:16]OFD Sender: No OFD packet to send [04:17:21]OFD Sender: No OFD packet to send [04:17:26]OFD Sender: No OFD packet to send [04:17:31]OFD Sender: No OFD packet to send [04:17:36]OFD Sender: No OFD packet to send [04:17:41]OFD Sender: No OFD packet to send [04:17:46]OFD Sender: No OFD packet to send [04:17:51]OFD Sender: No OFD packet to send [04:17:56]OFD Sender: No OFD packet to send [04:18:01]OFD Sender: No OFD packet to send [04:18:06]OFD Sender: No OFD packet to send [04:18:11]OFD Sender: No OFD packet to send [04:18:16]OFD Sender: No OFD packet to send [04:18:21]OFD Sender: No OFD packet to send [04:18:26]OFD Sender: No OFD packet to send [04:18:31]OFD Sender: No OFD packet to send [04:18:36]OFD Sender: No OFD packet to send [04:18:41]OFD Sender: No OFD packet to send [04:18:46]OFD Sender: No OFD packet to send [04:18:51]OFD Sender: No OFD packet to send [04:18:56]OFD Sender: No OFD packet to send [04:19:01]OFD Sender: No OFD packet to send [04:19:06]OFD Sender: No OFD packet to send [04:19:11]OFD Sender: No OFD packet to send [04:19:16]OFD Sender: No OFD packet to send [04:19:21]OFD Sender: No OFD packet to send [04:19:26]OFD Sender: No OFD packet to send [04:19:31]OFD Sender: No OFD packet to send [04:19:36]OFD Sender: No OFD packet to send [04:19:41]OFD Sender: No OFD packet to send [04:19:46]OFD Sender: No OFD packet to send [04:19:51]OFD Sender: No OFD packet to send [04:19:56]OFD Sender: No OFD packet to send [04:20:01]OFD Sender: No OFD packet to send [04:20:06]OFD Sender: No OFD packet to send [04:20:11]OFD Sender: No OFD packet to send [04:20:16]OFD Sender: No OFD packet to send [04:20:21]OFD Sender: No OFD packet to send [04:20:26]OFD Sender: No OFD packet to send [04:20:31]OFD Sender: No OFD packet to send [04:20:36]OFD Sender: No OFD packet to send [04:20:41]OFD Sender: No OFD packet to send [04:20:46]OFD Sender: No OFD packet to send [04:20:51]OFD Sender: No OFD packet to send [04:20:56]OFD Sender: No OFD packet to send [04:21:01]OFD Sender: No OFD packet to send [04:21:06]OFD Sender: No OFD packet to send [04:21:11]OFD Sender: No OFD packet to send [04:21:16]OFD Sender: No OFD packet to send [04:21:21]OFD Sender: No OFD packet to send [04:21:26]OFD Sender: No OFD packet to send [04:21:31]OFD Sender: No OFD packet to send [04:21:36]OFD Sender: No OFD packet to send [04:21:41]OFD Sender: No OFD packet to send [04:21:46]OFD Sender: No OFD packet to send [04:21:51]OFD Sender: No OFD packet to send [04:21:56]OFD Sender: No OFD packet to send [04:22:01]OFD Sender: No OFD packet to send [04:22:06]OFD Sender: No OFD packet to send [04:22:11]OFD Sender: No OFD packet to send [04:22:16]OFD Sender: No OFD packet to send [04:22:21]OFD Sender: No OFD packet to send [04:22:26]OFD Sender: No OFD packet to send [04:22:31]OFD Sender: No OFD packet to send [04:22:36]OFD Sender: No OFD packet to send [04:22:41]OFD Sender: No OFD packet to send [04:22:46]OFD Sender: No OFD packet to send [04:22:51]OFD Sender: No OFD packet to send [04:22:56]OFD Sender: No OFD packet to send [04:23:01]OFD Sender: No OFD packet to send [04:23:06]OFD Sender: No OFD packet to send [04:23:11]OFD Sender: No OFD packet to send [04:23:16]OFD Sender: No OFD packet to send [04:23:21]OFD Sender: No OFD packet to send [04:23:26]OFD Sender: No OFD packet to send [04:23:31]OFD Sender: No OFD packet to send [04:23:36]OFD Sender: No OFD packet to send [04:23:41]OFD Sender: No OFD packet to send [04:23:46]OFD Sender: No OFD packet to send [04:23:51]OFD Sender: No OFD packet to send [04:23:56]OFD Sender: No OFD packet to send [04:24:01]OFD Sender: No OFD packet to send [04:24:06]OFD Sender: No OFD packet to send [04:24:11]OFD Sender: No OFD packet to send [04:24:16]OFD Sender: No OFD packet to send [04:24:19]accept exits with 7 [04:24:19]New connection [04:24:19]New thread 3066654052 created [04:24:19]Thread 3066797412 joined [04:24:19]Waiting for new connection... [04:24:19] Sock 7.Parse request [04:24:19]Sock 7.Check first char [04:24:19]Sock 7.First char is OK [04:24:19]request: POST /json_proto HTTP/1.0 [04:24:19]Method: POST [04:24:19]URL: /json_proto [04:24:19]Method is POST - this is cgi request [04:24:19]url: /json_proto [04:24:19]query_string will be loaded in cgi processing [04:24:19]execute_cgi json_proto POST (null) [04:24:19]execute_cgi path=json_proto method=POST [04:24:19]POST find Content-Length [04:24:19]Host: 172.17.60.69:8080 [04:24:19]Content-Length: 828 [04:24:19]Content-Type: application/json [04:24:19] [04:24:19]POST finish read [04:24:19]Found Content-Length = 828 [04:24:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73339", "tax_sys" : 0, "items" : [ { "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:24:19]execute_script... [04:24:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73339", "tax_sys" : 0, "items" : [ { "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:24:19]POST & json_proto [04:24:19]process_json_proto [04:24:19]json parsed OK: [04:24:19]protocol is kg_v1.0 [04:24:19]action value=close_receipt [04:24:19]process_action close_receipt [04:24:19]cmd_close_receipt [04:24:19]MH_GetDate [04:24:19]Write to MH i2c: F0 00 00 D6 05 CA [04:24:19]Write i2c OK [04:24:19]MH_I2C_Read... [04:24:19]Read from MH i2c: F0 [04:24:19]MH_I2C_Read... [04:24:19]Read from MH i2c: F0 09 00 [04:24:19]MH_I2C_Read... [04:24:19]Read from MH i2c: F0 09 00 D6 05 00 75 45 5D 66 6A 96 4A 66 00 [04:24:19]GetLastDocTimeStamp 1717388000 [04:24:19]current date 1717388661 [04:24:19]FM_GetShiftState [04:24:19]SAM_PROTO_GetShiftState [04:24:19]wFMCommunicate request_size=4 [04:24:19]MH_SAM_APDU [04:24:19]CAPDU: 80 13 01 00 [04:24:19]Write to MH i2c: E2 08 00 D7 05 80 13 01 00 00 00 00 00 59 [04:24:19]Write i2c OK [04:24:19]MH_I2C_Read... [04:24:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:24:19]Read from MH i2c: E2 [04:24:19]MH_I2C_Read... [04:24:19]Read from MH i2c: E2 0E 00 [04:24:19]MH_I2C_Read... [04:24:19]Read from MH i2c: E2 0E 00 D7 05 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 25 [04:24:19]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [04:24:19]wFMCommunicate OK [04:24:19]SAM_PROTO_GetShiftState done [04:24:19]FM_GetShiftState done [04:24:19]opened in 1717373173 [04:24:19]opened+sec_in_day 1717459573 [04:24:19]quantity*price = 13000 [04:24:19]sum+1 = 13001 [04:24:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 0.00 Безнал.: 130.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 8 03.06.2024 04:24 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000875074 ФД: 63750 ФПД: 19928703457025 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T042421&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63750&fm=19928703457025&tin=02508201610067®Number=0000000000092737&sum=13000 0 [04:24:20]StoreToDocumentArchive [04:24:20]shift 373 fd 63750 [04:24:20]save to /storage/0373/doc_00063750 [04:24:20]save last doc name /storage/0373/doc_00063750 to /storage/kkm_last_doc_name [04:24:20]save OK [04:24:20]Clear old archive folders... [04:24:20]ProcessDocumentItem done err = 0, tmpTLVsize=276 [04:24:20]tlvbuf is 008BC480 [04:24:20]SAM_PROTO_ClearQueue [04:24:20]wFMCommunicate request_size=4 [04:24:20]MH_SAM_APDU [04:24:20]CAPDU: 80 09 00 00 [04:24:20]Write to MH i2c: E2 08 00 E4 05 80 09 00 00 00 00 00 00 5B [04:24:20]Write i2c OK [04:24:20]MH_I2C_Read... [04:24:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:24:20]Read from MH i2c: E2 [04:24:20]MH_I2C_Read... [04:24:20]Read from MH i2c: E2 03 00 [04:24:20]MH_I2C_Read... [04:24:20]Read from MH i2c: E2 03 00 E4 05 00 90 00 5D [04:24:20]RAPDU: 90 00 [04:24:20]wFMCommunicate OK [04:24:20]SAM_PROTO_ClearQueue done [04:24:20]KKMCreateOFDPacket [04:24:20]OFDProtocolAddRootSTLVToBuf [04:24:20]FM_MakeSignedData [04:24:20]FM_MakeSignedData [04:24:20]SAM_PROTO_SignData [04:24:20]wFMCommunicate request_size=4 [04:24:20]MH_SAM_APDU [04:24:20]CAPDU: 80 0D 01 02 [04:24:20]Write to MH i2c: E2 08 00 E5 05 80 0D 01 02 00 00 00 00 63 [04:24:20]Write i2c OK [04:24:20]MH_I2C_Read... [04:24:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:24:20]Read from MH i2c: E2 [04:24:20]MH_I2C_Read... [04:24:20]Read from MH i2c: E2 03 00 [04:24:20]MH_I2C_Read... [04:24:20]Read from MH i2c: E2 03 00 E5 05 00 90 00 5E [04:24:20]RAPDU: 90 00 [04:24:20]wFMCommunicate OK [04:24:20]wFMCommunicate request_size=255 [04:24:20]MH_SAM_APDU [04:24:20]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 75 45 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 [04:24:20]Write to MH i2c: E2 02 01 E6 05 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 75 45 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 00 00 7C [04:24:20]Write i2c OK [04:24:20]MH_I2C_Read... [04:24:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:24:20]Read from MH i2c: E2 [04:24:20]MH_I2C_Read... [04:24:20]Read from MH i2c: E2 03 00 [04:24:20]MH_I2C_Read... [04:24:20]Read from MH i2c: E2 03 00 E6 05 00 90 00 5F [04:24:20]RAPDU: 90 00 [04:24:20]wFMCommunicate OK [04:24:20]wFMCommunicate request_size=35 [04:24:20]MH_SAM_APDU [04:24:20]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 06 F9 00 00 35 04 06 00 12 20 03 4A 57 01 [04:24:20]Write to MH i2c: E2 26 00 E7 05 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 06 F9 00 00 35 04 06 00 12 20 03 4A 57 01 00 00 2E [04:24:20]Write i2c OK [04:24:20]MH_I2C_Read... [04:24:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:24:20]Read from MH i2c: E2 [04:24:20]MH_I2C_Read... [04:24:20]Read from MH i2c: E2 03 00 [04:24:20]MH_I2C_Read... [04:24:20]Read from MH i2c: E2 03 00 E7 05 00 90 00 60 [04:24:20]RAPDU: 90 00 [04:24:20]wFMCommunicate OK [04:24:20]wFMCommunicate request_size=4 [04:24:20]MH_SAM_APDU [04:24:20]CAPDU: 80 0D 03 02 [04:24:20]Write to MH i2c: E2 08 00 E8 05 80 0D 03 02 00 00 00 00 68 [04:24:20]Write i2c OK [04:24:20]MH_I2C_Read... [04:24:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:24:20]Read from MH i2c: E2 [04:24:20]MH_I2C_Read... [04:24:20]Read from MH i2c: E2 0B 00 [04:24:20]MH_I2C_Read... [04:24:20]Read from MH i2c: E2 0B 00 E8 05 00 B5 61 C2 A4 C8 CC 43 DC 90 00 98 [04:24:20]RAPDU: B5 61 C2 A4 C8 CC 43 DC 90 00 [04:24:20]wFMCommunicate OK [04:24:20]SAM_PROTO_SignData done [04:24:20]FM_MakeSignedData done [04:24:20]CreateOFDProtocolMessage [04:24:20]wFMCommunicate request_size=4 [04:24:20]MH_SAM_APDU [04:24:20]CAPDU: 80 11 00 00 [04:24:20]Write to MH i2c: E2 08 00 E9 05 80 11 00 00 00 00 00 00 68 [04:24:20]Write i2c OK [04:24:20]MH_I2C_Read... [04:24:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:24:20]Read from MH i2c: E2 [04:24:20]MH_I2C_Read... [04:24:20]Read from MH i2c: E2 17 00 [04:24:20]MH_I2C_Read... [04:24:20]Read from MH i2c: E2 17 00 E9 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 BA [04:24:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [04:24:20]wFMCommunicate OK [04:24:20]CreateOFDProtocolMessage done [04:24:20]OFDSenderStorePacket 63750 [04:24:20]StoreOFDPacket docnum=63750 [04:24:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 28 01 00 00 6F 24 20 01 59 19 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 75 45 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 06 F9 00 00 35 04 06 00 12 20 03 4A 57 01 B5 61 C2 A4 C8 CC 43 DC [04:24:20]CheckFolder [04:24:20]dirname=/storage/ofd_packets [04:24:20]CheckFolder done [04:24:20]ProducePacketName [04:24:20]name=ofd_packets/00063750 [04:24:20]NVStorageSaveData ofd_packets/00063750 [04:24:20]File name is /storage/ofd_packets/00063750 [04:24:20]Write 326 bytes [04:24:20]NVStorageSaveData done [04:24:20]OFDSenderStorePacket done [04:24:20]KKMCreateOFDPacket done [04:24:20]NVStorageSaveData kkm_last_timestamp [04:24:20]File name is /storage/kkm_last_timestamp [04:24:20]Write 4 bytes [04:24:20]NVStorageSaveData done [04:24:20]ExternCall_PrintAddStr [04:24:20]wPrintStart [04:24:20]Write to MH i2c: 01 00 00 EA 05 EF [04:24:20]Write i2c OK [04:24:20]MH_I2C_Read... [04:24:20]Read from MH i2c: 01 [04:24:20]MH_I2C_Read... [04:24:20]Read from MH i2c: 01 07 00 [04:24:20]MH_I2C_Read... [04:24:20]Read from MH i2c: 01 07 00 EA 05 00 00 00 00 00 FF 0F 04 [04:24:20]RasterBufferAndPrint [04:24:20]line Счет N : (3)73339 [04:24:20]line ИНН: 02508201610067 [04:24:20]line Контрольно-Кассовый Чек [04:24:20]line ПРОДАЖА [04:24:20]line Товар: 2000036230011 [04:24:20]line Кофе Латте XL(GABB TRADE) [04:24:20]line 1.000 * 130.00 [04:24:20]line = 130.00 [04:24:20]line НДС 12% НСП 1% [04:24:20]line > о реализуемом товаре [04:24:20]line ИТОГО: 130.00 [04:24:20]line НСП 1% : 1.15 [04:24:20]line НДС 12% : 13.80 [04:24:20]line Наличными: 0.00 [04:24:20]line Безнал.: 130.00 [04:24:20]line Место: АЗС № 117 "Партнер Нефть" [04:24:20]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [04:24:20]line СНО: Общий режим [04:24:20]line Чек 8 03.06.2024 04:24 [04:24:20]line Смена: 373 ФФД: 1.0 [04:24:20]line ЗНМ: 0300000031 [04:24:20]line РНМ: 0000000000092737 [04:24:20]line Версия ККМ: 001 [04:24:20]line Платежная система: АКБ Кыргызстан [04:24:20]line ФМ: 0000000000875074 [04:24:20]line ФД: 63750 [04:24:20]line ФПД: 19928703457025 [04:24:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T042421&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63750&fm=19928703457025&tin=02508201610067®Number=0000000000092737&sum=13000 [04:24:20]line 0 [04:24:20]written 0, free lines is 4095 [04:24:20]OFD Sender: Processing packet 63750 [packets to send 14, broken 13] [04:24:20]ProducePacketName [04:24:20]name=ofd_packets/00063750 [04:24:20]OFD Sender: To server: pG, [04:24:20]CommunicateWithHost lk.salyk.kg:30040 [04:24:20]ConnectInit lk.salyk.kg [04:24:21]Connected sock=11 [04:24:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 28 01 00 00 6F 24 20 01 59 19 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 75 45 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 06 F9 00 00 35 04 06 00 12 20 03 4A 57 01 B5 61 C2 A4 C8 CC 43 DC [04:24:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 C0 7B 47 00 90 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 35 30 37 34 10 04 04 00 06 F9 00 00 F4 03 04 00 47 F1 5C 66 B6 04 01 00 00 C4 F7 09 F6 2E 65 08 21 [04:24:21]CommunicateWithHost err = 0 [04:24:21]CheckOFDResponse [04:24:21]1017 (14) - 77093643461234 [04:24:21]1041 (16) - 0000000000875074 [04:24:21]1040 (4) - 63750 [04:24:21]1012 (4) - 02.06.2024 22:25 [04:24:21]1206 (1) - 0 [04:24:21]OFD Sender: Remove packet 63750 [04:24:21]ProducePacketName [04:24:21]name=ofd_packets/00063750 [04:24:21]NVStorageDeleteData [04:24:21]Write to MH i2c: 01 00 00 14 06 1A [04:24:21]Write i2c OK [04:24:21]MH_I2C_Read... [04:24:21]Read from MH i2c: 01 [04:24:21]MH_I2C_Read... [04:24:21]Read from MH i2c: 01 07 00 [04:24:21]MH_I2C_Read... [04:24:21]Read from MH i2c: 01 07 00 14 06 00 00 00 00 00 E7 0C 14 [04:24:21]RasterBufferAndPrint [04:24:21]line [04:24:21]line [04:24:21]line [04:24:21]line [04:24:21]line [04:24:21]written 0, free lines is 3309 [04:24:21]MH_Cut [04:24:21]Write to MH i2c: D1 01 00 1B 06 01 F3 [04:24:21]Write i2c OK [04:24:21]MH_I2C_Read... [04:24:21]Read from MH i2c: D1 [04:24:21]MH_I2C_Read... [04:24:21]Read from MH i2c: D1 01 00 [04:24:21]MH_I2C_Read... [04:24:21]Read from MH i2c: D1 01 00 1B 06 00 F2 [04:24:21]Write to MH i2c: 01 00 00 1C 06 22 [04:24:21]Write i2c OK [04:24:21]MH_I2C_Read... [04:24:21]OFD Sender: No OFD packet to send [04:24:22]*** Cut start [04:24:22]*** Partial cut [04:24:22]*** CUTSNS_PIN = 1 [04:24:22]*** CUTSNS_PIN = 0 [04:24:22]*** Brake cut motor [04:24:22]Read from MH i2c: 01 [04:24:22]MH_I2C_Read... [04:24:22]*** Stop cut motor [04:24:22]*** Cut end [04:24:22]Read from MH i2c: 01 07 00 [04:24:22]MH_I2C_Read... [04:24:22]Read from MH i2c: 01 07 00 1C 06 00 00 00 00 00 FF 0F 37 [04:24:22]process_action close_receipt done [04:24:22]requested_data is exist [04:24:22]produce_requested_data [04:24:22]requested_item fm.sn is exist - process it [04:24:22]wFMCommunicate request_size=4 [04:24:22]MH_SAM_APDU [04:24:22]CAPDU: 80 11 00 00 [04:24:22]Write to MH i2c: E2 08 00 1D 06 80 11 00 00 00 00 00 00 9D [04:24:22]Write i2c OK [04:24:22]MH_I2C_Read... [04:24:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:24:22]Read from MH i2c: E2 [04:24:22]MH_I2C_Read... [04:24:22]Read from MH i2c: E2 17 00 [04:24:22]MH_I2C_Read... [04:24:22]Read from MH i2c: E2 17 00 1D 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 EF [04:24:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [04:24:22]wFMCommunicate OK [04:24:22]requested_item fd.num is exist - process it [04:24:22]SAM_PROTO_GetFieldsCounters [04:24:22]wFMCommunicate request_size=4 [04:24:22]MH_SAM_APDU [04:24:22]CAPDU: 80 13 00 00 [04:24:22]Write to MH i2c: E2 08 00 1E 06 80 13 00 00 00 00 00 00 A0 [04:24:22]Write i2c OK [04:24:22]MH_I2C_Read... [04:24:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:24:22]Read from MH i2c: E2 [04:24:22]MH_I2C_Read... [04:24:22]Read from MH i2c: E2 62 00 [04:24:22]MH_I2C_Read... [04:24:22]Read from MH i2c: E2 62 00 1E 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 06 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 50 [04:24: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 06 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:24:23]wFMCommunicate OK [04:24:23]SAM_PROTO_GetFieldsCounters done [04:24:23]requested_item shift.num is exist - process it [04:24:23]requested_item shift.opened is exist - process it [04:24:23]req_shift_opened [04:24:23]FM_GetShiftState [04:24:23]SAM_PROTO_GetShiftState [04:24:23]wFMCommunicate request_size=4 [04:24:23]MH_SAM_APDU [04:24:23]CAPDU: 80 13 01 00 [04:24:23]Write to MH i2c: E2 08 00 1F 06 80 13 01 00 00 00 00 00 A2 [04:24:23]Write i2c OK [04:24:23]MH_I2C_Read... [04:24:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:24:23]Read from MH i2c: E2 [04:24:23]MH_I2C_Read... [04:24:23]Read from MH i2c: E2 0E 00 [04:24:23]MH_I2C_Read... [04:24:23]Read from MH i2c: E2 0E 00 1F 06 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 6E [04:24:23]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [04:24:23]wFMCommunicate OK [04:24:23]SAM_PROTO_GetShiftState done [04:24:23]FM_GetShiftState done [04:24:23]req_shift_opened done [04:24:23]requested_item shift.open_date is exist - process it [04:24:23]req_shift_open_date [04:24:23]req_shift_open_date done [04:24:23]produce_requested_data done [04:24:23]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63750,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [04:24:23]process_action_free close_receipt [04:24:23]json_value_free [04:24:23]json_value_free done [04:24:23]process_json_proto returns [04:24:23]Send response to host [04:24:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63750,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [04:24:23]free response buf [04:24:23]execute_script done [04:24:23]execute_script returns [04:24:23]free content buf [04:24:23]Sock 7.Close socket [04:24:23]Sock 7.Thread stoped [04:24:26]OFD Sender: No OFD packet to send [04:24:31]OFD Sender: No OFD packet to send [04:24:36]OFD Sender: No OFD packet to send [04:24:41]OFD Sender: No OFD packet to send [04:24:46]OFD Sender: No OFD packet to send [04:24:51]OFD Sender: No OFD packet to send [04:24:56]OFD Sender: No OFD packet to send [04:25:01]OFD Sender: No OFD packet to send [04:25:06]OFD Sender: No OFD packet to send [04:25:11]OFD Sender: No OFD packet to send [04:25:16]OFD Sender: No OFD packet to send [04:25:21]OFD Sender: No OFD packet to send [04:25:26]OFD Sender: No OFD packet to send [04:25:31]OFD Sender: No OFD packet to send [04:25:36]OFD Sender: No OFD packet to send [04:25:41]OFD Sender: No OFD packet to send [04:25:46]OFD Sender: No OFD packet to send [04:25:51]OFD Sender: No OFD packet to send [04:25:56]OFD Sender: No OFD packet to send [04:26:01]OFD Sender: No OFD packet to send [04:26:06]OFD Sender: No OFD packet to send [04:26:11]OFD Sender: No OFD packet to send [04:26:16]OFD Sender: No OFD packet to send [04:26:21]OFD Sender: No OFD packet to send [04:26:26]OFD Sender: No OFD packet to send [04:26:31]OFD Sender: No OFD packet to send [04:26:36]OFD Sender: No OFD packet to send [04:26:41]OFD Sender: No OFD packet to send [04:26:46]OFD Sender: No OFD packet to send [04:26:51]OFD Sender: No OFD packet to send [04:26:56]OFD Sender: No OFD packet to send [04:27:01]OFD Sender: No OFD packet to send [04:27:06]OFD Sender: No OFD packet to send [04:27:11]OFD Sender: No OFD packet to send [04:27:16]OFD Sender: No OFD packet to send [04:27:21]OFD Sender: No OFD packet to send [04:27:26]OFD Sender: No OFD packet to send [04:27:31]OFD Sender: No OFD packet to send [04:27:36]OFD Sender: No OFD packet to send [04:27:41]OFD Sender: No OFD packet to send [04:27:46]OFD Sender: No OFD packet to send [04:27:51]OFD Sender: No OFD packet to send [04:27:56]OFD Sender: No OFD packet to send [04:28:01]OFD Sender: No OFD packet to send [04:28:06]OFD Sender: No OFD packet to send [04:28:11]OFD Sender: No OFD packet to send [04:28:16]OFD Sender: No OFD packet to send [04:28:21]OFD Sender: No OFD packet to send [04:28:26]OFD Sender: No OFD packet to send [04:28:31]OFD Sender: No OFD packet to send [04:28:36]OFD Sender: No OFD packet to send [04:28:41]OFD Sender: No OFD packet to send [04:28:46]OFD Sender: No OFD packet to send [04:28:51]OFD Sender: No OFD packet to send [04:28:56]OFD Sender: No OFD packet to send [04:29:01]OFD Sender: No OFD packet to send [04:29:06]OFD Sender: No OFD packet to send [04:29:11]OFD Sender: No OFD packet to send [04:29:17]OFD Sender: No OFD packet to send [04:29:22]OFD Sender: No OFD packet to send [04:29:27]OFD Sender: No OFD packet to send [04:29:32]OFD Sender: No OFD packet to send [04:29:37]OFD Sender: No OFD packet to send [04:29:42]OFD Sender: No OFD packet to send [04:29:47]OFD Sender: No OFD packet to send [04:29:52]OFD Sender: No OFD packet to send [04:29:57]OFD Sender: No OFD packet to send [04:30:02]OFD Sender: No OFD packet to send [04:30:07]OFD Sender: No OFD packet to send [04:30:12]OFD Sender: No OFD packet to send [04:30:17]OFD Sender: No OFD packet to send [04:30:22]OFD Sender: No OFD packet to send [04:30:27]OFD Sender: No OFD packet to send [04:30:32]OFD Sender: No OFD packet to send [04:30:37]OFD Sender: No OFD packet to send [04:30:42]OFD Sender: No OFD packet to send [04:30:47]OFD Sender: No OFD packet to send [04:30:52]OFD Sender: No OFD packet to send [04:30:57]OFD Sender: No OFD packet to send [04:31:02]OFD Sender: No OFD packet to send [04:31:07]OFD Sender: No OFD packet to send [04:31:12]OFD Sender: No OFD packet to send [04:31:17]OFD Sender: No OFD packet to send [04:31:22]OFD Sender: No OFD packet to send [04:31:27]OFD Sender: No OFD packet to send [04:31:32]OFD Sender: No OFD packet to send [04:31:37]OFD Sender: No OFD packet to send [04:31:42]OFD Sender: No OFD packet to send [04:31:47]OFD Sender: No OFD packet to send [04:31:52]OFD Sender: No OFD packet to send [04:31:57]OFD Sender: No OFD packet to send [04:32:02]OFD Sender: No OFD packet to send [04:32:07]OFD Sender: No OFD packet to send [04:32:12]OFD Sender: No OFD packet to send [04:32:17]OFD Sender: No OFD packet to send [04:32:22]OFD Sender: No OFD packet to send [04:32:27]OFD Sender: No OFD packet to send [04:32:32]OFD Sender: No OFD packet to send [04:32:37]OFD Sender: No OFD packet to send [04:32:42]OFD Sender: No OFD packet to send [04:32:47]OFD Sender: No OFD packet to send [04:32:52]OFD Sender: No OFD packet to send [04:32:57]OFD Sender: No OFD packet to send [04:33:02]OFD Sender: No OFD packet to send [04:33:07]OFD Sender: No OFD packet to send [04:33:12]OFD Sender: No OFD packet to send [04:33:17]OFD Sender: No OFD packet to send [04:33:22]OFD Sender: No OFD packet to send [04:33:27]OFD Sender: No OFD packet to send [04:33:32]OFD Sender: No OFD packet to send [04:33:37]OFD Sender: No OFD packet to send [04:33:42]OFD Sender: No OFD packet to send [04:33:47]OFD Sender: No OFD packet to send [04:33:52]OFD Sender: No OFD packet to send [04:33:57]OFD Sender: No OFD packet to send [04:34:02]OFD Sender: No OFD packet to send [04:34:07]OFD Sender: No OFD packet to send [04:34:12]OFD Sender: No OFD packet to send [04:34:17]OFD Sender: No OFD packet to send [04:34:22]OFD Sender: No OFD packet to send [04:34:27]OFD Sender: No OFD packet to send [04:34:32]OFD Sender: No OFD packet to send [04:34:37]OFD Sender: No OFD packet to send [04:34:42]OFD Sender: No OFD packet to send [04:34:47]OFD Sender: No OFD packet to send [04:34:52]OFD Sender: No OFD packet to send [04:34:57]OFD Sender: No OFD packet to send [04:35:02]OFD Sender: No OFD packet to send [04:35:07]OFD Sender: No OFD packet to send [04:35:12]OFD Sender: No OFD packet to send [04:35:17]OFD Sender: No OFD packet to send [04:35:22]OFD Sender: No OFD packet to send [04:35:27]OFD Sender: No OFD packet to send [04:35:32]OFD Sender: No OFD packet to send [04:35:37]OFD Sender: No OFD packet to send [04:35:42]OFD Sender: No OFD packet to send [04:35:47]OFD Sender: No OFD packet to send [04:35:52]OFD Sender: No OFD packet to send [04:35:57]OFD Sender: No OFD packet to send [04:36:02]OFD Sender: No OFD packet to send [04:36:07]OFD Sender: No OFD packet to send [04:36:12]OFD Sender: No OFD packet to send [04:36:17]OFD Sender: No OFD packet to send [04:36:22]OFD Sender: No OFD packet to send [04:36:27]OFD Sender: No OFD packet to send [04:36:32]OFD Sender: No OFD packet to send [04:36:37]OFD Sender: No OFD packet to send [04:36:42]OFD Sender: No OFD packet to send [04:36:47]OFD Sender: No OFD packet to send [04:36:52]OFD Sender: No OFD packet to send [04:36:57]OFD Sender: No OFD packet to send [04:37:02]OFD Sender: No OFD packet to send [04:37:07]OFD Sender: No OFD packet to send [04:37:12]OFD Sender: No OFD packet to send [04:37:17]OFD Sender: No OFD packet to send [04:37:22]OFD Sender: No OFD packet to send [04:37:27]OFD Sender: No OFD packet to send [04:37:32]OFD Sender: No OFD packet to send [04:37:37]OFD Sender: No OFD packet to send [04:37:42]OFD Sender: No OFD packet to send [04:37:47]OFD Sender: No OFD packet to send [04:37:52]OFD Sender: No OFD packet to send [04:37:57]OFD Sender: No OFD packet to send [04:38:02]OFD Sender: No OFD packet to send [04:38:07]OFD Sender: No OFD packet to send [04:38:12]OFD Sender: No OFD packet to send [04:38:17]OFD Sender: No OFD packet to send [04:38:22]OFD Sender: No OFD packet to send [04:38:27]OFD Sender: No OFD packet to send [04:38:32]OFD Sender: No OFD packet to send [04:38:37]OFD Sender: No OFD packet to send [04:38:42]OFD Sender: No OFD packet to send [04:38:47]OFD Sender: No OFD packet to send [04:38:52]OFD Sender: No OFD packet to send [04:38:57]OFD Sender: No OFD packet to send [04:39:02]OFD Sender: No OFD packet to send [04:39:07]OFD Sender: No OFD packet to send [04:39:12]OFD Sender: No OFD packet to send [04:39:17]OFD Sender: No OFD packet to send [04:39:22]OFD Sender: No OFD packet to send [04:39:27]OFD Sender: No OFD packet to send [04:39:32]OFD Sender: No OFD packet to send [04:39:37]OFD Sender: No OFD packet to send [04:39:42]OFD Sender: No OFD packet to send [04:39:47]OFD Sender: No OFD packet to send [04:39:52]OFD Sender: No OFD packet to send [04:39:57]OFD Sender: No OFD packet to send [04:40:02]OFD Sender: No OFD packet to send [04:40:07]OFD Sender: No OFD packet to send [04:40:12]OFD Sender: No OFD packet to send [04:40:17]OFD Sender: No OFD packet to send [04:40:22]OFD Sender: No OFD packet to send [04:40:27]OFD Sender: No OFD packet to send [04:40:32]OFD Sender: No OFD packet to send [04:40:37]OFD Sender: No OFD packet to send [04:40:42]OFD Sender: No OFD packet to send [04:40:47]OFD Sender: No OFD packet to send [04:40:52]OFD Sender: No OFD packet to send [04:40:57]OFD Sender: No OFD packet to send [04:41:02]OFD Sender: No OFD packet to send [04:41:07]OFD Sender: No OFD packet to send [04:41:12]OFD Sender: No OFD packet to send [04:41:17]OFD Sender: No OFD packet to send [04:41:22]OFD Sender: No OFD packet to send [04:41:27]OFD Sender: No OFD packet to send [04:41:32]OFD Sender: No OFD packet to send [04:41:37]OFD Sender: No OFD packet to send [04:41:42]OFD Sender: No OFD packet to send [04:41:47]OFD Sender: No OFD packet to send [04:41:52]OFD Sender: No OFD packet to send [04:41:57]OFD Sender: No OFD packet to send [04:42:02]OFD Sender: No OFD packet to send [04:42:07]OFD Sender: No OFD packet to send [04:42:12]OFD Sender: No OFD packet to send [04:42:17]OFD Sender: No OFD packet to send [04:42:22]OFD Sender: No OFD packet to send [04:42:27]OFD Sender: No OFD packet to send [04:42:32]OFD Sender: No OFD packet to send [04:42:37]OFD Sender: No OFD packet to send [04:42:42]OFD Sender: No OFD packet to send [04:42:47]OFD Sender: No OFD packet to send [04:42:52]OFD Sender: No OFD packet to send [04:42:57]OFD Sender: No OFD packet to send [04:43:02]OFD Sender: No OFD packet to send [04:43:07]OFD Sender: No OFD packet to send [04:43:12]OFD Sender: No OFD packet to send [04:43:17]OFD Sender: No OFD packet to send [04:43:22]OFD Sender: No OFD packet to send [04:43:27]OFD Sender: No OFD packet to send [04:43:32]OFD Sender: No OFD packet to send [04:43:37]OFD Sender: No OFD packet to send [04:43:42]OFD Sender: No OFD packet to send [04:43:47]OFD Sender: No OFD packet to send [04:43:52]OFD Sender: No OFD packet to send [04:43:57]OFD Sender: No OFD packet to send [04:44:02]OFD Sender: No OFD packet to send [04:44:07]OFD Sender: No OFD packet to send [04:44:12]OFD Sender: No OFD packet to send [04:44:17]OFD Sender: No OFD packet to send [04:44:22]OFD Sender: No OFD packet to send [04:44:27]OFD Sender: No OFD packet to send [04:44:32]OFD Sender: No OFD packet to send [04:44:37]OFD Sender: No OFD packet to send [04:44:42]OFD Sender: No OFD packet to send [04:44:47]OFD Sender: No OFD packet to send [04:44:52]OFD Sender: No OFD packet to send [04:44:57]OFD Sender: No OFD packet to send [04:45:02]OFD Sender: No OFD packet to send [04:45:07]OFD Sender: No OFD packet to send [04:45:12]OFD Sender: No OFD packet to send [04:45:17]OFD Sender: No OFD packet to send [04:45:22]OFD Sender: No OFD packet to send [04:45:27]OFD Sender: No OFD packet to send [04:45:32]OFD Sender: No OFD packet to send [04:45:37]OFD Sender: No OFD packet to send [04:45:42]OFD Sender: No OFD packet to send [04:45:47]OFD Sender: No OFD packet to send [04:45:52]OFD Sender: No OFD packet to send [04:45:57]OFD Sender: No OFD packet to send [04:46:02]OFD Sender: No OFD packet to send [04:46:07]OFD Sender: No OFD packet to send [04:46:12]OFD Sender: No OFD packet to send [04:46:17]OFD Sender: No OFD packet to send [04:46:22]OFD Sender: No OFD packet to send [04:46:27]OFD Sender: No OFD packet to send [04:46:32]OFD Sender: No OFD packet to send [04:46:37]OFD Sender: No OFD packet to send [04:46:42]OFD Sender: No OFD packet to send [04:46:47]OFD Sender: No OFD packet to send [04:46:52]OFD Sender: No OFD packet to send [04:46:57]OFD Sender: No OFD packet to send [04:47:02]OFD Sender: No OFD packet to send [04:47:07]OFD Sender: No OFD packet to send [04:47:12]OFD Sender: No OFD packet to send [04:47:17]OFD Sender: No OFD packet to send [04:47:22]OFD Sender: No OFD packet to send [04:47:27]OFD Sender: No OFD packet to send [04:47:32]OFD Sender: No OFD packet to send [04:47:37]OFD Sender: No OFD packet to send [04:47:42]OFD Sender: No OFD packet to send [04:47:47]OFD Sender: No OFD packet to send [04:47:52]OFD Sender: No OFD packet to send [04:47:57]OFD Sender: No OFD packet to send [04:48:02]OFD Sender: No OFD packet to send [04:48:07]OFD Sender: No OFD packet to send [04:48:12]OFD Sender: No OFD packet to send [04:48:17]OFD Sender: No OFD packet to send [04:48:22]OFD Sender: No OFD packet to send [04:48:27]OFD Sender: No OFD packet to send [04:48:32]OFD Sender: No OFD packet to send [04:48:37]OFD Sender: No OFD packet to send [04:48:42]OFD Sender: No OFD packet to send [04:48:47]OFD Sender: No OFD packet to send [04:48:52]OFD Sender: No OFD packet to send [04:48:57]OFD Sender: No OFD packet to send [04:49:02]OFD Sender: No OFD packet to send [04:49:07]OFD Sender: No OFD packet to send [04:49:12]OFD Sender: No OFD packet to send [04:49:17]OFD Sender: No OFD packet to send [04:49:22]OFD Sender: No OFD packet to send [04:49:27]OFD Sender: No OFD packet to send [04:49:32]OFD Sender: No OFD packet to send [04:49:37]OFD Sender: No OFD packet to send [04:49:42]OFD Sender: No OFD packet to send [04:49:47]OFD Sender: No OFD packet to send [04:49:52]OFD Sender: No OFD packet to send [04:49:57]OFD Sender: No OFD packet to send [04:50:03]OFD Sender: No OFD packet to send [04:50:08]OFD Sender: No OFD packet to send [04:50:13]OFD Sender: No OFD packet to send [04:50:18]OFD Sender: No OFD packet to send [04:50:23]OFD Sender: No OFD packet to send [04:50:28]OFD Sender: No OFD packet to send [04:50:33]OFD Sender: No OFD packet to send [04:50:38]OFD Sender: No OFD packet to send [04:50:43]OFD Sender: No OFD packet to send [04:50:48]OFD Sender: No OFD packet to send [04:50:53]OFD Sender: No OFD packet to send [04:50:58]OFD Sender: No OFD packet to send [04:51:03]OFD Sender: No OFD packet to send [04:51:08]OFD Sender: No OFD packet to send [04:51:13]OFD Sender: No OFD packet to send [04:51:18]OFD Sender: No OFD packet to send [04:51:23]OFD Sender: No OFD packet to send [04:51:28]OFD Sender: No OFD packet to send [04:51:33]OFD Sender: No OFD packet to send [04:51:38]OFD Sender: No OFD packet to send [04:51:43]OFD Sender: No OFD packet to send [04:51:48]OFD Sender: No OFD packet to send [04:51:53]OFD Sender: No OFD packet to send [04:51:58]OFD Sender: No OFD packet to send [04:52:03]OFD Sender: No OFD packet to send [04:52:08]OFD Sender: No OFD packet to send [04:52:13]OFD Sender: No OFD packet to send [04:52:18]OFD Sender: No OFD packet to send [04:52:23]OFD Sender: No OFD packet to send [04:52:28]OFD Sender: No OFD packet to send [04:52:33]OFD Sender: No OFD packet to send [04:52:38]OFD Sender: No OFD packet to send [04:52:43]OFD Sender: No OFD packet to send [04:52:48]OFD Sender: No OFD packet to send [04:52:53]OFD Sender: No OFD packet to send [04:52:58]OFD Sender: No OFD packet to send [04:53:03]OFD Sender: No OFD packet to send [04:53:08]OFD Sender: No OFD packet to send [04:53:13]OFD Sender: No OFD packet to send [04:53:18]OFD Sender: No OFD packet to send [04:53:23]OFD Sender: No OFD packet to send [04:53:28]OFD Sender: No OFD packet to send [04:53:33]OFD Sender: No OFD packet to send [04:53:38]OFD Sender: No OFD packet to send [04:53:43]OFD Sender: No OFD packet to send [04:53:48]OFD Sender: No OFD packet to send [04:53:53]OFD Sender: No OFD packet to send [04:53:58]OFD Sender: No OFD packet to send [04:54:03]OFD Sender: No OFD packet to send [04:54:08]OFD Sender: No OFD packet to send [04:54:13]OFD Sender: No OFD packet to send [04:54:18]OFD Sender: No OFD packet to send [04:54:23]OFD Sender: No OFD packet to send [04:54:28]OFD Sender: No OFD packet to send [04:54:33]OFD Sender: No OFD packet to send [04:54:38]OFD Sender: No OFD packet to send [04:54:43]OFD Sender: No OFD packet to send [04:54:48]OFD Sender: No OFD packet to send [04:54:53]OFD Sender: No OFD packet to send [04:54:58]OFD Sender: No OFD packet to send [04:55:03]OFD Sender: No OFD packet to send [04:55:08]OFD Sender: No OFD packet to send [04:55:13]OFD Sender: No OFD packet to send [04:55:18]OFD Sender: No OFD packet to send [04:55:23]OFD Sender: No OFD packet to send [04:55:28]OFD Sender: No OFD packet to send [04:55:33]OFD Sender: No OFD packet to send [04:55:38]OFD Sender: No OFD packet to send [04:55:43]OFD Sender: No OFD packet to send [04:55:48]OFD Sender: No OFD packet to send [04:55:53]OFD Sender: No OFD packet to send [04:55:58]OFD Sender: No OFD packet to send [04:56:03]OFD Sender: No OFD packet to send [04:56:08]OFD Sender: No OFD packet to send [04:56:13]OFD Sender: No OFD packet to send [04:56:18]OFD Sender: No OFD packet to send [04:56:23]OFD Sender: No OFD packet to send [04:56:28]OFD Sender: No OFD packet to send [04:56:33]OFD Sender: No OFD packet to send [04:56:38]OFD Sender: No OFD packet to send [04:56:43]OFD Sender: No OFD packet to send [04:56:48]OFD Sender: No OFD packet to send [04:56:53]OFD Sender: No OFD packet to send [04:56:58]OFD Sender: No OFD packet to send [04:57:03]OFD Sender: No OFD packet to send [04:57:08]OFD Sender: No OFD packet to send [04:57:13]OFD Sender: No OFD packet to send [04:57:18]OFD Sender: No OFD packet to send [04:57:23]OFD Sender: No OFD packet to send [04:57:28]OFD Sender: No OFD packet to send [04:57:33]OFD Sender: No OFD packet to send [04:57:38]OFD Sender: No OFD packet to send [04:57:43]OFD Sender: No OFD packet to send [04:57:48]OFD Sender: No OFD packet to send [04:57:53]OFD Sender: No OFD packet to send [04:57:58]OFD Sender: No OFD packet to send [04:58:03]OFD Sender: No OFD packet to send [04:58:08]OFD Sender: No OFD packet to send [04:58:13]OFD Sender: No OFD packet to send [04:58:18]OFD Sender: No OFD packet to send [04:58:23]OFD Sender: No OFD packet to send [04:58:28]OFD Sender: No OFD packet to send [04:58:33]OFD Sender: No OFD packet to send [04:58:38]OFD Sender: No OFD packet to send [04:58:43]OFD Sender: No OFD packet to send [04:58:48]OFD Sender: No OFD packet to send [04:58:53]OFD Sender: No OFD packet to send [04:58:58]OFD Sender: No OFD packet to send [04:59:03]OFD Sender: No OFD packet to send [04:59:08]OFD Sender: No OFD packet to send [04:59:13]OFD Sender: No OFD packet to send [04:59:18]OFD Sender: No OFD packet to send [04:59:23]OFD Sender: No OFD packet to send [04:59:28]OFD Sender: No OFD packet to send [04:59:33]OFD Sender: No OFD packet to send [04:59:38]OFD Sender: No OFD packet to send [04:59:43]OFD Sender: No OFD packet to send [04:59:48]OFD Sender: No OFD packet to send [04:59:53]OFD Sender: No OFD packet to send [04:59:58]OFD Sender: No OFD packet to send [05:00:03]OFD Sender: No OFD packet to send [05:00:08]OFD Sender: No OFD packet to send [05:00:13]OFD Sender: No OFD packet to send [05:00:18]OFD Sender: No OFD packet to send [05:00:23]OFD Sender: No OFD packet to send [05:00:28]OFD Sender: No OFD packet to send [05:00:33]OFD Sender: No OFD packet to send [05:00:38]OFD Sender: No OFD packet to send [05:00:43]OFD Sender: No OFD packet to send [05:00:48]OFD Sender: No OFD packet to send [05:00:53]OFD Sender: No OFD packet to send [05:00:58]OFD Sender: No OFD packet to send [05:01:03]OFD Sender: No OFD packet to send [05:01:08]OFD Sender: No OFD packet to send [05:01:13]OFD Sender: No OFD packet to send [05:01:18]OFD Sender: No OFD packet to send [05:01:23]OFD Sender: No OFD packet to send [05:01:28]OFD Sender: No OFD packet to send [05:01:33]OFD Sender: No OFD packet to send [05:01:38]OFD Sender: No OFD packet to send [05:01:43]OFD Sender: No OFD packet to send [05:01:48]OFD Sender: No OFD packet to send [05:01:53]OFD Sender: No OFD packet to send [05:01:58]OFD Sender: No OFD packet to send [05:02:03]OFD Sender: No OFD packet to send [05:02:08]OFD Sender: No OFD packet to send [05:02:13]OFD Sender: No OFD packet to send [05:02:18]OFD Sender: No OFD packet to send [05:02:23]OFD Sender: No OFD packet to send [05:02:28]OFD Sender: No OFD packet to send [05:02:33]OFD Sender: No OFD packet to send [05:02:38]OFD Sender: No OFD packet to send [05:02:43]OFD Sender: No OFD packet to send [05:02:48]OFD Sender: No OFD packet to send [05:02:53]OFD Sender: No OFD packet to send [05:02:58]OFD Sender: No OFD packet to send [05:03:03]OFD Sender: No OFD packet to send [05:03:08]OFD Sender: No OFD packet to send [05:03:13]OFD Sender: No OFD packet to send [05:03:18]OFD Sender: No OFD packet to send [05:03:23]OFD Sender: No OFD packet to send [05:03:28]OFD Sender: No OFD packet to send [05:03:33]OFD Sender: No OFD packet to send [05:03:38]OFD Sender: No OFD packet to send [05:03:43]OFD Sender: No OFD packet to send [05:03:48]OFD Sender: No OFD packet to send [05:03:53]OFD Sender: No OFD packet to send [05:03:58]OFD Sender: No OFD packet to send [05:04:03]OFD Sender: No OFD packet to send [05:04:08]OFD Sender: No OFD packet to send [05:04:13]OFD Sender: No OFD packet to send [05:04:18]OFD Sender: No OFD packet to send [05:04:23]OFD Sender: No OFD packet to send [05:04:28]OFD Sender: No OFD packet to send [05:04:33]OFD Sender: No OFD packet to send [05:04:38]OFD Sender: No OFD packet to send [05:04:43]OFD Sender: No OFD packet to send [05:04:48]OFD Sender: No OFD packet to send [05:04:53]OFD Sender: No OFD packet to send [05:04:58]OFD Sender: No OFD packet to send [05:05:03]OFD Sender: No OFD packet to send [05:05:08]OFD Sender: No OFD packet to send [05:05:13]OFD Sender: No OFD packet to send [05:05:18]OFD Sender: No OFD packet to send [05:05:23]OFD Sender: No OFD packet to send [05:05:28]OFD Sender: No OFD packet to send [05:05:33]OFD Sender: No OFD packet to send [05:05:38]OFD Sender: No OFD packet to send [05:05:43]OFD Sender: No OFD packet to send [05:05:48]OFD Sender: No OFD packet to send [05:05:53]OFD Sender: No OFD packet to send [05:05:58]OFD Sender: No OFD packet to send [05:06:03]OFD Sender: No OFD packet to send [05:06:08]OFD Sender: No OFD packet to send [05:06:13]OFD Sender: No OFD packet to send [05:06:18]OFD Sender: No OFD packet to send [05:06:23]OFD Sender: No OFD packet to send [05:06:28]OFD Sender: No OFD packet to send [05:06:33]OFD Sender: No OFD packet to send [05:06:38]OFD Sender: No OFD packet to send [05:06:43]OFD Sender: No OFD packet to send [05:06:48]OFD Sender: No OFD packet to send [05:06:53]OFD Sender: No OFD packet to send [05:06:58]OFD Sender: No OFD packet to send [05:07:03]OFD Sender: No OFD packet to send [05:07:08]OFD Sender: No OFD packet to send [05:07:13]OFD Sender: No OFD packet to send [05:07:18]OFD Sender: No OFD packet to send [05:07:23]OFD Sender: No OFD packet to send [05:07:28]OFD Sender: No OFD packet to send [05:07:33]OFD Sender: No OFD packet to send [05:07:38]OFD Sender: No OFD packet to send [05:07:43]OFD Sender: No OFD packet to send [05:07:48]OFD Sender: No OFD packet to send [05:07:53]OFD Sender: No OFD packet to send [05:07:58]OFD Sender: No OFD packet to send [05:08:03]OFD Sender: No OFD packet to send [05:08:08]OFD Sender: No OFD packet to send [05:08:13]OFD Sender: No OFD packet to send [05:08:18]OFD Sender: No OFD packet to send [05:08:23]OFD Sender: No OFD packet to send [05:08:28]OFD Sender: No OFD packet to send [05:08:33]OFD Sender: No OFD packet to send [05:08:38]OFD Sender: No OFD packet to send [05:08:43]OFD Sender: No OFD packet to send [05:08:48]OFD Sender: No OFD packet to send [05:08:53]OFD Sender: No OFD packet to send [05:08:58]OFD Sender: No OFD packet to send [05:09:03]OFD Sender: No OFD packet to send [05:09:08]OFD Sender: No OFD packet to send [05:09:13]OFD Sender: No OFD packet to send [05:09:18]OFD Sender: No OFD packet to send [05:09:23]OFD Sender: No OFD packet to send [05:09:28]OFD Sender: No OFD packet to send [05:09:33]OFD Sender: No OFD packet to send [05:09:38]OFD Sender: No OFD packet to send [05:09:43]OFD Sender: No OFD packet to send [05:09:48]OFD Sender: No OFD packet to send [05:09:53]OFD Sender: No OFD packet to send [05:09:58]OFD Sender: No OFD packet to send [05:10:03]OFD Sender: No OFD packet to send [05:10:08]OFD Sender: No OFD packet to send [05:10:13]OFD Sender: No OFD packet to send [05:10:18]OFD Sender: No OFD packet to send [05:10:23]OFD Sender: No OFD packet to send [05:10:28]OFD Sender: No OFD packet to send [05:10:33]OFD Sender: No OFD packet to send [05:10:39]OFD Sender: No OFD packet to send [05:10:44]OFD Sender: No OFD packet to send [05:10:49]OFD Sender: No OFD packet to send [05:10:54]OFD Sender: No OFD packet to send [05:10:59]OFD Sender: No OFD packet to send [05:11:04]OFD Sender: No OFD packet to send [05:11:09]OFD Sender: No OFD packet to send [05:11:14]OFD Sender: No OFD packet to send [05:11:19]OFD Sender: No OFD packet to send [05:11:24]OFD Sender: No OFD packet to send [05:11:29]OFD Sender: No OFD packet to send [05:11:34]OFD Sender: No OFD packet to send [05:11:39]OFD Sender: No OFD packet to send [05:11:44]OFD Sender: No OFD packet to send [05:11:49]OFD Sender: No OFD packet to send [05:11:54]OFD Sender: No OFD packet to send [05:11:59]OFD Sender: No OFD packet to send [05:12:04]OFD Sender: No OFD packet to send [05:12:09]OFD Sender: No OFD packet to send [05:12:14]OFD Sender: No OFD packet to send [05:12:19]OFD Sender: No OFD packet to send [05:12:24]OFD Sender: No OFD packet to send [05:12:29]OFD Sender: No OFD packet to send [05:12:34]OFD Sender: No OFD packet to send [05:12:39]OFD Sender: No OFD packet to send [05:12:44]OFD Sender: No OFD packet to send [05:12:49]OFD Sender: No OFD packet to send [05:12:54]OFD Sender: No OFD packet to send [05:12:59]OFD Sender: No OFD packet to send [05:13:04]OFD Sender: No OFD packet to send [05:13:09]OFD Sender: No OFD packet to send [05:13:14]OFD Sender: No OFD packet to send [05:13:19]OFD Sender: No OFD packet to send [05:13:24]OFD Sender: No OFD packet to send [05:13:29]OFD Sender: No OFD packet to send [05:13:34]OFD Sender: No OFD packet to send [05:13:39]OFD Sender: No OFD packet to send [05:13:44]OFD Sender: No OFD packet to send [05:13:49]OFD Sender: No OFD packet to send [05:13:54]OFD Sender: No OFD packet to send [05:13:59]OFD Sender: No OFD packet to send [05:14:04]OFD Sender: No OFD packet to send [05:14:09]OFD Sender: No OFD packet to send [05:14:14]OFD Sender: No OFD packet to send [05:14:19]OFD Sender: No OFD packet to send [05:14:24]OFD Sender: No OFD packet to send [05:14:29]OFD Sender: No OFD packet to send [05:14:34]OFD Sender: No OFD packet to send [05:14:39]OFD Sender: No OFD packet to send [05:14:44]OFD Sender: No OFD packet to send [05:14:49]OFD Sender: No OFD packet to send [05:14:54]OFD Sender: No OFD packet to send [05:14:59]OFD Sender: No OFD packet to send [05:15:04]OFD Sender: No OFD packet to send [05:15:09]OFD Sender: No OFD packet to send [05:15:14]OFD Sender: No OFD packet to send [05:15:19]OFD Sender: No OFD packet to send [05:15:24]OFD Sender: No OFD packet to send [05:15:29]OFD Sender: No OFD packet to send [05:15:34]OFD Sender: No OFD packet to send [05:15:39]OFD Sender: No OFD packet to send [05:15:44]OFD Sender: No OFD packet to send [05:15:49]OFD Sender: No OFD packet to send [05:15:54]OFD Sender: No OFD packet to send [05:15:59]OFD Sender: No OFD packet to send [05:16:04]OFD Sender: No OFD packet to send [05:16:09]OFD Sender: No OFD packet to send [05:16:14]OFD Sender: No OFD packet to send [05:16:19]OFD Sender: No OFD packet to send [05:16:24]OFD Sender: No OFD packet to send [05:16:29]OFD Sender: No OFD packet to send [05:16:34]OFD Sender: No OFD packet to send [05:16:39]OFD Sender: No OFD packet to send [05:16:44]OFD Sender: No OFD packet to send [05:16:49]OFD Sender: No OFD packet to send [05:16:54]OFD Sender: No OFD packet to send [05:16:59]OFD Sender: No OFD packet to send [05:17:04]OFD Sender: No OFD packet to send [05:17:09]OFD Sender: No OFD packet to send [05:17:14]OFD Sender: No OFD packet to send [05:17:19]OFD Sender: No OFD packet to send [05:17:24]OFD Sender: No OFD packet to send [05:17:29]OFD Sender: No OFD packet to send [05:17:34]OFD Sender: No OFD packet to send [05:17:39]OFD Sender: No OFD packet to send [05:17:44]OFD Sender: No OFD packet to send [05:17:49]OFD Sender: No OFD packet to send [05:17:54]OFD Sender: No OFD packet to send [05:17:59]OFD Sender: No OFD packet to send [05:18:04]OFD Sender: No OFD packet to send [05:18:09]OFD Sender: No OFD packet to send [05:18:14]OFD Sender: No OFD packet to send [05:18:19]OFD Sender: No OFD packet to send [05:18:24]OFD Sender: No OFD packet to send [05:18:29]OFD Sender: No OFD packet to send [05:18:34]OFD Sender: No OFD packet to send [05:18:39]OFD Sender: No OFD packet to send [05:18:44]OFD Sender: No OFD packet to send [05:18:49]OFD Sender: No OFD packet to send [05:18:54]OFD Sender: No OFD packet to send [05:18:59]OFD Sender: No OFD packet to send [05:19:04]OFD Sender: No OFD packet to send [05:19:09]OFD Sender: No OFD packet to send [05:19:14]OFD Sender: No OFD packet to send [05:19:19]OFD Sender: No OFD packet to send [05:19:24]OFD Sender: No OFD packet to send [05:19:29]OFD Sender: No OFD packet to send [05:19:34]OFD Sender: No OFD packet to send [05:19:39]OFD Sender: No OFD packet to send [05:19:44]OFD Sender: No OFD packet to send [05:19:49]OFD Sender: No OFD packet to send [05:19:54]OFD Sender: No OFD packet to send [05:19:59]OFD Sender: No OFD packet to send [05:20:04]OFD Sender: No OFD packet to send [05:20:09]OFD Sender: No OFD packet to send [05:20:14]OFD Sender: No OFD packet to send [05:20:19]OFD Sender: No OFD packet to send [05:20:24]OFD Sender: No OFD packet to send [05:20:29]OFD Sender: No OFD packet to send [05:20:34]OFD Sender: No OFD packet to send [05:20:39]OFD Sender: No OFD packet to send [05:20:44]OFD Sender: No OFD packet to send [05:20:49]OFD Sender: No OFD packet to send [05:20:54]OFD Sender: No OFD packet to send [05:20:59]OFD Sender: No OFD packet to send [05:21:04]OFD Sender: No OFD packet to send [05:21:09]OFD Sender: No OFD packet to send [05:21:14]OFD Sender: No OFD packet to send [05:21:19]OFD Sender: No OFD packet to send [05:21:24]OFD Sender: No OFD packet to send [05:21:29]OFD Sender: No OFD packet to send [05:21:34]OFD Sender: No OFD packet to send [05:21:39]OFD Sender: No OFD packet to send [05:21:44]OFD Sender: No OFD packet to send [05:21:49]OFD Sender: No OFD packet to send [05:21:54]OFD Sender: No OFD packet to send [05:21:59]OFD Sender: No OFD packet to send [05:22:04]OFD Sender: No OFD packet to send [05:22:09]OFD Sender: No OFD packet to send [05:22:14]OFD Sender: No OFD packet to send [05:22:19]OFD Sender: No OFD packet to send [05:22:24]OFD Sender: No OFD packet to send [05:22:29]OFD Sender: No OFD packet to send [05:22:34]OFD Sender: No OFD packet to send [05:22:39]OFD Sender: No OFD packet to send [05:22:44]OFD Sender: No OFD packet to send [05:22:49]OFD Sender: No OFD packet to send [05:22:54]OFD Sender: No OFD packet to send [05:22:59]OFD Sender: No OFD packet to send [05:23:04]OFD Sender: No OFD packet to send [05:23:09]OFD Sender: No OFD packet to send [05:23:14]OFD Sender: No OFD packet to send [05:23:19]OFD Sender: No OFD packet to send [05:23:24]OFD Sender: No OFD packet to send [05:23:29]OFD Sender: No OFD packet to send [05:23:34]OFD Sender: No OFD packet to send [05:23:39]OFD Sender: No OFD packet to send [05:23:44]OFD Sender: No OFD packet to send [05:23:49]OFD Sender: No OFD packet to send [05:32:26]ConnectInit Can't connect to host [05:32:30]OFD Sender: No OFD packet to send [05:32:35]OFD Sender: No OFD packet to send [05:32:40]OFD Sender: No OFD packet to send [05:32:45]OFD Sender: No OFD packet to send [05:32:50]OFD Sender: No OFD packet to send [05:32:55]OFD Sender: No OFD packet to send [05:33:00]OFD Sender: No OFD packet to send [05:33:05]OFD Sender: No OFD packet to send [05:33:10]OFD Sender: No OFD packet to send [05:33:15]OFD Sender: No OFD packet to send [05:33:20]OFD Sender: No OFD packet to send [05:33:25]OFD Sender: No OFD packet to send [05:33:30]OFD Sender: No OFD packet to send [05:33:35]OFD Sender: No OFD packet to send [05:33:40]OFD Sender: No OFD packet to send [05:33:45]OFD Sender: No OFD packet to send [05:33:50]OFD Sender: No OFD packet to send [05:33:55]OFD Sender: No OFD packet to send [05:34:00]OFD Sender: No OFD packet to send [05:34:05]OFD Sender: No OFD packet to send [05:34:10]OFD Sender: No OFD packet to send [05:34:15]OFD Sender: No OFD packet to send [05:34:20]OFD Sender: No OFD packet to send [05:34:25]OFD Sender: No OFD packet to send [05:34:30]OFD Sender: No OFD packet to send [05:34:35]OFD Sender: No OFD packet to send [05:34:40]OFD Sender: No OFD packet to send [05:34:45]OFD Sender: No OFD packet to send [05:34:50]OFD Sender: No OFD packet to send [05:34:55]OFD Sender: No OFD packet to send [05:35:00]OFD Sender: No OFD packet to send [05:35:05]OFD Sender: No OFD packet to send [05:35:10]OFD Sender: No OFD packet to send [05:35:15]OFD Sender: No OFD packet to send [05:35:20]OFD Sender: No OFD packet to send [05:35:25]OFD Sender: No OFD packet to send [05:35:30]OFD Sender: No OFD packet to send [05:35:35]OFD Sender: No OFD packet to send [05:35:40]OFD Sender: No OFD packet to send [05:35:45]OFD Sender: No OFD packet to send [05:35:50]OFD Sender: No OFD packet to send [05:35:55]OFD Sender: No OFD packet to send [05:36:00]OFD Sender: No OFD packet to send [05:36:05]OFD Sender: No OFD packet to send [05:36:10]OFD Sender: No OFD packet to send [05:36:15]OFD Sender: No OFD packet to send [05:36:20]OFD Sender: No OFD packet to send [05:36:25]OFD Sender: No OFD packet to send [05:36:30]OFD Sender: No OFD packet to send [05:36:35]OFD Sender: No OFD packet to send [05:36:40]OFD Sender: No OFD packet to send [05:36:45]OFD Sender: No OFD packet to send [05:36:50]OFD Sender: No OFD packet to send [05:36:55]OFD Sender: No OFD packet to send [05:37:00]OFD Sender: No OFD packet to send [05:37:05]OFD Sender: No OFD packet to send [05:37:10]OFD Sender: No OFD packet to send [05:37:15]OFD Sender: No OFD packet to send [05:37:20]OFD Sender: No OFD packet to send [05:37:25]OFD Sender: No OFD packet to send [05:37:30]OFD Sender: No OFD packet to send [05:37:35]OFD Sender: No OFD packet to send [05:37:40]OFD Sender: No OFD packet to send [05:37:45]OFD Sender: No OFD packet to send [05:37:50]OFD Sender: No OFD packet to send [05:37:55]OFD Sender: No OFD packet to send [05:38:00]OFD Sender: No OFD packet to send [05:38:05]OFD Sender: No OFD packet to send [05:38:10]OFD Sender: No OFD packet to send [05:38:15]OFD Sender: No OFD packet to send [05:38:20]OFD Sender: No OFD packet to send [05:38:25]OFD Sender: No OFD packet to send [05:38:30]OFD Sender: No OFD packet to send [05:38:35]OFD Sender: No OFD packet to send [05:38:40]OFD Sender: No OFD packet to send [05:38:45]OFD Sender: No OFD packet to send [05:38:50]OFD Sender: No OFD packet to send [05:38:55]OFD Sender: No OFD packet to send [05:39:00]OFD Sender: No OFD packet to send [05:39:05]OFD Sender: No OFD packet to send [05:39:10]OFD Sender: No OFD packet to send [05:39:15]OFD Sender: No OFD packet to send [05:39:20]OFD Sender: No OFD packet to send [05:39:25]OFD Sender: No OFD packet to send [05:39:30]OFD Sender: No OFD packet to send [05:39:35]OFD Sender: No OFD packet to send [05:39:40]OFD Sender: No OFD packet to send [05:39:45]OFD Sender: No OFD packet to send [05:39:48]accept exits with 9 [05:39:48]New connection [05:39:48]New thread 3067518308 created [05:39:48]Waiting for new connection... [05:39:48] Sock 9.Parse request [05:39:48]Sock 9.Check first char [05:39:48]Sock 9.First char is OK [05:39:48]request: POST /json_proto HTTP/1.0 [05:39:48]Method: POST [05:39:48]URL: /json_proto [05:39:48]Method is POST - this is cgi request [05:39:48]url: /json_proto [05:39:48]query_string will be loaded in cgi processing [05:39:48]execute_cgi json_proto POST (null) [05:39:48]execute_cgi path=json_proto method=POST [05:39:48]POST find Content-Length [05:39:48]Host: 172.17.60.69:8080 [05:39:48]Content-Length: 215 [05:39:48]Content-Type: application/json [05:39:48] [05:39:48]POST finish read [05:39:48]Found Content-Length = 215 [05:39:48]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" ] } } [05:39:48]execute_script... [05:39:48]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" ] } } [05:39:48]POST & json_proto [05:39:48]process_json_proto [05:39:48]json parsed OK: [05:39:48]protocol is kg_v1.0 [05:39:48]action value=get_value [05:39:48]process_action get_value [05:39:48]cmd_get_value [05:39:48]process_action get_value done [05:39:48]requested_data is exist [05:39:48]produce_requested_data [05:39:48]requested_item kkm.sn is exist - process it [05:39:48]requested_item kkm.ver is exist - process it [05:39:48]requested_item fm.sn is exist - process it [05:39:48]wFMCommunicate request_size=4 [05:39:48]MH_SAM_APDU [05:39:48]CAPDU: 80 11 00 00 [05:39:48]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [05:39:48]Write i2c OK [05:39:48]MH_I2C_Read... [05:39:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:39:48]Read from MH i2c: E2 [05:39:48]MH_I2C_Read... [05:39:48]Read from MH i2c: E2 17 00 [05:39:48]MH_I2C_Read... [05:39:48]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 35 30 37 34 90 00 DC [05:39:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [05:39:48]wFMCommunicate OK [05:39:48]requested_item fd.num is exist - process it [05:39:48]SAM_PROTO_GetFieldsCounters [05:39:48]wFMCommunicate request_size=4 [05:39:48]MH_SAM_APDU [05:39:48]CAPDU: 80 13 00 00 [05:39:48]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [05:39:48]Write i2c OK [05:39:48]MH_I2C_Read... [05:39:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:39:48]Read from MH i2c: E2 [05:39:48]MH_I2C_Read... [05:39:48]Read from MH i2c: E2 62 00 [05:39:48]MH_I2C_Read... [05:39:48]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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 06 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 3D [05:39: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 06 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:39:48]wFMCommunicate OK [05:39:48]SAM_PROTO_GetFieldsCounters done [05:39:48]requested_item shift.num is exist - process it [05:39:48]requested_item shift.opened is exist - process it [05:39:48]req_shift_opened [05:39:48]FM_GetShiftState [05:39:48]SAM_PROTO_GetShiftState [05:39:48]wFMCommunicate request_size=4 [05:39:48]MH_SAM_APDU [05:39:48]CAPDU: 80 13 01 00 [05:39:48]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [05:39:48]Write i2c OK [05:39:48]MH_I2C_Read... [05:39:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:39:48]Read from MH i2c: E2 [05:39:48]MH_I2C_Read... [05:39:48]Read from MH i2c: E2 0E 00 [05:39:48]MH_I2C_Read... [05:39:48]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 5B [05:39:48]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [05:39:48]wFMCommunicate OK [05:39:48]SAM_PROTO_GetShiftState done [05:39:48]FM_GetShiftState done [05:39:48]req_shift_opened done [05:39:48]requested_item shift.open_date is exist - process it [05:39:48]req_shift_open_date [05:39:48]req_shift_open_date done [05:39:48]produce_requested_data done [05:39:48]produce_requested_data return {"kkm.sn":"0300000031","kkm.ver":"001","fm.sn":"0000000000875074","fd.num":63750,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [05:39:48]process_action_free get_value [05:39:48]json_value_free [05:39:48]json_value_free done [05:39:48]process_json_proto returns [05:39:48]Send response to host [05:39:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000031","kkm.ver":"001","fm.sn":"0000000000875074","fd.num":63750,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [05:39:48]free response buf [05:39:48]execute_script done [05:39:48]execute_script returns [05:39:48]free content buf [05:39:48]Sock 9.Close socket [05:39:48]Sock 9.Thread stoped [05:39:50]OFD Sender: No OFD packet to send [05:39:51]accept exits with 7 [05:39:51]New connection [05:39:51]New thread 3067374948 created [05:39:51]Thread 3067518308 joined [05:39:51]Waiting for new connection... [05:39:51] Sock 7.Parse request [05:39:51]Sock 7.Check first char [05:39:51]Sock 7.First char is OK [05:39:51]request: POST /json_proto HTTP/1.0 [05:39:51]Method: POST [05:39:51]URL: /json_proto [05:39:51]Method is POST - this is cgi request [05:39:51]url: /json_proto [05:39:51]query_string will be loaded in cgi processing [05:39:51]execute_cgi json_proto POST (null) [05:39:51]execute_cgi path=json_proto method=POST [05:39:51]POST find Content-Length [05:39:51]Host: 172.17.60.69:8080 [05:39:51]Content-Length: 331 [05:39:51]Content-Type: application/json [05:39:51] [05:39:51]POST finish read [05:39:51]Found Content-Length = 331 [05:39:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [05:39:51]execute_script... [05:39:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [05:39:51]POST & json_proto [05:39:51]process_json_proto [05:39:51]json parsed OK: [05:39:51]protocol is kg_v1.0 [05:39:51]action value=get_value [05:39:51]process_action get_value [05:39:51]cmd_get_value [05:39:51]process_action get_value done [05:39:51]requested_data is exist [05:39:51]produce_requested_data [05:39:51]requested_item fm.sale.total is exist - process it [05:39:51]SAM_PROTO_GetFMData [05:39:51]wFMCommunicate request_size=4 [05:39:51]MH_SAM_APDU [05:39:51]CAPDU: 80 13 03 00 [05:39:51]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [05:39:51]Write i2c OK [05:39:51]MH_I2C_Read... [05:39:52]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [05:39:52]Read from MH i2c: E2 [05:39:52]MH_I2C_Read... [05:39:52]Read from MH i2c: E2 FD 00 [05:39:52]MH_I2C_Read... [05:39:52]Read from MH i2c: E2 FD 00 13 00 00 C5 04 85 04 C1 04 6E 04 04 00 1C F6 00 00 69 04 A1 00 6F 04 04 00 BF F3 00 00 B1 04 04 00 B1 A7 79 76 70 04 04 00 52 E4 CC 65 72 04 04 00 5F C3 AC 10 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 DA 43 95 0C 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 AB 5C 0C 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 5D 02 00 00 B1 04 04 00 64 11 7D 03 70 04 04 00 E0 B5 61 03 72 04 03 00 84 5B 1B 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 F2 D8 5E EF 03 09 90 00 45 [05:39:52]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 1C F6 00 00 69 04 A1 00 6F 04 04 00 BF F3 00 00 B1 04 04 00 B1 A7 79 76 70 04 04 00 52 E4 CC 65 72 04 04 00 5F C3 AC 10 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 DA 43 95 0C 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 AB 5C 0C 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 5D 02 00 00 B1 04 04 00 64 11 7D 03 70 04 04 00 E0 B5 61 03 72 04 03 00 84 5B 1B 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 F2 D8 5E EF 03 09 90 00 [05:39:52]wFMCommunicate OK [05:39:52]wFMCommunicate request_size=4 [05:39:52]MH_SAM_APDU [05:39:52]CAPDU: 80 17 00 00 [05:39:52]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [05:39:52]Write i2c OK [05:39:52]MH_I2C_Read... [05:39:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [05:39:52]Read from MH i2c: E2 [05:39:52]MH_I2C_Read... [05:39:52]Read from MH i2c: E2 FD 00 [05:39:52]MH_I2C_Read... [05:39:52]Read from MH i2c: E2 FD 00 14 00 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 2E E7 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 66 [05:39:52]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 2E E7 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [05:39:52]wFMCommunicate OK [05:39:52]wFMCommunicate request_size=4 [05:39:52]MH_SAM_APDU [05:39:52]CAPDU: 80 17 00 00 [05:39:52]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [05:39:52]Write i2c OK [05:39:52]MH_I2C_Read... [05:39:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [05:39:52]Read from MH i2c: E2 [05:39:52]MH_I2C_Read... [05:39:52]Read from MH i2c: E2 FD 00 [05:39:52]MH_I2C_Read... [05:39:52]Read from MH i2c: E2 FD 00 15 00 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 A7 [05:39:52]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [05:39:52]wFMCommunicate OK [05:39:52]wFMCommunicate request_size=4 [05:39:52]MH_SAM_APDU [05:39:52]CAPDU: 80 17 00 00 [05:39:52]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [05:39:52]Write i2c OK [05:39:52]MH_I2C_Read... [05:39:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [05:39:52]Read from MH i2c: E2 [05:39:52]MH_I2C_Read... [05:39:52]Read from MH i2c: E2 FD 00 [05:39:52]MH_I2C_Read... [05:39:52]Read from MH i2c: E2 FD 00 16 00 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 22 [05:39:52]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [05:39:52]wFMCommunicate OK [05:39:52]wFMCommunicate request_size=4 [05:39:52]MH_SAM_APDU [05:39:52]CAPDU: 80 17 00 00 [05:39:52]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [05:39:52]Write i2c OK [05:39:52]MH_I2C_Read... [05:39:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [05:39:53]Read from MH i2c: E2 [05:39:53]MH_I2C_Read... [05:39:53]Read from MH i2c: E2 E2 00 [05:39:53]MH_I2C_Read... [05:39:53]Read from MH i2c: E2 E2 00 17 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 75 [05:39:53]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [05:39:53]wFMCommunicate OK [05:39:53]SAM_PROTO_GetFMData done [05:39:53]requested_item fm.sale_refund.total is exist - process it [05:39:53]requested_item fm.buy.total is exist - process it [05:39:53]requested_item shift.sale.total is exist - process it [05:39:53]SAM_PROTO_GetShiftData [05:39:53]wFMCommunicate request_size=4 [05:39:53]MH_SAM_APDU [05:39:53]CAPDU: 80 13 02 00 [05:39:53]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [05:39:53]Write i2c OK [05:39:53]MH_I2C_Read... [05:39:53]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [05:39:53]Read from MH i2c: E2 [05:39:53]MH_I2C_Read... [05:39:53]Read from MH i2c: E2 FD 00 [05:39:53]MH_I2C_Read... [05:39:53]Read from MH i2c: E2 FD 00 18 00 00 AC 04 AA 04 A8 04 6E 04 04 00 08 00 00 00 69 04 99 00 6F 04 04 00 08 00 00 00 B1 04 03 00 C4 B2 01 70 04 03 00 4C 49 01 72 04 02 00 78 69 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 2A 2E 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 D7 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 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 90 00 80 [05:39:53]RAPDU: AC 04 AA 04 A8 04 6E 04 04 00 08 00 00 00 69 04 99 00 6F 04 04 00 08 00 00 00 B1 04 03 00 C4 B2 01 70 04 03 00 4C 49 01 72 04 02 00 78 69 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 2A 2E 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 D7 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 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 90 00 [05:39:53]wFMCommunicate OK [05:39:53]wFMCommunicate request_size=4 [05:39:53]MH_SAM_APDU [05:39:53]CAPDU: 80 17 00 00 [05:39:53]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [05:39:53]Write i2c OK [05:39:53]MH_I2C_Read... [05:39:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [05:39:53]Read from MH i2c: E2 [05:39:53]MH_I2C_Read... [05:39:53]Read from MH i2c: E2 FD 00 [05:39:53]MH_I2C_Read... [05:39:53]Read from MH i2c: E2 FD 00 19 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 03 90 00 AE [05:39:53]RAPDU: 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 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 90 00 [05:39:53]wFMCommunicate OK [05:39:53]wFMCommunicate request_size=4 [05:39:53]MH_SAM_APDU [05:39:53]CAPDU: 80 17 00 00 [05:39:53]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [05:39:53]Write i2c OK [05:39:53]MH_I2C_Read... [05:39:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [05:39:54]Read from MH i2c: E2 [05:39:54]MH_I2C_Read... [05:39:54]Read from MH i2c: E2 FD 00 [05:39:54]MH_I2C_Read... [05:39:54]Read from MH i2c: E2 FD 00 1A 00 00 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 90 00 5B [05:39:54]RAPDU: 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 90 00 [05:39:54]wFMCommunicate OK [05:39:54]wFMCommunicate request_size=4 [05:39:54]MH_SAM_APDU [05:39:54]CAPDU: 80 17 00 00 [05:39:54]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [05:39:54]Write i2c OK [05:39:54]MH_I2C_Read... [05:39:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [05:39:54]Read from MH i2c: E2 [05:39:54]MH_I2C_Read... [05:39:54]Read from MH i2c: E2 FD 00 [05:39:54]MH_I2C_Read... [05:39:54]Read from MH i2c: E2 FD 00 1B 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 90 00 10 [05:39:54]RAPDU: EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 90 00 [05:39:54]wFMCommunicate OK [05:39:54]wFMCommunicate request_size=4 [05:39:54]MH_SAM_APDU [05:39:54]CAPDU: 80 17 00 00 [05:39:54]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [05:39:54]Write i2c OK [05:39:54]MH_I2C_Read... [05:39:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 198! [05:39:54]Read from MH i2c: E2 [05:39:54]MH_I2C_Read... [05:39:54]Read from MH i2c: E2 C9 00 [05:39:54]MH_I2C_Read... [05:39:54]Read from MH i2c: E2 C9 00 1C 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 80 [05:39:54]RAPDU: 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [05:39:54]wFMCommunicate OK [05:39:54]SAM_PROTO_GetShiftData done [05:39:54]requested_item shift.sale.total_cash is exist - process it [05:39:54]requested_item shift.sale_refund.total is exist - process it [05:39:54]requested_item shift.sale_refund.total_cash is exist - process it [05:39:54]requested_item shift.buy.total is exist - process it [05:39:54]requested_item shift.buy.total_cash is exist - process it [05:39:54]produce_requested_data done [05:39:54]produce_requested_data return {"fm.sale.total":19876842.73,"fm.sale_refund.total":585281.00,"fm.buy.total":0.00,"shift.sale.total":1113.00,"shift.sale.total_cash":843.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} [05:39:54]process_action_free get_value [05:39:54]json_value_free [05:39:54]json_value_free done [05:39:54]process_json_proto returns [05:39:54]Send response to host [05:39:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":19876842.73,"fm.sale_refund.total":585281.00,"fm.buy.total":0.00,"shift.sale.total":1113.00,"shift.sale.total_cash":843.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}}} [05:39:54]free response buf [05:39:54]execute_script done [05:39:54]execute_script returns [05:39:54]free content buf [05:39:54]Sock 7.Close socket [05:39:54]Sock 7.Thread stoped [05:39:55]OFD Sender: No OFD packet to send [05:40:00]OFD Sender: No OFD packet to send [05:40:05]OFD Sender: No OFD packet to send [05:40:10]OFD Sender: No OFD packet to send [05:40:15]OFD Sender: No OFD packet to send [05:40:20]OFD Sender: No OFD packet to send [05:40:25]OFD Sender: No OFD packet to send [05:40:30]OFD Sender: No OFD packet to send [05:40:35]OFD Sender: No OFD packet to send [05:40:40]OFD Sender: No OFD packet to send [05:40:45]OFD Sender: No OFD packet to send [05:40:50]OFD Sender: No OFD packet to send [05:40:55]OFD Sender: No OFD packet to send [05:41:00]OFD Sender: No OFD packet to send [05:41:05]OFD Sender: No OFD packet to send [05:41:10]OFD Sender: No OFD packet to send [05:41:15]OFD Sender: No OFD packet to send [05:41:20]OFD Sender: No OFD packet to send [05:41:25]OFD Sender: No OFD packet to send [05:41:30]OFD Sender: No OFD packet to send [05:41:35]OFD Sender: No OFD packet to send [05:41:40]OFD Sender: No OFD packet to send [05:41:45]OFD Sender: No OFD packet to send [05:41:50]OFD Sender: No OFD packet to send [05:41:55]OFD Sender: No OFD packet to send [05:42:00]OFD Sender: No OFD packet to send [05:42:05]OFD Sender: No OFD packet to send [05:42:10]OFD Sender: No OFD packet to send [05:42:15]OFD Sender: No OFD packet to send [05:42:20]OFD Sender: No OFD packet to send [05:42:25]OFD Sender: No OFD packet to send [05:42:30]OFD Sender: No OFD packet to send [05:42:35]OFD Sender: No OFD packet to send [05:42:40]OFD Sender: No OFD packet to send [05:42:45]OFD Sender: No OFD packet to send [05:42:51]OFD Sender: No OFD packet to send [05:42:56]OFD Sender: No OFD packet to send [05:43:01]OFD Sender: No OFD packet to send [05:43:06]OFD Sender: No OFD packet to send [05:43:11]OFD Sender: No OFD packet to send [05:43:16]OFD Sender: No OFD packet to send [05:43:21]OFD Sender: No OFD packet to send [05:43:26]OFD Sender: No OFD packet to send [05:43:31]OFD Sender: No OFD packet to send [05:43:36]OFD Sender: No OFD packet to send [05:43:41]OFD Sender: No OFD packet to send [05:43:46]OFD Sender: No OFD packet to send [05:43:51]OFD Sender: No OFD packet to send [05:43:56]OFD Sender: No OFD packet to send [05:44:01]OFD Sender: No OFD packet to send [05:44:06]OFD Sender: No OFD packet to send [05:44:11]OFD Sender: No OFD packet to send [05:44:16]OFD Sender: No OFD packet to send [05:44:21]OFD Sender: No OFD packet to send [05:44:26]OFD Sender: No OFD packet to send [05:44:31]OFD Sender: No OFD packet to send [05:44:36]OFD Sender: No OFD packet to send [05:44:41]OFD Sender: No OFD packet to send [05:44:46]OFD Sender: No OFD packet to send [05:44:51]OFD Sender: No OFD packet to send [05:44:56]OFD Sender: No OFD packet to send [05:45:01]OFD Sender: No OFD packet to send [05:45:06]OFD Sender: No OFD packet to send [05:45:11]OFD Sender: No OFD packet to send [05:45:16]OFD Sender: No OFD packet to send [05:45:21]OFD Sender: No OFD packet to send [05:45:26]OFD Sender: No OFD packet to send [05:45:31]OFD Sender: No OFD packet to send [05:45:36]OFD Sender: No OFD packet to send [05:45:41]OFD Sender: No OFD packet to send [05:45:46]OFD Sender: No OFD packet to send [05:45:51]OFD Sender: No OFD packet to send [05:45:56]OFD Sender: No OFD packet to send [05:46:01]OFD Sender: No OFD packet to send [05:46:06]OFD Sender: No OFD packet to send [05:46:11]OFD Sender: No OFD packet to send [05:46:16]OFD Sender: No OFD packet to send [05:46:21]OFD Sender: No OFD packet to send [05:46:26]OFD Sender: No OFD packet to send [05:46:31]OFD Sender: No OFD packet to send [05:46:36]OFD Sender: No OFD packet to send [05:46:41]OFD Sender: No OFD packet to send [05:46:46]OFD Sender: No OFD packet to send [05:46:51]OFD Sender: No OFD packet to send [05:46:56]OFD Sender: No OFD packet to send [05:47:01]OFD Sender: No OFD packet to send [05:47:06]OFD Sender: No OFD packet to send [05:47:11]OFD Sender: No OFD packet to send [05:47:16]OFD Sender: No OFD packet to send [05:47:21]OFD Sender: No OFD packet to send [05:47:26]OFD Sender: No OFD packet to send [05:47:31]OFD Sender: No OFD packet to send [05:47:36]OFD Sender: No OFD packet to send [05:47:41]OFD Sender: No OFD packet to send [05:47:46]OFD Sender: No OFD packet to send [05:47:51]OFD Sender: No OFD packet to send [05:47:56]OFD Sender: No OFD packet to send [05:48:01]OFD Sender: No OFD packet to send [05:48:06]OFD Sender: No OFD packet to send [05:48:11]OFD Sender: No OFD packet to send [05:48:16]OFD Sender: No OFD packet to send [05:48:21]OFD Sender: No OFD packet to send [05:48:26]OFD Sender: No OFD packet to send [05:48:31]OFD Sender: No OFD packet to send [05:48:36]OFD Sender: No OFD packet to send [05:48:41]OFD Sender: No OFD packet to send [05:48:46]OFD Sender: No OFD packet to send [05:48:51]OFD Sender: No OFD packet to send [05:48:56]OFD Sender: No OFD packet to send [05:49:01]OFD Sender: No OFD packet to send [05:49:06]OFD Sender: No OFD packet to send [05:49:11]OFD Sender: No OFD packet to send [05:49:16]OFD Sender: No OFD packet to send [05:49:21]OFD Sender: No OFD packet to send [05:49:26]OFD Sender: No OFD packet to send [05:49:31]OFD Sender: No OFD packet to send [05:49:36]OFD Sender: No OFD packet to send [05:49:41]OFD Sender: No OFD packet to send [05:49:46]OFD Sender: No OFD packet to send [05:49:51]OFD Sender: No OFD packet to send [05:49:56]OFD Sender: No OFD packet to send [05:50:01]OFD Sender: No OFD packet to send [05:50:06]OFD Sender: No OFD packet to send [05:50:11]OFD Sender: No OFD packet to send [05:50:16]OFD Sender: No OFD packet to send [05:50:21]OFD Sender: No OFD packet to send [05:50:26]OFD Sender: No OFD packet to send [05:50:31]OFD Sender: No OFD packet to send [05:50:36]OFD Sender: No OFD packet to send [05:50:41]OFD Sender: No OFD packet to send [05:50:46]OFD Sender: No OFD packet to send [05:50:51]OFD Sender: No OFD packet to send [05:50:56]OFD Sender: No OFD packet to send [05:51:01]OFD Sender: No OFD packet to send [05:51:06]OFD Sender: No OFD packet to send [05:51:11]OFD Sender: No OFD packet to send [05:51:16]OFD Sender: No OFD packet to send [05:51:21]OFD Sender: No OFD packet to send [05:51:26]OFD Sender: No OFD packet to send [05:51:31]OFD Sender: No OFD packet to send [05:51:36]OFD Sender: No OFD packet to send [05:51:41]OFD Sender: No OFD packet to send [05:51:46]OFD Sender: No OFD packet to send [05:51:51]OFD Sender: No OFD packet to send [05:51:56]OFD Sender: No OFD packet to send [05:52:01]OFD Sender: No OFD packet to send [05:52:06]OFD Sender: No OFD packet to send [05:52:11]OFD Sender: No OFD packet to send [05:52:16]OFD Sender: No OFD packet to send [05:52:21]OFD Sender: No OFD packet to send [05:52:26]OFD Sender: No OFD packet to send [05:52:31]OFD Sender: No OFD packet to send [05:52:36]OFD Sender: No OFD packet to send [05:52:41]OFD Sender: No OFD packet to send [05:52:46]OFD Sender: No OFD packet to send [05:52:51]OFD Sender: No OFD packet to send [05:52:56]OFD Sender: No OFD packet to send [05:53:01]OFD Sender: No OFD packet to send [05:53:06]OFD Sender: No OFD packet to send [05:53:11]OFD Sender: No OFD packet to send [05:53:16]OFD Sender: No OFD packet to send [05:53:21]OFD Sender: No OFD packet to send [05:53:26]OFD Sender: No OFD packet to send [05:53:31]OFD Sender: No OFD packet to send [05:53:36]OFD Sender: No OFD packet to send [05:53:41]OFD Sender: No OFD packet to send [05:53:46]OFD Sender: No OFD packet to send [05:53:51]OFD Sender: No OFD packet to send [05:53:56]OFD Sender: No OFD packet to send [05:54:01]OFD Sender: No OFD packet to send [05:54:06]OFD Sender: No OFD packet to send [05:54:11]OFD Sender: No OFD packet to send [05:54:16]OFD Sender: No OFD packet to send [05:54:21]OFD Sender: No OFD packet to send [05:54:26]OFD Sender: No OFD packet to send [05:54:31]OFD Sender: No OFD packet to send [05:54:36]OFD Sender: No OFD packet to send [05:54:41]OFD Sender: No OFD packet to send [05:54:46]OFD Sender: No OFD packet to send [05:54:51]OFD Sender: No OFD packet to send [05:54:56]OFD Sender: No OFD packet to send [05:55:01]OFD Sender: No OFD packet to send [05:55:06]OFD Sender: No OFD packet to send [05:55:11]OFD Sender: No OFD packet to send [05:55:16]OFD Sender: No OFD packet to send [05:55:21]OFD Sender: No OFD packet to send [05:55:26]OFD Sender: No OFD packet to send [05:55:31]OFD Sender: No OFD packet to send [05:55:36]OFD Sender: No OFD packet to send [05:55:41]OFD Sender: No OFD packet to send [05:55:46]OFD Sender: No OFD packet to send [05:55:51]OFD Sender: No OFD packet to send [05:55:56]OFD Sender: No OFD packet to send [05:56:01]OFD Sender: No OFD packet to send [05:56:06]OFD Sender: No OFD packet to send [05:56:11]OFD Sender: No OFD packet to send [05:56:16]OFD Sender: No OFD packet to send [05:56:21]OFD Sender: No OFD packet to send [05:56:26]OFD Sender: No OFD packet to send [05:56:31]OFD Sender: No OFD packet to send [05:56:36]OFD Sender: No OFD packet to send [05:56:41]OFD Sender: No OFD packet to send [05:56:46]OFD Sender: No OFD packet to send [05:56:51]OFD Sender: No OFD packet to send [05:56:56]OFD Sender: No OFD packet to send [05:57:01]OFD Sender: No OFD packet to send [05:57:06]OFD Sender: No OFD packet to send [05:57:11]OFD Sender: No OFD packet to send [05:57:16]OFD Sender: No OFD packet to send [05:57:21]OFD Sender: No OFD packet to send [05:57:26]OFD Sender: No OFD packet to send [05:57:31]OFD Sender: No OFD packet to send [05:57:36]OFD Sender: No OFD packet to send [05:57:41]OFD Sender: No OFD packet to send [05:57:46]OFD Sender: No OFD packet to send [05:57:51]OFD Sender: No OFD packet to send [05:57:56]OFD Sender: No OFD packet to send [05:58:01]OFD Sender: No OFD packet to send [05:58:06]OFD Sender: No OFD packet to send [05:58:11]OFD Sender: No OFD packet to send [05:58:16]OFD Sender: No OFD packet to send [05:58:21]OFD Sender: No OFD packet to send [05:58:26]OFD Sender: No OFD packet to send [05:58:31]OFD Sender: No OFD packet to send [05:58:36]OFD Sender: No OFD packet to send [05:58:41]OFD Sender: No OFD packet to send [05:58:46]OFD Sender: No OFD packet to send [05:58:51]OFD Sender: No OFD packet to send [05:58:56]OFD Sender: No OFD packet to send [05:59:01]OFD Sender: No OFD packet to send [05:59:06]OFD Sender: No OFD packet to send [05:59:11]OFD Sender: No OFD packet to send [05:59:16]OFD Sender: No OFD packet to send [05:59:21]OFD Sender: No OFD packet to send [05:59:26]OFD Sender: No OFD packet to send [05:59:31]OFD Sender: No OFD packet to send [05:59:36]OFD Sender: No OFD packet to send [05:59:41]OFD Sender: No OFD packet to send [05:59:46]OFD Sender: No OFD packet to send [05:59:51]OFD Sender: No OFD packet to send [05:59:56]OFD Sender: No OFD packet to send [06:00:01]OFD Sender: No OFD packet to send [06:00:06]OFD Sender: No OFD packet to send [06:00:11]OFD Sender: No OFD packet to send [06:00:16]OFD Sender: No OFD packet to send [06:00:21]OFD Sender: No OFD packet to send [06:00:26]OFD Sender: No OFD packet to send [06:00:31]OFD Sender: No OFD packet to send [06:00:36]OFD Sender: No OFD packet to send [06:00:41]OFD Sender: No OFD packet to send [06:00:46]OFD Sender: No OFD packet to send [06:00:51]OFD Sender: No OFD packet to send [06:00:56]OFD Sender: No OFD packet to send [06:01:01]OFD Sender: No OFD packet to send [06:01:06]OFD Sender: No OFD packet to send [06:01:11]OFD Sender: No OFD packet to send [06:01:16]OFD Sender: No OFD packet to send [06:01:21]OFD Sender: No OFD packet to send [06:01:26]OFD Sender: No OFD packet to send [06:01:31]OFD Sender: No OFD packet to send [06:01:36]OFD Sender: No OFD packet to send [06:01:41]OFD Sender: No OFD packet to send [06:01:46]OFD Sender: No OFD packet to send [06:01:51]OFD Sender: No OFD packet to send [06:01:56]OFD Sender: No OFD packet to send [06:02:01]OFD Sender: No OFD packet to send [06:02:06]OFD Sender: No OFD packet to send [06:02:11]OFD Sender: No OFD packet to send [06:02:16]OFD Sender: No OFD packet to send [06:02:21]OFD Sender: No OFD packet to send [06:02:26]OFD Sender: No OFD packet to send [06:02:31]OFD Sender: No OFD packet to send [06:02:36]OFD Sender: No OFD packet to send [06:02:41]OFD Sender: No OFD packet to send [06:02:46]OFD Sender: No OFD packet to send [06:02:51]OFD Sender: No OFD packet to send [06:02:56]OFD Sender: No OFD packet to send [06:03:01]OFD Sender: No OFD packet to send [06:03:06]OFD Sender: No OFD packet to send [06:03:11]OFD Sender: No OFD packet to send [06:03:16]OFD Sender: No OFD packet to send [06:03:22]OFD Sender: No OFD packet to send [06:03:27]OFD Sender: No OFD packet to send [06:03:32]OFD Sender: No OFD packet to send [06:03:37]OFD Sender: No OFD packet to send [06:03:42]OFD Sender: No OFD packet to send [06:03:47]OFD Sender: No OFD packet to send [06:03:52]OFD Sender: No OFD packet to send [06:03:57]OFD Sender: No OFD packet to send [06:04:02]OFD Sender: No OFD packet to send [06:04:07]OFD Sender: No OFD packet to send [06:04:12]OFD Sender: No OFD packet to send [06:04:17]OFD Sender: No OFD packet to send [06:04:22]OFD Sender: No OFD packet to send [06:04:27]OFD Sender: No OFD packet to send [06:04:32]OFD Sender: No OFD packet to send [06:04:37]OFD Sender: No OFD packet to send [06:04:42]OFD Sender: No OFD packet to send [06:04:47]OFD Sender: No OFD packet to send [06:04:52]OFD Sender: No OFD packet to send [06:04:57]OFD Sender: No OFD packet to send [06:05:02]OFD Sender: No OFD packet to send [06:05:07]OFD Sender: No OFD packet to send [06:05:12]OFD Sender: No OFD packet to send [06:05:17]OFD Sender: No OFD packet to send [06:05:22]OFD Sender: No OFD packet to send [06:05:27]OFD Sender: No OFD packet to send [06:05:32]OFD Sender: No OFD packet to send [06:05:37]OFD Sender: No OFD packet to send [06:05:42]OFD Sender: No OFD packet to send [06:05:47]OFD Sender: No OFD packet to send [06:05:52]OFD Sender: No OFD packet to send [06:05:57]OFD Sender: No OFD packet to send [06:06:02]OFD Sender: No OFD packet to send [06:06:07]OFD Sender: No OFD packet to send [06:06:12]OFD Sender: No OFD packet to send [06:06:17]OFD Sender: No OFD packet to send [06:06:22]OFD Sender: No OFD packet to send [06:06:27]OFD Sender: No OFD packet to send [06:06:32]OFD Sender: No OFD packet to send [06:06:37]OFD Sender: No OFD packet to send [06:06:42]OFD Sender: No OFD packet to send [06:06:47]OFD Sender: No OFD packet to send [06:06:52]OFD Sender: No OFD packet to send [06:06:57]OFD Sender: No OFD packet to send [06:07:02]OFD Sender: No OFD packet to send [06:07:07]OFD Sender: No OFD packet to send [06:07:12]OFD Sender: No OFD packet to send [06:07:17]OFD Sender: No OFD packet to send [06:07:22]OFD Sender: No OFD packet to send [06:07:27]OFD Sender: No OFD packet to send [06:07:32]OFD Sender: No OFD packet to send [06:07:37]OFD Sender: No OFD packet to send [06:07:42]OFD Sender: No OFD packet to send [06:07:47]OFD Sender: No OFD packet to send [06:07:52]OFD Sender: No OFD packet to send [06:07:57]OFD Sender: No OFD packet to send [06:08:02]OFD Sender: No OFD packet to send [06:08:07]OFD Sender: No OFD packet to send [06:08:12]OFD Sender: No OFD packet to send [06:08:17]OFD Sender: No OFD packet to send [06:08:22]OFD Sender: No OFD packet to send [06:08:27]OFD Sender: No OFD packet to send [06:08:32]OFD Sender: No OFD packet to send [06:08:37]OFD Sender: No OFD packet to send [06:08:42]OFD Sender: No OFD packet to send [06:08:47]OFD Sender: No OFD packet to send [06:08:52]OFD Sender: No OFD packet to send [06:08:57]OFD Sender: No OFD packet to send [06:09:02]OFD Sender: No OFD packet to send [06:09:07]OFD Sender: No OFD packet to send [06:09:12]OFD Sender: No OFD packet to send [06:09:17]OFD Sender: No OFD packet to send [06:09:22]OFD Sender: No OFD packet to send [06:09:27]OFD Sender: No OFD packet to send [06:09:32]OFD Sender: No OFD packet to send [06:09:37]OFD Sender: No OFD packet to send [06:09:42]OFD Sender: No OFD packet to send [06:09:47]OFD Sender: No OFD packet to send [06:09:52]OFD Sender: No OFD packet to send [06:09:57]OFD Sender: No OFD packet to send [06:10:02]OFD Sender: No OFD packet to send [06:10:07]OFD Sender: No OFD packet to send [06:10:12]OFD Sender: No OFD packet to send [06:10:17]OFD Sender: No OFD packet to send [06:10:22]OFD Sender: No OFD packet to send [06:10:27]OFD Sender: No OFD packet to send [06:10:32]OFD Sender: No OFD packet to send [06:10:37]OFD Sender: No OFD packet to send [06:10:42]OFD Sender: No OFD packet to send [06:10:47]OFD Sender: No OFD packet to send [06:10:52]OFD Sender: No OFD packet to send [06:10:57]OFD Sender: No OFD packet to send [06:11:02]OFD Sender: No OFD packet to send [06:11:07]OFD Sender: No OFD packet to send [06:11:12]OFD Sender: No OFD packet to send [06:11:17]OFD Sender: No OFD packet to send [06:11:22]OFD Sender: No OFD packet to send [06:11:27]OFD Sender: No OFD packet to send [06:11:32]OFD Sender: No OFD packet to send [06:11:37]OFD Sender: No OFD packet to send [06:11:42]OFD Sender: No OFD packet to send [06:11:47]OFD Sender: No OFD packet to send [06:11:52]OFD Sender: No OFD packet to send [06:11:52]accept exits with 9 [06:11:52]New connection [06:11:52]New thread 3067518308 created [06:11:52]Thread 3067374948 joined [06:11:52]Waiting for new connection... [06:11:52] Sock 9.Parse request [06:11:52]Sock 9.Check first char [06:11:52]Sock 9.First char is OK [06:11:52]request: POST /json_proto HTTP/1.0 [06:11:52]Method: POST [06:11:52]URL: /json_proto [06:11:52]Method is POST - this is cgi request [06:11:52]url: /json_proto [06:11:52]query_string will be loaded in cgi processing [06:11:52]execute_cgi json_proto POST (null) [06:11:52]execute_cgi path=json_proto method=POST [06:11:52]POST find Content-Length [06:11:52]Host: 172.17.60.69:8080 [06:11:52]Content-Length: 902 [06:11:52]Content-Type: application/json [06:11:52] [06:11:52]POST finish read [06:11:52]Found Content-Length = 902 [06:11:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73340", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607065001445", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A Snickers 50,5\u0433", "price" : 59.00, "quantity" : 1.000, "sum" : 59.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 174.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:11:52]execute_script... [06:11:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73340", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607065001445", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A Snickers 50,5\u0433", "price" : 59.00, "quantity" : 1.000, "sum" : 59.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 174.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:11:52]POST & json_proto [06:11:52]process_json_proto [06:11:52]json parsed OK: [06:11:52]protocol is kg_v1.0 [06:11:52]action value=close_receipt [06:11:52]process_action close_receipt [06:11:52]cmd_close_receipt [06:11:52]MH_GetDate [06:11:52]Write to MH i2c: F0 00 00 1D 00 0C [06:11:52]Write i2c OK [06:11:52]MH_I2C_Read... [06:11:52]Read from MH i2c: F0 [06:11:52]MH_I2C_Read... [06:11:52]Read from MH i2c: F0 09 00 [06:11:52]MH_I2C_Read... [06:11:52]Read from MH i2c: F0 09 00 1D 00 00 A9 5E 5D 66 6A 96 4A 66 8F [06:11:52]GetLastDocTimeStamp 1717388661 [06:11:52]current date 1717395113 [06:11:52]FM_GetShiftState [06:11:52]SAM_PROTO_GetShiftState [06:11:52]wFMCommunicate request_size=4 [06:11:52]MH_SAM_APDU [06:11:52]CAPDU: 80 13 01 00 [06:11:52]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [06:11:52]Write i2c OK [06:11:52]MH_I2C_Read... [06:11:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:11:52]Read from MH i2c: E2 [06:11:52]MH_I2C_Read... [06:11:52]Read from MH i2c: E2 0E 00 [06:11:52]MH_I2C_Read... [06:11:52]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 67 [06:11:52]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [06:11:52]wFMCommunicate OK [06:11:52]SAM_PROTO_GetShiftState done [06:11:52]FM_GetShiftState done [06:11:52]opened in 1717373173 [06:11:52]opened+sec_in_day 1717459573 [06:11:52]quantity*price = 11500 [06:11:52]sum+1 = 11501 [06:11:52]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4607065001445 Шок батончик Snickers 50,5г 1.000 * 59.00 = 59.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 174.00 НСП 1% : 1.54 НДС 12% : 18.47 Наличными: 174.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 9 03.06.2024 06:11 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63751 ФПД: 19583571781435 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T061153&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63751&fm=19583571781435&tin=02508201610067®Number=0000000000092737&sum=17400 0 [06:11:54]StoreToDocumentArchive [06:11:54]shift 373 fd 63751 [06:11:54]save to /storage/0373/doc_00063751 [06:11:54]save last doc name /storage/0373/doc_00063751 to /storage/kkm_last_doc_name [06:11:54]save OK [06:11:54]Clear old archive folders... [06:11:54]ProcessDocumentItem done err = 0, tmpTLVsize=391 [06:11:54]tlvbuf is 00D194A0 [06:11:54]SAM_PROTO_ClearQueue [06:11:54]wFMCommunicate request_size=4 [06:11:54]MH_SAM_APDU [06:11:54]CAPDU: 80 09 00 00 [06:11:54]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [06:11:54]Write i2c OK [06:11:54]MH_I2C_Read... [06:11:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:11:54]Read from MH i2c: E2 [06:11:54]MH_I2C_Read... [06:11:54]Read from MH i2c: E2 03 00 [06:11:54]MH_I2C_Read... [06:11:54]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [06:11:54]RAPDU: 90 00 [06:11:54]wFMCommunicate OK [06:11:54]SAM_PROTO_ClearQueue done [06:11:54]KKMCreateOFDPacket [06:11:54]OFDProtocolAddRootSTLVToBuf [06:11:54]FM_MakeSignedData [06:11:54]FM_MakeSignedData [06:11:54]SAM_PROTO_SignData [06:11:54]wFMCommunicate request_size=4 [06:11:54]MH_SAM_APDU [06:11:54]CAPDU: 80 0D 01 02 [06:11:54]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [06:11:54]Write i2c OK [06:11:54]MH_I2C_Read... [06:11:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:11:54]Read from MH i2c: E2 [06:11:54]MH_I2C_Read... [06:11:54]Read from MH i2c: E2 03 00 [06:11:54]MH_I2C_Read... [06:11:54]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [06:11:54]RAPDU: 90 00 [06:11:54]wFMCommunicate OK [06:11:54]wFMCommunicate request_size=255 [06:11:54]MH_SAM_APDU [06:11:54]CAPDU: 80 0D 02 02 FA 03 00 87 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 43 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 [06:11:54]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 87 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 43 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 00 00 14 [06:11:54]Write i2c OK [06:11:54]MH_I2C_Read... [06:11:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:11:54]Read from MH i2c: E2 [06:11:54]MH_I2C_Read... [06:11:54]Read from MH i2c: E2 03 00 [06:11:54]MH_I2C_Read... [06:11:54]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [06:11:54]RAPDU: 90 00 [06:11:54]wFMCommunicate OK [06:11:54]wFMCommunicate request_size=150 [06:11:54]MH_SAM_APDU [06:11:54]CAPDU: 80 0D 02 02 91 01 00 01 F7 03 06 00 9A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 07 00 00 00 00 07 04 06 00 F8 43 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 A9 5E 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 07 F9 00 00 35 04 06 00 11 CF A7 D6 E7 3B [06:11:54]Write to MH i2c: E2 99 00 2E 00 80 0D 02 02 91 00 01 00 01 F7 03 06 00 9A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 07 00 00 00 00 07 04 06 00 F8 43 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 A9 5E 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 07 F9 00 00 35 04 06 00 11 CF A7 D6 E7 3B 00 00 D6 [06:11:54]Write i2c OK [06:11:54]MH_I2C_Read... [06:11:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:11:54]Read from MH i2c: E2 [06:11:54]MH_I2C_Read... [06:11:54]Read from MH i2c: E2 03 00 [06:11:54]MH_I2C_Read... [06:11:54]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [06:11:54]RAPDU: 90 00 [06:11:54]wFMCommunicate OK [06:11:54]wFMCommunicate request_size=4 [06:11:54]MH_SAM_APDU [06:11:54]CAPDU: 80 0D 03 02 [06:11:54]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [06:11:54]Write i2c OK [06:11:54]MH_I2C_Read... [06:11:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:11:54]Read from MH i2c: E2 [06:11:54]MH_I2C_Read... [06:11:54]Read from MH i2c: E2 0B 00 [06:11:54]MH_I2C_Read... [06:11:54]Read from MH i2c: E2 0B 00 2F 00 00 E2 42 0B EB DA DD 2F E5 90 00 90 [06:11:54]RAPDU: E2 42 0B EB DA DD 2F E5 90 00 [06:11:54]wFMCommunicate OK [06:11:54]SAM_PROTO_SignData done [06:11:54]FM_MakeSignedData done [06:11:54]CreateOFDProtocolMessage [06:11:54]wFMCommunicate request_size=4 [06:11:54]MH_SAM_APDU [06:11:54]CAPDU: 80 11 00 00 [06:11:54]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [06:11:54]Write i2c OK [06:11:54]MH_I2C_Read... [06:11:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:11:54]Read from MH i2c: E2 [06:11:54]MH_I2C_Read... [06:11:54]Read from MH i2c: E2 17 00 [06:11:54]MH_I2C_Read... [06:11:54]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 35 30 37 34 90 00 FC [06:11:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [06:11:54]wFMCommunicate OK [06:11:54]CreateOFDProtocolMessage done [06:11:54]OFDSenderStorePacket 63751 [06:11:54]StoreOFDPacket docnum=63751 [06:11:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 9B 01 00 00 EB 80 93 01 76 A0 5A 03 01 00 03 00 87 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 43 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 07 00 00 00 00 07 04 06 00 F8 43 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 A9 5E 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 07 F9 00 00 35 04 06 00 11 CF A7 D6 E7 3B E2 42 0B EB DA DD 2F E5 [06:11:54]CheckFolder [06:11:54]dirname=/storage/ofd_packets [06:11:54]CheckFolder done [06:11:54]ProducePacketName [06:11:54]name=ofd_packets/00063751 [06:11:54]NVStorageSaveData ofd_packets/00063751 [06:11:54]File name is /storage/ofd_packets/00063751 [06:11:54]Write 441 bytes [06:11:54]NVStorageSaveData done [06:11:54]OFDSenderStorePacket done [06:11:54]KKMCreateOFDPacket done [06:11:54]NVStorageSaveData kkm_last_timestamp [06:11:54]File name is /storage/kkm_last_timestamp [06:11:54]Write 4 bytes [06:11:54]NVStorageSaveData done [06:11:54]ExternCall_PrintAddStr [06:11:54]wPrintStart [06:11:54]Write to MH i2c: 01 00 00 31 00 31 [06:11:54]Write i2c OK [06:11:54]MH_I2C_Read... [06:11:54]Read from MH i2c: 01 [06:11:54]MH_I2C_Read... [06:11:54]Read from MH i2c: 01 07 00 [06:11:54]MH_I2C_Read... [06:11:54]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [06:11:54]RasterBufferAndPrint [06:11:54]line Счет N : (3)73340 [06:11:54]line ИНН: 02508201610067 [06:11:54]line Контрольно-Кассовый Чек [06:11:54]line ПРОДАЖА [06:11:54]line Товар: 2000036210013 [06:11:54]line Кофе Капучино (GABB TRADE) [06:11:54]line 1.000 * 115.00 [06:11:54]line = 115.00 [06:11:54]line НДС 12% НСП 1% [06:11:54]line > о реализуемом товаре [06:11:54]line Товар: 4607065001445 [06:11:55]line Шок батончик Snickers 50,5г [06:11:55]line 1.000 * 59.00 [06:11:55]line = 59.00 [06:11:55]line НДС 12% НСП 1% [06:11:55]line > о реализуемом товаре [06:11:55]line ИТОГО: 174.00 [06:11:55]line НСП 1% : 1.54 [06:11:55]line НДС 12% : 18.47 [06:11:55]line Наличными: 174.00 [06:11:55]line Безнал.: 0.00 [06:11:55]line Место: АЗС № 117 "Партнер Нефть" [06:11:55]OFD Sender: Processing packet 63751 [packets to send 14, broken 13] [06:11:55]ProducePacketName [06:11:55]name=ofd_packets/00063751 [06:11:55]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [06:11:55]line СНО: Общий режим [06:11:55]line Чек 9 03.06.2024 06:11 [06:11:55]line Смена: 373 ФФД: 1.0 [06:11:55]line ЗНМ: 0300000031 [06:11:55]line РНМ: 0000000000092737 [06:11:55]line Версия ККМ: 001 [06:11:55]line ФМ: 0000000000875074 [06:11:55]line ФД: 63751 [06:11:55]line ФПД: 19583571781435 [06:11:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T061153&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63751&fm=19583571781435&tin=02508201610067®Number=0000000000092737&sum=17400 [06:11:55]OFD Sender: To server: pG, [06:11:55]CommunicateWithHost lk.salyk.kg:30040 [06:11:55]ConnectInit lk.salyk.kg [06:11:55]line 0 [06:11:55]written 0, free lines is 4095 [06:11:55]Connected sock=10 [06:11:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 9B 01 00 00 EB 80 93 01 76 A0 5A 03 01 00 03 00 87 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 43 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 07 00 00 00 00 07 04 06 00 F8 43 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 A9 5E 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 07 F9 00 00 35 04 06 00 11 CF A7 D6 E7 3B E2 42 0B EB DA DD 2F E5 [06:11:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 43 29 47 00 0E 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 35 30 37 34 10 04 04 00 07 F9 00 00 F4 03 04 00 7C 0A 5D 66 B6 04 01 00 00 7A 88 29 F8 50 8D 60 9E [06:11:55]CommunicateWithHost err = 0 [06:11:55]CheckOFDResponse [06:11:55]1017 (14) - 77093643461234 [06:11:55]1041 (16) - 0000000000875074 [06:11:55]1040 (4) - 63751 [06:11:55]1012 (4) - 03.06.2024 00:12 [06:11:55]1206 (1) - 0 [06:11:55]OFD Sender: Remove packet 63751 [06:11:55]ProducePacketName [06:11:55]name=ofd_packets/00063751 [06:11:55]NVStorageDeleteData [06:11:55]Write to MH i2c: 01 00 00 5F 00 5F [06:11:55]Write i2c OK [06:11:55]MH_I2C_Read... [06:11:55]Read from MH i2c: 01 [06:11:55]MH_I2C_Read... [06:11:55]Read from MH i2c: 01 07 00 [06:11:55]MH_I2C_Read... [06:11:55]Read from MH i2c: 01 07 00 5F 00 00 00 00 00 00 A4 0C 16 [06:11:55]RasterBufferAndPrint [06:11:55]line [06:11:55]line [06:11:55]line [06:11:55]line [06:11:55]line [06:11:55]written 0, free lines is 3241 [06:11:55]MH_Cut [06:11:55]Write to MH i2c: D1 01 00 66 00 01 38 [06:11:55]Write i2c OK [06:11:55]MH_I2C_Read... [06:11:55]Read from MH i2c: D1 [06:11:55]MH_I2C_Read... [06:11:55]Read from MH i2c: D1 01 00 [06:11:55]MH_I2C_Read... [06:11:55]Read from MH i2c: D1 01 00 66 00 00 37 [06:11:55]Write to MH i2c: 01 00 00 67 00 67 [06:11:55]Write i2c OK [06:11:55]MH_I2C_Read... [06:11:55]OFD Sender: No OFD packet to send [06:11:56]*** Cut start [06:11:56]*** Partial cut [06:11:56]*** CUTSNS_PIN = 1 [06:11:56]*** CUTSNS_PIN = 0 [06:11:56]*** Brake cut motor [06:11:57]Read from MH i2c: 01 [06:11:57]MH_I2C_Read... [06:11:57]*** Stop cut motor [06:11:57]*** Cut end [06:11:57]Read from MH i2c: 01 07 00 [06:11:57]MH_I2C_Read... [06:11:57]Read from MH i2c: 01 07 00 67 00 00 00 00 00 00 FF 0F 7C [06:11:57]process_action close_receipt done [06:11:57]requested_data is exist [06:11:57]produce_requested_data [06:11:57]requested_item fm.sn is exist - process it [06:11:57]wFMCommunicate request_size=4 [06:11:57]MH_SAM_APDU [06:11:57]CAPDU: 80 11 00 00 [06:11:57]Write to MH i2c: E2 08 00 68 00 80 11 00 00 00 00 00 00 E2 [06:11:57]Write i2c OK [06:11:57]MH_I2C_Read... [06:11:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:11:57]Read from MH i2c: E2 [06:11:57]MH_I2C_Read... [06:11:57]Read from MH i2c: E2 17 00 [06:11:57]MH_I2C_Read... [06:11:57]Read from MH i2c: E2 17 00 68 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 34 [06:11:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [06:11:57]wFMCommunicate OK [06:11:57]requested_item fd.num is exist - process it [06:11:57]SAM_PROTO_GetFieldsCounters [06:11:57]wFMCommunicate request_size=4 [06:11:57]MH_SAM_APDU [06:11:57]CAPDU: 80 13 00 00 [06:11:57]Write to MH i2c: E2 08 00 69 00 80 13 00 00 00 00 00 00 E5 [06:11:57]Write i2c OK [06:11:57]MH_I2C_Read... [06:11:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:11:57]Read from MH i2c: E2 [06:11:57]MH_I2C_Read... [06:11:57]Read from MH i2c: E2 62 00 [06:11:57]MH_I2C_Read... [06:11:57]Read from MH i2c: E2 62 00 69 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 07 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 99 [06:11: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 07 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:11:57]wFMCommunicate OK [06:11:57]SAM_PROTO_GetFieldsCounters done [06:11:57]requested_item shift.num is exist - process it [06:11:57]requested_item shift.opened is exist - process it [06:11:57]req_shift_opened [06:11:57]FM_GetShiftState [06:11:57]SAM_PROTO_GetShiftState [06:11:57]wFMCommunicate request_size=4 [06:11:57]MH_SAM_APDU [06:11:57]CAPDU: 80 13 01 00 [06:11:57]Write to MH i2c: E2 08 00 6A 00 80 13 01 00 00 00 00 00 E7 [06:11:57]Write i2c OK [06:11:57]MH_I2C_Read... [06:11:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:11:57]Read from MH i2c: E2 [06:11:57]MH_I2C_Read... [06:11:57]Read from MH i2c: E2 0E 00 [06:11:57]MH_I2C_Read... [06:11:57]Read from MH i2c: E2 0E 00 6A 00 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 B3 [06:11:57]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [06:11:57]wFMCommunicate OK [06:11:57]SAM_PROTO_GetShiftState done [06:11:57]FM_GetShiftState done [06:11:57]req_shift_opened done [06:11:57]requested_item shift.open_date is exist - process it [06:11:57]req_shift_open_date [06:11:57]req_shift_open_date done [06:11:57]produce_requested_data done [06:11:57]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63751,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [06:11:57]process_action_free close_receipt [06:11:57]json_value_free [06:11:57]json_value_free done [06:11:57]process_json_proto returns [06:11:57]Send response to host [06:11:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63751,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [06:11:57]free response buf [06:11:57]execute_script done [06:11:57]execute_script returns [06:11:57]free content buf [06:11:57]Sock 9.Close socket [06:11:57]Sock 9.Thread stoped [06:12:00]OFD Sender: No OFD packet to send [06:12:05]OFD Sender: No OFD packet to send [06:12:10]OFD Sender: No OFD packet to send [06:12:15]OFD Sender: No OFD packet to send [06:12:20]OFD Sender: No OFD packet to send [06:12:25]OFD Sender: No OFD packet to send [06:12:30]OFD Sender: No OFD packet to send [06:12:35]OFD Sender: No OFD packet to send [06:12:40]OFD Sender: No OFD packet to send [06:12:45]OFD Sender: No OFD packet to send [06:12:50]OFD Sender: No OFD packet to send [06:12:55]OFD Sender: No OFD packet to send [06:13:00]OFD Sender: No OFD packet to send [06:13:05]OFD Sender: No OFD packet to send [06:13:10]OFD Sender: No OFD packet to send [06:13:15]OFD Sender: No OFD packet to send [06:13:20]OFD Sender: No OFD packet to send [06:13:25]OFD Sender: No OFD packet to send [06:13:30]OFD Sender: No OFD packet to send [06:13:35]OFD Sender: No OFD packet to send [06:13:40]OFD Sender: No OFD packet to send [06:13:45]OFD Sender: No OFD packet to send [06:13:50]OFD Sender: No OFD packet to send [06:13:55]OFD Sender: No OFD packet to send [06:14:00]OFD Sender: No OFD packet to send [06:14:05]OFD Sender: No OFD packet to send [06:14:10]OFD Sender: No OFD packet to send [06:14:15]OFD Sender: No OFD packet to send [06:14:20]OFD Sender: No OFD packet to send [06:14:25]OFD Sender: No OFD packet to send [06:14:30]OFD Sender: No OFD packet to send [06:14:35]OFD Sender: No OFD packet to send [06:14:40]OFD Sender: No OFD packet to send [06:14:45]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:35]accept exits with 7 [06:17:35]New connection [06:17:35]New thread 3067374948 created [06:17:35]Thread 3067518308 joined [06:17:35]Waiting for new connection... [06:17:35] Sock 7.Parse request [06:17:35]Sock 7.Check first char [06:17:35]Sock 7.First char is OK [06:17:35]request: POST /json_proto HTTP/1.0 [06:17:35]Method: POST [06:17:35]URL: /json_proto [06:17:35]Method is POST - this is cgi request [06:17:35]url: /json_proto [06:17:35]query_string will be loaded in cgi processing [06:17:35]execute_cgi json_proto POST (null) [06:17:35]execute_cgi path=json_proto method=POST [06:17:35]POST find Content-Length [06:17:35]Host: 172.17.60.69:8080 [06:17:35]Content-Length: 645 [06:17:35]Content-Type: application/json [06:17:35] [06:17:35]POST finish read [06:17:35]Found Content-Length = 645 [06:17:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73341", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 4.000, "sum" : 500.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 500.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:17:35]execute_script... [06:17:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73341", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 4.000, "sum" : 500.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 500.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:17:35]POST & json_proto [06:17:35]process_json_proto [06:17:35]json parsed OK: [06:17:35]protocol is kg_v1.0 [06:17:35]action value=close_receipt [06:17:35]process_action close_receipt [06:17:35]cmd_close_receipt [06:17:35]MH_GetDate [06:17:35]Write to MH i2c: F0 00 00 6B 00 5A [06:17:35]Write i2c OK [06:17:35]MH_I2C_Read... [06:17:35]Read from MH i2c: F0 [06:17:35]MH_I2C_Read... [06:17:35]Read from MH i2c: F0 09 00 [06:17:35]MH_I2C_Read... [06:17:35]Read from MH i2c: F0 09 00 6B 00 00 00 60 5D 66 6A 96 4A 66 36 [06:17:35]GetLastDocTimeStamp 1717395113 [06:17:35]current date 1717395456 [06:17:35]FM_GetShiftState [06:17:35]SAM_PROTO_GetShiftState [06:17:35]wFMCommunicate request_size=4 [06:17:35]MH_SAM_APDU [06:17:35]CAPDU: 80 13 01 00 [06:17:35]Write to MH i2c: E2 08 00 6C 00 80 13 01 00 00 00 00 00 E9 [06:17:35]Write i2c OK [06:17:35]MH_I2C_Read... [06:17:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:17:35]Read from MH i2c: E2 [06:17:35]MH_I2C_Read... [06:17:35]Read from MH i2c: E2 0E 00 [06:17:35]MH_I2C_Read... [06:17:35]Read from MH i2c: E2 0E 00 6C 00 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 B5 [06:17:35]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [06:17:35]wFMCommunicate OK [06:17:35]SAM_PROTO_GetShiftState done [06:17:35]FM_GetShiftState done [06:17:35]opened in 1717373173 [06:17:35]opened+sec_in_day 1717459573 [06:17:35]quantity*price = 50000 [06:17:35]sum+1 = 50001 [06:17:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 10 03.06.2024 06:17 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63752 ФПД: 155265604456099 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T061736&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63752&fm=155265604456099&tin=02508201610067®Number=0000000000092737&sum=50000 0 [06:17:36]StoreToDocumentArchive [06:17:36]shift 373 fd 63752 [06:17:36]save to /storage/0373/doc_00063752 [06:17:36]save last doc name /storage/0373/doc_00063752 to /storage/kkm_last_doc_name [06:17:36]save OK [06:17:36]Clear old archive folders... [06:17:36]ProcessDocumentItem done err = 0, tmpTLVsize=282 [06:17:36]tlvbuf is 00D28710 [06:17:36]SAM_PROTO_ClearQueue [06:17:36]wFMCommunicate request_size=4 [06:17:36]MH_SAM_APDU [06:17:36]CAPDU: 80 09 00 00 [06:17:36]Write to MH i2c: E2 08 00 79 00 80 09 00 00 00 00 00 00 EB [06:17:36]Write i2c OK [06:17:36]MH_I2C_Read... [06:17:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:17:36]Read from MH i2c: E2 [06:17:36]MH_I2C_Read... [06:17:36]Read from MH i2c: E2 03 00 [06:17:36]MH_I2C_Read... [06:17:36]Read from MH i2c: E2 03 00 79 00 00 90 00 ED [06:17:36]RAPDU: 90 00 [06:17:36]wFMCommunicate OK [06:17:36]SAM_PROTO_ClearQueue done [06:17:36]KKMCreateOFDPacket [06:17:36]OFDProtocolAddRootSTLVToBuf [06:17:36]FM_MakeSignedData [06:17:36]FM_MakeSignedData [06:17:36]SAM_PROTO_SignData [06:17:36]wFMCommunicate request_size=4 [06:17:36]MH_SAM_APDU [06:17:36]CAPDU: 80 0D 01 02 [06:17:36]Write to MH i2c: E2 08 00 7A 00 80 0D 01 02 00 00 00 00 F3 [06:17:36]Write i2c OK [06:17:36]MH_I2C_Read... [06:17:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:17:36]Read from MH i2c: E2 [06:17:36]MH_I2C_Read... [06:17:36]Read from MH i2c: E2 03 00 [06:17:36]MH_I2C_Read... [06:17:36]Read from MH i2c: E2 03 00 7A 00 00 90 00 EE [06:17:36]RAPDU: 90 00 [06:17:36]wFMCommunicate OK [06:17:36]wFMCommunicate request_size=255 [06:17:36]MH_SAM_APDU [06:17:36]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 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 00 60 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 [06:17:36]Write to MH i2c: E2 02 01 7B 00 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 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 00 60 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 00 00 72 [06:17:36]Write i2c OK [06:17:36]MH_I2C_Read... [06:17:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:17:37]Read from MH i2c: E2 [06:17:37]MH_I2C_Read... [06:17:37]Read from MH i2c: E2 03 00 [06:17:37]MH_I2C_Read... [06:17:37]Read from MH i2c: E2 03 00 7B 00 00 90 00 EF [06:17:37]RAPDU: 90 00 [06:17:37]wFMCommunicate OK [06:17:37]wFMCommunicate request_size=41 [06:17:37]MH_SAM_APDU [06:17:37]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 08 F9 00 00 35 04 06 00 8D 36 97 33 0E A3 [06:17:37]Write to MH i2c: E2 2C 00 7C 00 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 08 F9 00 00 35 04 06 00 8D 36 97 33 0E A3 00 00 03 [06:17:37]Write i2c OK [06:17:37]MH_I2C_Read... [06:17:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:17:37]Read from MH i2c: E2 [06:17:37]MH_I2C_Read... [06:17:37]Read from MH i2c: E2 03 00 [06:17:37]MH_I2C_Read... [06:17:37]Read from MH i2c: E2 03 00 7C 00 00 90 00 F0 [06:17:37]RAPDU: 90 00 [06:17:37]wFMCommunicate OK [06:17:37]wFMCommunicate request_size=4 [06:17:37]MH_SAM_APDU [06:17:37]CAPDU: 80 0D 03 02 [06:17:37]Write to MH i2c: E2 08 00 7D 00 80 0D 03 02 00 00 00 00 F8 [06:17:37]Write i2c OK [06:17:37]MH_I2C_Read... [06:17:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:17:37]Read from MH i2c: E2 [06:17:37]MH_I2C_Read... [06:17:37]Read from MH i2c: E2 0B 00 [06:17:37]MH_I2C_Read... [06:17:37]Read from MH i2c: E2 0B 00 7D 00 00 B5 53 8D 5C 56 35 37 6C 90 00 18 [06:17:37]RAPDU: B5 53 8D 5C 56 35 37 6C 90 00 [06:17:37]wFMCommunicate OK [06:17:37]SAM_PROTO_SignData done [06:17:37]FM_MakeSignedData done [06:17:37]CreateOFDProtocolMessage [06:17:37]wFMCommunicate request_size=4 [06:17:37]MH_SAM_APDU [06:17:37]CAPDU: 80 11 00 00 [06:17:37]Write to MH i2c: E2 08 00 7E 00 80 11 00 00 00 00 00 00 F8 [06:17:37]Write i2c OK [06:17:37]MH_I2C_Read... [06:17:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:17:37]Read from MH i2c: E2 [06:17:37]MH_I2C_Read... [06:17:37]Read from MH i2c: E2 17 00 [06:17:37]MH_I2C_Read... [06:17:37]Read from MH i2c: E2 17 00 7E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 4A [06:17:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [06:17:37]wFMCommunicate OK [06:17:37]CreateOFDProtocolMessage done [06:17:37]OFDSenderStorePacket 63752 [06:17:37]StoreOFDPacket docnum=63752 [06:17:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 2E 01 00 00 91 20 26 01 07 1B 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 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 00 60 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 08 F9 00 00 35 04 06 00 8D 36 97 33 0E A3 B5 53 8D 5C 56 35 37 6C [06:17:37]CheckFolder [06:17:37]dirname=/storage/ofd_packets [06:17:37]CheckFolder done [06:17:37]ProducePacketName [06:17:37]name=ofd_packets/00063752 [06:17:37]NVStorageSaveData ofd_packets/00063752 [06:17:37]File name is /storage/ofd_packets/00063752 [06:17:37]Write 332 bytes [06:17:37]NVStorageSaveData done [06:17:37]OFDSenderStorePacket done [06:17:37]KKMCreateOFDPacket done [06:17:37]NVStorageSaveData kkm_last_timestamp [06:17:37]File name is /storage/kkm_last_timestamp [06:17:37]Write 4 bytes [06:17:37]NVStorageSaveData done [06:17:37]ExternCall_PrintAddStr [06:17:37]wPrintStart [06:17:37]Write to MH i2c: 01 00 00 7F 00 7F [06:17:37]Write i2c OK [06:17:37]MH_I2C_Read... [06:17:37]Read from MH i2c: 01 [06:17:37]MH_I2C_Read... [06:17:37]Read from MH i2c: 01 07 00 [06:17:37]MH_I2C_Read... [06:17:37]Read from MH i2c: 01 07 00 7F 00 00 00 00 00 00 FF 0F 94 [06:17:37]RasterBufferAndPrint [06:17:37]line Счет N : (3)73341 [06:17:37]line ИНН: 02508201610067 [06:17:37]line Контрольно-Кассовый Чек [06:17:37]line ПРОДАЖА [06:17:37]line Товар: 2000036220012 [06:17:37]line Кофе Капучино XL(GABB TRADE) [06:17:37]line 4.000 * 125.00 [06:17:37]line = 500.00 [06:17:37]line НДС 12% НСП 1% [06:17:37]line > о реализуемом товаре [06:17:37]line ИТОГО: 500.00 [06:17:37]line НСП 1% : 4.42 [06:17:37]line НДС 12% : 53.10 [06:17:37]line Наличными: 500.00 [06:17:37]line Безнал.: 0.00 [06:17:37]line Место: АЗС № 117 "Партнер Нефть" [06:17:37]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [06:17:37]line СНО: Общий режим [06:17:37]line Чек 10 03.06.2024 06:17 [06:17:37]line Смена: 373 ФФД: 1.0 [06:17:37]line ЗНМ: 0300000031 [06:17:37]line РНМ: 0000000000092737 [06:17:37]line Версия ККМ: 001 [06:17:37]line ФМ: 0000000000875074 [06:17:37]line ФД: 63752 [06:17:37]line ФПД: 155265604456099 [06:17:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T061736&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63752&fm=155265604456099&tin=02508201610067®Number=0000000000092737&sum=50000 [06:17:37]line 0 [06:17:37]OFD Sender: Processing packet 63752 [packets to send 14, broken 13] [06:17:37]ProducePacketName [06:17:37]name=ofd_packets/00063752 [06:17:37]OFD Sender: To server: pG, [06:17:37]CommunicateWithHost lk.salyk.kg:30040 [06:17:37]ConnectInit lk.salyk.kg [06:17:37]written 0, free lines is 4095 [06:17:37]Connected sock=10 [06:17:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 2E 01 00 00 91 20 26 01 07 1B 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 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 00 60 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 08 F9 00 00 35 04 06 00 8D 36 97 33 0E A3 B5 53 8D 5C 56 35 37 6C [06:17:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 5E 13 47 00 94 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 35 30 37 34 10 04 04 00 08 F9 00 00 F4 03 04 00 D2 0B 5D 66 B6 04 01 00 00 38 DD 4F CD F4 A4 A4 DB [06:17:37]CommunicateWithHost err = 0 [06:17:37]CheckOFDResponse [06:17:37]1017 (14) - 77093643461234 [06:17:37]1041 (16) - 0000000000875074 [06:17:37]1040 (4) - 63752 [06:17:37]1012 (4) - 03.06.2024 00:18 [06:17:37]1206 (1) - 0 [06:17:37]OFD Sender: Remove packet 63752 [06:17:37]ProducePacketName [06:17:37]name=ofd_packets/00063752 [06:17:37]NVStorageDeleteData [06:17:38]Write to MH i2c: 01 00 00 A8 00 A8 [06:17:38]Write i2c OK [06:17:38]MH_I2C_Read... [06:17:38]Read from MH i2c: 01 [06:17:38]MH_I2C_Read... [06:17:38]Read from MH i2c: 01 07 00 [06:17:38]MH_I2C_Read... [06:17:38]Read from MH i2c: 01 07 00 A8 00 00 00 00 00 00 E3 0C 9E [06:17:38]RasterBufferAndPrint [06:17:38]line [06:17:38]line [06:17:38]line [06:17:38]line [06:17:38]line [06:17:38]written 0, free lines is 3305 [06:17:38]MH_Cut [06:17:38]Write to MH i2c: D1 01 00 AF 00 01 81 [06:17:38]Write i2c OK [06:17:38]MH_I2C_Read... [06:17:38]Read from MH i2c: D1 [06:17:38]MH_I2C_Read... [06:17:38]Read from MH i2c: D1 01 00 [06:17:38]MH_I2C_Read... [06:17:38]Read from MH i2c: D1 01 00 AF 00 00 80 [06:17:38]Write to MH i2c: 01 00 00 B0 00 B0 [06:17:38]Write i2c OK [06:17:38]MH_I2C_Read... [06:17:38]OFD Sender: No OFD packet to send [06:17:38]*** Cut start [06:17:38]*** Partial cut [06:17:38]*** CUTSNS_PIN = 1 [06:17:38]*** CUTSNS_PIN = 0 [06:17:39]*** Brake cut motor [06:17:39]Read from MH i2c: 01 [06:17:39]MH_I2C_Read... [06:17:39]*** Stop cut motor [06:17:39]*** Cut end [06:17:39]Read from MH i2c: 01 07 00 [06:17:39]MH_I2C_Read... [06:17:39]Read from MH i2c: 01 07 00 B0 00 00 00 00 00 00 FF 0F C5 [06:17:39]process_action close_receipt done [06:17:39]requested_data is exist [06:17:39]produce_requested_data [06:17:39]requested_item fm.sn is exist - process it [06:17:39]wFMCommunicate request_size=4 [06:17:39]MH_SAM_APDU [06:17:39]CAPDU: 80 11 00 00 [06:17:39]Write to MH i2c: E2 08 00 B1 00 80 11 00 00 00 00 00 00 2B [06:17:39]Write i2c OK [06:17:39]MH_I2C_Read... [06:17:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:17:39]Read from MH i2c: E2 [06:17:39]MH_I2C_Read... [06:17:39]Read from MH i2c: E2 17 00 [06:17:39]MH_I2C_Read... [06:17:39]Read from MH i2c: E2 17 00 B1 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 7D [06:17:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [06:17:39]wFMCommunicate OK [06:17:39]requested_item fd.num is exist - process it [06:17:39]SAM_PROTO_GetFieldsCounters [06:17:39]wFMCommunicate request_size=4 [06:17:39]MH_SAM_APDU [06:17:39]CAPDU: 80 13 00 00 [06:17:39]Write to MH i2c: E2 08 00 B2 00 80 13 00 00 00 00 00 00 2E [06:17:39]Write i2c OK [06:17:39]MH_I2C_Read... [06:17:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:17:39]Read from MH i2c: E2 [06:17:39]MH_I2C_Read... [06:17:39]Read from MH i2c: E2 62 00 [06:17:39]MH_I2C_Read... [06:17:39]Read from MH i2c: E2 62 00 B2 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 08 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 E6 [06:17:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 08 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:17:39]wFMCommunicate OK [06:17:39]SAM_PROTO_GetFieldsCounters done [06:17:39]requested_item shift.num is exist - process it [06:17:39]requested_item shift.opened is exist - process it [06:17:39]req_shift_opened [06:17:39]FM_GetShiftState [06:17:39]SAM_PROTO_GetShiftState [06:17:39]wFMCommunicate request_size=4 [06:17:39]MH_SAM_APDU [06:17:39]CAPDU: 80 13 01 00 [06:17:39]Write to MH i2c: E2 08 00 B3 00 80 13 01 00 00 00 00 00 30 [06:17:39]Write i2c OK [06:17:39]MH_I2C_Read... [06:17:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:17:39]Read from MH i2c: E2 [06:17:39]MH_I2C_Read... [06:17:39]Read from MH i2c: E2 0E 00 [06:17:39]MH_I2C_Read... [06:17:39]Read from MH i2c: E2 0E 00 B3 00 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 FC [06:17:39]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [06:17:39]wFMCommunicate OK [06:17:39]SAM_PROTO_GetShiftState done [06:17:39]FM_GetShiftState done [06:17:39]req_shift_opened done [06:17:39]requested_item shift.open_date is exist - process it [06:17:39]req_shift_open_date [06:17:39]req_shift_open_date done [06:17:39]produce_requested_data done [06:17:39]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63752,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [06:17:39]process_action_free close_receipt [06:17:39]json_value_free [06:17:39]json_value_free done [06:17:39]process_json_proto returns [06:17:39]Send response to host [06:17:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63752,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [06:17:39]free response buf [06:17:39]execute_script done [06:17:39]execute_script returns [06:17:39]free content buf [06:17:39]Sock 7.Close socket [06:17:39]Sock 7.Thread stoped [06:17:43]OFD Sender: No OFD packet to send [06:17:48]OFD Sender: No OFD packet to send [06:17:53]OFD Sender: No OFD packet to send [06:17:58]OFD Sender: No OFD packet to send [06:18:03]OFD Sender: No OFD packet to send [06:18:08]OFD Sender: No OFD packet to send [06:18:13]OFD Sender: No OFD packet to send [06:18:18]OFD Sender: No OFD packet to send [06:18:23]OFD Sender: No OFD packet to send [06:18:24]accept exits with 9 [06:18:24]New connection [06:18:24]New thread 3067518308 created [06:18:24]Thread 3067374948 joined [06:18:24]Waiting for new connection... [06:18:24] Sock 9.Parse request [06:18:24]Sock 9.Check first char [06:18:24]Sock 9.First char is OK [06:18:24]request: POST /json_proto HTTP/1.0 [06:18:24]Method: POST [06:18:24]URL: /json_proto [06:18:24]Method is POST - this is cgi request [06:18:24]url: /json_proto [06:18:24]query_string will be loaded in cgi processing [06:18:24]execute_cgi json_proto POST (null) [06:18:24]execute_cgi path=json_proto method=POST [06:18:24]POST find Content-Length [06:18:24]Host: 172.17.60.69:8080 [06:18:24]Content-Length: 643 [06:18:24]Content-Type: application/json [06:18:24] [06:18:24]POST finish read [06:18:24]Found Content-Length = 643 [06:18:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73342", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 2.000, "sum" : 230.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 230.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:18:24]execute_script... [06:18:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73342", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 2.000, "sum" : 230.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 230.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:18:24]POST & json_proto [06:18:24]process_json_proto [06:18:24]json parsed OK: [06:18:24]protocol is kg_v1.0 [06:18:24]action value=close_receipt [06:18:24]process_action close_receipt [06:18:24]cmd_close_receipt [06:18:24]MH_GetDate [06:18:24]Write to MH i2c: F0 00 00 B4 00 A3 [06:18:24]Write i2c OK [06:18:24]MH_I2C_Read... [06:18:24]Read from MH i2c: F0 [06:18:24]MH_I2C_Read... [06:18:24]Read from MH i2c: F0 09 00 [06:18:24]MH_I2C_Read... [06:18:24]Read from MH i2c: F0 09 00 B4 00 00 31 60 5D 66 6A 96 4A 66 B0 [06:18:24]GetLastDocTimeStamp 1717395456 [06:18:24]current date 1717395505 [06:18:24]FM_GetShiftState [06:18:24]SAM_PROTO_GetShiftState [06:18:24]wFMCommunicate request_size=4 [06:18:24]MH_SAM_APDU [06:18:24]CAPDU: 80 13 01 00 [06:18:24]Write to MH i2c: E2 08 00 B5 00 80 13 01 00 00 00 00 00 32 [06:18:24]Write i2c OK [06:18:24]MH_I2C_Read... [06:18:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:18:24]Read from MH i2c: E2 [06:18:24]MH_I2C_Read... [06:18:24]Read from MH i2c: E2 0E 00 [06:18:24]MH_I2C_Read... [06:18:24]Read from MH i2c: E2 0E 00 B5 00 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 FE [06:18:24]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [06:18:24]wFMCommunicate OK [06:18:24]SAM_PROTO_GetShiftState done [06:18:24]FM_GetShiftState done [06:18:24]opened in 1717373173 [06:18:24]opened+sec_in_day 1717459573 [06:18:24]quantity*price = 23000 [06:18:24]sum+1 = 23001 [06:18:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 230.00 НСП 1% : 2.03 НДС 12% : 24.42 Наличными: 230.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 11 03.06.2024 06:18 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63753 ФПД: 153948311441881 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T061825&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63753&fm=153948311441881&tin=02508201610067®Number=0000000000092737&sum=23000 0 [06:18:25]StoreToDocumentArchive [06:18:25]shift 373 fd 63753 [06:18:25]save to /storage/0373/doc_00063753 [06:18:25]save last doc name /storage/0373/doc_00063753 to /storage/kkm_last_doc_name [06:18:25]save OK [06:18:25]Clear old archive folders... [06:18:25]ProcessDocumentItem done err = 0, tmpTLVsize=280 [06:18:25]tlvbuf is 00D37180 [06:18:25]SAM_PROTO_ClearQueue [06:18:25]wFMCommunicate request_size=4 [06:18:25]MH_SAM_APDU [06:18:25]CAPDU: 80 09 00 00 [06:18:25]Write to MH i2c: E2 08 00 C2 00 80 09 00 00 00 00 00 00 34 [06:18:25]Write i2c OK [06:18:25]MH_I2C_Read... [06:18:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:18:25]Read from MH i2c: E2 [06:18:25]MH_I2C_Read... [06:18:25]Read from MH i2c: E2 03 00 [06:18:25]MH_I2C_Read... [06:18:25]Read from MH i2c: E2 03 00 C2 00 00 90 00 36 [06:18:25]RAPDU: 90 00 [06:18:25]wFMCommunicate OK [06:18:25]SAM_PROTO_ClearQueue done [06:18:25]KKMCreateOFDPacket [06:18:25]OFDProtocolAddRootSTLVToBuf [06:18:25]FM_MakeSignedData [06:18:25]FM_MakeSignedData [06:18:25]SAM_PROTO_SignData [06:18:25]wFMCommunicate request_size=4 [06:18:25]MH_SAM_APDU [06:18:25]CAPDU: 80 0D 01 02 [06:18:25]Write to MH i2c: E2 08 00 C3 00 80 0D 01 02 00 00 00 00 3C [06:18:25]Write i2c OK [06:18:25]MH_I2C_Read... [06:18:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:18:26]Read from MH i2c: E2 [06:18:26]MH_I2C_Read... [06:18:26]Read from MH i2c: E2 03 00 [06:18:26]MH_I2C_Read... [06:18:26]Read from MH i2c: E2 03 00 C3 00 00 90 00 37 [06:18:26]RAPDU: 90 00 [06:18:26]wFMCommunicate OK [06:18:26]wFMCommunicate request_size=255 [06:18:26]MH_SAM_APDU [06:18:26]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 09 00 00 00 00 07 04 06 00 D8 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 31 60 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 [06:18:26]Write to MH i2c: E2 02 01 C4 00 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 09 00 00 00 00 07 04 06 00 D8 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 31 60 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 00 00 BA [06:18:26]Write i2c OK [06:18:26]MH_I2C_Read... [06:18:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:18:26]Read from MH i2c: E2 [06:18:26]MH_I2C_Read... [06:18:26]Read from MH i2c: E2 03 00 [06:18:26]MH_I2C_Read... [06:18:26]Read from MH i2c: E2 03 00 C4 00 00 90 00 38 [06:18:26]RAPDU: 90 00 [06:18:26]wFMCommunicate OK [06:18:26]wFMCommunicate request_size=39 [06:18:26]MH_SAM_APDU [06:18:26]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 09 F9 00 00 35 04 06 00 8C 03 E2 6A D1 D9 [06:18:26]Write to MH i2c: E2 2A 00 C5 00 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 09 F9 00 00 35 04 06 00 8C 03 E2 6A D1 D9 00 00 80 [06:18:26]Write i2c OK [06:18:26]MH_I2C_Read... [06:18:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:18:26]Read from MH i2c: E2 [06:18:26]MH_I2C_Read... [06:18:26]Read from MH i2c: E2 03 00 [06:18:26]MH_I2C_Read... [06:18:26]Read from MH i2c: E2 03 00 C5 00 00 90 00 39 [06:18:26]RAPDU: 90 00 [06:18:26]wFMCommunicate OK [06:18:26]wFMCommunicate request_size=4 [06:18:26]MH_SAM_APDU [06:18:26]CAPDU: 80 0D 03 02 [06:18:26]Write to MH i2c: E2 08 00 C6 00 80 0D 03 02 00 00 00 00 41 [06:18:26]Write i2c OK [06:18:26]MH_I2C_Read... [06:18:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:18:26]Read from MH i2c: E2 [06:18:26]MH_I2C_Read... [06:18:26]Read from MH i2c: E2 0B 00 [06:18:26]MH_I2C_Read... [06:18:26]Read from MH i2c: E2 0B 00 C6 00 00 B4 6F 98 AA AC 33 88 12 90 00 20 [06:18:26]RAPDU: B4 6F 98 AA AC 33 88 12 90 00 [06:18:26]wFMCommunicate OK [06:18:26]SAM_PROTO_SignData done [06:18:26]FM_MakeSignedData done [06:18:26]CreateOFDProtocolMessage [06:18:26]wFMCommunicate request_size=4 [06:18:26]MH_SAM_APDU [06:18:26]CAPDU: 80 11 00 00 [06:18:26]Write to MH i2c: E2 08 00 C7 00 80 11 00 00 00 00 00 00 41 [06:18:26]Write i2c OK [06:18:26]MH_I2C_Read... [06:18:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:18:26]Read from MH i2c: E2 [06:18:26]MH_I2C_Read... [06:18:26]Read from MH i2c: E2 17 00 [06:18:26]MH_I2C_Read... [06:18:26]Read from MH i2c: E2 17 00 C7 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 93 [06:18:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [06:18:26]wFMCommunicate OK [06:18:26]CreateOFDProtocolMessage done [06:18:26]OFDSenderStorePacket 63753 [06:18:26]StoreOFDPacket docnum=63753 [06:18:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 2C 01 00 00 29 2D 24 01 37 47 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 09 00 00 00 00 07 04 06 00 D8 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 31 60 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 09 F9 00 00 35 04 06 00 8C 03 E2 6A D1 D9 B4 6F 98 AA AC 33 88 12 [06:18:26]CheckFolder [06:18:26]dirname=/storage/ofd_packets [06:18:26]CheckFolder done [06:18:26]ProducePacketName [06:18:26]name=ofd_packets/00063753 [06:18:26]NVStorageSaveData ofd_packets/00063753 [06:18:26]File name is /storage/ofd_packets/00063753 [06:18:26]Write 330 bytes [06:18:26]NVStorageSaveData done [06:18:26]OFDSenderStorePacket done [06:18:26]KKMCreateOFDPacket done [06:18:26]NVStorageSaveData kkm_last_timestamp [06:18:26]File name is /storage/kkm_last_timestamp [06:18:26]Write 4 bytes [06:18:26]NVStorageSaveData done [06:18:26]ExternCall_PrintAddStr [06:18:26]wPrintStart [06:18:26]Write to MH i2c: 01 00 00 C8 00 C8 [06:18:26]Write i2c OK [06:18:26]MH_I2C_Read... [06:18:26]Read from MH i2c: 01 [06:18:26]MH_I2C_Read... [06:18:26]Read from MH i2c: 01 07 00 [06:18:26]MH_I2C_Read... [06:18:26]Read from MH i2c: 01 07 00 C8 00 00 00 00 00 00 FF 0F DD [06:18:26]RasterBufferAndPrint [06:18:26]line Счет N : (3)73342 [06:18:26]line ИНН: 02508201610067 [06:18:26]line Контрольно-Кассовый Чек [06:18:26]line ПРОДАЖА [06:18:26]line Товар: 2000036210013 [06:18:26]line Кофе Капучино (GABB TRADE) [06:18:26]line 2.000 * 115.00 [06:18:26]line = 230.00 [06:18:26]line НДС 12% НСП 1% [06:18:26]line > о реализуемом товаре [06:18:26]line ИТОГО: 230.00 [06:18:26]line НСП 1% : 2.03 [06:18:26]line НДС 12% : 24.42 [06:18:26]line Наличными: 230.00 [06:18:26]line Безнал.: 0.00 [06:18:26]line Место: АЗС № 117 "Партнер Нефть" [06:18:26]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [06:18:26]line СНО: Общий режим [06:18:26]line Чек 11 03.06.2024 06:18 [06:18:26]line Смена: 373 ФФД: 1.0 [06:18:26]line ЗНМ: 0300000031 [06:18:26]line РНМ: 0000000000092737 [06:18:26]line Версия ККМ: 001 [06:18:26]line ФМ: 0000000000875074 [06:18:26]line ФД: 63753 [06:18:26]line ФПД: 153948311441881 [06:18:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T061825&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63753&fm=153948311441881&tin=02508201610067®Number=0000000000092737&sum=23000 [06:18:26]line 0 [06:18:26]OFD Sender: Processing packet 63753 [packets to send 14, broken 13] [06:18:26]ProducePacketName [06:18:26]name=ofd_packets/00063753 [06:18:26]OFD Sender: To server: pG, [06:18:26]CommunicateWithHost lk.salyk.kg:30040 [06:18:26]ConnectInit lk.salyk.kg [06:18:26]written 0, free lines is 4095 [06:18:26]Connected sock=10 [06:18:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 2C 01 00 00 29 2D 24 01 37 47 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 09 00 00 00 00 07 04 06 00 D8 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 31 60 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 09 F9 00 00 35 04 06 00 8C 03 E2 6A D1 D9 B4 6F 98 AA AC 33 88 12 [06:18:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 2D C9 47 00 1D 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 35 30 37 34 10 04 04 00 09 F9 00 00 F4 03 04 00 03 0C 5D 66 B6 04 01 00 00 45 8D 6D AA 90 5F 4E B6 [06:18:27]CommunicateWithHost err = 0 [06:18:27]CheckOFDResponse [06:18:27]1017 (14) - 77093643461234 [06:18:27]1041 (16) - 0000000000875074 [06:18:27]1040 (4) - 63753 [06:18:27]1012 (4) - 03.06.2024 00:19 [06:18:27]1206 (1) - 0 [06:18:27]OFD Sender: Remove packet 63753 [06:18:27]ProducePacketName [06:18:27]name=ofd_packets/00063753 [06:18:27]NVStorageDeleteData [06:18:27]Write to MH i2c: 01 00 00 F0 00 F0 [06:18:27]Write i2c OK [06:18:27]MH_I2C_Read... [06:18:27]Read from MH i2c: 01 [06:18:27]MH_I2C_Read... [06:18:27]Read from MH i2c: 01 07 00 [06:18:27]MH_I2C_Read... [06:18:27]Read from MH i2c: 01 07 00 F0 00 00 00 00 00 00 05 0D 09 [06:18:27]RasterBufferAndPrint [06:18:27]line [06:18:27]line [06:18:27]line [06:18:27]line [06:18:27]line [06:18:27]written 0, free lines is 3340 [06:18:27]MH_Cut [06:18:27]Write to MH i2c: D1 01 00 F7 00 01 C9 [06:18:27]Write i2c OK [06:18:27]MH_I2C_Read... [06:18:27]Read from MH i2c: D1 [06:18:27]MH_I2C_Read... [06:18:27]Read from MH i2c: D1 01 00 [06:18:27]MH_I2C_Read... [06:18:27]Read from MH i2c: D1 01 00 F7 00 00 C8 [06:18:27]Write to MH i2c: 01 00 00 F8 00 F8 [06:18:27]Write i2c OK [06:18:27]MH_I2C_Read... [06:18:27]OFD Sender: No OFD packet to send [06:18:28]*** Cut start [06:18:28]*** Partial cut [06:18:28]*** CUTSNS_PIN = 1 [06:18:28]*** CUTSNS_PIN = 0 [06:18:28]*** Brake cut motor [06:18:28]Read from MH i2c: 01 [06:18:28]MH_I2C_Read... [06:18:28]*** Stop cut motor [06:18:28]*** Cut end [06:18:28]Read from MH i2c: 01 07 00 [06:18:28]MH_I2C_Read... [06:18:28]Read from MH i2c: 01 07 00 F8 00 00 00 00 00 00 FF 0F 0D [06:18:28]process_action close_receipt done [06:18:28]requested_data is exist [06:18:28]produce_requested_data [06:18:28]requested_item fm.sn is exist - process it [06:18:28]wFMCommunicate request_size=4 [06:18:28]MH_SAM_APDU [06:18:28]CAPDU: 80 11 00 00 [06:18:28]Write to MH i2c: E2 08 00 F9 00 80 11 00 00 00 00 00 00 73 [06:18:28]Write i2c OK [06:18:28]MH_I2C_Read... [06:18:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:18:28]Read from MH i2c: E2 [06:18:28]MH_I2C_Read... [06:18:28]Read from MH i2c: E2 17 00 [06:18:28]MH_I2C_Read... [06:18:28]Read from MH i2c: E2 17 00 F9 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 C5 [06:18:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [06:18:28]wFMCommunicate OK [06:18:28]requested_item fd.num is exist - process it [06:18:28]SAM_PROTO_GetFieldsCounters [06:18:28]wFMCommunicate request_size=4 [06:18:28]MH_SAM_APDU [06:18:28]CAPDU: 80 13 00 00 [06:18:28]Write to MH i2c: E2 08 00 FA 00 80 13 00 00 00 00 00 00 76 [06:18:28]Write i2c OK [06:18:28]MH_I2C_Read... [06:18:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:18:28]Read from MH i2c: E2 [06:18:28]MH_I2C_Read... [06:18:28]Read from MH i2c: E2 62 00 [06:18:28]MH_I2C_Read... [06:18:28]Read from MH i2c: E2 62 00 FA 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 09 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 32 [06:18:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 09 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:18:28]wFMCommunicate OK [06:18:28]SAM_PROTO_GetFieldsCounters done [06:18:28]requested_item shift.num is exist - process it [06:18:28]requested_item shift.opened is exist - process it [06:18:28]req_shift_opened [06:18:28]FM_GetShiftState [06:18:28]SAM_PROTO_GetShiftState [06:18:28]wFMCommunicate request_size=4 [06:18:28]MH_SAM_APDU [06:18:28]CAPDU: 80 13 01 00 [06:18:28]Write to MH i2c: E2 08 00 FB 00 80 13 01 00 00 00 00 00 78 [06:18:28]Write i2c OK [06:18:28]MH_I2C_Read... [06:18:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:18:28]Read from MH i2c: E2 [06:18:28]MH_I2C_Read... [06:18:28]Read from MH i2c: E2 0E 00 [06:18:28]MH_I2C_Read... [06:18:28]Read from MH i2c: E2 0E 00 FB 00 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 44 [06:18:28]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [06:18:28]wFMCommunicate OK [06:18:28]SAM_PROTO_GetShiftState done [06:18:28]FM_GetShiftState done [06:18:28]req_shift_opened done [06:18:28]requested_item shift.open_date is exist - process it [06:18:28]req_shift_open_date [06:18:28]req_shift_open_date done [06:18:28]produce_requested_data done [06:18:28]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63753,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [06:18:28]process_action_free close_receipt [06:18:28]json_value_free [06:18:28]json_value_free done [06:18:28]process_json_proto returns [06:18:28]Send response to host [06:18:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63753,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [06:18:28]free response buf [06:18:28]execute_script done [06:18:28]execute_script returns [06:18:28]free content buf [06:18:28]Sock 9.Close socket [06:18:28]Sock 9.Thread stoped [06:18:32]OFD Sender: No OFD packet to send [06:18:37]OFD Sender: No OFD packet to send [06:18:42]OFD Sender: No OFD packet to send [06:18:47]OFD Sender: No OFD packet to send [06:18:52]OFD Sender: No OFD packet to send [06:18:57]OFD Sender: No OFD packet to send [06:19:02]OFD Sender: No OFD packet to send [06:19:07]OFD Sender: No OFD packet to send [06:19:12]OFD Sender: No OFD packet to send [06:19:17]OFD Sender: No OFD packet to send [06:19:22]OFD Sender: No OFD packet to send [06:19:27]OFD Sender: No OFD packet to send [06:19:32]OFD Sender: No OFD packet to send [06:19:37]OFD Sender: No OFD packet to send [06:19:42]OFD Sender: No OFD packet to send [06:19:47]OFD Sender: No OFD packet to send [06:19:52]OFD Sender: No OFD packet to send [06:19:57]OFD Sender: No OFD packet to send [06:20:02]OFD Sender: No OFD packet to send [06:20:07]OFD Sender: No OFD packet to send [06:20:12]OFD Sender: No OFD packet to send [06:20:17]OFD Sender: No OFD packet to send [06:20:22]OFD Sender: No OFD packet to send [06:20:27]OFD Sender: No OFD packet to send [06:20:32]OFD Sender: No OFD packet to send [06:20:37]OFD Sender: No OFD packet to send [06:20:42]OFD Sender: No OFD packet to send [06:20:47]OFD Sender: No OFD packet to send [06:20:52]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:28]OFD Sender: No OFD packet to send [06:26:33]OFD Sender: No OFD packet to send [06:26:38]OFD Sender: No OFD packet to send [06:26:43]OFD Sender: No OFD packet to send [06:26:48]OFD Sender: No OFD packet to send [06:26:53]OFD Sender: No OFD packet to send [06:26:58]OFD Sender: No OFD packet to send [06:27:03]OFD Sender: No OFD packet to send [06:27:08]OFD Sender: No OFD packet to send [06:27:13]OFD Sender: No OFD packet to send [06:27:18]OFD Sender: No OFD packet to send [06:27:23]OFD Sender: No OFD packet to send [06:27:28]OFD Sender: No OFD packet to send [06:27:33]OFD Sender: No OFD packet to send [06:27:38]OFD Sender: No OFD packet to send [06:27:43]OFD Sender: No OFD packet to send [06:27:48]OFD Sender: No OFD packet to send [06:27:53]OFD Sender: No OFD packet to send [06:27:58]OFD Sender: No OFD packet to send [06:28:03]OFD Sender: No OFD packet to send [06:28:08]OFD Sender: No OFD packet to send [06:28:13]OFD Sender: No OFD packet to send [06:28:18]OFD Sender: No OFD packet to send [06:28:23]OFD Sender: No OFD packet to send [06:28:28]OFD Sender: No OFD packet to send [06:28:33]OFD Sender: No OFD packet to send [06:28:36]accept exits with 7 [06:28:36]New connection [06:28:36]New thread 3067374948 created [06:28:36]Thread 3067518308 joined [06:28:36]Waiting for new connection... [06:28:36] Sock 7.Parse request [06:28:36]Sock 7.Check first char [06:28:36]Sock 7.First char is OK [06:28:36]request: POST /json_proto HTTP/1.0 [06:28:36]Method: POST [06:28:36]URL: /json_proto [06:28:36]Method is POST - this is cgi request [06:28:36]url: /json_proto [06:28:36]query_string will be loaded in cgi processing [06:28:36]execute_cgi json_proto POST (null) [06:28:36]execute_cgi path=json_proto method=POST [06:28:36]POST find Content-Length [06:28:36]Host: 172.17.60.69:8080 [06:28:36]Content-Length: 619 [06:28:36]Content-Type: application/json [06:28:36] [06:28:36]POST finish read [06:28:36]Found Content-Length = 619 [06:28:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73343", "tax_sys" : 0, "items" : [ { "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 135.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:28:36]execute_script... [06:28:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73343", "tax_sys" : 0, "items" : [ { "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 135.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:28:36]POST & json_proto [06:28:36]process_json_proto [06:28:36]json parsed OK: [06:28:36]protocol is kg_v1.0 [06:28:36]action value=close_receipt [06:28:36]process_action close_receipt [06:28:36]cmd_close_receipt [06:28:36]MH_GetDate [06:28:36]Write to MH i2c: F0 00 00 FC 00 EB [06:28:36]Write i2c OK [06:28:36]MH_I2C_Read... [06:28:36]Read from MH i2c: F0 [06:28:36]MH_I2C_Read... [06:28:36]Read from MH i2c: F0 09 00 [06:28:36]MH_I2C_Read... [06:28:36]Read from MH i2c: F0 09 00 FC 00 00 95 62 5D 66 6A 96 4A 66 5E [06:28:36]GetLastDocTimeStamp 1717395505 [06:28:36]current date 1717396117 [06:28:36]FM_GetShiftState [06:28:36]SAM_PROTO_GetShiftState [06:28:36]wFMCommunicate request_size=4 [06:28:36]MH_SAM_APDU [06:28:36]CAPDU: 80 13 01 00 [06:28:36]Write to MH i2c: E2 08 00 FD 00 80 13 01 00 00 00 00 00 7A [06:28:36]Write i2c OK [06:28:36]MH_I2C_Read... [06:28:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:28:36]Read from MH i2c: E2 [06:28:36]MH_I2C_Read... [06:28:36]Read from MH i2c: E2 0E 00 [06:28:36]MH_I2C_Read... [06:28:36]Read from MH i2c: E2 0E 00 FD 00 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 46 [06:28:36]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [06:28:36]wFMCommunicate OK [06:28:36]SAM_PROTO_GetShiftState done [06:28:36]FM_GetShiftState done [06:28:36]opened in 1717373173 [06:28:36]opened+sec_in_day 1717459573 [06:28:36]quantity*price = 13500 [06:28:36]sum+1 = 13501 [06:28:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 135.00 НСП 1% : 1.19 НДС 12% : 14.34 Наличными: 135.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 12 03.06.2024 06:28 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63754 ФПД: 164831061655978 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T062837&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63754&fm=164831061655978&tin=02508201610067®Number=0000000000092737&sum=13500 0 [06:28:37]StoreToDocumentArchive [06:28:37]shift 373 fd 63754 [06:28:37]save to /storage/0373/doc_00063754 [06:28:37]save last doc name /storage/0373/doc_00063754 to /storage/kkm_last_doc_name [06:28:37]save OK [06:28:37]Clear old archive folders... [06:28:37]ProcessDocumentItem done err = 0, tmpTLVsize=272 [06:28:37]tlvbuf is 00D1C4B0 [06:28:37]SAM_PROTO_ClearQueue [06:28:37]wFMCommunicate request_size=4 [06:28:37]MH_SAM_APDU [06:28:37]CAPDU: 80 09 00 00 [06:28:37]Write to MH i2c: E2 08 00 0A 01 80 09 00 00 00 00 00 00 7D [06:28:37]Write i2c OK [06:28:37]MH_I2C_Read... [06:28:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:28:37]Read from MH i2c: E2 [06:28:37]MH_I2C_Read... [06:28:37]Read from MH i2c: E2 03 00 [06:28:37]MH_I2C_Read... [06:28:37]Read from MH i2c: E2 03 00 0A 01 00 90 00 7F [06:28:37]RAPDU: 90 00 [06:28:37]wFMCommunicate OK [06:28:37]SAM_PROTO_ClearQueue done [06:28:37]KKMCreateOFDPacket [06:28:37]OFDProtocolAddRootSTLVToBuf [06:28:37]FM_MakeSignedData [06:28:37]FM_MakeSignedData [06:28:37]SAM_PROTO_SignData [06:28:37]wFMCommunicate request_size=4 [06:28:37]MH_SAM_APDU [06:28:37]CAPDU: 80 0D 01 02 [06:28:37]Write to MH i2c: E2 08 00 0B 01 80 0D 01 02 00 00 00 00 85 [06:28:37]Write i2c OK [06:28:37]MH_I2C_Read... [06:28:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:28:37]Read from MH i2c: E2 [06:28:37]MH_I2C_Read... [06:28:37]Read from MH i2c: E2 03 00 [06:28:37]MH_I2C_Read... [06:28:37]Read from MH i2c: E2 03 00 0B 01 00 90 00 80 [06:28:37]RAPDU: 90 00 [06:28:37]wFMCommunicate OK [06:28:37]wFMCommunicate request_size=255 [06:28:37]MH_SAM_APDU [06:28:37]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 95 62 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 [06:28:37]Write to MH i2c: E2 02 01 0C 01 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 95 62 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 00 00 7F [06:28:37]Write i2c OK [06:28:37]MH_I2C_Read... [06:28:38]OFD Sender: No OFD packet to send [06:28:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:28:38]Read from MH i2c: E2 [06:28:38]MH_I2C_Read... [06:28:38]Read from MH i2c: E2 03 00 [06:28:38]MH_I2C_Read... [06:28:38]Read from MH i2c: E2 03 00 0C 01 00 90 00 81 [06:28:38]RAPDU: 90 00 [06:28:38]wFMCommunicate OK [06:28:38]wFMCommunicate request_size=31 [06:28:38]MH_SAM_APDU [06:28:38]CAPDU: 80 0D 02 02 1A 30 30 38 37 35 30 37 34 10 04 04 00 0A F9 00 00 35 04 06 00 95 E9 B8 E0 C1 AA [06:28:38]Write to MH i2c: E2 22 00 0D 01 80 0D 02 02 1A 00 30 30 38 37 35 30 37 34 10 04 04 00 0A F9 00 00 35 04 06 00 95 E9 B8 E0 C1 AA 00 00 36 [06:28:38]Write i2c OK [06:28:38]MH_I2C_Read... [06:28:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:28:38]Read from MH i2c: E2 [06:28:38]MH_I2C_Read... [06:28:38]Read from MH i2c: E2 03 00 [06:28:38]MH_I2C_Read... [06:28:38]Read from MH i2c: E2 03 00 0D 01 00 90 00 82 [06:28:38]RAPDU: 90 00 [06:28:38]wFMCommunicate OK [06:28:38]wFMCommunicate request_size=4 [06:28:38]MH_SAM_APDU [06:28:38]CAPDU: 80 0D 03 02 [06:28:38]Write to MH i2c: E2 08 00 0E 01 80 0D 03 02 00 00 00 00 8A [06:28:38]Write i2c OK [06:28:38]MH_I2C_Read... [06:28:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:28:38]Read from MH i2c: E2 [06:28:38]MH_I2C_Read... [06:28:38]Read from MH i2c: E2 0B 00 [06:28:38]MH_I2C_Read... [06:28:38]Read from MH i2c: E2 0B 00 0E 01 00 C0 EC 44 27 16 89 93 58 90 00 2C [06:28:38]RAPDU: C0 EC 44 27 16 89 93 58 90 00 [06:28:38]wFMCommunicate OK [06:28:38]SAM_PROTO_SignData done [06:28:38]FM_MakeSignedData done [06:28:38]CreateOFDProtocolMessage [06:28:38]wFMCommunicate request_size=4 [06:28:38]MH_SAM_APDU [06:28:38]CAPDU: 80 11 00 00 [06:28:38]Write to MH i2c: E2 08 00 0F 01 80 11 00 00 00 00 00 00 8A [06:28:38]Write i2c OK [06:28:38]MH_I2C_Read... [06:28:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:28:38]Read from MH i2c: E2 [06:28:38]MH_I2C_Read... [06:28:38]Read from MH i2c: E2 17 00 [06:28:38]MH_I2C_Read... [06:28:38]Read from MH i2c: E2 17 00 0F 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 DC [06:28:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [06:28:38]wFMCommunicate OK [06:28:38]CreateOFDProtocolMessage done [06:28:38]OFDSenderStorePacket 63754 [06:28:38]StoreOFDPacket docnum=63754 [06:28:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 24 01 00 00 BD 9A 1C 01 1A 9B 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 95 62 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 0A F9 00 00 35 04 06 00 95 E9 B8 E0 C1 AA C0 EC 44 27 16 89 93 58 [06:28:38]CheckFolder [06:28:38]dirname=/storage/ofd_packets [06:28:38]CheckFolder done [06:28:38]ProducePacketName [06:28:38]name=ofd_packets/00063754 [06:28:38]NVStorageSaveData ofd_packets/00063754 [06:28:38]File name is /storage/ofd_packets/00063754 [06:28:38]Write 322 bytes [06:28:38]NVStorageSaveData done [06:28:38]OFDSenderStorePacket done [06:28:38]KKMCreateOFDPacket done [06:28:38]NVStorageSaveData kkm_last_timestamp [06:28:38]File name is /storage/kkm_last_timestamp [06:28:38]Write 4 bytes [06:28:38]NVStorageSaveData done [06:28:38]ExternCall_PrintAddStr [06:28:38]wPrintStart [06:28:38]Write to MH i2c: 01 00 00 10 01 11 [06:28:38]Write i2c OK [06:28:38]MH_I2C_Read... [06:28:38]Read from MH i2c: 01 [06:28:38]MH_I2C_Read... [06:28:38]Read from MH i2c: 01 07 00 [06:28:38]MH_I2C_Read... [06:28:38]Read from MH i2c: 01 07 00 10 01 00 00 00 00 00 FF 0F 26 [06:28:38]RasterBufferAndPrint [06:28:38]line Счет N : (3)73343 [06:28:38]line ИНН: 02508201610067 [06:28:38]line Контрольно-Кассовый Чек [06:28:38]line ПРОДАЖА [06:28:38]line Товар: 48745000 [06:28:38]line Сигареты Winston Purple Mix [06:28:38]line 1.000 * 135.00 [06:28:38]line = 135.00 [06:28:38]line НДС 12% НСП 1% [06:28:38]line > о реализуемом товаре [06:28:38]line ИТОГО: 135.00 [06:28:38]line НСП 1% : 1.19 [06:28:38]line НДС 12% : 14.34 [06:28:38]line Наличными: 135.00 [06:28:38]line Безнал.: 0.00 [06:28:38]line Место: АЗС № 117 "Партнер Нефть" [06:28:38]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [06:28:38]line СНО: Общий режим [06:28:38]line Чек 12 03.06.2024 06:28 [06:28:38]line Смена: 373 ФФД: 1.0 [06:28:38]line ЗНМ: 0300000031 [06:28:38]line РНМ: 0000000000092737 [06:28:38]line Версия ККМ: 001 [06:28:38]line ФМ: 0000000000875074 [06:28:38]line ФД: 63754 [06:28:38]line ФПД: 164831061655978 [06:28:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T062837&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63754&fm=164831061655978&tin=02508201610067®Number=0000000000092737&sum=13500 [06:28:38]line 0 [06:28:38]OFD Sender: Processing packet 63754 [packets to send 14, broken 13] [06:28:38]ProducePacketName [06:28:38]name=ofd_packets/00063754 [06:28:38]OFD Sender: To server: pG, [06:28:38]CommunicateWithHost lk.salyk.kg:30040 [06:28:38]ConnectInit lk.salyk.kg [06:28:38]written 0, free lines is 4095 [06:28:38]Connected sock=10 [06:28:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 24 01 00 00 BD 9A 1C 01 1A 9B 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 95 62 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 0A F9 00 00 35 04 06 00 95 E9 B8 E0 C1 AA C0 EC 44 27 16 89 93 58 [06:28:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 F2 F2 47 00 2E 05 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 0A F9 00 00 F4 03 04 00 67 0E 5D 66 B6 04 01 00 00 7F 5E E0 E1 F9 DF 49 63 [06:28:39]CommunicateWithHost err = 0 [06:28:39]CheckOFDResponse [06:28:39]1017 (14) - 77093643461234 [06:28:39]1041 (16) - 0000000000875074 [06:28:39]1040 (4) - 63754 [06:28:39]1012 (4) - 03.06.2024 00:29 [06:28:39]1206 (1) - 0 [06:28:39]OFD Sender: Remove packet 63754 [06:28:39]ProducePacketName [06:28:39]name=ofd_packets/00063754 [06:28:39]NVStorageDeleteData [06:28:39]Write to MH i2c: 01 00 00 38 01 39 [06:28:39]Write i2c OK [06:28:39]MH_I2C_Read... [06:28:39]Read from MH i2c: 01 [06:28:39]MH_I2C_Read... [06:28:39]Read from MH i2c: 01 07 00 [06:28:39]MH_I2C_Read... [06:28:39]Read from MH i2c: 01 07 00 38 01 00 00 00 00 00 05 0D 52 [06:28:39]RasterBufferAndPrint [06:28:39]line [06:28:39]line [06:28:39]line [06:28:39]line [06:28:39]line [06:28:39]written 0, free lines is 3340 [06:28:39]MH_Cut [06:28:39]Write to MH i2c: D1 01 00 3F 01 01 12 [06:28:39]Write i2c OK [06:28:39]MH_I2C_Read... [06:28:39]Read from MH i2c: D1 [06:28:39]MH_I2C_Read... [06:28:39]Read from MH i2c: D1 01 00 [06:28:39]MH_I2C_Read... [06:28:39]Read from MH i2c: D1 01 00 3F 01 00 11 [06:28:39]Write to MH i2c: 01 00 00 40 01 41 [06:28:39]Write i2c OK [06:28:39]MH_I2C_Read... [06:28:39]OFD Sender: No OFD packet to send [06:28:39]*** Cut start [06:28:39]*** Partial cut [06:28:39]*** CUTSNS_PIN = 1 [06:28:39]*** CUTSNS_PIN = 0 [06:28:40]*** Brake cut motor [06:28:40]Read from MH i2c: 01 [06:28:40]MH_I2C_Read... [06:28:40]*** Stop cut motor [06:28:40]*** Cut end [06:28:40]Read from MH i2c: 01 07 00 [06:28:40]MH_I2C_Read... [06:28:40]Read from MH i2c: 01 07 00 40 01 00 00 00 00 00 FF 0F 56 [06:28:40]process_action close_receipt done [06:28:40]requested_data is exist [06:28:40]produce_requested_data [06:28:40]requested_item fm.sn is exist - process it [06:28:40]wFMCommunicate request_size=4 [06:28:40]MH_SAM_APDU [06:28:40]CAPDU: 80 11 00 00 [06:28:40]Write to MH i2c: E2 08 00 41 01 80 11 00 00 00 00 00 00 BC [06:28:40]Write i2c OK [06:28:40]MH_I2C_Read... [06:28:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:28:40]Read from MH i2c: E2 [06:28:40]MH_I2C_Read... [06:28:40]Read from MH i2c: E2 17 00 [06:28:40]MH_I2C_Read... [06:28:40]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 35 30 37 34 90 00 0E [06:28:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [06:28:40]wFMCommunicate OK [06:28:40]requested_item fd.num is exist - process it [06:28:40]SAM_PROTO_GetFieldsCounters [06:28:40]wFMCommunicate request_size=4 [06:28:40]MH_SAM_APDU [06:28:40]CAPDU: 80 13 00 00 [06:28:40]Write to MH i2c: E2 08 00 42 01 80 13 00 00 00 00 00 00 BF [06:28:40]Write i2c OK [06:28:40]MH_I2C_Read... [06:28:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:28:40]Read from MH i2c: E2 [06:28:40]MH_I2C_Read... [06:28:40]Read from MH i2c: E2 62 00 [06:28:40]MH_I2C_Read... [06:28:40]Read from MH i2c: E2 62 00 42 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 0A F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 7F [06:28:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 0A F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:28:40]wFMCommunicate OK [06:28:40]SAM_PROTO_GetFieldsCounters done [06:28:40]requested_item shift.num is exist - process it [06:28:40]requested_item shift.opened is exist - process it [06:28:40]req_shift_opened [06:28:40]FM_GetShiftState [06:28:40]SAM_PROTO_GetShiftState [06:28:40]wFMCommunicate request_size=4 [06:28:40]MH_SAM_APDU [06:28:40]CAPDU: 80 13 01 00 [06:28:40]Write to MH i2c: E2 08 00 43 01 80 13 01 00 00 00 00 00 C1 [06:28:40]Write i2c OK [06:28:40]MH_I2C_Read... [06:28:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:28:40]Read from MH i2c: E2 [06:28:40]MH_I2C_Read... [06:28:40]Read from MH i2c: E2 0E 00 [06:28:40]MH_I2C_Read... [06:28:40]Read from MH i2c: E2 0E 00 43 01 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 8D [06:28:40]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [06:28:40]wFMCommunicate OK [06:28:40]SAM_PROTO_GetShiftState done [06:28:40]FM_GetShiftState done [06:28:40]req_shift_opened done [06:28:40]requested_item shift.open_date is exist - process it [06:28:40]req_shift_open_date [06:28:40]req_shift_open_date done [06:28:40]produce_requested_data done [06:28:40]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63754,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [06:28:40]process_action_free close_receipt [06:28:40]json_value_free [06:28:40]json_value_free done [06:28:40]process_json_proto returns [06:28:40]Send response to host [06:28:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63754,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [06:28:40]free response buf [06:28:40]execute_script done [06:28:40]execute_script returns [06:28:40]free content buf [06:28:40]Sock 7.Close socket [06:28:40]Sock 7.Thread stoped [06:28:44]OFD Sender: No OFD packet to send [06:28:49]OFD Sender: No OFD packet to send [06:28:54]OFD Sender: No OFD packet to send [06:28:59]OFD Sender: No OFD packet to send [06:29:04]OFD Sender: No OFD packet to send [06:29:09]OFD Sender: No OFD packet to send [06:29:14]OFD Sender: No OFD packet to send [06:29:19]OFD Sender: No OFD packet to send [06:29:24]OFD Sender: No OFD packet to send [06:29:29]OFD Sender: No OFD packet to send [06:29:34]OFD Sender: No OFD packet to send [06:29:39]OFD Sender: No OFD packet to send [06:29:44]OFD Sender: No OFD packet to send [06:29:49]OFD Sender: No OFD packet to send [06:29:54]OFD Sender: No OFD packet to send [06:29:59]OFD Sender: No OFD packet to send [06:30:04]OFD Sender: No OFD packet to send [06:30:09]OFD Sender: No OFD packet to send [06:30:14]OFD Sender: No OFD packet to send [06:30:19]OFD Sender: No OFD packet to send [06:30:24]OFD Sender: No OFD packet to send [06:30:29]OFD Sender: No OFD packet to send [06:30:34]OFD Sender: No OFD packet to send [06:30:39]OFD Sender: No OFD packet to send [06:30:44]OFD Sender: No OFD packet to send [06:30:49]OFD Sender: No OFD packet to send [06:30:54]OFD Sender: No OFD packet to send [06:30:59]OFD Sender: No OFD packet to send [06:31:04]OFD Sender: No OFD packet to send [06:31:09]OFD Sender: No OFD packet to send [06:31:14]OFD Sender: No OFD packet to send [06:31:19]OFD Sender: No OFD packet to send [06:31:24]OFD Sender: No OFD packet to send [06:31:29]OFD Sender: No OFD packet to send [06:31:34]OFD Sender: No OFD packet to send [06:31:39]OFD Sender: No OFD packet to send [06:31:44]accept exits with 9 [06:31:44]New connection [06:31:44]New thread 3067518308 created [06:31:44]Thread 3067374948 joined [06:31:44]Waiting for new connection... [06:31:44] Sock 9.Parse request [06:31:44]Sock 9.Check first char [06:31:44]Sock 9.First char is OK [06:31:44]request: POST /json_proto HTTP/1.0 [06:31:44]Method: POST [06:31:44]URL: /json_proto [06:31:44]Method is POST - this is cgi request [06:31:44]url: /json_proto [06:31:44]query_string will be loaded in cgi processing [06:31:44]execute_cgi json_proto POST (null) [06:31:44]execute_cgi path=json_proto method=POST [06:31:44]POST find Content-Length [06:31:44]Host: 172.17.60.69:8080 [06:31:44]Content-Length: 625 [06:31:44]Content-Type: application/json [06:31:44] [06:31:44]POST finish read [06:31:44]Found Content-Length = 625 [06:31:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73344", "tax_sys" : 0, "items" : [ { "code": "2000036240010", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 115.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:31:44]execute_script... [06:31:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73344", "tax_sys" : 0, "items" : [ { "code": "2000036240010", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 115.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:31:44]POST & json_proto [06:31:44]process_json_proto [06:31:44]json parsed OK: [06:31:44]protocol is kg_v1.0 [06:31:44]action value=close_receipt [06:31:44]process_action close_receipt [06:31:44]cmd_close_receipt [06:31:44]MH_GetDate [06:31:44]Write to MH i2c: F0 00 00 44 01 34 [06:31:44]Write i2c OK [06:31:44]MH_I2C_Read... [06:31:44]Read from MH i2c: F0 [06:31:44]MH_I2C_Read... [06:31:44]Read from MH i2c: F0 09 00 [06:31:44]MH_I2C_Read... [06:31:44]Read from MH i2c: F0 09 00 44 01 00 51 63 5D 66 6A 96 4A 66 64 [06:31:44]GetLastDocTimeStamp 1717396117 [06:31:44]current date 1717396305 [06:31:44]FM_GetShiftState [06:31:44]SAM_PROTO_GetShiftState [06:31:44]wFMCommunicate request_size=4 [06:31:44]MH_SAM_APDU [06:31:44]CAPDU: 80 13 01 00 [06:31:44]Write to MH i2c: E2 08 00 45 01 80 13 01 00 00 00 00 00 C3 [06:31:44]Write i2c OK [06:31:44]MH_I2C_Read... [06:31:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:31:44]OFD Sender: No OFD packet to send [06:31:44]Read from MH i2c: E2 [06:31:44]MH_I2C_Read... [06:31:44]Read from MH i2c: E2 0E 00 [06:31:44]MH_I2C_Read... [06:31:44]Read from MH i2c: E2 0E 00 45 01 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 8F [06:31:44]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [06:31:44]wFMCommunicate OK [06:31:44]SAM_PROTO_GetShiftState done [06:31:44]FM_GetShiftState done [06:31:44]opened in 1717373173 [06:31:44]opened+sec_in_day 1717459573 [06:31:44]quantity*price = 11500 [06:31:44]sum+1 = 11501 [06:31:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 115.00 НСП 1% : 1.02 НДС 12% : 12.21 Наличными: 115.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 13 03.06.2024 06:31 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63755 ФПД: 239154269023219 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T063145&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63755&fm=239154269023219&tin=02508201610067®Number=0000000000092737&sum=11500 0 [06:31:45]StoreToDocumentArchive [06:31:45]shift 373 fd 63755 [06:31:45]save to /storage/0373/doc_00063755 [06:31:45]save last doc name /storage/0373/doc_00063755 to /storage/kkm_last_doc_name [06:31:45]save OK [06:31:45]Clear old archive folders... [06:31:45]ProcessDocumentItem done err = 0, tmpTLVsize=274 [06:31:45]tlvbuf is 00D3BBD0 [06:31:45]SAM_PROTO_ClearQueue [06:31:45]wFMCommunicate request_size=4 [06:31:45]MH_SAM_APDU [06:31:45]CAPDU: 80 09 00 00 [06:31:45]Write to MH i2c: E2 08 00 52 01 80 09 00 00 00 00 00 00 C5 [06:31:45]Write i2c OK [06:31:45]MH_I2C_Read... [06:31:45]Read from MH i2c: E2 [06:31:45]MH_I2C_Read... [06:31:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:31:45]Read from MH i2c: E2 03 00 [06:31:45]MH_I2C_Read... [06:31:45]Read from MH i2c: E2 03 00 52 01 00 90 00 C7 [06:31:45]RAPDU: 90 00 [06:31:45]wFMCommunicate OK [06:31:45]SAM_PROTO_ClearQueue done [06:31:45]KKMCreateOFDPacket [06:31:45]OFDProtocolAddRootSTLVToBuf [06:31:45]FM_MakeSignedData [06:31:45]FM_MakeSignedData [06:31:45]SAM_PROTO_SignData [06:31:45]wFMCommunicate request_size=4 [06:31:45]MH_SAM_APDU [06:31:45]CAPDU: 80 0D 01 02 [06:31:45]Write to MH i2c: E2 08 00 53 01 80 0D 01 02 00 00 00 00 CD [06:31:45]Write i2c OK [06:31:45]MH_I2C_Read... [06:31:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:31:45]Read from MH i2c: E2 [06:31:45]MH_I2C_Read... [06:31:45]Read from MH i2c: E2 03 00 [06:31:45]MH_I2C_Read... [06:31:45]Read from MH i2c: E2 03 00 53 01 00 90 00 C8 [06:31:45]RAPDU: 90 00 [06:31:45]wFMCommunicate OK [06:31:45]wFMCommunicate request_size=255 [06:31:45]MH_SAM_APDU [06:31:45]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 51 63 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 [06:31:45]Write to MH i2c: E2 02 01 54 01 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 51 63 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 00 00 66 [06:31:45]Write i2c OK [06:31:45]MH_I2C_Read... [06:31:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:31:46]Read from MH i2c: E2 [06:31:46]MH_I2C_Read... [06:31:46]Read from MH i2c: E2 03 00 [06:31:46]MH_I2C_Read... [06:31:46]Read from MH i2c: E2 03 00 54 01 00 90 00 C9 [06:31:46]RAPDU: 90 00 [06:31:46]wFMCommunicate OK [06:31:46]wFMCommunicate request_size=33 [06:31:46]MH_SAM_APDU [06:31:46]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 35 30 37 34 10 04 04 00 0B F9 00 00 35 04 06 00 D9 82 71 40 6B F3 [06:31:46]Write to MH i2c: E2 24 00 55 01 80 0D 02 02 1C 00 30 30 30 30 38 37 35 30 37 34 10 04 04 00 0B F9 00 00 35 04 06 00 D9 82 71 40 6B F3 00 00 CC [06:31:46]Write i2c OK [06:31:46]MH_I2C_Read... [06:31:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:31:46]Read from MH i2c: E2 [06:31:46]MH_I2C_Read... [06:31:46]Read from MH i2c: E2 03 00 [06:31:46]MH_I2C_Read... [06:31:46]Read from MH i2c: E2 03 00 55 01 00 90 00 CA [06:31:46]RAPDU: 90 00 [06:31:46]wFMCommunicate OK [06:31:46]wFMCommunicate request_size=4 [06:31:46]MH_SAM_APDU [06:31:46]CAPDU: 80 0D 03 02 [06:31:46]Write to MH i2c: E2 08 00 56 01 80 0D 03 02 00 00 00 00 D2 [06:31:46]Write i2c OK [06:31:46]MH_I2C_Read... [06:31:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:31:46]Read from MH i2c: E2 [06:31:46]MH_I2C_Read... [06:31:46]Read from MH i2c: E2 0B 00 [06:31:46]MH_I2C_Read... [06:31:46]Read from MH i2c: E2 0B 00 56 01 00 3F B5 D7 88 8D 97 11 5B 90 00 B6 [06:31:46]RAPDU: 3F B5 D7 88 8D 97 11 5B 90 00 [06:31:46]wFMCommunicate OK [06:31:46]SAM_PROTO_SignData done [06:31:46]FM_MakeSignedData done [06:31:46]CreateOFDProtocolMessage [06:31:46]wFMCommunicate request_size=4 [06:31:46]MH_SAM_APDU [06:31:46]CAPDU: 80 11 00 00 [06:31:46]Write to MH i2c: E2 08 00 57 01 80 11 00 00 00 00 00 00 D2 [06:31:46]Write i2c OK [06:31:46]MH_I2C_Read... [06:31:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:31:46]Read from MH i2c: E2 [06:31:46]MH_I2C_Read... [06:31:46]Read from MH i2c: E2 17 00 [06:31:46]MH_I2C_Read... [06:31:46]Read from MH i2c: E2 17 00 57 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 24 [06:31:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [06:31:46]wFMCommunicate OK [06:31:46]CreateOFDProtocolMessage done [06:31:46]OFDSenderStorePacket 63755 [06:31:46]StoreOFDPacket docnum=63755 [06:31:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 26 01 00 00 02 F9 1E 01 DF 1C 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 51 63 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 0B F9 00 00 35 04 06 00 D9 82 71 40 6B F3 3F B5 D7 88 8D 97 11 5B [06:31:46]CheckFolder [06:31:46]dirname=/storage/ofd_packets [06:31:46]CheckFolder done [06:31:46]ProducePacketName [06:31:46]name=ofd_packets/00063755 [06:31:46]NVStorageSaveData ofd_packets/00063755 [06:31:46]File name is /storage/ofd_packets/00063755 [06:31:46]Write 324 bytes [06:31:46]NVStorageSaveData done [06:31:46]OFDSenderStorePacket done [06:31:46]KKMCreateOFDPacket done [06:31:46]NVStorageSaveData kkm_last_timestamp [06:31:46]File name is /storage/kkm_last_timestamp [06:31:46]Write 4 bytes [06:31:46]NVStorageSaveData done [06:31:46]ExternCall_PrintAddStr [06:31:46]wPrintStart [06:31:46]Write to MH i2c: 01 00 00 58 01 59 [06:31:46]Write i2c OK [06:31:46]MH_I2C_Read... [06:31:46]Read from MH i2c: 01 [06:31:46]MH_I2C_Read... [06:31:46]Read from MH i2c: 01 07 00 [06:31:46]MH_I2C_Read... [06:31:46]Read from MH i2c: 01 07 00 58 01 00 00 00 00 00 FF 0F 6E [06:31:46]RasterBufferAndPrint [06:31:46]line Счет N : (3)73344 [06:31:46]line ИНН: 02508201610067 [06:31:46]line Контрольно-Кассовый Чек [06:31:46]line ПРОДАЖА [06:31:46]line Товар: 2000036240010 [06:31:46]line Кофе Латте (GABB TRADE) [06:31:46]line 1.000 * 115.00 [06:31:46]line = 115.00 [06:31:46]line НДС 12% НСП 1% [06:31:46]line > о реализуемом товаре [06:31:46]line ИТОГО: 115.00 [06:31:46]line НСП 1% : 1.02 [06:31:46]line НДС 12% : 12.21 [06:31:46]line Наличными: 115.00 [06:31:46]line Безнал.: 0.00 [06:31:46]line Место: АЗС № 117 "Партнер Нефть" [06:31:46]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [06:31:46]line СНО: Общий режим [06:31:46]line Чек 13 03.06.2024 06:31 [06:31:46]line Смена: 373 ФФД: 1.0 [06:31:46]line ЗНМ: 0300000031 [06:31:46]line РНМ: 0000000000092737 [06:31:46]line Версия ККМ: 001 [06:31:46]line ФМ: 0000000000875074 [06:31:46]line ФД: 63755 [06:31:46]line ФПД: 239154269023219 [06:31:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T063145&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63755&fm=239154269023219&tin=02508201610067®Number=0000000000092737&sum=11500 [06:31:46]line 0 [06:31:46]OFD Sender: Processing packet 63755 [packets to send 14, broken 13] [06:31:46]ProducePacketName [06:31:46]name=ofd_packets/00063755 [06:31:46]OFD Sender: To server: pG, [06:31:46]CommunicateWithHost lk.salyk.kg:30040 [06:31:46]ConnectInit lk.salyk.kg [06:31:46]written 0, free lines is 4095 [06:31:46]Connected sock=10 [06:31:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 26 01 00 00 02 F9 1E 01 DF 1C 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 51 63 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 0B F9 00 00 35 04 06 00 D9 82 71 40 6B F3 3F B5 D7 88 8D 97 11 5B [06:31:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 74 9A 47 00 A6 D4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 0B F9 00 00 F4 03 04 00 23 0F 5D 66 B6 04 01 00 00 57 EA C4 01 7C 6E 33 51 [06:31:46]CommunicateWithHost err = 0 [06:31:46]CheckOFDResponse [06:31:46]1017 (14) - 77093643461234 [06:31:46]1041 (16) - 0000000000875074 [06:31:46]1040 (4) - 63755 [06:31:46]1012 (4) - 03.06.2024 00:32 [06:31:46]1206 (1) - 0 [06:31:46]OFD Sender: Remove packet 63755 [06:31:46]ProducePacketName [06:31:46]name=ofd_packets/00063755 [06:31:46]NVStorageDeleteData [06:31:47]Write to MH i2c: 01 00 00 80 01 81 [06:31:47]Write i2c OK [06:31:47]MH_I2C_Read... [06:31:47]Read from MH i2c: 01 [06:31:47]MH_I2C_Read... [06:31:47]Read from MH i2c: 01 07 00 [06:31:47]MH_I2C_Read... [06:31:47]Read from MH i2c: 01 07 00 80 01 00 00 00 00 00 03 0D 98 [06:31:47]RasterBufferAndPrint [06:31:47]line [06:31:47]line [06:31:47]line [06:31:47]line [06:31:47]line [06:31:47]written 0, free lines is 3337 [06:31:47]MH_Cut [06:31:47]Write to MH i2c: D1 01 00 87 01 01 5A [06:31:47]Write i2c OK [06:31:47]MH_I2C_Read... [06:31:47]Read from MH i2c: D1 [06:31:47]MH_I2C_Read... [06:31:47]Read from MH i2c: D1 01 00 [06:31:47]MH_I2C_Read... [06:31:47]Read from MH i2c: D1 01 00 87 01 00 59 [06:31:47]Write to MH i2c: 01 00 00 88 01 89 [06:31:47]Write i2c OK [06:31:47]MH_I2C_Read... [06:31:47]OFD Sender: No OFD packet to send [06:31:47]*** Cut start [06:31:47]*** Partial cut [06:31:47]*** CUTSNS_PIN = 1 [06:31:47]*** CUTSNS_PIN = 0 [06:31:48]*** Brake cut motor [06:31:48]Read from MH i2c: 01 [06:31:48]MH_I2C_Read... [06:31:48]*** Stop cut motor [06:31:48]*** Cut end [06:31:48]Read from MH i2c: 01 07 00 [06:31:48]MH_I2C_Read... [06:31:48]Read from MH i2c: 01 07 00 88 01 00 00 00 00 00 FF 0F 9E [06:31:48]process_action close_receipt done [06:31:48]requested_data is exist [06:31:48]produce_requested_data [06:31:48]requested_item fm.sn is exist - process it [06:31:48]wFMCommunicate request_size=4 [06:31:48]MH_SAM_APDU [06:31:48]CAPDU: 80 11 00 00 [06:31:48]Write to MH i2c: E2 08 00 89 01 80 11 00 00 00 00 00 00 04 [06:31:48]Write i2c OK [06:31:48]MH_I2C_Read... [06:31:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:31:48]Read from MH i2c: E2 [06:31:48]MH_I2C_Read... [06:31:48]Read from MH i2c: E2 17 00 [06:31:48]MH_I2C_Read... [06:31:48]Read from MH i2c: E2 17 00 89 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 56 [06:31:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [06:31:48]wFMCommunicate OK [06:31:48]requested_item fd.num is exist - process it [06:31:48]SAM_PROTO_GetFieldsCounters [06:31:48]wFMCommunicate request_size=4 [06:31:48]MH_SAM_APDU [06:31:48]CAPDU: 80 13 00 00 [06:31:48]Write to MH i2c: E2 08 00 8A 01 80 13 00 00 00 00 00 00 07 [06:31:48]Write i2c OK [06:31:48]MH_I2C_Read... [06:31:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:31:48]Read from MH i2c: E2 [06:31:48]MH_I2C_Read... [06:31:48]Read from MH i2c: E2 62 00 [06:31:48]MH_I2C_Read... [06:31:48]Read from MH i2c: E2 62 00 8A 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 0B F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 CB [06:31: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 0B F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:31:48]wFMCommunicate OK [06:31:48]SAM_PROTO_GetFieldsCounters done [06:31:48]requested_item shift.num is exist - process it [06:31:48]requested_item shift.opened is exist - process it [06:31:48]req_shift_opened [06:31:48]FM_GetShiftState [06:31:48]SAM_PROTO_GetShiftState [06:31:48]wFMCommunicate request_size=4 [06:31:48]MH_SAM_APDU [06:31:48]CAPDU: 80 13 01 00 [06:31:48]Write to MH i2c: E2 08 00 8B 01 80 13 01 00 00 00 00 00 09 [06:31:48]Write i2c OK [06:31:48]MH_I2C_Read... [06:31:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:31:48]Read from MH i2c: E2 [06:31:48]MH_I2C_Read... [06:31:48]Read from MH i2c: E2 0E 00 [06:31:48]MH_I2C_Read... [06:31:48]Read from MH i2c: E2 0E 00 8B 01 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 D5 [06:31:48]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [06:31:48]wFMCommunicate OK [06:31:48]SAM_PROTO_GetShiftState done [06:31:48]FM_GetShiftState done [06:31:48]req_shift_opened done [06:31:48]requested_item shift.open_date is exist - process it [06:31:48]req_shift_open_date [06:31:48]req_shift_open_date done [06:31:48]produce_requested_data done [06:31:48]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63755,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [06:31:48]process_action_free close_receipt [06:31:48]json_value_free [06:31:48]json_value_free done [06:31:48]process_json_proto returns [06:31:48]Send response to host [06:31:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63755,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [06:31:48]free response buf [06:31:48]execute_script done [06:31:48]execute_script returns [06:31:48]free content buf [06:31:48]Sock 9.Close socket [06:31:48]Sock 9.Thread stoped [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:32]OFD Sender: No OFD packet to send [06:37:37]OFD Sender: No OFD packet to send [06:37:42]OFD Sender: No OFD packet to send [06:37:47]OFD Sender: No OFD packet to send [06:37:52]OFD Sender: No OFD packet to send [06:37:57]OFD Sender: No OFD packet to send [06:38:02]OFD Sender: No OFD packet to send [06:38:07]OFD Sender: No OFD packet to send [06:38:12]OFD Sender: No OFD packet to send [06:38:17]OFD Sender: No OFD packet to send [06:38:22]OFD Sender: No OFD packet to send [06:38:27]OFD Sender: No OFD packet to send [06:38:32]OFD Sender: No OFD packet to send [06:38:37]OFD Sender: No OFD packet to send [06:38:42]OFD Sender: No OFD packet to send [06:38:47]OFD Sender: No OFD packet to send [06:38:52]OFD Sender: No OFD packet to send [06:38:57]OFD Sender: No OFD packet to send [06:39:02]OFD Sender: No OFD packet to send [06:39:07]OFD Sender: No OFD packet to send [06:39:12]OFD Sender: No OFD packet to send [06:39:17]OFD Sender: No OFD packet to send [06:39:22]OFD Sender: No OFD packet to send [06:39:27]OFD Sender: No OFD packet to send [06:39:32]OFD Sender: No OFD packet to send [06:39:37]OFD Sender: No OFD packet to send [06:39:42]OFD Sender: No OFD packet to send [06:39:47]OFD Sender: No OFD packet to send [06:39:52]OFD Sender: No OFD packet to send [06:39:57]OFD Sender: No OFD packet to send [06:40:02]OFD Sender: No OFD packet to send [06:40:07]OFD Sender: No OFD packet to send [06:40:12]OFD Sender: No OFD packet to send [06:40:17]OFD Sender: No OFD packet to send [06:40:22]OFD Sender: No OFD packet to send [06:40:27]OFD Sender: No OFD packet to send [06:40:32]OFD Sender: No OFD packet to send [06:40:37]OFD Sender: No OFD packet to send [06:40:42]OFD Sender: No OFD packet to send [06:40:47]OFD Sender: No OFD packet to send [06:40:52]OFD Sender: No OFD packet to send [06:40:57]OFD Sender: No OFD packet to send [06:41:02]OFD Sender: No OFD packet to send [06:41:07]OFD Sender: No OFD packet to send [06:41:12]OFD Sender: No OFD packet to send [06:41:17]OFD Sender: No OFD packet to send [06:41:22]OFD Sender: No OFD packet to send [06:41:27]OFD Sender: No OFD packet to send [06:41:32]OFD Sender: No OFD packet to send [06:41:37]OFD Sender: No OFD packet to send [06:41:42]OFD Sender: No OFD packet to send [06:41:47]OFD Sender: No OFD packet to send [06:41:52]OFD Sender: No OFD packet to send [06:41:57]OFD Sender: No OFD packet to send [06:42:02]OFD Sender: No OFD packet to send [06:42:07]OFD Sender: No OFD packet to send [06:42:12]OFD Sender: No OFD packet to send [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:08]OFD Sender: No OFD packet to send [06:43:13]OFD Sender: No OFD packet to send [06:43:18]OFD Sender: No OFD packet to send [06:43:23]OFD Sender: No OFD packet to send [06:43:28]OFD Sender: No OFD packet to send [06:43:33]OFD Sender: No OFD packet to send [06:43:38]OFD Sender: No OFD packet to send [06:43:43]OFD Sender: No OFD packet to send [06:43:48]OFD Sender: No OFD packet to send [06:43:53]OFD Sender: No OFD packet to send [06:43:58]OFD Sender: No OFD packet to send [06:44:03]OFD Sender: No OFD packet to send [06:44:08]OFD Sender: No OFD packet to send [06:44:13]OFD Sender: No OFD packet to send [06:44:18]OFD Sender: No OFD packet to send [06:44:23]OFD Sender: No OFD packet to send [06:44:28]OFD Sender: No OFD packet to send [06:44:33]OFD Sender: No OFD packet to send [06:44:38]OFD Sender: No OFD packet to send [06:44:43]OFD Sender: No OFD packet to send [06:44:48]OFD Sender: No OFD packet to send [06:44:53]OFD Sender: No OFD packet to send [06:44:58]OFD Sender: No OFD packet to send [06:45:03]OFD Sender: No OFD packet to send [06:45:08]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:53]OFD Sender: No OFD packet to send [07:01:58]OFD Sender: No OFD packet to send [07:02:03]OFD Sender: No OFD packet to send [07:02:08]OFD Sender: No OFD packet to send [07:02:13]OFD Sender: No OFD packet to send [07:02:18]OFD Sender: No OFD packet to send [07:02:23]OFD Sender: No OFD packet to send [07:02:28]OFD Sender: No OFD packet to send [07:02:33]OFD Sender: No OFD packet to send [07:02:38]OFD Sender: No OFD packet to send [07:02:43]OFD Sender: No OFD packet to send [07:02:48]OFD Sender: No OFD packet to send [07:02:53]OFD Sender: No OFD packet to send [07:02:58]OFD Sender: No OFD packet to send [07:03:03]OFD Sender: No OFD packet to send [07:03:08]OFD Sender: No OFD packet to send [07:03:13]OFD Sender: No OFD packet to send [07:03:18]OFD Sender: No OFD packet to send [07:03:23]OFD Sender: No OFD packet to send [07:03:28]OFD Sender: No OFD packet to send [07:03:33]OFD Sender: No OFD packet to send [07:03:38]OFD Sender: No OFD packet to send [07:03:43]OFD Sender: No OFD packet to send [07:03:48]OFD Sender: No OFD packet to send [07:03:53]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:34]OFD Sender: No OFD packet to send [07:18:39]OFD Sender: No OFD packet to send [07:18:44]OFD Sender: No OFD packet to send [07:18:49]OFD Sender: No OFD packet to send [07:18:54]OFD Sender: No OFD packet to send [07:18:59]OFD Sender: No OFD packet to send [07:19:04]OFD Sender: No OFD packet to send [07:19:09]OFD Sender: No OFD packet to send [07:19:14]OFD Sender: No OFD packet to send [07:19:19]OFD Sender: No OFD packet to send [07:19:24]OFD Sender: No OFD packet to send [07:19:29]OFD Sender: No OFD packet to send [07:19:34]OFD Sender: No OFD packet to send [07:19:39]OFD Sender: No OFD packet to send [07:19:44]OFD Sender: No OFD packet to send [07:19:49]OFD Sender: No OFD packet to send [07:19:54]OFD Sender: No OFD packet to send [07:19:59]OFD Sender: No OFD packet to send [07:20:04]OFD Sender: No OFD packet to send [07:20:09]OFD Sender: No OFD packet to send [07:20:14]OFD Sender: No OFD packet to send [07:20:19]OFD Sender: No OFD packet to send [07:20:24]OFD Sender: No OFD packet to send [07:20:29]OFD Sender: No OFD packet to send [07:20:34]OFD Sender: No OFD packet to send [07:20:39]OFD Sender: No OFD packet to send [07:20:44]OFD Sender: No OFD packet to send [07:20:49]OFD Sender: No OFD packet to send [07:20:54]OFD Sender: No OFD packet to send [07:20:59]OFD Sender: No OFD packet to send [07:21:04]OFD Sender: No OFD packet to send [07:21:09]OFD Sender: No OFD packet to send [07:21:14]OFD Sender: No OFD packet to send [07:21:19]OFD Sender: No OFD packet to send [07:21:24]OFD Sender: No OFD packet to send [07:21:29]OFD Sender: No OFD packet to send [07:21:34]OFD Sender: No OFD packet to send [07:21:39]OFD Sender: No OFD packet to send [07:21:44]OFD Sender: No OFD packet to send [07:21:49]OFD Sender: No OFD packet to send [07:21:54]OFD Sender: No OFD packet to send [07:21:59]OFD Sender: No OFD packet to send [07:22:04]OFD Sender: No OFD packet to send [07:22:09]OFD Sender: No OFD packet to send [07:22:14]OFD Sender: No OFD packet to send [07:22:19]OFD Sender: No OFD packet to send [07:22:24]OFD Sender: No OFD packet to send [07:22:29]OFD Sender: No OFD packet to send [07:22:34]OFD Sender: No OFD packet to send [07:22:39]OFD Sender: No OFD packet to send [07:22:44]OFD Sender: No OFD packet to send [07:22:49]OFD Sender: No OFD packet to send [07:22:54]OFD Sender: No OFD packet to send [07:22:59]OFD Sender: No OFD packet to send [07:23:04]OFD Sender: No OFD packet to send [07:23:09]OFD Sender: No OFD packet to send [07:23:14]OFD Sender: No OFD packet to send [07:23:19]OFD Sender: No OFD packet to send [07:23:24]OFD Sender: No OFD packet to send [07:23:29]OFD Sender: No OFD packet to send [07:23:34]OFD Sender: No OFD packet to send [07:23:39]OFD Sender: No OFD packet to send [07:23:44]OFD Sender: No OFD packet to send [07:23:49]OFD Sender: No OFD packet to send [07:23:54]OFD Sender: No OFD packet to send [07:23:59]OFD Sender: No OFD packet to send [07:24:04]OFD Sender: No OFD packet to send [07:24:09]OFD Sender: No OFD packet to send [07:24:14]OFD Sender: No OFD packet to send [07:24:19]OFD Sender: No OFD packet to send [07:24:24]OFD Sender: No OFD packet to send [07:24:29]OFD Sender: No OFD packet to send [07:24:34]OFD Sender: No OFD packet to send [07:24:39]OFD Sender: No OFD packet to send [07:24:44]OFD Sender: No OFD packet to send [07:24:49]OFD Sender: No OFD packet to send [07:24:55]OFD Sender: No OFD packet to send [07:24:58]accept exits with 7 [07:24:58]New connection [07:24:58]New thread 3067374948 created [07:24:58]Thread 3067518308 joined [07:24:58]Waiting for new connection... [07:24:58] Sock 7.Parse request [07:24:58]Sock 7.Check first char [07:24:58]Sock 7.First char is OK [07:24:58]request: POST /json_proto HTTP/1.0 [07:24:58]Method: POST [07:24:58]URL: /json_proto [07:24:58]Method is POST - this is cgi request [07:24:58]url: /json_proto [07:24:58]query_string will be loaded in cgi processing [07:24:58]execute_cgi json_proto POST (null) [07:24:58]execute_cgi path=json_proto method=POST [07:24:58]POST find Content-Length [07:24:58]Host: 172.17.60.69:8080 [07:24:58]Content-Length: 1141 [07:24:58]Content-Type: application/json [07:24:58] [07:24:58]POST finish read [07:24:58]Found Content-Length = 1141 [07:24:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73345", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "42113270", "name": "\u0416\u0435\u0432 Orbit \u0430\u0440\u0431\u0443\u0437", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "7622210515056", "name": "\u043B\u0435\u0434\u0435\u043D Halls \u043B\u0435\u0441\u043D\u044B\u0435 \u044F\u0433\u043E\u0434\u044B", "price" : 53.00, "quantity" : 1.000, "sum" : 53.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 213.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:24:58]execute_script... [07:24:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73345", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "42113270", "name": "\u0416\u0435\u0432 Orbit \u0430\u0440\u0431\u0443\u0437", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "7622210515056", "name": "\u043B\u0435\u0434\u0435\u043D Halls \u043B\u0435\u0441\u043D\u044B\u0435 \u044F\u0433\u043E\u0434\u044B", "price" : 53.00, "quantity" : 1.000, "sum" : 53.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 213.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:24:58]POST & json_proto [07:24:58]process_json_proto [07:24:58]json parsed OK: [07:24:58]protocol is kg_v1.0 [07:24:58]action value=close_receipt [07:24:58]process_action close_receipt [07:24:58]cmd_close_receipt [07:24:58]MH_GetDate [07:24:58]Write to MH i2c: F0 00 00 8C 01 7C [07:24:58]Write i2c OK [07:24:58]MH_I2C_Read... [07:24:58]Read from MH i2c: F0 [07:24:58]MH_I2C_Read... [07:24:58]Read from MH i2c: F0 09 00 [07:24:58]MH_I2C_Read... [07:24:58]Read from MH i2c: F0 09 00 8C 01 00 CB 6F 5D 66 6A 96 4A 66 32 [07:24:58]GetLastDocTimeStamp 1717396305 [07:24:58]current date 1717399499 [07:24:58]FM_GetShiftState [07:24:58]SAM_PROTO_GetShiftState [07:24:58]wFMCommunicate request_size=4 [07:24:58]MH_SAM_APDU [07:24:58]CAPDU: 80 13 01 00 [07:24:58]Write to MH i2c: E2 08 00 8D 01 80 13 01 00 00 00 00 00 0B [07:24:58]Write i2c OK [07:24:58]MH_I2C_Read... [07:24:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:24:58]Read from MH i2c: E2 [07:24:58]MH_I2C_Read... [07:24:58]Read from MH i2c: E2 0E 00 [07:24:58]MH_I2C_Read... [07:24:58]Read from MH i2c: E2 0E 00 8D 01 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 D7 [07:24:58]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [07:24:58]wFMCommunicate OK [07:24:58]SAM_PROTO_GetShiftState done [07:24:58]FM_GetShiftState done [07:24:58]opened in 1717373173 [07:24:58]opened+sec_in_day 1717459573 [07:24:58]quantity*price = 11500 [07:24:58]sum+1 = 11501 [07:24:58]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 42113270 Жев Orbit арбуз 1.000 * 45.00 = 45.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 7622210515056 леден Halls лесные ягоды 1.000 * 53.00 = 53.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 213.00 НСП 1% : 1.89 НДС 12% : 22.62 Наличными: 213.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 14 03.06.2024 07:24 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63756 ФПД: 24503483790772 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T072459&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63756&fm=24503483790772&tin=02508201610067®Number=0000000000092737&sum=21300 0 [07:24:59]StoreToDocumentArchive [07:24:59]shift 373 fd 63756 [07:24:59]save to /storage/0373/doc_00063756 [07:24:59]save last doc name /storage/0373/doc_00063756 to /storage/kkm_last_doc_name [07:24:59]save OK [07:24:59]Clear old archive folders... [07:24:59]ProcessDocumentItem done err = 0, tmpTLVsize=482 [07:24:59]tlvbuf is 00D3B7C0 [07:24:59]SAM_PROTO_ClearQueue [07:24:59]wFMCommunicate request_size=4 [07:24:59]MH_SAM_APDU [07:24:59]CAPDU: 80 09 00 00 [07:24:59]Write to MH i2c: E2 08 00 9A 01 80 09 00 00 00 00 00 00 0D [07:24:59]Write i2c OK [07:24:59]MH_I2C_Read... [07:24:59]Read from MH i2c: E2 [07:24:59]MH_I2C_Read... [07:24:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:24:59]Read from MH i2c: E2 03 00 [07:24:59]MH_I2C_Read... [07:24:59]Read from MH i2c: E2 03 00 9A 01 00 90 00 0F [07:24:59]RAPDU: 90 00 [07:24:59]wFMCommunicate OK [07:24:59]SAM_PROTO_ClearQueue done [07:24:59]KKMCreateOFDPacket [07:24:59]OFDProtocolAddRootSTLVToBuf [07:24:59]FM_MakeSignedData [07:24:59]FM_MakeSignedData [07:24:59]SAM_PROTO_SignData [07:24:59]wFMCommunicate request_size=4 [07:24:59]MH_SAM_APDU [07:24:59]CAPDU: 80 0D 01 02 [07:24:59]Write to MH i2c: E2 08 00 9B 01 80 0D 01 02 00 00 00 00 15 [07:24:59]Write i2c OK [07:24:59]MH_I2C_Read... [07:24:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:24:59]Read from MH i2c: E2 [07:24:59]MH_I2C_Read... [07:24:59]Read from MH i2c: E2 03 00 [07:24:59]MH_I2C_Read... [07:24:59]Read from MH i2c: E2 03 00 9B 01 00 90 00 10 [07:24:59]RAPDU: 90 00 [07:24:59]wFMCommunicate OK [07:24:59]wFMCommunicate request_size=255 [07:24:59]MH_SAM_APDU [07:24:59]CAPDU: 80 0D 02 02 FA 03 00 E2 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 56 00 8A 04 08 00 34 32 31 31 33 32 37 30 06 04 17 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B0 D1 80 D0 B1 D1 83 D0 B7 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 37 36 32 32 32 31 30 35 31 35 30 35 36 06 04 28 00 D0 BB D0 B5 D0 B4 D0 B5 D0 BD 20 48 61 6C 6C 73 [07:24:59]Write to MH i2c: E2 02 01 9C 01 80 0D 02 02 FA 00 03 00 E2 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 56 00 8A 04 08 00 34 32 31 31 33 32 37 30 06 04 17 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B0 D1 80 D0 B1 D1 83 D0 B7 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 37 36 32 32 32 31 30 35 31 35 30 35 36 06 04 28 00 D0 BB D0 B5 D0 B4 D0 B5 D0 BD 20 48 61 6C 6C 73 00 00 9F [07:24:59]Write i2c OK [07:24:59]MH_I2C_Read... [07:25:00]OFD Sender: No OFD packet to send [07:25:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:25:00]Read from MH i2c: E2 [07:25:00]MH_I2C_Read... [07:25:00]Read from MH i2c: E2 03 00 [07:25:00]MH_I2C_Read... [07:25:00]Read from MH i2c: E2 03 00 9C 01 00 90 00 11 [07:25:00]RAPDU: 90 00 [07:25:00]wFMCommunicate OK [07:25:00]wFMCommunicate request_size=241 [07:25:00]MH_SAM_APDU [07:25:00]CAPDU: 80 0D 02 02 EC 20 D0 BB D0 B5 D1 81 D0 BD D1 8B D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B4 14 00 00 00 00 13 04 06 00 B4 14 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 53 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D6 08 00 00 00 00 07 04 06 00 34 53 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 CB 6F 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 0C F9 00 00 35 04 06 00 16 49 29 72 75 B4 [07:25:00]Write to MH i2c: E2 F4 00 9D 01 80 0D 02 02 EC 00 20 D0 BB D0 B5 D1 81 D0 BD D1 8B D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B4 14 00 00 00 00 13 04 06 00 B4 14 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 53 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D6 08 00 00 00 00 07 04 06 00 34 53 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 CB 6F 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 0C F9 00 00 35 04 06 00 16 49 29 72 75 B4 00 00 81 [07:25:00]Write i2c OK [07:25:00]MH_I2C_Read... [07:25:00]Read from MH i2c: E2 [07:25:00]MH_I2C_Read... [07:25:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:25:00]Read from MH i2c: E2 03 00 [07:25:00]MH_I2C_Read... [07:25:00]Read from MH i2c: E2 03 00 9D 01 00 90 00 12 [07:25:00]RAPDU: 90 00 [07:25:00]wFMCommunicate OK [07:25:00]wFMCommunicate request_size=4 [07:25:00]MH_SAM_APDU [07:25:00]CAPDU: 80 0D 03 02 [07:25:00]Write to MH i2c: E2 08 00 9E 01 80 0D 03 02 00 00 00 00 1A [07:25:00]Write i2c OK [07:25:00]MH_I2C_Read... [07:25:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:25:00]Read from MH i2c: E2 [07:25:00]MH_I2C_Read... [07:25:00]Read from MH i2c: E2 0B 00 [07:25:00]MH_I2C_Read... [07:25:00]Read from MH i2c: E2 0B 00 9E 01 00 18 81 0D DC 1D 3E ED 99 90 00 7E [07:25:00]RAPDU: 18 81 0D DC 1D 3E ED 99 90 00 [07:25:00]wFMCommunicate OK [07:25:00]SAM_PROTO_SignData done [07:25:00]FM_MakeSignedData done [07:25:00]CreateOFDProtocolMessage [07:25:00]wFMCommunicate request_size=4 [07:25:00]MH_SAM_APDU [07:25:00]CAPDU: 80 11 00 00 [07:25:00]Write to MH i2c: E2 08 00 9F 01 80 11 00 00 00 00 00 00 1A [07:25:00]Write i2c OK [07:25:00]MH_I2C_Read... [07:25:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:25:00]Read from MH i2c: E2 [07:25:00]MH_I2C_Read... [07:25:00]Read from MH i2c: E2 17 00 [07:25:00]MH_I2C_Read... [07:25:00]Read from MH i2c: E2 17 00 9F 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 6C [07:25:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [07:25:00]wFMCommunicate OK [07:25:00]CreateOFDProtocolMessage done [07:25:00]OFDSenderStorePacket 63756 [07:25:00]StoreOFDPacket docnum=63756 [07:25:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 F6 01 00 00 AB A4 EE 01 C6 C6 5A 03 01 00 03 00 E2 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 56 00 8A 04 08 00 34 32 31 31 33 32 37 30 06 04 17 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B0 D1 80 D0 B1 D1 83 D0 B7 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 37 36 32 32 32 31 30 35 31 35 30 35 36 06 04 28 00 D0 BB D0 B5 D0 B4 D0 B5 D0 BD 20 48 61 6C 6C 73 20 D0 BB D0 B5 D1 81 D0 BD D1 8B D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B4 14 00 00 00 00 13 04 06 00 B4 14 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 53 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D6 08 00 00 00 00 07 04 06 00 34 53 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 CB 6F 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 0C F9 00 00 35 04 06 00 16 49 29 72 75 B4 18 81 0D DC 1D 3E ED 99 [07:25:00]CheckFolder [07:25:00]dirname=/storage/ofd_packets [07:25:00]CheckFolder done [07:25:00]ProducePacketName [07:25:00]name=ofd_packets/00063756 [07:25:00]NVStorageSaveData ofd_packets/00063756 [07:25:00]File name is /storage/ofd_packets/00063756 [07:25:00]Write 532 bytes [07:25:00]NVStorageSaveData done [07:25:00]OFDSenderStorePacket done [07:25:00]KKMCreateOFDPacket done [07:25:00]NVStorageSaveData kkm_last_timestamp [07:25:00]File name is /storage/kkm_last_timestamp [07:25:00]Write 4 bytes [07:25:00]NVStorageSaveData done [07:25:00]ExternCall_PrintAddStr [07:25:00]wPrintStart [07:25:00]Write to MH i2c: 01 00 00 A0 01 A1 [07:25:00]Write i2c OK [07:25:00]MH_I2C_Read... [07:25:00]Read from MH i2c: 01 [07:25:00]MH_I2C_Read... [07:25:00]Read from MH i2c: 01 07 00 [07:25:00]MH_I2C_Read... [07:25:00]Read from MH i2c: 01 07 00 A0 01 00 00 00 00 00 FF 0F B6 [07:25:00]RasterBufferAndPrint [07:25:00]line Счет N : (3)73345 [07:25:00]line ИНН: 02508201610067 [07:25:00]line Контрольно-Кассовый Чек [07:25:00]line ПРОДАЖА [07:25:00]line Товар: 2000036210013 [07:25:00]line Кофе Капучино (GABB TRADE) [07:25:00]line 1.000 * 115.00 [07:25:00]line = 115.00 [07:25:00]line НДС 12% НСП 1% [07:25:00]line > о реализуемом товаре [07:25:00]line Товар: 42113270 [07:25:00]line Жев Orbit арбуз [07:25:00]line 1.000 * 45.00 [07:25:00]line = 45.00 [07:25:00]line НДС 12% НСП 1% [07:25:00]line > о реализуемом товаре [07:25:00]line Товар: 7622210515056 [07:25:00]line леден Halls лесные ягоды [07:25:00]line 1.000 * 53.00 [07:25:00]line = 53.00 [07:25:00]line НДС 12% НСП 1% [07:25:00]line > о реализуемом товаре [07:25:00]line ИТОГО: 213.00 [07:25:00]line НСП 1% : 1.89 [07:25:00]line НДС 12% : 22.62 [07:25:00]line Наличными: 213.00 [07:25:00]line Безнал.: 0.00 [07:25:00]line Место: АЗС № 117 "Партнер Нефть" [07:25:00]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [07:25:00]line СНО: Общий режим [07:25:00]line Чек 14 03.06.2024 07:24 [07:25:00]line Смена: 373 ФФД: 1.0 [07:25:00]line ЗНМ: 0300000031 [07:25:00]line РНМ: 0000000000092737 [07:25:00]line Версия ККМ: 001 [07:25:00]line ФМ: 0000000000875074 [07:25:00]line ФД: 63756 [07:25:00]line ФПД: 24503483790772 [07:25:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T072459&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63756&fm=24503483790772&tin=02508201610067®Number=0000000000092737&sum=21300 [07:25:00]line 0 [07:25:00]written 0, free lines is 4095 [07:25:00]OFD Sender: Processing packet 63756 [packets to send 14, broken 13] [07:25:00]ProducePacketName [07:25:00]name=ofd_packets/00063756 [07:25:00]OFD Sender: To server: pG, [07:25:00]CommunicateWithHost lk.salyk.kg:30040 [07:25:00]ConnectInit lk.salyk.kg [07:25:00]Connected sock=10 [07:25:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 F6 01 00 00 AB A4 EE 01 C6 C6 5A 03 01 00 03 00 E2 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 56 00 8A 04 08 00 34 32 31 31 33 32 37 30 06 04 17 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B0 D1 80 D0 B1 D1 83 D0 B7 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 37 36 32 32 32 31 30 35 31 35 30 35 36 06 04 28 00 D0 BB D0 B5 D0 B4 D0 B5 D0 BD 20 48 61 6C 6C 73 20 D0 BB D0 B5 D1 81 D0 BD D1 8B D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B4 14 00 00 00 00 13 04 06 00 B4 14 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 53 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D6 08 00 00 00 00 07 04 06 00 34 53 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 CB 6F 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 0C F9 00 00 35 04 06 00 16 49 29 72 75 B4 18 81 0D DC 1D 3E ED 99 [07:25:01]Write to MH i2c: 01 00 00 D4 01 D5 [07:25:01]Write i2c OK [07:25:01]MH_I2C_Read... [07:25:01]Read from MH i2c: 01 [07:25:01]MH_I2C_Read... [07:25:01]Read from MH i2c: 01 07 00 [07:25:01]MH_I2C_Read... [07:25:01]Read from MH i2c: 01 07 00 D4 01 00 00 00 00 00 4D 0C 35 [07:25:01]RasterBufferAndPrint [07:25:01]line [07:25:01]line [07:25:01]line [07:25:01]line [07:25:01]line [07:25:01]written 0, free lines is 3155 [07:25:01]MH_Cut [07:25:01]Write to MH i2c: D1 01 00 DB 01 01 AE [07:25:01]Write i2c OK [07:25:01]MH_I2C_Read... [07:25:01]Read from MH i2c: D1 [07:25:01]MH_I2C_Read... [07:25:01]Read from MH i2c: D1 01 00 [07:25:01]MH_I2C_Read... [07:25:01]Read from MH i2c: D1 01 00 DB 01 00 AD [07:25:01]Write to MH i2c: 01 00 00 DC 01 DD [07:25:01]Write i2c OK [07:25:01]MH_I2C_Read... [07:25:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 F7 31 47 00 86 68 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 0C F9 00 00 F4 03 04 00 9D 1B 5D 66 B6 04 01 00 00 C0 29 EA 0B A5 3B CA B1 [07:25:01]CommunicateWithHost err = 0 [07:25:01]CheckOFDResponse [07:25:01]1017 (14) - 77093643461234 [07:25:01]1041 (16) - 0000000000875074 [07:25:01]1040 (4) - 63756 [07:25:01]1012 (4) - 03.06.2024 01:25 [07:25:01]1206 (1) - 0 [07:25:01]OFD Sender: Remove packet 63756 [07:25:01]ProducePacketName [07:25:01]name=ofd_packets/00063756 [07:25:01]NVStorageDeleteData [07:25:01]OFD Sender: No OFD packet to send [07:25:01]*** Cut start [07:25:01]*** Partial cut [07:25:01]*** CUTSNS_PIN = 1 [07:25:01]*** CUTSNS_PIN = 0 [07:25:02]*** Brake cut motor [07:25:02]Read from MH i2c: 01 [07:25:02]MH_I2C_Read... [07:25:02]*** Stop cut motor [07:25:02]*** Cut end [07:25:02]Read from MH i2c: 01 07 00 [07:25:02]MH_I2C_Read... [07:25:02]Read from MH i2c: 01 07 00 DC 01 00 00 00 00 00 FF 0F F2 [07:25:02]process_action close_receipt done [07:25:02]requested_data is exist [07:25:02]produce_requested_data [07:25:02]requested_item fm.sn is exist - process it [07:25:02]wFMCommunicate request_size=4 [07:25:02]MH_SAM_APDU [07:25:02]CAPDU: 80 11 00 00 [07:25:02]Write to MH i2c: E2 08 00 DD 01 80 11 00 00 00 00 00 00 58 [07:25:02]Write i2c OK [07:25:02]MH_I2C_Read... [07:25:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:25:02]Read from MH i2c: E2 [07:25:02]MH_I2C_Read... [07:25:02]Read from MH i2c: E2 17 00 [07:25:02]MH_I2C_Read... [07:25:02]Read from MH i2c: E2 17 00 DD 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 AA [07:25:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [07:25:02]wFMCommunicate OK [07:25:02]requested_item fd.num is exist - process it [07:25:02]SAM_PROTO_GetFieldsCounters [07:25:02]wFMCommunicate request_size=4 [07:25:02]MH_SAM_APDU [07:25:02]CAPDU: 80 13 00 00 [07:25:02]Write to MH i2c: E2 08 00 DE 01 80 13 00 00 00 00 00 00 5B [07:25:02]Write i2c OK [07:25:02]MH_I2C_Read... [07:25:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:25:02]Read from MH i2c: E2 [07:25:02]MH_I2C_Read... [07:25:02]Read from MH i2c: E2 62 00 [07:25:02]MH_I2C_Read... [07:25:02]Read from MH i2c: E2 62 00 DE 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 0C F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 23 [07:25: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 0C F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:25:02]wFMCommunicate OK [07:25:02]SAM_PROTO_GetFieldsCounters done [07:25:02]requested_item shift.num is exist - process it [07:25:02]requested_item shift.opened is exist - process it [07:25:02]req_shift_opened [07:25:02]FM_GetShiftState [07:25:02]SAM_PROTO_GetShiftState [07:25:02]wFMCommunicate request_size=4 [07:25:02]MH_SAM_APDU [07:25:02]CAPDU: 80 13 01 00 [07:25:02]Write to MH i2c: E2 08 00 DF 01 80 13 01 00 00 00 00 00 5D [07:25:02]Write i2c OK [07:25:02]MH_I2C_Read... [07:25:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:25:02]Read from MH i2c: E2 [07:25:02]MH_I2C_Read... [07:25:02]Read from MH i2c: E2 0E 00 [07:25:02]MH_I2C_Read... [07:25:02]Read from MH i2c: E2 0E 00 DF 01 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 29 [07:25:02]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [07:25:02]wFMCommunicate OK [07:25:02]SAM_PROTO_GetShiftState done [07:25:02]FM_GetShiftState done [07:25:02]req_shift_opened done [07:25:02]requested_item shift.open_date is exist - process it [07:25:02]req_shift_open_date [07:25:02]req_shift_open_date done [07:25:02]produce_requested_data done [07:25:02]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63756,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [07:25:02]process_action_free close_receipt [07:25:02]json_value_free [07:25:02]json_value_free done [07:25:02]process_json_proto returns [07:25:02]Send response to host [07:25:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63756,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [07:25:02]free response buf [07:25:02]execute_script done [07:25:02]execute_script returns [07:25:02]free content buf [07:25:02]Sock 7.Close socket [07:25:02]Sock 7.Thread stoped [07:25:06]OFD Sender: No OFD packet to send [07:25:11]OFD Sender: No OFD packet to send [07:25:16]OFD Sender: No OFD packet to send [07:25:21]OFD Sender: No OFD packet to send [07:25:26]OFD Sender: No OFD packet to send [07:25:31]OFD Sender: No OFD packet to send [07:25:36]OFD Sender: No OFD packet to send [07:25:41]OFD Sender: No OFD packet to send [07:25:46]OFD Sender: No OFD packet to send [07:25:51]OFD Sender: No OFD packet to send [07:25:56]OFD Sender: No OFD packet to send [07:26:01]OFD Sender: No OFD packet to send [07:26:06]OFD Sender: No OFD packet to send [07:26:11]OFD Sender: No OFD packet to send [07:26:16]OFD Sender: No OFD packet to send [07:26:21]OFD Sender: No OFD packet to send [07:26:26]OFD Sender: No OFD packet to send [07:26:31]OFD Sender: No OFD packet to send [07:26:36]OFD Sender: No OFD packet to send [07:26:41]OFD Sender: No OFD packet to send [07:26:46]OFD Sender: No OFD packet to send [07:26:51]OFD Sender: No OFD packet to send [07:26:56]OFD Sender: No OFD packet to send [07:27:01]OFD Sender: No OFD packet to send [07:27:06]OFD Sender: No OFD packet to send [07:27:11]OFD Sender: No OFD packet to send [07:27:16]OFD Sender: No OFD packet to send [07:27:21]OFD Sender: No OFD packet to send [07:27:26]OFD Sender: No OFD packet to send [07:27:31]OFD Sender: No OFD packet to send [07:27:36]OFD Sender: No OFD packet to send [07:27:41]OFD Sender: No OFD packet to send [07:27:46]OFD Sender: No OFD packet to send [07:27:51]OFD Sender: No OFD packet to send [07:27:56]OFD Sender: No OFD packet to send [07:28:01]OFD Sender: No OFD packet to send [07:28:06]OFD Sender: No OFD packet to send [07:28:11]OFD Sender: No OFD packet to send [07:28:16]OFD Sender: No OFD packet to send [07:28:21]OFD Sender: No OFD packet to send [07:28:26]OFD Sender: No OFD packet to send [07:28:31]OFD Sender: No OFD packet to send [07:28:36]OFD Sender: No OFD packet to send [07:28:41]OFD Sender: No OFD packet to send [07:28:46]OFD Sender: No OFD packet to send [07:28:51]OFD Sender: No OFD packet to send [07:28:56]OFD Sender: No OFD packet to send [07:29:01]OFD Sender: No OFD packet to send [07:29:06]OFD Sender: No OFD packet to send [07:29:11]OFD Sender: No OFD packet to send [07:29:16]OFD Sender: No OFD packet to send [07:29:21]OFD Sender: No OFD packet to send [07:29:26]OFD Sender: No OFD packet to send [07:29:31]OFD Sender: No OFD packet to send [07:29:36]OFD Sender: No OFD packet to send [07:29:41]OFD Sender: No OFD packet to send [07:29:46]OFD Sender: No OFD packet to send [07:29:51]OFD Sender: No OFD packet to send [07:29:56]OFD Sender: No OFD packet to send [07:30:01]OFD Sender: No OFD packet to send [07:30:06]OFD Sender: No OFD packet to send [07:30:11]OFD Sender: No OFD packet to send [07:30:16]OFD Sender: No OFD packet to send [07:30:21]OFD Sender: No OFD packet to send [07:30:26]OFD Sender: No OFD packet to send [07:30:31]OFD Sender: No OFD packet to send [07:30:36]OFD Sender: No OFD packet to send [07:30:41]OFD Sender: No OFD packet to send [07:30:46]OFD Sender: No OFD packet to send [07:30:51]OFD Sender: No OFD packet to send [07:30:56]OFD Sender: No OFD packet to send [07:31:01]OFD Sender: No OFD packet to send [07:31:06]OFD Sender: No OFD packet to send [07:31:11]OFD Sender: No OFD packet to send [07:31:16]OFD Sender: No OFD packet to send [07:31:21]OFD Sender: No OFD packet to send [07:31:26]OFD Sender: No OFD packet to send [07:31:31]OFD Sender: No OFD packet to send [07:31:36]OFD Sender: No OFD packet to send [07:31:41]OFD Sender: No OFD packet to send [07:31:46]OFD Sender: No OFD packet to send [07:31:51]OFD Sender: No OFD packet to send [07:31:56]OFD Sender: No OFD packet to send [07:32:01]OFD Sender: No OFD packet to send [07:32:06]OFD Sender: No OFD packet to send [07:32:11]OFD Sender: No OFD packet to send [07:32:16]OFD Sender: No OFD packet to send [07:32:21]OFD Sender: No OFD packet to send [07:32:26]OFD Sender: No OFD packet to send [07:32:31]OFD Sender: No OFD packet to send [07:32:36]OFD Sender: No OFD packet to send [07:32:41]OFD Sender: No OFD packet to send [07:32:46]OFD Sender: No OFD packet to send [07:32:51]OFD Sender: No OFD packet to send [07:32:56]OFD Sender: No OFD packet to send [07:33:01]OFD Sender: No OFD packet to send [07:33:06]OFD Sender: No OFD packet to send [07:33:11]OFD Sender: No OFD packet to send [07:33:16]OFD Sender: No OFD packet to send [07:33:21]OFD Sender: No OFD packet to send [07:33:26]OFD Sender: No OFD packet to send [07:33:31]OFD Sender: No OFD packet to send [07:33:36]OFD Sender: No OFD packet to send [07:33:41]OFD Sender: No OFD packet to send [07:33:46]OFD Sender: No OFD packet to send [07:33:51]OFD Sender: No OFD packet to send [07:33:56]OFD Sender: No OFD packet to send [07:34:01]OFD Sender: No OFD packet to send [07:34:06]OFD Sender: No OFD packet to send [07:34:11]OFD Sender: No OFD packet to send [07:34:17]OFD Sender: No OFD packet to send [07:34:22]OFD Sender: No OFD packet to send [07:34:27]OFD Sender: No OFD packet to send [07:34:32]OFD Sender: No OFD packet to send [07:34:37]OFD Sender: No OFD packet to send [07:34:42]OFD Sender: No OFD packet to send [07:34:47]OFD Sender: No OFD packet to send [07:34:52]OFD Sender: No OFD packet to send [07:34:57]OFD Sender: No OFD packet to send [07:35:02]OFD Sender: No OFD packet to send [07:35:07]OFD Sender: No OFD packet to send [07:35:12]OFD Sender: No OFD packet to send [07:35:17]OFD Sender: No OFD packet to send [07:35:22]OFD Sender: No OFD packet to send [07:35:27]OFD Sender: No OFD packet to send [07:35:32]OFD Sender: No OFD packet to send [07:35:37]OFD Sender: No OFD packet to send [07:35:42]OFD Sender: No OFD packet to send [07:35:47]OFD Sender: No OFD packet to send [07:35:52]OFD Sender: No OFD packet to send [07:35:57]OFD Sender: No OFD packet to send [07:36:02]OFD Sender: No OFD packet to send [07:36:07]OFD Sender: No OFD packet to send [07:36:12]OFD Sender: No OFD packet to send [07:36:17]OFD Sender: No OFD packet to send [07:36:22]OFD Sender: No OFD packet to send [07:36:27]OFD Sender: No OFD packet to send [07:36:32]OFD Sender: No OFD packet to send [07:36:37]OFD Sender: No OFD packet to send [07:36:42]OFD Sender: No OFD packet to send [07:36:47]OFD Sender: No OFD packet to send [07:36:52]OFD Sender: No OFD packet to send [07:36:57]OFD Sender: No OFD packet to send [07:37:02]OFD Sender: No OFD packet to send [07:37:07]OFD Sender: No OFD packet to send [07:37:12]OFD Sender: No OFD packet to send [07:37:17]OFD Sender: No OFD packet to send [07:37:22]OFD Sender: No OFD packet to send [07:37:27]OFD Sender: No OFD packet to send [07:37:32]OFD Sender: No OFD packet to send [07:37:37]OFD Sender: No OFD packet to send [07:37:42]OFD Sender: No OFD packet to send [07:37:47]OFD Sender: No OFD packet to send [07:37:52]OFD Sender: No OFD packet to send [07:37:57]OFD Sender: No OFD packet to send [07:38:02]OFD Sender: No OFD packet to send [07:38:07]OFD Sender: No OFD packet to send [07:38:12]OFD Sender: No OFD packet to send [07:38:17]OFD Sender: No OFD packet to send [07:38:22]OFD Sender: No OFD packet to send [07:38:27]OFD Sender: No OFD packet to send [07:38:32]OFD Sender: No OFD packet to send [07:38:37]OFD Sender: No OFD packet to send [07:38:42]OFD Sender: No OFD packet to send [07:38:47]OFD Sender: No OFD packet to send [07:38:52]OFD Sender: No OFD packet to send [07:38:57]OFD Sender: No OFD packet to send [07:39:02]OFD Sender: No OFD packet to send [07:39:07]OFD Sender: No OFD packet to send [07:39:12]OFD Sender: No OFD packet to send [07:39:17]OFD Sender: No OFD packet to send [07:39:22]OFD Sender: No OFD packet to send [07:39:27]OFD Sender: No OFD packet to send [07:39:32]OFD Sender: No OFD packet to send [07:39:37]OFD Sender: No OFD packet to send [07:39:42]OFD Sender: No OFD packet to send [07:39:47]OFD Sender: No OFD packet to send [07:39:52]OFD Sender: No OFD packet to send [07:39:57]OFD Sender: No OFD packet to send [07:40:02]OFD Sender: No OFD packet to send [07:40:07]OFD Sender: No OFD packet to send [07:40:12]OFD Sender: No OFD packet to send [07:40:17]OFD Sender: No OFD packet to send [07:40:22]OFD Sender: No OFD packet to send [07:40:27]OFD Sender: No OFD packet to send [07:40:32]OFD Sender: No OFD packet to send [07:40:37]OFD Sender: No OFD packet to send [07:40:42]OFD Sender: No OFD packet to send [07:40:47]OFD Sender: No OFD packet to send [07:40:52]OFD Sender: No OFD packet to send [07:40:57]OFD Sender: No OFD packet to send [07:41:02]OFD Sender: No OFD packet to send [07:41:07]OFD Sender: No OFD packet to send [07:41:12]OFD Sender: No OFD packet to send [07:41:17]OFD Sender: No OFD packet to send [07:41:22]OFD Sender: No OFD packet to send [07:41:27]OFD Sender: No OFD packet to send [07:41:32]OFD Sender: No OFD packet to send [07:41:37]OFD Sender: No OFD packet to send [07:41:42]OFD Sender: No OFD packet to send [07:41:47]OFD Sender: No OFD packet to send [07:41:52]OFD Sender: No OFD packet to send [07:41:57]OFD Sender: No OFD packet to send [07:42:02]OFD Sender: No OFD packet to send [07:42:07]OFD Sender: No OFD packet to send [07:42:12]OFD Sender: No OFD packet to send [07:42:17]OFD Sender: No OFD packet to send [07:42:22]OFD Sender: No OFD packet to send [07:42:27]OFD Sender: No OFD packet to send [07:42:32]OFD Sender: No OFD packet to send [07:42:37]OFD Sender: No OFD packet to send [07:42:42]OFD Sender: No OFD packet to send [07:42:47]OFD Sender: No OFD packet to send [07:42:48]accept exits with 9 [07:42:48]New connection [07:42:48]New thread 3067518308 created [07:42:48]Thread 3067374948 joined [07:42:48]Waiting for new connection... [07:42:48] Sock 9.Parse request [07:42:48]Sock 9.Check first char [07:42:48]Sock 9.First char is OK [07:42:48]request: POST /json_proto HTTP/1.0 [07:42:48]Method: POST [07:42:48]URL: /json_proto [07:42:48]Method is POST - this is cgi request [07:42:48]url: /json_proto [07:42:48]query_string will be loaded in cgi processing [07:42:48]execute_cgi json_proto POST (null) [07:42:48]execute_cgi path=json_proto method=POST [07:42:48]POST find Content-Length [07:42:48]Host: 172.17.60.69:8080 [07:42:48]Content-Length: 705 [07:42:48]Content-Type: application/json [07:42:48] [07:42:48]POST finish read [07:42:48]Found Content-Length = 705 [07:42:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73346", "tax_sys" : 0, "items" : [ { "code": "5449000189356", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043C\u0430\u043D\u0433\u043E \u0430\u043D\u0430\u043D\u0430\u0441 1\u043B", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 120.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:42:48]execute_script... [07:42:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73346", "tax_sys" : 0, "items" : [ { "code": "5449000189356", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043C\u0430\u043D\u0433\u043E \u0430\u043D\u0430\u043D\u0430\u0441 1\u043B", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 120.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:42:48]POST & json_proto [07:42:48]process_json_proto [07:42:48]json parsed OK: [07:42:48]protocol is kg_v1.0 [07:42:48]action value=close_receipt [07:42:48]process_action close_receipt [07:42:48]cmd_close_receipt [07:42:48]MH_GetDate [07:42:48]Write to MH i2c: F0 00 00 E0 01 D0 [07:42:48]Write i2c OK [07:42:48]MH_I2C_Read... [07:42:48]Read from MH i2c: F0 [07:42:48]MH_I2C_Read... [07:42:48]Read from MH i2c: F0 09 00 [07:42:48]MH_I2C_Read... [07:42:48]Read from MH i2c: F0 09 00 E0 01 00 F9 73 5D 66 6A 96 4A 66 B8 [07:42:48]GetLastDocTimeStamp 1717399499 [07:42:48]current date 1717400569 [07:42:48]FM_GetShiftState [07:42:48]SAM_PROTO_GetShiftState [07:42:48]wFMCommunicate request_size=4 [07:42:48]MH_SAM_APDU [07:42:48]CAPDU: 80 13 01 00 [07:42:48]Write to MH i2c: E2 08 00 E1 01 80 13 01 00 00 00 00 00 5F [07:42:48]Write i2c OK [07:42:48]MH_I2C_Read... [07:42:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:42:48]Read from MH i2c: E2 [07:42:48]MH_I2C_Read... [07:42:48]Read from MH i2c: E2 0E 00 [07:42:48]MH_I2C_Read... [07:42:48]Read from MH i2c: E2 0E 00 E1 01 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 2B [07:42:48]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [07:42:48]wFMCommunicate OK [07:42:48]SAM_PROTO_GetShiftState done [07:42:48]FM_GetShiftState done [07:42:48]opened in 1717373173 [07:42:48]opened+sec_in_day 1717459573 [07:42:48]quantity*price = 12000 [07:42:48]sum+1 = 12001 [07:42:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 120.00 НСП 1% : 1.06 НДС 12% : 12.74 Наличными: 120.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 15 03.06.2024 07:42 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63757 ФПД: 157943757951298 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T074249&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63757&fm=157943757951298&tin=02508201610067®Number=0000000000092737&sum=12000 0 [07:42:49]StoreToDocumentArchive [07:42:49]shift 373 fd 63757 [07:42:49]save to /storage/0373/doc_00063757 [07:42:49]save last doc name /storage/0373/doc_00063757 to /storage/kkm_last_doc_name [07:42:49]save OK [07:42:49]Clear old archive folders... [07:42:49]ProcessDocumentItem done err = 0, tmpTLVsize=298 [07:42:49]tlvbuf is 00D23AC0 [07:42:49]SAM_PROTO_ClearQueue [07:42:49]wFMCommunicate request_size=4 [07:42:49]MH_SAM_APDU [07:42:49]CAPDU: 80 09 00 00 [07:42:49]Write to MH i2c: E2 08 00 EE 01 80 09 00 00 00 00 00 00 61 [07:42:49]Write i2c OK [07:42:49]MH_I2C_Read... [07:42:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:42:49]Read from MH i2c: E2 [07:42:49]MH_I2C_Read... [07:42:49]Read from MH i2c: E2 03 00 [07:42:49]MH_I2C_Read... [07:42:49]Read from MH i2c: E2 03 00 EE 01 00 90 00 63 [07:42:49]RAPDU: 90 00 [07:42:49]wFMCommunicate OK [07:42:49]SAM_PROTO_ClearQueue done [07:42:49]KKMCreateOFDPacket [07:42:49]OFDProtocolAddRootSTLVToBuf [07:42:49]FM_MakeSignedData [07:42:49]FM_MakeSignedData [07:42:49]SAM_PROTO_SignData [07:42:49]wFMCommunicate request_size=4 [07:42:49]MH_SAM_APDU [07:42:49]CAPDU: 80 0D 01 02 [07:42:49]Write to MH i2c: E2 08 00 EF 01 80 0D 01 02 00 00 00 00 69 [07:42:49]Write i2c OK [07:42:49]MH_I2C_Read... [07:42:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:42:50]Read from MH i2c: E2 [07:42:50]MH_I2C_Read... [07:42:50]Read from MH i2c: E2 03 00 [07:42:50]MH_I2C_Read... [07:42:50]Read from MH i2c: E2 03 00 EF 01 00 90 00 64 [07:42:50]RAPDU: 90 00 [07:42:50]wFMCommunicate OK [07:42:50]wFMCommunicate request_size=255 [07:42:50]MH_SAM_APDU [07:42:50]CAPDU: 80 0D 02 02 FA 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 35 36 06 04 38 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 F9 73 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 [07:42:50]Write to MH i2c: E2 02 01 F0 01 80 0D 02 02 FA 00 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 35 36 06 04 38 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 F9 73 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 00 00 1B [07:42:50]Write i2c OK [07:42:50]MH_I2C_Read... [07:42:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:42:50]Read from MH i2c: E2 [07:42:50]MH_I2C_Read... [07:42:50]Read from MH i2c: E2 03 00 [07:42:50]MH_I2C_Read... [07:42:50]Read from MH i2c: E2 03 00 F0 01 00 90 00 65 [07:42:50]RAPDU: 90 00 [07:42:50]wFMCommunicate OK [07:42:50]wFMCommunicate request_size=57 [07:42:50]MH_SAM_APDU [07:42:50]CAPDU: 80 0D 02 02 34 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 0D F9 00 00 35 04 06 00 8F A6 25 96 51 42 [07:42:50]Write to MH i2c: E2 3C 00 F1 01 80 0D 02 02 34 00 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 0D F9 00 00 35 04 06 00 8F A6 25 96 51 42 00 00 B4 [07:42:50]Write i2c OK [07:42:50]MH_I2C_Read... [07:42:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:42:50]Read from MH i2c: E2 [07:42:50]MH_I2C_Read... [07:42:50]Read from MH i2c: E2 03 00 [07:42:50]MH_I2C_Read... [07:42:50]Read from MH i2c: E2 03 00 F1 01 00 90 00 66 [07:42:50]RAPDU: 90 00 [07:42:50]wFMCommunicate OK [07:42:50]wFMCommunicate request_size=4 [07:42:50]MH_SAM_APDU [07:42:50]CAPDU: 80 0D 03 02 [07:42:50]Write to MH i2c: E2 08 00 F2 01 80 0D 03 02 00 00 00 00 6E [07:42:50]Write i2c OK [07:42:50]MH_I2C_Read... [07:42:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:42:50]Read from MH i2c: E2 [07:42:50]MH_I2C_Read... [07:42:50]Read from MH i2c: E2 0B 00 [07:42:50]MH_I2C_Read... [07:42:50]Read from MH i2c: E2 0B 00 F2 01 00 0F 98 AB 88 8A E1 AD 4B 90 00 AC [07:42:50]RAPDU: 0F 98 AB 88 8A E1 AD 4B 90 00 [07:42:50]wFMCommunicate OK [07:42:50]SAM_PROTO_SignData done [07:42:50]FM_MakeSignedData done [07:42:50]CreateOFDProtocolMessage [07:42:50]wFMCommunicate request_size=4 [07:42:50]MH_SAM_APDU [07:42:50]CAPDU: 80 11 00 00 [07:42:50]Write to MH i2c: E2 08 00 F3 01 80 11 00 00 00 00 00 00 6E [07:42:50]Write i2c OK [07:42:50]MH_I2C_Read... [07:42:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:42:50]Read from MH i2c: E2 [07:42:50]MH_I2C_Read... [07:42:50]Read from MH i2c: E2 17 00 [07:42:50]MH_I2C_Read... [07:42:50]Read from MH i2c: E2 17 00 F3 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 C0 [07:42:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [07:42:50]wFMCommunicate OK [07:42:50]CreateOFDProtocolMessage done [07:42:50]OFDSenderStorePacket 63757 [07:42:50]StoreOFDPacket docnum=63757 [07:42:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 3E 01 00 00 03 E0 36 01 79 57 5A 03 01 00 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 35 36 06 04 38 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 F9 73 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 0D F9 00 00 35 04 06 00 8F A6 25 96 51 42 0F 98 AB 88 8A E1 AD 4B [07:42:50]CheckFolder [07:42:50]dirname=/storage/ofd_packets [07:42:50]CheckFolder done [07:42:50]ProducePacketName [07:42:50]name=ofd_packets/00063757 [07:42:50]NVStorageSaveData ofd_packets/00063757 [07:42:50]File name is /storage/ofd_packets/00063757 [07:42:50]Write 348 bytes [07:42:50]NVStorageSaveData done [07:42:50]OFDSenderStorePacket done [07:42:50]KKMCreateOFDPacket done [07:42:50]NVStorageSaveData kkm_last_timestamp [07:42:50]File name is /storage/kkm_last_timestamp [07:42:50]Write 4 bytes [07:42:50]NVStorageSaveData done [07:42:50]ExternCall_PrintAddStr [07:42:50]wPrintStart [07:42:50]Write to MH i2c: 01 00 00 F4 01 F5 [07:42:50]Write i2c OK [07:42:50]MH_I2C_Read... [07:42:50]Read from MH i2c: 01 [07:42:50]MH_I2C_Read... [07:42:50]Read from MH i2c: 01 07 00 [07:42:50]MH_I2C_Read... [07:42:50]Read from MH i2c: 01 07 00 F4 01 00 00 00 00 00 FF 0F 0A [07:42:50]RasterBufferAndPrint [07:42:50]line Счет N : (3)73346 [07:42:50]line ИНН: 02508201610067 [07:42:50]line Контрольно-Кассовый Чек [07:42:50]line ПРОДАЖА [07:42:50]line Товар: 5449000189356 [07:42:50]line Холодный чай Fuse манго ананас 1л [07:42:50]line 1.000 * 120.00 [07:42:50]line = 120.00 [07:42:50]line НДС 12% НСП 1% [07:42:50]line > о реализуемом товаре [07:42:50]line ИТОГО: 120.00 [07:42:50]line НСП 1% : 1.06 [07:42:50]line НДС 12% : 12.74 [07:42:50]line Наличными: 120.00 [07:42:50]line Безнал.: 0.00 [07:42:50]line Место: АЗС № 117 "Партнер Нефть" [07:42:50]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [07:42:50]line СНО: Общий режим [07:42:50]line Чек 15 03.06.2024 07:42 [07:42:50]line Смена: 373 ФФД: 1.0 [07:42:50]line ЗНМ: 0300000031 [07:42:50]line РНМ: 0000000000092737 [07:42:50]line Версия ККМ: 001 [07:42:50]line ФМ: 0000000000875074 [07:42:50]line ФД: 63757 [07:42:50]line ФПД: 157943757951298 [07:42:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T074249&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63757&fm=157943757951298&tin=02508201610067®Number=0000000000092737&sum=12000 [07:42:50]line 0 [07:42:50]OFD Sender: Processing packet 63757 [packets to send 14, broken 13] [07:42:50]ProducePacketName [07:42:50]name=ofd_packets/00063757 [07:42:50]OFD Sender: To server: pG, [07:42:50]CommunicateWithHost lk.salyk.kg:30040 [07:42:50]ConnectInit lk.salyk.kg [07:42:50]written 0, free lines is 4095 [07:42:50]Connected sock=10 [07:42:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 3E 01 00 00 03 E0 36 01 79 57 5A 03 01 00 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 35 36 06 04 38 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 F9 73 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 0D F9 00 00 35 04 06 00 8F A6 25 96 51 42 0F 98 AB 88 8A E1 AD 4B [07:42:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 8D 36 47 00 E8 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 35 30 37 34 10 04 04 00 0D F9 00 00 F4 03 04 00 CC 1F 5D 66 B6 04 01 00 00 B6 78 38 6E CD 33 1A 48 [07:42:51]CommunicateWithHost err = 0 [07:42:51]CheckOFDResponse [07:42:51]1017 (14) - 77093643461234 [07:42:51]1041 (16) - 0000000000875074 [07:42:51]1040 (4) - 63757 [07:42:51]1012 (4) - 03.06.2024 01:43 [07:42:51]1206 (1) - 0 [07:42:51]OFD Sender: Remove packet 63757 [07:42:51]ProducePacketName [07:42:51]name=ofd_packets/00063757 [07:42:51]NVStorageDeleteData [07:42:51]Write to MH i2c: 01 00 00 1D 02 1F [07:42:51]Write i2c OK [07:42:51]MH_I2C_Read... [07:42:51]Read from MH i2c: 01 [07:42:51]MH_I2C_Read... [07:42:51]Read from MH i2c: 01 07 00 [07:42:51]MH_I2C_Read... [07:42:51]Read from MH i2c: 01 07 00 1D 02 00 00 00 00 00 DD 0C 0F [07:42:51]RasterBufferAndPrint [07:42:51]line [07:42:51]line [07:42:51]line [07:42:51]line [07:42:51]line [07:42:51]written 0, free lines is 3299 [07:42:51]MH_Cut [07:42:51]Write to MH i2c: D1 01 00 24 02 01 F8 [07:42:51]Write i2c OK [07:42:51]MH_I2C_Read... [07:42:51]Read from MH i2c: D1 [07:42:51]MH_I2C_Read... [07:42:51]Read from MH i2c: D1 01 00 [07:42:51]MH_I2C_Read... [07:42:51]Read from MH i2c: D1 01 00 24 02 00 F7 [07:42:51]Write to MH i2c: 01 00 00 25 02 27 [07:42:51]Write i2c OK [07:42:51]MH_I2C_Read... [07:42:51]OFD Sender: No OFD packet to send [07:42:52]*** Cut start [07:42:52]*** Partial cut [07:42:52]*** CUTSNS_PIN = 1 [07:42:52]*** CUTSNS_PIN = 0 [07:42:52]*** Brake cut motor [07:42:52]Read from MH i2c: 01 [07:42:52]MH_I2C_Read... [07:42:52]*** Stop cut motor [07:42:52]*** Cut end [07:42:52]Read from MH i2c: 01 07 00 [07:42:52]MH_I2C_Read... [07:42:52]Read from MH i2c: 01 07 00 25 02 00 00 00 00 00 FF 0F 3C [07:42:52]process_action close_receipt done [07:42:52]requested_data is exist [07:42:52]produce_requested_data [07:42:52]requested_item fm.sn is exist - process it [07:42:52]wFMCommunicate request_size=4 [07:42:52]MH_SAM_APDU [07:42:52]CAPDU: 80 11 00 00 [07:42:52]Write to MH i2c: E2 08 00 26 02 80 11 00 00 00 00 00 00 A2 [07:42:52]Write i2c OK [07:42:52]MH_I2C_Read... [07:42:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:42:52]Read from MH i2c: E2 [07:42:52]MH_I2C_Read... [07:42:52]Read from MH i2c: E2 17 00 [07:42:52]MH_I2C_Read... [07:42:52]Read from MH i2c: E2 17 00 26 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 F4 [07:42:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [07:42:52]wFMCommunicate OK [07:42:52]requested_item fd.num is exist - process it [07:42:52]SAM_PROTO_GetFieldsCounters [07:42:52]wFMCommunicate request_size=4 [07:42:52]MH_SAM_APDU [07:42:52]CAPDU: 80 13 00 00 [07:42:52]Write to MH i2c: E2 08 00 27 02 80 13 00 00 00 00 00 00 A5 [07:42:52]Write i2c OK [07:42:52]MH_I2C_Read... [07:42:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:42:52]Read from MH i2c: E2 [07:42:52]MH_I2C_Read... [07:42:52]Read from MH i2c: E2 62 00 [07:42:52]MH_I2C_Read... [07:42:52]Read from MH i2c: E2 62 00 27 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 0D F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 71 [07:42: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 0D F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:42:52]wFMCommunicate OK [07:42:52]SAM_PROTO_GetFieldsCounters done [07:42:52]requested_item shift.num is exist - process it [07:42:52]requested_item shift.opened is exist - process it [07:42:52]req_shift_opened [07:42:52]FM_GetShiftState [07:42:52]SAM_PROTO_GetShiftState [07:42:52]wFMCommunicate request_size=4 [07:42:52]MH_SAM_APDU [07:42:52]CAPDU: 80 13 01 00 [07:42:52]Write to MH i2c: E2 08 00 28 02 80 13 01 00 00 00 00 00 A7 [07:42:52]Write i2c OK [07:42:52]MH_I2C_Read... [07:42:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:42:52]Read from MH i2c: E2 [07:42:52]MH_I2C_Read... [07:42:52]Read from MH i2c: E2 0E 00 [07:42:52]MH_I2C_Read... [07:42:52]Read from MH i2c: E2 0E 00 28 02 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 73 [07:42:52]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [07:42:52]wFMCommunicate OK [07:42:52]SAM_PROTO_GetShiftState done [07:42:52]FM_GetShiftState done [07:42:52]req_shift_opened done [07:42:52]requested_item shift.open_date is exist - process it [07:42:52]req_shift_open_date [07:42:52]req_shift_open_date done [07:42:52]produce_requested_data done [07:42:52]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63757,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [07:42:52]process_action_free close_receipt [07:42:52]json_value_free [07:42:52]json_value_free done [07:42:52]process_json_proto returns [07:42:52]Send response to host [07:42:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63757,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [07:42:52]free response buf [07:42:52]execute_script done [07:42:52]execute_script returns [07:42:52]free content buf [07:42:52]Sock 9.Close socket [07:42:52]Sock 9.Thread stoped [07:42:56]OFD Sender: No OFD packet to send [07:43:01]OFD Sender: No OFD packet to send [07:43:06]OFD Sender: No OFD packet to send [07:43:11]OFD Sender: No OFD packet to send [07:43:16]OFD Sender: No OFD packet to send [07:43:21]OFD Sender: No OFD packet to send [07:43:26]OFD Sender: No OFD packet to send [07:43:31]OFD Sender: No OFD packet to send [07:43:36]OFD Sender: No OFD packet to send [07:43:41]OFD Sender: No OFD packet to send [07:43:46]OFD Sender: No OFD packet to send [07:43:51]OFD Sender: No OFD packet to send [07:43:56]OFD Sender: No OFD packet to send [07:44:01]OFD Sender: No OFD packet to send [07:44:06]OFD Sender: No OFD packet to send [07:44:11]OFD Sender: No OFD packet to send [07:44:16]OFD Sender: No OFD packet to send [07:44:21]OFD Sender: No OFD packet to send [07:44:26]OFD Sender: No OFD packet to send [07:44:31]OFD Sender: No OFD packet to send [07:44:36]OFD Sender: No OFD packet to send [07:44:41]OFD Sender: No OFD packet to send [07:44:46]OFD Sender: No OFD packet to send [07:44:51]OFD Sender: No OFD packet to send [07:44:56]OFD Sender: No OFD packet to send [07:45:01]OFD Sender: No OFD packet to send [07:45:06]OFD Sender: No OFD packet to send [07:45:11]OFD Sender: No OFD packet to send [07:45:16]OFD Sender: No OFD packet to send [07:45:21]OFD Sender: No OFD packet to send [07:45:26]OFD Sender: No OFD packet to send [07:45:31]OFD Sender: No OFD packet to send [07:45:36]OFD Sender: No OFD packet to send [07:45:41]OFD Sender: No OFD packet to send [07:45:46]OFD Sender: No OFD packet to send [07:45:51]OFD Sender: No OFD packet to send [07:45:56]OFD Sender: No OFD packet to send [07:46:01]OFD Sender: No OFD packet to send [07:46:06]OFD Sender: No OFD packet to send [07:46:11]OFD Sender: No OFD packet to send [07:46:16]OFD Sender: No OFD packet to send [07:46:21]OFD Sender: No OFD packet to send [07:46:26]OFD Sender: No OFD packet to send [07:46:31]OFD Sender: No OFD packet to send [07:46:36]OFD Sender: No OFD packet to send [07:46:41]OFD Sender: No OFD packet to send [07:46:46]OFD Sender: No OFD packet to send [07:46:51]OFD Sender: No OFD packet to send [07:46:56]OFD Sender: No OFD packet to send [07:47:01]OFD Sender: No OFD packet to send [07:47:06]OFD Sender: No OFD packet to send [07:47:11]OFD Sender: No OFD packet to send [07:47:16]OFD Sender: No OFD packet to send [07:47:21]OFD Sender: No OFD packet to send [07:47:26]OFD Sender: No OFD packet to send [07:47:31]OFD Sender: No OFD packet to send [07:47:36]OFD Sender: No OFD packet to send [07:47:41]OFD Sender: No OFD packet to send [07:47:46]OFD Sender: No OFD packet to send [07:47:51]OFD Sender: No OFD packet to send [07:47:56]OFD Sender: No OFD packet to send [07:48:01]OFD Sender: No OFD packet to send [07:48:06]OFD Sender: No OFD packet to send [07:48:11]OFD Sender: No OFD packet to send [07:48:16]OFD Sender: No OFD packet to send [07:48:21]OFD Sender: No OFD packet to send [07:48:26]OFD Sender: No OFD packet to send [07:48:31]OFD Sender: No OFD packet to send [07:48:36]OFD Sender: No OFD packet to send [07:48:41]OFD Sender: No OFD packet to send [07:48:46]OFD Sender: No OFD packet to send [07:48:51]OFD Sender: No OFD packet to send [07:48:56]OFD Sender: No OFD packet to send [07:49:01]OFD Sender: No OFD packet to send [07:49:06]OFD Sender: No OFD packet to send [07:49:11]OFD Sender: No OFD packet to send [07:49:16]OFD Sender: No OFD packet to send [07:49:21]OFD Sender: No OFD packet to send [07:49:26]OFD Sender: No OFD packet to send [07:49:31]OFD Sender: No OFD packet to send [07:49:36]OFD Sender: No OFD packet to send [07:49:41]OFD Sender: No OFD packet to send [07:49:46]OFD Sender: No OFD packet to send [07:49:51]OFD Sender: No OFD packet to send [07:49:56]OFD Sender: No OFD packet to send [07:50:01]OFD Sender: No OFD packet to send [07:50:06]OFD Sender: No OFD packet to send [07:50:11]OFD Sender: No OFD packet to send [07:50:16]OFD Sender: No OFD packet to send [07:50:21]OFD Sender: No OFD packet to send [07:50:26]OFD Sender: No OFD packet to send [07:50:30]accept exits with 7 [07:50:30]New connection [07:50:30]New thread 3067374948 created [07:50:30]Thread 3067518308 joined [07:50:30]Waiting for new connection... [07:50:30] Sock 7.Parse request [07:50:30]Sock 7.Check first char [07:50:30]Sock 7.First char is OK [07:50:30]request: POST /json_proto HTTP/1.0 [07:50:30]Method: POST [07:50:30]URL: /json_proto [07:50:30]Method is POST - this is cgi request [07:50:30]url: /json_proto [07:50:30]query_string will be loaded in cgi processing [07:50:30]execute_cgi json_proto POST (null) [07:50:30]execute_cgi path=json_proto method=POST [07:50:30]POST find Content-Length [07:50:30]Host: 172.17.60.69:8080 [07:50:30]Content-Length: 645 [07:50:30]Content-Type: application/json [07:50:30] [07:50:30]POST finish read [07:50:30]Found Content-Length = 645 [07:50:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73347", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:50:30]execute_script... [07:50:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73347", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:50:30]POST & json_proto [07:50:30]process_json_proto [07:50:30]json parsed OK: [07:50:30]protocol is kg_v1.0 [07:50:30]action value=close_receipt [07:50:30]process_action close_receipt [07:50:30]cmd_close_receipt [07:50:30]MH_GetDate [07:50:30]Write to MH i2c: F0 00 00 29 02 1A [07:50:30]Write i2c OK [07:50:30]MH_I2C_Read... [07:50:30]Read from MH i2c: F0 [07:50:30]MH_I2C_Read... [07:50:30]Read from MH i2c: F0 09 00 [07:50:30]MH_I2C_Read... [07:50:30]Read from MH i2c: F0 09 00 29 02 00 C7 75 5D 66 6A 96 4A 66 D2 [07:50:30]GetLastDocTimeStamp 1717400569 [07:50:30]current date 1717401031 [07:50:30]FM_GetShiftState [07:50:30]SAM_PROTO_GetShiftState [07:50:30]wFMCommunicate request_size=4 [07:50:30]MH_SAM_APDU [07:50:30]CAPDU: 80 13 01 00 [07:50:30]Write to MH i2c: E2 08 00 2A 02 80 13 01 00 00 00 00 00 A9 [07:50:30]Write i2c OK [07:50:30]MH_I2C_Read... [07:50:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:50:30]Read from MH i2c: E2 [07:50:30]MH_I2C_Read... [07:50:30]Read from MH i2c: E2 0E 00 [07:50:30]MH_I2C_Read... [07:50:30]Read from MH i2c: E2 0E 00 2A 02 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 75 [07:50:30]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [07:50:30]wFMCommunicate OK [07:50:30]SAM_PROTO_GetShiftState done [07:50:30]FM_GetShiftState done [07:50:30]opened in 1717373173 [07:50:30]opened+sec_in_day 1717459573 [07:50:30]quantity*price = 12500 [07:50:30]sum+1 = 12501 [07:50:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 125.00 НСП 1% : 1.11 НДС 12% : 13.27 Наличными: 125.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 16 03.06.2024 07:50 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63758 ФПД: 238651389245071 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T075031&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63758&fm=238651389245071&tin=02508201610067®Number=0000000000092737&sum=12500 0 [07:50:31]StoreToDocumentArchive [07:50:31]shift 373 fd 63758 [07:50:31]save to /storage/0373/doc_00063758 [07:50:31]save last doc name /storage/0373/doc_00063758 to /storage/kkm_last_doc_name [07:50:31]save OK [07:50:31]Clear old archive folders... [07:50:31]ProcessDocumentItem done err = 0, tmpTLVsize=282 [07:50:31]tlvbuf is 00D1F1D0 [07:50:31]SAM_PROTO_ClearQueue [07:50:31]wFMCommunicate request_size=4 [07:50:31]MH_SAM_APDU [07:50:31]CAPDU: 80 09 00 00 [07:50:31]Write to MH i2c: E2 08 00 37 02 80 09 00 00 00 00 00 00 AB [07:50:31]Write i2c OK [07:50:31]MH_I2C_Read... [07:50:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:50:31]Read from MH i2c: E2 [07:50:31]MH_I2C_Read... [07:50:31]Read from MH i2c: E2 03 00 [07:50:31]MH_I2C_Read... [07:50:31]Read from MH i2c: E2 03 00 37 02 00 90 00 AD [07:50:31]RAPDU: 90 00 [07:50:31]wFMCommunicate OK [07:50:31]SAM_PROTO_ClearQueue done [07:50:31]KKMCreateOFDPacket [07:50:31]OFDProtocolAddRootSTLVToBuf [07:50:31]FM_MakeSignedData [07:50:31]FM_MakeSignedData [07:50:31]SAM_PROTO_SignData [07:50:31]wFMCommunicate request_size=4 [07:50:31]MH_SAM_APDU [07:50:31]CAPDU: 80 0D 01 02 [07:50:31]Write to MH i2c: E2 08 00 38 02 80 0D 01 02 00 00 00 00 B3 [07:50:31]Write i2c OK [07:50:31]MH_I2C_Read... [07:50:31]OFD Sender: No OFD packet to send [07:50:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:50:32]Read from MH i2c: E2 [07:50:32]MH_I2C_Read... [07:50:32]Read from MH i2c: E2 03 00 [07:50:32]MH_I2C_Read... [07:50:32]Read from MH i2c: E2 03 00 38 02 00 90 00 AE [07:50:32]RAPDU: 90 00 [07:50:32]wFMCommunicate OK [07:50:32]wFMCommunicate request_size=255 [07:50:32]MH_SAM_APDU [07:50:32]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 C7 75 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 [07:50:32]Write to MH i2c: E2 02 01 39 02 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 C7 75 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 00 00 39 [07:50:32]Write i2c OK [07:50:32]MH_I2C_Read... [07:50:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:50:32]Read from MH i2c: E2 [07:50:32]MH_I2C_Read... [07:50:32]Read from MH i2c: E2 03 00 [07:50:32]MH_I2C_Read... [07:50:32]Read from MH i2c: E2 03 00 39 02 00 90 00 AF [07:50:32]RAPDU: 90 00 [07:50:32]wFMCommunicate OK [07:50:32]wFMCommunicate request_size=41 [07:50:32]MH_SAM_APDU [07:50:32]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 0E F9 00 00 35 04 06 00 D9 0D 5B 47 F6 8F [07:50:32]Write to MH i2c: E2 2C 00 3A 02 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 0E F9 00 00 35 04 06 00 D9 0D 5B 47 F6 8F 00 00 98 [07:50:32]Write i2c OK [07:50:32]MH_I2C_Read... [07:50:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:50:32]Read from MH i2c: E2 [07:50:32]MH_I2C_Read... [07:50:32]Read from MH i2c: E2 03 00 [07:50:32]MH_I2C_Read... [07:50:32]Read from MH i2c: E2 03 00 3A 02 00 90 00 B0 [07:50:32]RAPDU: 90 00 [07:50:32]wFMCommunicate OK [07:50:32]wFMCommunicate request_size=4 [07:50:32]MH_SAM_APDU [07:50:32]CAPDU: 80 0D 03 02 [07:50:32]Write to MH i2c: E2 08 00 3B 02 80 0D 03 02 00 00 00 00 B8 [07:50:32]Write i2c OK [07:50:32]MH_I2C_Read... [07:50:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:50:32]Read from MH i2c: E2 [07:50:32]MH_I2C_Read... [07:50:32]Read from MH i2c: E2 0B 00 [07:50:32]MH_I2C_Read... [07:50:32]Read from MH i2c: E2 0B 00 3B 02 00 10 82 1E F3 71 8B 9D 9C 90 00 91 [07:50:32]RAPDU: 10 82 1E F3 71 8B 9D 9C 90 00 [07:50:32]wFMCommunicate OK [07:50:32]SAM_PROTO_SignData done [07:50:32]FM_MakeSignedData done [07:50:32]CreateOFDProtocolMessage [07:50:32]wFMCommunicate request_size=4 [07:50:32]MH_SAM_APDU [07:50:32]CAPDU: 80 11 00 00 [07:50:32]Write to MH i2c: E2 08 00 3C 02 80 11 00 00 00 00 00 00 B8 [07:50:32]Write i2c OK [07:50:32]MH_I2C_Read... [07:50:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:50:32]Read from MH i2c: E2 [07:50:32]MH_I2C_Read... [07:50:32]Read from MH i2c: E2 17 00 [07:50:32]MH_I2C_Read... [07:50:32]Read from MH i2c: E2 17 00 3C 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 0A [07:50:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [07:50:32]wFMCommunicate OK [07:50:32]CreateOFDProtocolMessage done [07:50:32]OFDSenderStorePacket 63758 [07:50:32]StoreOFDPacket docnum=63758 [07:50:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 2E 01 00 00 1B 28 26 01 75 CF 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 C7 75 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 0E F9 00 00 35 04 06 00 D9 0D 5B 47 F6 8F 10 82 1E F3 71 8B 9D 9C [07:50:32]CheckFolder [07:50:32]dirname=/storage/ofd_packets [07:50:32]CheckFolder done [07:50:32]ProducePacketName [07:50:32]name=ofd_packets/00063758 [07:50:32]NVStorageSaveData ofd_packets/00063758 [07:50:32]File name is /storage/ofd_packets/00063758 [07:50:32]Write 332 bytes [07:50:32]NVStorageSaveData done [07:50:32]OFDSenderStorePacket done [07:50:32]KKMCreateOFDPacket done [07:50:32]NVStorageSaveData kkm_last_timestamp [07:50:32]File name is /storage/kkm_last_timestamp [07:50:32]Write 4 bytes [07:50:32]NVStorageSaveData done [07:50:32]ExternCall_PrintAddStr [07:50:32]wPrintStart [07:50:32]Write to MH i2c: 01 00 00 3D 02 3F [07:50:32]Write i2c OK [07:50:32]MH_I2C_Read... [07:50:32]Read from MH i2c: 01 [07:50:32]MH_I2C_Read... [07:50:32]Read from MH i2c: 01 07 00 [07:50:32]MH_I2C_Read... [07:50:32]Read from MH i2c: 01 07 00 3D 02 00 00 00 00 00 FF 0F 54 [07:50:32]RasterBufferAndPrint [07:50:32]line Счет N : (3)73347 [07:50:32]line ИНН: 02508201610067 [07:50:32]line Контрольно-Кассовый Чек [07:50:32]line ПРОДАЖА [07:50:32]line Товар: 2000036220012 [07:50:32]line Кофе Капучино XL(GABB TRADE) [07:50:32]line 1.000 * 125.00 [07:50:32]line = 125.00 [07:50:32]line НДС 12% НСП 1% [07:50:32]line > о реализуемом товаре [07:50:32]line ИТОГО: 125.00 [07:50:32]line НСП 1% : 1.11 [07:50:32]line НДС 12% : 13.27 [07:50:32]line Наличными: 125.00 [07:50:32]line Безнал.: 0.00 [07:50:32]line Место: АЗС № 117 "Партнер Нефть" [07:50:32]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [07:50:32]line СНО: Общий режим [07:50:32]line Чек 16 03.06.2024 07:50 [07:50:32]line Смена: 373 ФФД: 1.0 [07:50:32]line ЗНМ: 0300000031 [07:50:32]line РНМ: 0000000000092737 [07:50:32]line Версия ККМ: 001 [07:50:32]line ФМ: 0000000000875074 [07:50:32]line ФД: 63758 [07:50:32]line ФПД: 238651389245071 [07:50:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T075031&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63758&fm=238651389245071&tin=02508201610067®Number=0000000000092737&sum=12500 [07:50:32]line 0 [07:50:32]OFD Sender: Processing packet 63758 [packets to send 14, broken 13] [07:50:32]ProducePacketName [07:50:32]name=ofd_packets/00063758 [07:50:32]OFD Sender: To server: pG, [07:50:32]CommunicateWithHost lk.salyk.kg:30040 [07:50:32]ConnectInit lk.salyk.kg [07:50:32]written 0, free lines is 4095 [07:50:32]Connected sock=10 [07:50:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 2E 01 00 00 1B 28 26 01 75 CF 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 C7 75 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 0E F9 00 00 35 04 06 00 D9 0D 5B 47 F6 8F 10 82 1E F3 71 8B 9D 9C [07:50:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 39 FF 47 00 A7 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 35 30 37 34 10 04 04 00 0E F9 00 00 F4 03 04 00 9A 21 5D 66 B6 04 01 00 00 C1 47 91 C9 36 73 C0 C3 [07:50:33]CommunicateWithHost err = 0 [07:50:33]CheckOFDResponse [07:50:33]1017 (14) - 77093643461234 [07:50:33]1041 (16) - 0000000000875074 [07:50:33]1040 (4) - 63758 [07:50:33]1012 (4) - 03.06.2024 01:51 [07:50:33]1206 (1) - 0 [07:50:33]OFD Sender: Remove packet 63758 [07:50:33]ProducePacketName [07:50:33]name=ofd_packets/00063758 [07:50:33]NVStorageDeleteData [07:50:33]Write to MH i2c: 01 00 00 66 02 68 [07:50:33]Write i2c OK [07:50:33]MH_I2C_Read... [07:50:33]Read from MH i2c: 01 [07:50:33]MH_I2C_Read... [07:50:33]Read from MH i2c: 01 07 00 [07:50:33]MH_I2C_Read... [07:50:33]Read from MH i2c: 01 07 00 66 02 00 00 00 00 00 F3 0C 6E [07:50:33]RasterBufferAndPrint [07:50:33]line [07:50:33]line [07:50:33]line [07:50:33]line [07:50:33]line [07:50:33]written 0, free lines is 3325 [07:50:33]MH_Cut [07:50:33]Write to MH i2c: D1 01 00 6D 02 01 41 [07:50:33]Write i2c OK [07:50:33]MH_I2C_Read... [07:50:33]Read from MH i2c: D1 [07:50:33]MH_I2C_Read... [07:50:33]Read from MH i2c: D1 01 00 [07:50:33]MH_I2C_Read... [07:50:33]Read from MH i2c: D1 01 00 6D 02 00 40 [07:50:33]Write to MH i2c: 01 00 00 6E 02 70 [07:50:33]Write i2c OK [07:50:33]MH_I2C_Read... [07:50:33]OFD Sender: No OFD packet to send [07:50:34]*** Cut start [07:50:34]*** Partial cut [07:50:34]*** CUTSNS_PIN = 1 [07:50:34]*** CUTSNS_PIN = 0 [07:50:34]*** Brake cut motor [07:50:34]Read from MH i2c: 01 [07:50:34]MH_I2C_Read... [07:50:34]*** Stop cut motor [07:50:34]*** Cut end [07:50:34]Read from MH i2c: 01 07 00 [07:50:34]MH_I2C_Read... [07:50:34]Read from MH i2c: 01 07 00 6E 02 00 00 00 00 00 FF 0F 85 [07:50:34]process_action close_receipt done [07:50:34]requested_data is exist [07:50:34]produce_requested_data [07:50:34]requested_item fm.sn is exist - process it [07:50:34]wFMCommunicate request_size=4 [07:50:34]MH_SAM_APDU [07:50:34]CAPDU: 80 11 00 00 [07:50:34]Write to MH i2c: E2 08 00 6F 02 80 11 00 00 00 00 00 00 EB [07:50:34]Write i2c OK [07:50:34]MH_I2C_Read... [07:50:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:50:34]Read from MH i2c: E2 [07:50:34]MH_I2C_Read... [07:50:34]Read from MH i2c: E2 17 00 [07:50:34]MH_I2C_Read... [07:50:34]Read from MH i2c: E2 17 00 6F 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 3D [07:50:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [07:50:34]wFMCommunicate OK [07:50:34]requested_item fd.num is exist - process it [07:50:34]SAM_PROTO_GetFieldsCounters [07:50:34]wFMCommunicate request_size=4 [07:50:34]MH_SAM_APDU [07:50:34]CAPDU: 80 13 00 00 [07:50:34]Write to MH i2c: E2 08 00 70 02 80 13 00 00 00 00 00 00 EE [07:50:34]Write i2c OK [07:50:34]MH_I2C_Read... [07:50:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:50:34]Read from MH i2c: E2 [07:50:34]MH_I2C_Read... [07:50:34]Read from MH i2c: E2 62 00 [07:50:34]MH_I2C_Read... [07:50:34]Read from MH i2c: E2 62 00 70 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 0E F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 BE [07:50: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 0E F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:50:34]wFMCommunicate OK [07:50:34]SAM_PROTO_GetFieldsCounters done [07:50:34]requested_item shift.num is exist - process it [07:50:34]requested_item shift.opened is exist - process it [07:50:34]req_shift_opened [07:50:34]FM_GetShiftState [07:50:34]SAM_PROTO_GetShiftState [07:50:34]wFMCommunicate request_size=4 [07:50:34]MH_SAM_APDU [07:50:34]CAPDU: 80 13 01 00 [07:50:34]Write to MH i2c: E2 08 00 71 02 80 13 01 00 00 00 00 00 F0 [07:50:34]Write i2c OK [07:50:34]MH_I2C_Read... [07:50:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:50:34]Read from MH i2c: E2 [07:50:34]MH_I2C_Read... [07:50:34]Read from MH i2c: E2 0E 00 [07:50:34]MH_I2C_Read... [07:50:34]Read from MH i2c: E2 0E 00 71 02 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 BC [07:50:34]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [07:50:34]wFMCommunicate OK [07:50:34]SAM_PROTO_GetShiftState done [07:50:34]FM_GetShiftState done [07:50:34]req_shift_opened done [07:50:34]requested_item shift.open_date is exist - process it [07:50:34]req_shift_open_date [07:50:34]req_shift_open_date done [07:50:34]produce_requested_data done [07:50:34]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63758,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [07:50:34]process_action_free close_receipt [07:50:34]json_value_free [07:50:34]json_value_free done [07:50:34]process_json_proto returns [07:50:34]Send response to host [07:50:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63758,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [07:50:34]free response buf [07:50:34]execute_script done [07:50:34]execute_script returns [07:50:34]free content buf [07:50:34]Sock 7.Close socket [07:50:34]Sock 7.Thread stoped [07:50:38]OFD Sender: No OFD packet to send [07:50:43]OFD Sender: No OFD packet to send [07:50:48]OFD Sender: No OFD packet to send [07:50:53]OFD Sender: No OFD packet to send [07:50:58]OFD Sender: No OFD packet to send [07:51:03]OFD Sender: No OFD packet to send [07:51:08]OFD Sender: No OFD packet to send [07:51:13]accept exits with 9 [07:51:13]New connection [07:51:13]New thread 3067518308 created [07:51:13]Thread 3067374948 joined [07:51:13]Waiting for new connection... [07:51:13] Sock 9.Parse request [07:51:13]Sock 9.Check first char [07:51:13]Sock 9.First char is OK [07:51:13]request: POST /json_proto HTTP/1.0 [07:51:13]Method: POST [07:51:13]URL: /json_proto [07:51:13]Method is POST - this is cgi request [07:51:13]url: /json_proto [07:51:13]query_string will be loaded in cgi processing [07:51:13]execute_cgi json_proto POST (null) [07:51:13]execute_cgi path=json_proto method=POST [07:51:13]POST find Content-Length [07:51:13]Host: 172.17.60.69:8080 [07:51:13]Content-Length: 627 [07:51:13]Content-Type: application/json [07:51:13] [07:51:13]POST finish read [07:51:13]Found Content-Length = 627 [07:51:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73348", "tax_sys" : 0, "items" : [ { "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:51:13]execute_script... [07:51:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73348", "tax_sys" : 0, "items" : [ { "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:51:13]POST & json_proto [07:51:13]process_json_proto [07:51:13]json parsed OK: [07:51:13]protocol is kg_v1.0 [07:51:13]action value=close_receipt [07:51:13]process_action close_receipt [07:51:13]cmd_close_receipt [07:51:13]MH_GetDate [07:51:13]Write to MH i2c: F0 00 00 72 02 63 [07:51:13]Write i2c OK [07:51:13]MH_I2C_Read... [07:51:13]Read from MH i2c: F0 [07:51:13]MH_I2C_Read... [07:51:13]Read from MH i2c: F0 09 00 [07:51:13]MH_I2C_Read... [07:51:13]Read from MH i2c: F0 09 00 72 02 00 F2 75 5D 66 6A 96 4A 66 46 [07:51:13]GetLastDocTimeStamp 1717401031 [07:51:13]current date 1717401074 [07:51:13]FM_GetShiftState [07:51:13]SAM_PROTO_GetShiftState [07:51:13]wFMCommunicate request_size=4 [07:51:13]MH_SAM_APDU [07:51:13]CAPDU: 80 13 01 00 [07:51:13]Write to MH i2c: E2 08 00 73 02 80 13 01 00 00 00 00 00 F2 [07:51:13]Write i2c OK [07:51:13]MH_I2C_Read... [07:51:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:51:13]OFD Sender: No OFD packet to send [07:51:13]Read from MH i2c: E2 [07:51:13]MH_I2C_Read... [07:51:13]Read from MH i2c: E2 0E 00 [07:51:13]MH_I2C_Read... [07:51:13]Read from MH i2c: E2 0E 00 73 02 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 BE [07:51:13]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [07:51:13]wFMCommunicate OK [07:51:13]SAM_PROTO_GetShiftState done [07:51:13]FM_GetShiftState done [07:51:13]opened in 1717373173 [07:51:13]opened+sec_in_day 1717459573 [07:51:13]quantity*price = 26000 [07:51:13]sum+1 = 26001 [07:51:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 260.00 НСП 1% : 2.30 НДС 12% : 27.61 Наличными: 260.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 17 03.06.2024 07:51 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63759 ФПД: 94510322340613 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T075114&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63759&fm=94510322340613&tin=02508201610067®Number=0000000000092737&sum=26000 0 [07:51:14]StoreToDocumentArchive [07:51:14]shift 373 fd 63759 [07:51:14]save to /storage/0373/doc_00063759 [07:51:14]save last doc name /storage/0373/doc_00063759 to /storage/kkm_last_doc_name [07:51:14]save OK [07:51:14]Clear old archive folders... [07:51:14]ProcessDocumentItem done err = 0, tmpTLVsize=276 [07:51:14]tlvbuf is 00D230A0 [07:51:14]SAM_PROTO_ClearQueue [07:51:14]wFMCommunicate request_size=4 [07:51:14]MH_SAM_APDU [07:51:14]CAPDU: 80 09 00 00 [07:51:14]Write to MH i2c: E2 08 00 80 02 80 09 00 00 00 00 00 00 F4 [07:51:14]Write i2c OK [07:51:14]MH_I2C_Read... [07:51:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:51:14]Read from MH i2c: E2 [07:51:14]MH_I2C_Read... [07:51:14]Read from MH i2c: E2 03 00 [07:51:14]MH_I2C_Read... [07:51:14]Read from MH i2c: E2 03 00 80 02 00 90 00 F6 [07:51:14]RAPDU: 90 00 [07:51:14]wFMCommunicate OK [07:51:14]SAM_PROTO_ClearQueue done [07:51:14]KKMCreateOFDPacket [07:51:14]OFDProtocolAddRootSTLVToBuf [07:51:14]FM_MakeSignedData [07:51:14]FM_MakeSignedData [07:51:14]SAM_PROTO_SignData [07:51:14]wFMCommunicate request_size=4 [07:51:14]MH_SAM_APDU [07:51:14]CAPDU: 80 0D 01 02 [07:51:14]Write to MH i2c: E2 08 00 81 02 80 0D 01 02 00 00 00 00 FC [07:51:14]Write i2c OK [07:51:14]MH_I2C_Read... [07:51:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:51:14]Read from MH i2c: E2 [07:51:14]MH_I2C_Read... [07:51:14]Read from MH i2c: E2 03 00 [07:51:14]MH_I2C_Read... [07:51:14]Read from MH i2c: E2 03 00 81 02 00 90 00 F7 [07:51:14]RAPDU: 90 00 [07:51:14]wFMCommunicate OK [07:51:14]wFMCommunicate request_size=255 [07:51:14]MH_SAM_APDU [07:51:14]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 F2 75 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 [07:51:14]Write to MH i2c: E2 02 01 82 02 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 F2 75 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 00 00 85 [07:51:14]Write i2c OK [07:51:14]MH_I2C_Read... [07:51:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:51:15]Read from MH i2c: E2 [07:51:15]MH_I2C_Read... [07:51:15]Read from MH i2c: E2 03 00 [07:51:15]MH_I2C_Read... [07:51:15]Read from MH i2c: E2 03 00 82 02 00 90 00 F8 [07:51:15]RAPDU: 90 00 [07:51:15]wFMCommunicate OK [07:51:15]wFMCommunicate request_size=35 [07:51:15]MH_SAM_APDU [07:51:15]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 0F F9 00 00 35 04 06 00 55 F4 E6 30 D3 05 [07:51:15]Write to MH i2c: E2 26 00 83 02 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 0F F9 00 00 35 04 06 00 55 F4 E6 30 D3 05 00 00 30 [07:51:15]Write i2c OK [07:51:15]MH_I2C_Read... [07:51:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:51:15]Read from MH i2c: E2 [07:51:15]MH_I2C_Read... [07:51:15]Read from MH i2c: E2 03 00 [07:51:15]MH_I2C_Read... [07:51:15]Read from MH i2c: E2 03 00 83 02 00 90 00 F9 [07:51:15]RAPDU: 90 00 [07:51:15]wFMCommunicate OK [07:51:15]wFMCommunicate request_size=4 [07:51:15]MH_SAM_APDU [07:51:15]CAPDU: 80 0D 03 02 [07:51:15]Write to MH i2c: E2 08 00 84 02 80 0D 03 02 00 00 00 00 01 [07:51:15]Write i2c OK [07:51:15]MH_I2C_Read... [07:51:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:51:15]Read from MH i2c: E2 [07:51:15]MH_I2C_Read... [07:51:15]Read from MH i2c: E2 0B 00 [07:51:15]MH_I2C_Read... [07:51:15]Read from MH i2c: E2 0B 00 84 02 00 A1 54 28 A7 27 7D B5 D4 90 00 F3 [07:51:15]RAPDU: A1 54 28 A7 27 7D B5 D4 90 00 [07:51:15]wFMCommunicate OK [07:51:15]SAM_PROTO_SignData done [07:51:15]FM_MakeSignedData done [07:51:15]CreateOFDProtocolMessage [07:51:15]wFMCommunicate request_size=4 [07:51:15]MH_SAM_APDU [07:51:15]CAPDU: 80 11 00 00 [07:51:15]Write to MH i2c: E2 08 00 85 02 80 11 00 00 00 00 00 00 01 [07:51:15]Write i2c OK [07:51:15]MH_I2C_Read... [07:51:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:51:15]Read from MH i2c: E2 [07:51:15]MH_I2C_Read... [07:51:15]Read from MH i2c: E2 17 00 [07:51:15]MH_I2C_Read... [07:51:15]Read from MH i2c: E2 17 00 85 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 53 [07:51:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [07:51:15]wFMCommunicate OK [07:51:15]CreateOFDProtocolMessage done [07:51:15]OFDSenderStorePacket 63759 [07:51:15]StoreOFDPacket docnum=63759 [07:51:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 28 01 00 00 39 3C 20 01 8F 18 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 F2 75 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 0F F9 00 00 35 04 06 00 55 F4 E6 30 D3 05 A1 54 28 A7 27 7D B5 D4 [07:51:15]CheckFolder [07:51:15]dirname=/storage/ofd_packets [07:51:15]CheckFolder done [07:51:15]ProducePacketName [07:51:15]name=ofd_packets/00063759 [07:51:15]NVStorageSaveData ofd_packets/00063759 [07:51:15]File name is /storage/ofd_packets/00063759 [07:51:15]Write 326 bytes [07:51:15]NVStorageSaveData done [07:51:15]OFDSenderStorePacket done [07:51:15]KKMCreateOFDPacket done [07:51:15]NVStorageSaveData kkm_last_timestamp [07:51:15]File name is /storage/kkm_last_timestamp [07:51:15]Write 4 bytes [07:51:15]NVStorageSaveData done [07:51:15]ExternCall_PrintAddStr [07:51:15]wPrintStart [07:51:15]Write to MH i2c: 01 00 00 86 02 88 [07:51:15]Write i2c OK [07:51:15]MH_I2C_Read... [07:51:15]Read from MH i2c: 01 [07:51:15]MH_I2C_Read... [07:51:15]Read from MH i2c: 01 07 00 [07:51:15]MH_I2C_Read... [07:51:15]Read from MH i2c: 01 07 00 86 02 00 00 00 00 00 FF 0F 9D [07:51:15]RasterBufferAndPrint [07:51:15]line Счет N : (3)73348 [07:51:15]line ИНН: 02508201610067 [07:51:15]line Контрольно-Кассовый Чек [07:51:15]line ПРОДАЖА [07:51:15]line Товар: 2000036230011 [07:51:15]line Кофе Латте XL(GABB TRADE) [07:51:15]line 2.000 * 130.00 [07:51:15]line = 260.00 [07:51:15]line НДС 12% НСП 1% [07:51:15]line > о реализуемом товаре [07:51:15]line ИТОГО: 260.00 [07:51:15]line НСП 1% : 2.30 [07:51:15]line НДС 12% : 27.61 [07:51:15]line Наличными: 260.00 [07:51:15]line Безнал.: 0.00 [07:51:15]line Место: АЗС № 117 "Партнер Нефть" [07:51:15]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [07:51:15]line СНО: Общий режим [07:51:15]line Чек 17 03.06.2024 07:51 [07:51:15]line Смена: 373 ФФД: 1.0 [07:51:15]line ЗНМ: 0300000031 [07:51:15]line РНМ: 0000000000092737 [07:51:15]line Версия ККМ: 001 [07:51:15]line ФМ: 0000000000875074 [07:51:15]line ФД: 63759 [07:51:15]line ФПД: 94510322340613 [07:51:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T075114&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63759&fm=94510322340613&tin=02508201610067®Number=0000000000092737&sum=26000 [07:51:15]line 0 [07:51:15]OFD Sender: Processing packet 63759 [packets to send 14, broken 13] [07:51:15]ProducePacketName [07:51:15]name=ofd_packets/00063759 [07:51:15]OFD Sender: To server: pG, [07:51:15]CommunicateWithHost lk.salyk.kg:30040 [07:51:15]ConnectInit lk.salyk.kg [07:51:15]written 0, free lines is 4095 [07:51:15]Connected sock=10 [07:51:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 28 01 00 00 39 3C 20 01 8F 18 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 F2 75 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 0F F9 00 00 35 04 06 00 55 F4 E6 30 D3 05 A1 54 28 A7 27 7D B5 D4 [07:51:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 29 E5 47 00 C1 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 35 30 37 34 10 04 04 00 0F F9 00 00 F4 03 04 00 C4 21 5D 66 B6 04 01 00 00 44 24 A1 08 27 41 B2 E5 [07:51:15]CommunicateWithHost err = 0 [07:51:15]CheckOFDResponse [07:51:15]1017 (14) - 77093643461234 [07:51:15]1041 (16) - 0000000000875074 [07:51:15]1040 (4) - 63759 [07:51:15]1012 (4) - 03.06.2024 01:52 [07:51:15]1206 (1) - 0 [07:51:15]OFD Sender: Remove packet 63759 [07:51:15]ProducePacketName [07:51:15]name=ofd_packets/00063759 [07:51:15]NVStorageDeleteData [07:51:16]Write to MH i2c: 01 00 00 AE 02 B0 [07:51:16]Write i2c OK [07:51:16]MH_I2C_Read... [07:51:16]Read from MH i2c: 01 [07:51:16]MH_I2C_Read... [07:51:16]Read from MH i2c: 01 07 00 [07:51:16]MH_I2C_Read... [07:51:16]Read from MH i2c: 01 07 00 AE 02 00 00 00 00 00 05 0D C9 [07:51:16]RasterBufferAndPrint [07:51:16]line [07:51:16]line [07:51:16]line [07:51:16]line [07:51:16]line [07:51:16]written 0, free lines is 3340 [07:51:16]MH_Cut [07:51:16]Write to MH i2c: D1 01 00 B5 02 01 89 [07:51:16]Write i2c OK [07:51:16]MH_I2C_Read... [07:51:16]Read from MH i2c: D1 [07:51:16]MH_I2C_Read... [07:51:16]Read from MH i2c: D1 01 00 [07:51:16]MH_I2C_Read... [07:51:16]Read from MH i2c: D1 01 00 B5 02 00 88 [07:51:16]Write to MH i2c: 01 00 00 B6 02 B8 [07:51:16]Write i2c OK [07:51:16]MH_I2C_Read... [07:51:16]OFD Sender: No OFD packet to send [07:51:16]*** Cut start [07:51:16]*** Partial cut [07:51:16]*** CUTSNS_PIN = 1 [07:51:16]*** CUTSNS_PIN = 0 [07:51:17]*** Brake cut motor [07:51:17]Read from MH i2c: 01 [07:51:17]MH_I2C_Read... [07:51:17]*** Stop cut motor [07:51:17]*** Cut end [07:51:17]Read from MH i2c: 01 07 00 [07:51:17]MH_I2C_Read... [07:51:17]Read from MH i2c: 01 07 00 B6 02 00 00 00 00 00 FF 0F CD [07:51:17]process_action close_receipt done [07:51:17]requested_data is exist [07:51:17]produce_requested_data [07:51:17]requested_item fm.sn is exist - process it [07:51:17]wFMCommunicate request_size=4 [07:51:17]MH_SAM_APDU [07:51:17]CAPDU: 80 11 00 00 [07:51:17]Write to MH i2c: E2 08 00 B7 02 80 11 00 00 00 00 00 00 33 [07:51:17]Write i2c OK [07:51:17]MH_I2C_Read... [07:51:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:51:17]Read from MH i2c: E2 [07:51:17]MH_I2C_Read... [07:51:17]Read from MH i2c: E2 17 00 [07:51:17]MH_I2C_Read... [07:51:17]Read from MH i2c: E2 17 00 B7 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 85 [07:51:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [07:51:17]wFMCommunicate OK [07:51:17]requested_item fd.num is exist - process it [07:51:17]SAM_PROTO_GetFieldsCounters [07:51:17]wFMCommunicate request_size=4 [07:51:17]MH_SAM_APDU [07:51:17]CAPDU: 80 13 00 00 [07:51:17]Write to MH i2c: E2 08 00 B8 02 80 13 00 00 00 00 00 00 36 [07:51:17]Write i2c OK [07:51:17]MH_I2C_Read... [07:51:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:51:17]Read from MH i2c: E2 [07:51:17]MH_I2C_Read... [07:51:17]Read from MH i2c: E2 62 00 [07:51:17]MH_I2C_Read... [07:51:17]Read from MH i2c: E2 62 00 B8 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 0F F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 0A [07:51: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 0F F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:51:17]wFMCommunicate OK [07:51:17]SAM_PROTO_GetFieldsCounters done [07:51:17]requested_item shift.num is exist - process it [07:51:17]requested_item shift.opened is exist - process it [07:51:17]req_shift_opened [07:51:17]FM_GetShiftState [07:51:17]SAM_PROTO_GetShiftState [07:51:17]wFMCommunicate request_size=4 [07:51:17]MH_SAM_APDU [07:51:17]CAPDU: 80 13 01 00 [07:51:17]Write to MH i2c: E2 08 00 B9 02 80 13 01 00 00 00 00 00 38 [07:51:17]Write i2c OK [07:51:17]MH_I2C_Read... [07:51:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:51:17]Read from MH i2c: E2 [07:51:17]MH_I2C_Read... [07:51:17]Read from MH i2c: E2 0E 00 [07:51:17]MH_I2C_Read... [07:51:17]Read from MH i2c: E2 0E 00 B9 02 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 04 [07:51:17]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [07:51:17]wFMCommunicate OK [07:51:17]SAM_PROTO_GetShiftState done [07:51:17]FM_GetShiftState done [07:51:17]req_shift_opened done [07:51:17]requested_item shift.open_date is exist - process it [07:51:17]req_shift_open_date [07:51:17]req_shift_open_date done [07:51:17]produce_requested_data done [07:51:17]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63759,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [07:51:17]process_action_free close_receipt [07:51:17]json_value_free [07:51:17]json_value_free done [07:51:17]process_json_proto returns [07:51:17]Send response to host [07:51:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63759,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [07:51:17]free response buf [07:51:17]execute_script done [07:51:17]execute_script returns [07:51:17]free content buf [07:51:17]Sock 9.Close socket [07:51:17]Sock 9.Thread stoped [07:51:21]OFD Sender: No OFD packet to send [07:51:26]OFD Sender: No OFD packet to send [07:51:31]OFD Sender: No OFD packet to send [07:51:36]OFD Sender: No OFD packet to send [07:51:41]OFD Sender: No OFD packet to send [07:51:46]OFD Sender: No OFD packet to send [07:51:51]OFD Sender: No OFD packet to send [07:51:56]OFD Sender: No OFD packet to send [07:52:01]OFD Sender: No OFD packet to send [07:52:06]OFD Sender: No OFD packet to send [07:52:11]OFD Sender: No OFD packet to send [07:52:16]OFD Sender: No OFD packet to send [07:52:21]OFD Sender: No OFD packet to send [07:52:21]accept exits with 7 [07:52:21]New connection [07:52:21]New thread 3067374948 created [07:52:21]Thread 3067518308 joined [07:52:21]Waiting for new connection... [07:52:21] Sock 7.Parse request [07:52:21]Sock 7.Check first char [07:52:21]Sock 7.First char is OK [07:52:21]request: POST /json_proto HTTP/1.0 [07:52:21]Method: POST [07:52:21]URL: /json_proto [07:52:21]Method is POST - this is cgi request [07:52:21]url: /json_proto [07:52:21]query_string will be loaded in cgi processing [07:52:21]execute_cgi json_proto POST (null) [07:52:21]execute_cgi path=json_proto method=POST [07:52:21]POST find Content-Length [07:52:21]Host: 172.17.60.69:8080 [07:52:21]Content-Length: 671 [07:52:21]Content-Type: application/json [07:52:21] [07:52:21]POST finish read [07:52:21]Found Content-Length = 671 [07:52:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73349", "tax_sys" : 0, "items" : [ { "code": "46214621", "name": "\u0420/\u0436 mentos \u0442\u0443\u0442\u0442\u0438-\u0444\u0440\u0443\u0442\u0442\u0438 \u0440\u043E\u043B\u043B 16\u0433", "price" : 49.00, "quantity" : 1.000, "sum" : 49.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 49.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:52:21]execute_script... [07: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 : (3)73349", "tax_sys" : 0, "items" : [ { "code": "46214621", "name": "\u0420/\u0436 mentos \u0442\u0443\u0442\u0442\u0438-\u0444\u0440\u0443\u0442\u0442\u0438 \u0440\u043E\u043B\u043B 16\u0433", "price" : 49.00, "quantity" : 1.000, "sum" : 49.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 49.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:52:21]POST & json_proto [07:52:21]process_json_proto [07:52:21]json parsed OK: [07:52:21]protocol is kg_v1.0 [07:52:21]action value=close_receipt [07:52:21]process_action close_receipt [07:52:21]cmd_close_receipt [07:52:21]MH_GetDate [07:52:21]Write to MH i2c: F0 00 00 BA 02 AB [07:52:21]Write i2c OK [07:52:21]MH_I2C_Read... [07:52:21]Read from MH i2c: F0 [07:52:21]MH_I2C_Read... [07:52:21]Read from MH i2c: F0 09 00 [07:52:21]MH_I2C_Read... [07:52:21]Read from MH i2c: F0 09 00 BA 02 00 36 76 5D 66 6A 96 4A 66 D3 [07:52:21]GetLastDocTimeStamp 1717401074 [07:52:21]current date 1717401142 [07:52:21]FM_GetShiftState [07:52:21]SAM_PROTO_GetShiftState [07:52:21]wFMCommunicate request_size=4 [07:52:21]MH_SAM_APDU [07:52:21]CAPDU: 80 13 01 00 [07:52:21]Write to MH i2c: E2 08 00 BB 02 80 13 01 00 00 00 00 00 3A [07:52:21]Write i2c OK [07:52:21]MH_I2C_Read... [07:52:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:52:21]Read from MH i2c: E2 [07:52:21]MH_I2C_Read... [07:52:21]Read from MH i2c: E2 0E 00 [07:52:21]MH_I2C_Read... [07:52:21]Read from MH i2c: E2 0E 00 BB 02 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 06 [07:52:21]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [07:52:21]wFMCommunicate OK [07:52:21]SAM_PROTO_GetShiftState done [07:52:21]FM_GetShiftState done [07:52:21]opened in 1717373173 [07:52:21]opened+sec_in_day 1717459573 [07:52:21]quantity*price = 4900 [07:52:21]sum+1 = 4901 [07:52:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 49.00 НСП 1% : 0.43 НДС 12% : 5.20 Наличными: 49.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 18 03.06.2024 07:52 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63760 ФПД: 188085721471613 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T075222&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63760&fm=188085721471613&tin=02508201610067®Number=0000000000092737&sum=4900 0 [07:52:22]StoreToDocumentArchive [07:52:22]shift 373 fd 63760 [07:52:22]save to /storage/0373/doc_00063760 [07:52:22]save last doc name /storage/0373/doc_00063760 to /storage/kkm_last_doc_name [07:52:22]save OK [07:52:22]Clear old archive folders... [07:52:22]ProcessDocumentItem done err = 0, tmpTLVsize=287 [07:52:22]tlvbuf is 00D555C0 [07:52:22]SAM_PROTO_ClearQueue [07:52:22]wFMCommunicate request_size=4 [07:52:22]MH_SAM_APDU [07:52:22]CAPDU: 80 09 00 00 [07:52:22]Write to MH i2c: E2 08 00 C8 02 80 09 00 00 00 00 00 00 3C [07:52:22]Write i2c OK [07:52:22]MH_I2C_Read... [07:52:22]Read from MH i2c: E2 [07:52:22]MH_I2C_Read... [07:52:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:52:22]Read from MH i2c: E2 03 00 [07:52:22]MH_I2C_Read... [07:52:22]Read from MH i2c: E2 03 00 C8 02 00 90 00 3E [07:52:22]RAPDU: 90 00 [07:52:22]wFMCommunicate OK [07:52:22]SAM_PROTO_ClearQueue done [07:52:22]KKMCreateOFDPacket [07:52:22]OFDProtocolAddRootSTLVToBuf [07:52:22]FM_MakeSignedData [07:52:22]FM_MakeSignedData [07:52:22]SAM_PROTO_SignData [07:52:22]wFMCommunicate request_size=4 [07:52:22]MH_SAM_APDU [07:52:22]CAPDU: 80 0D 01 02 [07:52:22]Write to MH i2c: E2 08 00 C9 02 80 0D 01 02 00 00 00 00 44 [07:52:22]Write i2c OK [07:52:22]MH_I2C_Read... [07:52:22]Read from MH i2c: E2 [07:52:22]MH_I2C_Read... [07:52:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:52:22]Read from MH i2c: E2 03 00 [07:52:22]MH_I2C_Read... [07:52:22]Read from MH i2c: E2 03 00 C9 02 00 90 00 3F [07:52:22]RAPDU: 90 00 [07:52:22]wFMCommunicate OK [07:52:22]wFMCommunicate request_size=255 [07:52:22]MH_SAM_APDU [07:52:22]CAPDU: 80 0D 02 02 FA 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 08 00 34 36 32 31 34 36 32 31 06 04 32 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 D1 82 D1 83 D1 82 D1 82 D0 B8 2D D1 84 D1 80 D1 83 D1 82 D1 82 D0 B8 20 D1 80 D0 BE D0 BB D0 BB 20 31 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 02 00 00 00 00 07 04 06 00 24 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 36 76 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 [07:52:22]Write to MH i2c: E2 02 01 CA 02 80 0D 02 02 FA 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 08 00 34 36 32 31 34 36 32 31 06 04 32 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 D1 82 D1 83 D1 82 D1 82 D0 B8 2D D1 84 D1 80 D1 83 D1 82 D1 82 D0 B8 20 D1 80 D0 BE D0 BB D0 BB 20 31 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 02 00 00 00 00 07 04 06 00 24 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 36 76 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 00 00 E4 [07:52:22]Write i2c OK [07:52:22]MH_I2C_Read... [07:52:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:52:23]Read from MH i2c: E2 [07:52:23]MH_I2C_Read... [07:52:23]Read from MH i2c: E2 03 00 [07:52:23]MH_I2C_Read... [07:52:23]Read from MH i2c: E2 03 00 CA 02 00 90 00 40 [07:52:23]RAPDU: 90 00 [07:52:23]wFMCommunicate OK [07:52:23]wFMCommunicate request_size=46 [07:52:23]MH_SAM_APDU [07:52:23]CAPDU: 80 0D 02 02 29 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 10 F9 00 00 35 04 06 00 AB 10 1E 9D 9A 7D [07:52:23]Write to MH i2c: E2 31 00 CB 02 80 0D 02 02 29 00 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 10 F9 00 00 35 04 06 00 AB 10 1E 9D 9A 7D 00 00 6B [07:52:23]Write i2c OK [07:52:23]MH_I2C_Read... [07:52:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:52:23]Read from MH i2c: E2 [07:52:23]MH_I2C_Read... [07:52:23]Read from MH i2c: E2 03 00 [07:52:23]MH_I2C_Read... [07:52:23]Read from MH i2c: E2 03 00 CB 02 00 90 00 41 [07:52:23]RAPDU: 90 00 [07:52:23]wFMCommunicate OK [07:52:23]wFMCommunicate request_size=4 [07:52:23]MH_SAM_APDU [07:52:23]CAPDU: 80 0D 03 02 [07:52:23]Write to MH i2c: E2 08 00 CC 02 80 0D 03 02 00 00 00 00 49 [07:52:23]Write i2c OK [07:52:23]MH_I2C_Read... [07:52:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:52:23]Read from MH i2c: E2 [07:52:23]MH_I2C_Read... [07:52:23]Read from MH i2c: E2 0B 00 [07:52:23]MH_I2C_Read... [07:52:23]Read from MH i2c: E2 0B 00 CC 02 00 BC 0A 54 91 58 8E A4 E4 90 00 63 [07:52:23]RAPDU: BC 0A 54 91 58 8E A4 E4 90 00 [07:52:23]wFMCommunicate OK [07:52:23]SAM_PROTO_SignData done [07:52:23]FM_MakeSignedData done [07:52:23]CreateOFDProtocolMessage [07:52:23]wFMCommunicate request_size=4 [07:52:23]MH_SAM_APDU [07:52:23]CAPDU: 80 11 00 00 [07:52:23]Write to MH i2c: E2 08 00 CD 02 80 11 00 00 00 00 00 00 49 [07:52:23]Write i2c OK [07:52:23]MH_I2C_Read... [07:52:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:52:23]Read from MH i2c: E2 [07:52:23]MH_I2C_Read... [07:52:23]Read from MH i2c: E2 17 00 [07:52:23]MH_I2C_Read... [07:52:23]Read from MH i2c: E2 17 00 CD 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 9B [07:52:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [07:52:23]wFMCommunicate OK [07:52:23]CreateOFDProtocolMessage done [07:52:23]OFDSenderStorePacket 63760 [07:52:23]StoreOFDPacket docnum=63760 [07:52:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 33 01 00 00 93 22 2B 01 51 F1 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 08 00 34 36 32 31 34 36 32 31 06 04 32 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 D1 82 D1 83 D1 82 D1 82 D0 B8 2D D1 84 D1 80 D1 83 D1 82 D1 82 D0 B8 20 D1 80 D0 BE D0 BB D0 BB 20 31 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 02 00 00 00 00 07 04 06 00 24 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 36 76 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 10 F9 00 00 35 04 06 00 AB 10 1E 9D 9A 7D BC 0A 54 91 58 8E A4 E4 [07:52:23]CheckFolder [07:52:23]dirname=/storage/ofd_packets [07:52:23]CheckFolder done [07:52:23]ProducePacketName [07:52:23]name=ofd_packets/00063760 [07:52:23]NVStorageSaveData ofd_packets/00063760 [07:52:23]File name is /storage/ofd_packets/00063760 [07:52:23]Write 337 bytes [07:52:23]NVStorageSaveData done [07:52:23]OFDSenderStorePacket done [07:52:23]KKMCreateOFDPacket done [07:52:23]NVStorageSaveData kkm_last_timestamp [07:52:23]File name is /storage/kkm_last_timestamp [07:52:23]Write 4 bytes [07:52:23]NVStorageSaveData done [07:52:23]ExternCall_PrintAddStr [07:52:23]wPrintStart [07:52:23]Write to MH i2c: 01 00 00 CE 02 D0 [07:52:23]Write i2c OK [07:52:23]MH_I2C_Read... [07:52:23]Read from MH i2c: 01 [07:52:23]MH_I2C_Read... [07:52:23]Read from MH i2c: 01 07 00 [07:52:23]MH_I2C_Read... [07:52:23]Read from MH i2c: 01 07 00 CE 02 00 00 00 00 00 FF 0F E5 [07:52:23]RasterBufferAndPrint [07:52:23]line Счет N : (3)73349 [07:52:23]line ИНН: 02508201610067 [07:52:23]line Контрольно-Кассовый Чек [07:52:23]line ПРОДАЖА [07:52:23]line Товар: 46214621 [07:52:23]line Р/ж mentos тутти-фрутти ролл 16г [07:52:23]line 1.000 * 49.00 [07:52:23]line = 49.00 [07:52:23]line НДС 12% НСП 1% [07:52:23]line > о реализуемом товаре [07:52:23]line ИТОГО: 49.00 [07:52:23]line НСП 1% : 0.43 [07:52:23]line НДС 12% : 5.20 [07:52:23]line Наличными: 49.00 [07:52:23]line Безнал.: 0.00 [07:52:23]line Место: АЗС № 117 "Партнер Нефть" [07:52:23]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [07:52:23]line СНО: Общий режим [07:52:23]line Чек 18 03.06.2024 07:52 [07:52:23]line Смена: 373 ФФД: 1.0 [07:52:23]line ЗНМ: 0300000031 [07:52:23]line РНМ: 0000000000092737 [07:52:23]line Версия ККМ: 001 [07:52:23]line ФМ: 0000000000875074 [07:52:23]line ФД: 63760 [07:52:23]line ФПД: 188085721471613 [07:52:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T075222&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63760&fm=188085721471613&tin=02508201610067®Number=0000000000092737&sum=4900 [07:52:23]line 0 [07:52:23]OFD Sender: Processing packet 63760 [packets to send 14, broken 13] [07:52:23]ProducePacketName [07:52:23]name=ofd_packets/00063760 [07:52:23]OFD Sender: To server: pG, [07:52:23]CommunicateWithHost lk.salyk.kg:30040 [07:52:23]ConnectInit lk.salyk.kg [07:52:23]written 0, free lines is 4095 [07:52:23]Connected sock=10 [07: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 35 30 37 34 33 01 00 00 93 22 2B 01 51 F1 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 08 00 34 36 32 31 34 36 32 31 06 04 32 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 D1 82 D1 83 D1 82 D1 82 D0 B8 2D D1 84 D1 80 D1 83 D1 82 D1 82 D0 B8 20 D1 80 D0 BE D0 BB D0 BB 20 31 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 02 00 00 00 00 07 04 06 00 24 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 36 76 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 10 F9 00 00 35 04 06 00 AB 10 1E 9D 9A 7D BC 0A 54 91 58 8E A4 E4 [07:52:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 5E 23 47 00 9D 54 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 10 F9 00 00 F4 03 04 00 08 22 5D 66 B6 04 01 00 00 B5 47 FE C8 B6 47 F8 66 [07:52:23]CommunicateWithHost err = 0 [07:52:23]CheckOFDResponse [07:52:23]1017 (14) - 77093643461234 [07:52:23]1041 (16) - 0000000000875074 [07:52:23]1040 (4) - 63760 [07:52:23]1012 (4) - 03.06.2024 01:53 [07:52:23]1206 (1) - 0 [07:52:23]OFD Sender: Remove packet 63760 [07:52:23]ProducePacketName [07:52:23]name=ofd_packets/00063760 [07:52:23]NVStorageDeleteData [07:52:24]Write to MH i2c: 01 00 00 F7 02 F9 [07:52:24]Write i2c OK [07:52:24]MH_I2C_Read... [07:52:24]Read from MH i2c: 01 [07:52:24]MH_I2C_Read... [07:52:24]Read from MH i2c: 01 07 00 [07:52:24]MH_I2C_Read... [07:52:24]Read from MH i2c: 01 07 00 F7 02 00 00 00 00 00 D9 0C E5 [07:52:24]RasterBufferAndPrint [07:52:24]line [07:52:24]line [07:52:24]line [07:52:24]line [07:52:24]line [07:52:24]written 0, free lines is 3297 [07:52:24]MH_Cut [07:52:24]Write to MH i2c: D1 01 00 FE 02 01 D2 [07:52:24]Write i2c OK [07:52:24]MH_I2C_Read... [07:52:24]Read from MH i2c: D1 [07:52:24]MH_I2C_Read... [07:52:24]Read from MH i2c: D1 01 00 [07:52:24]MH_I2C_Read... [07:52:24]Read from MH i2c: D1 01 00 FE 02 00 D1 [07:52:24]Write to MH i2c: 01 00 00 FF 02 01 [07:52:24]Write i2c OK [07:52:24]MH_I2C_Read... [07:52:24]OFD Sender: No OFD packet to send [07:52:24]*** Cut start [07:52:24]*** Partial cut [07:52:24]*** CUTSNS_PIN = 1 [07:52:24]*** CUTSNS_PIN = 0 [07:52:25]*** Brake cut motor [07:52:25]Read from MH i2c: 01 [07:52:25]MH_I2C_Read... [07:52:25]*** Stop cut motor [07:52:25]*** Cut end [07:52:25]Read from MH i2c: 01 07 00 [07:52:25]MH_I2C_Read... [07:52:25]Read from MH i2c: 01 07 00 FF 02 00 00 00 00 00 FF 0F 16 [07:52:25]process_action close_receipt done [07:52:25]requested_data is exist [07:52:25]produce_requested_data [07:52:25]requested_item fm.sn is exist - process it [07:52:25]wFMCommunicate request_size=4 [07:52:25]MH_SAM_APDU [07:52:25]CAPDU: 80 11 00 00 [07:52:25]Write to MH i2c: E2 08 00 00 03 80 11 00 00 00 00 00 00 7D [07:52:25]Write i2c OK [07:52:25]MH_I2C_Read... [07:52:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:52:25]Read from MH i2c: E2 [07:52:25]MH_I2C_Read... [07:52:25]Read from MH i2c: E2 17 00 [07:52:25]MH_I2C_Read... [07:52:25]Read from MH i2c: E2 17 00 00 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 CF [07:52:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [07:52:25]wFMCommunicate OK [07:52:25]requested_item fd.num is exist - process it [07:52:25]SAM_PROTO_GetFieldsCounters [07:52:25]wFMCommunicate request_size=4 [07:52:25]MH_SAM_APDU [07:52:25]CAPDU: 80 13 00 00 [07:52:25]Write to MH i2c: E2 08 00 01 03 80 13 00 00 00 00 00 00 80 [07:52:25]Write i2c OK [07:52:25]MH_I2C_Read... [07:52:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:52:25]Read from MH i2c: E2 [07:52:25]MH_I2C_Read... [07:52:25]Read from MH i2c: E2 62 00 [07:52:25]MH_I2C_Read... [07:52:25]Read from MH i2c: E2 62 00 01 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 10 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 58 [07: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 10 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:52:25]wFMCommunicate OK [07:52:25]SAM_PROTO_GetFieldsCounters done [07:52:25]requested_item shift.num is exist - process it [07:52:25]requested_item shift.opened is exist - process it [07:52:25]req_shift_opened [07:52:25]FM_GetShiftState [07:52:25]SAM_PROTO_GetShiftState [07:52:25]wFMCommunicate request_size=4 [07:52:25]MH_SAM_APDU [07:52:25]CAPDU: 80 13 01 00 [07:52:25]Write to MH i2c: E2 08 00 02 03 80 13 01 00 00 00 00 00 82 [07:52:25]Write i2c OK [07:52:25]MH_I2C_Read... [07:52:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:52:25]Read from MH i2c: E2 [07:52:25]MH_I2C_Read... [07:52:25]Read from MH i2c: E2 0E 00 [07:52:25]MH_I2C_Read... [07:52:25]Read from MH i2c: E2 0E 00 02 03 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 4E [07:52:25]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [07:52:25]wFMCommunicate OK [07:52:25]SAM_PROTO_GetShiftState done [07:52:25]FM_GetShiftState done [07:52:25]req_shift_opened done [07:52:25]requested_item shift.open_date is exist - process it [07:52:25]req_shift_open_date [07:52:25]req_shift_open_date done [07:52:25]produce_requested_data done [07:52:25]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63760,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [07:52:25]process_action_free close_receipt [07:52:25]json_value_free [07:52:25]json_value_free done [07:52:25]process_json_proto returns [07:52:25]Send response to host [07:52:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63760,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [07:52:25]free response buf [07:52:25]execute_script done [07:52:25]execute_script returns [07:52:25]free content buf [07:52:25]Sock 7.Close socket [07:52:25]Sock 7.Thread stoped [07:52:29]OFD Sender: No OFD packet to send [07:52:34]OFD Sender: No OFD packet to send [07:52:39]OFD Sender: No OFD packet to send [07:52:39]accept exits with 9 [07:52:39]New connection [07:52:39]New thread 3067518308 created [07:52:39]Thread 3067374948 joined [07:52:39]Waiting for new connection... [07:52:39] Sock 9.Parse request [07:52:39]Sock 9.Check first char [07:52:39]Sock 9.First char is OK [07:52:39]request: POST /json_proto HTTP/1.0 [07:52:39]Method: POST [07:52:39]URL: /json_proto [07:52:39]Method is POST - this is cgi request [07:52:39]url: /json_proto [07:52:39]query_string will be loaded in cgi processing [07:52:39]execute_cgi json_proto POST (null) [07:52:39]execute_cgi path=json_proto method=POST [07:52:39]POST find Content-Length [07:52:39]Host: 172.17.60.69:8080 [07:52:39]Content-Length: 622 [07:52:39]Content-Type: application/json [07:52:39] [07:52:39]POST finish read [07:52:39]Found Content-Length = 622 [07:52:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73350", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:52:39]execute_script... [07:52:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73350", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:52:39]POST & json_proto [07:52:39]process_json_proto [07:52:39]json parsed OK: [07:52:39]protocol is kg_v1.0 [07:52:39]action value=close_receipt [07:52:39]process_action close_receipt [07:52:39]cmd_close_receipt [07:52:39]MH_GetDate [07:52:39]Write to MH i2c: F0 00 00 03 03 F5 [07:52:39]Write i2c OK [07:52:39]MH_I2C_Read... [07:52:39]Read from MH i2c: F0 [07:52:39]MH_I2C_Read... [07:52:39]Read from MH i2c: F0 09 00 [07:52:39]MH_I2C_Read... [07:52:39]Read from MH i2c: F0 09 00 03 03 00 48 76 5D 66 6A 96 4A 66 2F [07:52:39]GetLastDocTimeStamp 1717401142 [07:52:39]current date 1717401160 [07:52:39]FM_GetShiftState [07:52:39]SAM_PROTO_GetShiftState [07:52:39]wFMCommunicate request_size=4 [07:52:39]MH_SAM_APDU [07:52:39]CAPDU: 80 13 01 00 [07:52:39]Write to MH i2c: E2 08 00 04 03 80 13 01 00 00 00 00 00 84 [07:52:39]Write i2c OK [07:52:39]MH_I2C_Read... [07:52:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:52:39]Read from MH i2c: E2 [07:52:39]MH_I2C_Read... [07:52:39]Read from MH i2c: E2 0E 00 [07:52:39]MH_I2C_Read... [07:52:39]Read from MH i2c: E2 0E 00 04 03 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 50 [07:52:39]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [07:52:39]wFMCommunicate OK [07:52:39]SAM_PROTO_GetShiftState done [07:52:39]FM_GetShiftState done [07:52:39]opened in 1717373173 [07:52:39]opened+sec_in_day 1717459573 [07:52:39]quantity*price = 14000 [07:52:39]sum+1 = 14001 [07:52:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 19 03.06.2024 07:52 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63761 ФПД: 45450119401427 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T075240&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63761&fm=45450119401427&tin=02508201610067®Number=0000000000092737&sum=14000 0 [07:52:40]StoreToDocumentArchive [07:52:40]shift 373 fd 63761 [07:52:40]save to /storage/0373/doc_00063761 [07:52:40]save last doc name /storage/0373/doc_00063761 to /storage/kkm_last_doc_name [07:52:40]save OK [07:52:40]Clear old archive folders... [07:52:40]ProcessDocumentItem done err = 0, tmpTLVsize=275 [07:52:40]tlvbuf is B6F647F0 [07:52:40]SAM_PROTO_ClearQueue [07:52:40]wFMCommunicate request_size=4 [07:52:40]MH_SAM_APDU [07:52:40]CAPDU: 80 09 00 00 [07:52:40]Write to MH i2c: E2 08 00 11 03 80 09 00 00 00 00 00 00 86 [07:52:40]Write i2c OK [07:52:40]MH_I2C_Read... [07:52:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:52:40]Read from MH i2c: E2 [07:52:40]MH_I2C_Read... [07:52:40]Read from MH i2c: E2 03 00 [07:52:40]MH_I2C_Read... [07:52:40]Read from MH i2c: E2 03 00 11 03 00 90 00 88 [07:52:40]RAPDU: 90 00 [07:52:40]wFMCommunicate OK [07:52:40]SAM_PROTO_ClearQueue done [07:52:40]KKMCreateOFDPacket [07:52:40]OFDProtocolAddRootSTLVToBuf [07:52:40]FM_MakeSignedData [07:52:40]FM_MakeSignedData [07:52:40]SAM_PROTO_SignData [07:52:40]wFMCommunicate request_size=4 [07:52:40]MH_SAM_APDU [07:52:40]CAPDU: 80 0D 01 02 [07:52:40]Write to MH i2c: E2 08 00 12 03 80 0D 01 02 00 00 00 00 8E [07:52:40]Write i2c OK [07:52:40]MH_I2C_Read... [07:52:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:52:40]Read from MH i2c: E2 [07:52:40]MH_I2C_Read... [07:52:40]Read from MH i2c: E2 03 00 [07:52:40]MH_I2C_Read... [07:52:40]Read from MH i2c: E2 03 00 12 03 00 90 00 89 [07:52:40]RAPDU: 90 00 [07:52:40]wFMCommunicate OK [07:52:40]wFMCommunicate request_size=255 [07:52:40]MH_SAM_APDU [07:52:40]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 48 76 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 [07:52:40]Write to MH i2c: E2 02 01 13 03 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 48 76 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 00 00 2B [07:52:40]Write i2c OK [07:52:40]MH_I2C_Read... [07:52:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:52:41]Read from MH i2c: E2 [07:52:41]MH_I2C_Read... [07:52:41]Read from MH i2c: E2 03 00 [07:52:41]MH_I2C_Read... [07:52:41]Read from MH i2c: E2 03 00 13 03 00 90 00 8A [07:52:41]RAPDU: 90 00 [07:52:41]wFMCommunicate OK [07:52:41]wFMCommunicate request_size=34 [07:52:41]MH_SAM_APDU [07:52:41]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 11 F9 00 00 35 04 06 00 29 56 2E 38 CF D3 [07:52:41]Write to MH i2c: E2 25 00 14 03 80 0D 02 02 1D 00 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 11 F9 00 00 35 04 06 00 29 56 2E 38 CF D3 00 00 E2 [07:52:41]Write i2c OK [07:52:41]MH_I2C_Read... [07:52:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:52:41]Read from MH i2c: E2 [07:52:41]MH_I2C_Read... [07:52:41]Read from MH i2c: E2 03 00 [07:52:41]MH_I2C_Read... [07:52:41]Read from MH i2c: E2 03 00 14 03 00 90 00 8B [07:52:41]RAPDU: 90 00 [07:52:41]wFMCommunicate OK [07:52:41]wFMCommunicate request_size=4 [07:52:41]MH_SAM_APDU [07:52:41]CAPDU: 80 0D 03 02 [07:52:41]Write to MH i2c: E2 08 00 15 03 80 0D 03 02 00 00 00 00 93 [07:52:41]Write i2c OK [07:52:41]MH_I2C_Read... [07:52:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:52:41]Read from MH i2c: E2 [07:52:41]MH_I2C_Read... [07:52:41]Read from MH i2c: E2 0B 00 [07:52:41]MH_I2C_Read... [07:52:41]Read from MH i2c: E2 0B 00 15 03 00 03 7C 6B 4F 52 5C 11 36 90 00 C2 [07:52:41]RAPDU: 03 7C 6B 4F 52 5C 11 36 90 00 [07:52:41]wFMCommunicate OK [07:52:41]SAM_PROTO_SignData done [07:52:41]FM_MakeSignedData done [07:52:41]CreateOFDProtocolMessage [07:52:41]wFMCommunicate request_size=4 [07:52:41]MH_SAM_APDU [07:52:41]CAPDU: 80 11 00 00 [07:52:41]Write to MH i2c: E2 08 00 16 03 80 11 00 00 00 00 00 00 93 [07:52:41]Write i2c OK [07:52:41]MH_I2C_Read... [07:52:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:52:41]Read from MH i2c: E2 [07:52:41]MH_I2C_Read... [07:52:41]Read from MH i2c: E2 17 00 [07:52:41]MH_I2C_Read... [07:52:41]Read from MH i2c: E2 17 00 16 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 E5 [07:52:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [07:52:41]wFMCommunicate OK [07:52:41]CreateOFDProtocolMessage done [07:52:41]OFDSenderStorePacket 63761 [07:52:41]StoreOFDPacket docnum=63761 [07:52:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 27 01 00 00 90 65 1F 01 67 8F 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 48 76 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 11 F9 00 00 35 04 06 00 29 56 2E 38 CF D3 03 7C 6B 4F 52 5C 11 36 [07:52:41]CheckFolder [07:52:41]dirname=/storage/ofd_packets [07:52:41]CheckFolder done [07:52:41]ProducePacketName [07:52:41]name=ofd_packets/00063761 [07:52:41]NVStorageSaveData ofd_packets/00063761 [07:52:41]File name is /storage/ofd_packets/00063761 [07:52:41]Write 325 bytes [07:52:41]NVStorageSaveData done [07:52:41]OFDSenderStorePacket done [07:52:41]KKMCreateOFDPacket done [07:52:41]NVStorageSaveData kkm_last_timestamp [07:52:41]File name is /storage/kkm_last_timestamp [07:52:41]Write 4 bytes [07:52:41]NVStorageSaveData done [07:52:41]ExternCall_PrintAddStr [07:52:41]wPrintStart [07:52:41]Write to MH i2c: 01 00 00 17 03 1A [07:52:41]Write i2c OK [07:52:41]MH_I2C_Read... [07:52:41]Read from MH i2c: 01 [07:52:41]MH_I2C_Read... [07:52:41]Read from MH i2c: 01 07 00 [07:52:41]MH_I2C_Read... [07:52:41]Read from MH i2c: 01 07 00 17 03 00 00 00 00 00 FF 0F 2F [07:52:41]RasterBufferAndPrint [07:52:41]line Счет N : (3)73350 [07:52:41]line ИНН: 02508201610067 [07:52:41]line Контрольно-Кассовый Чек [07:52:41]line ПРОДАЖА [07:52:41]line Товар: 48743587 [07:52:41]line Сигареты Winston XStyle Silver [07:52:41]line 1.000 * 140.00 [07:52:41]line = 140.00 [07:52:41]line НДС 12% НСП 1% [07:52:41]line > о реализуемом товаре [07:52:41]line ИТОГО: 140.00 [07:52:41]line НСП 1% : 1.24 [07:52:41]line НДС 12% : 14.87 [07:52:41]line Наличными: 140.00 [07:52:41]line Безнал.: 0.00 [07:52:41]line Место: АЗС № 117 "Партнер Нефть" [07:52:41]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [07:52:41]line СНО: Общий режим [07:52:41]line Чек 19 03.06.2024 07:52 [07:52:41]line Смена: 373 ФФД: 1.0 [07:52:41]line ЗНМ: 0300000031 [07:52:41]line РНМ: 0000000000092737 [07:52:41]line Версия ККМ: 001 [07:52:41]line ФМ: 0000000000875074 [07:52:41]line ФД: 63761 [07:52:41]line ФПД: 45450119401427 [07:52:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T075240&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63761&fm=45450119401427&tin=02508201610067®Number=0000000000092737&sum=14000 [07:52:41]line 0 [07:52:41]OFD Sender: Processing packet 63761 [packets to send 14, broken 13] [07:52:41]ProducePacketName [07:52:41]name=ofd_packets/00063761 [07:52:41]OFD Sender: To server: pG, [07:52:41]CommunicateWithHost lk.salyk.kg:30040 [07:52:41]ConnectInit lk.salyk.kg [07:52:41]written 0, free lines is 4095 [07:52:41]Connected sock=10 [07:52:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 27 01 00 00 90 65 1F 01 67 8F 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 48 76 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 11 F9 00 00 35 04 06 00 29 56 2E 38 CF D3 03 7C 6B 4F 52 5C 11 36 [07:52:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 79 D6 47 00 99 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 35 30 37 34 10 04 04 00 11 F9 00 00 F4 03 04 00 1A 22 5D 66 B6 04 01 00 00 6D 78 07 AB A5 CC 41 38 [07:52:42]CommunicateWithHost err = 0 [07:52:42]CheckOFDResponse [07:52:42]1017 (14) - 77093643461234 [07:52:42]1041 (16) - 0000000000875074 [07:52:42]1040 (4) - 63761 [07:52:42]1012 (4) - 03.06.2024 01:53 [07:52:42]1206 (1) - 0 [07:52:42]OFD Sender: Remove packet 63761 [07:52:42]ProducePacketName [07:52:42]name=ofd_packets/00063761 [07:52:42]NVStorageDeleteData [07:52:42]Write to MH i2c: 01 00 00 40 03 43 [07:52:42]Write i2c OK [07:52:42]MH_I2C_Read... [07:52:42]Read from MH i2c: 01 [07:52:42]MH_I2C_Read... [07:52:42]Read from MH i2c: 01 07 00 [07:52:42]MH_I2C_Read... [07:52:42]Read from MH i2c: 01 07 00 40 03 00 00 00 00 00 EB 0C 41 [07:52:42]RasterBufferAndPrint [07:52:42]line [07:52:42]line [07:52:42]line [07:52:42]line [07:52:42]line [07:52:42]written 0, free lines is 3314 [07:52:42]MH_Cut [07:52:42]Write to MH i2c: D1 01 00 47 03 01 1C [07:52:42]Write i2c OK [07:52:42]MH_I2C_Read... [07:52:42]Read from MH i2c: D1 [07:52:42]MH_I2C_Read... [07:52:42]Read from MH i2c: D1 01 00 [07:52:42]MH_I2C_Read... [07:52:42]Read from MH i2c: D1 01 00 47 03 00 1B [07:52:42]Write to MH i2c: 01 00 00 48 03 4B [07:52:42]Write i2c OK [07:52:42]MH_I2C_Read... [07:52:42]OFD Sender: No OFD packet to send [07:52:42]*** Cut start [07:52:42]*** Partial cut [07:52:42]*** CUTSNS_PIN = 1 [07:52:42]*** CUTSNS_PIN = 0 [07:52:43]*** Brake cut motor [07:52:43]Read from MH i2c: 01 [07:52:43]MH_I2C_Read... [07:52:43]*** Stop cut motor [07:52:43]*** Cut end [07:52:43]Read from MH i2c: 01 07 00 [07:52:43]MH_I2C_Read... [07:52:43]Read from MH i2c: 01 07 00 48 03 00 00 00 00 00 FF 0F 60 [07:52:43]process_action close_receipt done [07:52:43]requested_data is exist [07:52:43]produce_requested_data [07:52:43]requested_item fm.sn is exist - process it [07:52:43]wFMCommunicate request_size=4 [07:52:43]MH_SAM_APDU [07:52:43]CAPDU: 80 11 00 00 [07:52:43]Write to MH i2c: E2 08 00 49 03 80 11 00 00 00 00 00 00 C6 [07:52:43]Write i2c OK [07:52:43]MH_I2C_Read... [07:52:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:52:43]Read from MH i2c: E2 [07:52:43]MH_I2C_Read... [07:52:43]Read from MH i2c: E2 17 00 [07:52:43]MH_I2C_Read... [07:52:43]Read from MH i2c: E2 17 00 49 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 18 [07:52:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [07:52:43]wFMCommunicate OK [07:52:43]requested_item fd.num is exist - process it [07:52:43]SAM_PROTO_GetFieldsCounters [07:52:43]wFMCommunicate request_size=4 [07:52:43]MH_SAM_APDU [07:52:43]CAPDU: 80 13 00 00 [07:52:43]Write to MH i2c: E2 08 00 4A 03 80 13 00 00 00 00 00 00 C9 [07:52:43]Write i2c OK [07:52:43]MH_I2C_Read... [07:52:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:52:43]Read from MH i2c: E2 [07:52:43]MH_I2C_Read... [07:52:43]Read from MH i2c: E2 62 00 [07:52:43]MH_I2C_Read... [07:52:43]Read from MH i2c: E2 62 00 4A 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 11 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 A5 [07:52:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 11 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:52:43]wFMCommunicate OK [07:52:43]SAM_PROTO_GetFieldsCounters done [07:52:43]requested_item shift.num is exist - process it [07:52:43]requested_item shift.opened is exist - process it [07:52:43]req_shift_opened [07:52:43]FM_GetShiftState [07:52:43]SAM_PROTO_GetShiftState [07:52:43]wFMCommunicate request_size=4 [07:52:43]MH_SAM_APDU [07:52:43]CAPDU: 80 13 01 00 [07:52:43]Write to MH i2c: E2 08 00 4B 03 80 13 01 00 00 00 00 00 CB [07:52:43]Write i2c OK [07:52:43]MH_I2C_Read... [07:52:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:52:43]Read from MH i2c: E2 [07:52:43]MH_I2C_Read... [07:52:43]Read from MH i2c: E2 0E 00 [07:52:43]MH_I2C_Read... [07:52:43]Read from MH i2c: E2 0E 00 4B 03 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 97 [07:52:43]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [07:52:43]wFMCommunicate OK [07:52:43]SAM_PROTO_GetShiftState done [07:52:43]FM_GetShiftState done [07:52:43]req_shift_opened done [07:52:43]requested_item shift.open_date is exist - process it [07:52:43]req_shift_open_date [07:52:43]req_shift_open_date done [07:52:43]produce_requested_data done [07:52:43]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63761,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [07:52:43]process_action_free close_receipt [07:52:43]json_value_free [07:52:43]json_value_free done [07:52:43]process_json_proto returns [07:52:43]Send response to host [07:52:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63761,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [07:52:43]free response buf [07:52:43]execute_script done [07:52:43]execute_script returns [07:52:43]free content buf [07:52:43]Sock 9.Close socket [07:52:43]Sock 9.Thread stoped [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:20]accept exits with 7 [07:53:20]New connection [07:53:20]New thread 3067374948 created [07:53:20]Thread 3067518308 joined [07:53:20]Waiting for new connection... [07:53:20] Sock 7.Parse request [07:53:20]Sock 7.Check first char [07:53:20]Sock 7.First char is OK [07:53:20]request: POST /json_proto HTTP/1.0 [07:53:20]Method: POST [07:53:20]URL: /json_proto [07:53:20]Method is POST - this is cgi request [07:53:20]url: /json_proto [07:53:20]query_string will be loaded in cgi processing [07:53:20]execute_cgi json_proto POST (null) [07:53:20]execute_cgi path=json_proto method=POST [07:53:20]POST find Content-Length [07:53:20]Host: 172.17.60.69:8080 [07:53:20]Content-Length: 628 [07:53:20]Content-Type: application/json [07:53:20] [07:53:20]POST finish read [07:53:20]Found Content-Length = 628 [07:53:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73351", "tax_sys" : 0, "items" : [ { "code": "2000039440011", "name": "\u0427\u0430\u0439 \u0447\u0435\u0440\u043D\u044B\u0439 200 \u043C\u043B", "price" : 40.00, "quantity" : 3.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 120.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:53:20]execute_script... [07:53:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73351", "tax_sys" : 0, "items" : [ { "code": "2000039440011", "name": "\u0427\u0430\u0439 \u0447\u0435\u0440\u043D\u044B\u0439 200 \u043C\u043B", "price" : 40.00, "quantity" : 3.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 120.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:53:20]POST & json_proto [07:53:20]process_json_proto [07:53:20]json parsed OK: [07:53:20]protocol is kg_v1.0 [07:53:20]action value=close_receipt [07:53:20]process_action close_receipt [07:53:20]cmd_close_receipt [07:53:20]MH_GetDate [07:53:20]Write to MH i2c: F0 00 00 4C 03 3E [07:53:20]Write i2c OK [07:53:20]MH_I2C_Read... [07:53:20]Read from MH i2c: F0 [07:53:20]MH_I2C_Read... [07:53:20]Read from MH i2c: F0 09 00 [07:53:20]MH_I2C_Read... [07:53:20]Read from MH i2c: F0 09 00 4C 03 00 71 76 5D 66 6A 96 4A 66 A1 [07:53:20]GetLastDocTimeStamp 1717401160 [07:53:20]current date 1717401201 [07:53:20]FM_GetShiftState [07:53:20]SAM_PROTO_GetShiftState [07:53:20]wFMCommunicate request_size=4 [07:53:20]MH_SAM_APDU [07:53:20]CAPDU: 80 13 01 00 [07:53:20]Write to MH i2c: E2 08 00 4D 03 80 13 01 00 00 00 00 00 CD [07:53:20]Write i2c OK [07:53:20]MH_I2C_Read... [07:53:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:53:20]Read from MH i2c: E2 [07:53:20]MH_I2C_Read... [07:53:20]Read from MH i2c: E2 0E 00 [07:53:20]MH_I2C_Read... [07:53:20]Read from MH i2c: E2 0E 00 4D 03 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 99 [07:53:20]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [07:53:20]wFMCommunicate OK [07:53:20]SAM_PROTO_GetShiftState done [07:53:20]FM_GetShiftState done [07:53:20]opened in 1717373173 [07:53:20]opened+sec_in_day 1717459573 [07:53:20]quantity*price = 12000 [07:53:20]sum+1 = 12001 [07:53:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 120.00 НСП 1% : 1.06 НДС 12% : 12.74 Наличными: 120.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 20 03.06.2024 07:53 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63762 ФПД: 87876125509166 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T075321&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63762&fm=87876125509166&tin=02508201610067®Number=0000000000092737&sum=12000 0 [07:53:21]StoreToDocumentArchive [07:53:21]shift 373 fd 63762 [07:53:21]save to /storage/0373/doc_00063762 [07:53:21]save last doc name /storage/0373/doc_00063762 to /storage/kkm_last_doc_name [07:53:21]save OK [07:53:21]Clear old archive folders... [07:53:21]ProcessDocumentItem done err = 0, tmpTLVsize=270 [07:53:21]tlvbuf is 00D3B8B0 [07:53:21]SAM_PROTO_ClearQueue [07:53:21]wFMCommunicate request_size=4 [07:53:21]MH_SAM_APDU [07:53:21]CAPDU: 80 09 00 00 [07:53:21]Write to MH i2c: E2 08 00 5A 03 80 09 00 00 00 00 00 00 CF [07:53:21]Write i2c OK [07:53:21]MH_I2C_Read... [07:53:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:53:21]Read from MH i2c: E2 [07:53:21]MH_I2C_Read... [07:53:21]Read from MH i2c: E2 03 00 [07:53:21]MH_I2C_Read... [07:53:21]Read from MH i2c: E2 03 00 5A 03 00 90 00 D1 [07:53:21]RAPDU: 90 00 [07:53:21]wFMCommunicate OK [07:53:21]SAM_PROTO_ClearQueue done [07:53:21]KKMCreateOFDPacket [07:53:21]OFDProtocolAddRootSTLVToBuf [07:53:21]FM_MakeSignedData [07:53:21]FM_MakeSignedData [07:53:21]SAM_PROTO_SignData [07:53:21]wFMCommunicate request_size=4 [07:53:21]MH_SAM_APDU [07:53:21]CAPDU: 80 0D 01 02 [07:53:21]Write to MH i2c: E2 08 00 5B 03 80 0D 01 02 00 00 00 00 D7 [07:53:21]Write i2c OK [07:53:21]MH_I2C_Read... [07:53:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:53:21]Read from MH i2c: E2 [07:53:21]MH_I2C_Read... [07:53:21]Read from MH i2c: E2 03 00 [07:53:21]MH_I2C_Read... [07:53:21]Read from MH i2c: E2 03 00 5B 03 00 90 00 D2 [07:53:21]RAPDU: 90 00 [07:53:21]wFMCommunicate OK [07:53:21]wFMCommunicate request_size=255 [07:53:21]MH_SAM_APDU [07:53:21]CAPDU: 80 0D 02 02 FA 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 32 30 30 30 30 33 39 34 34 30 30 31 31 06 04 1C 00 D0 A7 D0 B0 D0 B9 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 32 30 30 20 D0 BC D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 71 76 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 [07:53:21]Write to MH i2c: E2 02 01 5C 03 80 0D 02 02 FA 00 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 32 30 30 30 30 33 39 34 34 30 30 31 31 06 04 1C 00 D0 A7 D0 B0 D0 B9 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 32 30 30 20 D0 BC D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 71 76 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 00 00 02 [07:53:21]Write i2c OK [07:53:21]MH_I2C_Read... [07:53:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:53:22]Read from MH i2c: E2 [07:53:22]MH_I2C_Read... [07:53:22]Read from MH i2c: E2 03 00 [07:53:22]MH_I2C_Read... [07:53:22]Read from MH i2c: E2 03 00 5C 03 00 90 00 D3 [07:53:22]RAPDU: 90 00 [07:53:22]wFMCommunicate OK [07:53:22]wFMCommunicate request_size=29 [07:53:22]MH_SAM_APDU [07:53:22]CAPDU: 80 0D 02 02 18 38 37 35 30 37 34 10 04 04 00 12 F9 00 00 35 04 06 00 4F EC 41 3E C6 2E [07:53:22]Write to MH i2c: E2 20 00 5D 03 80 0D 02 02 18 00 38 37 35 30 37 34 10 04 04 00 12 F9 00 00 35 04 06 00 4F EC 41 3E C6 2E 00 00 59 [07:53:22]Write i2c OK [07:53:22]MH_I2C_Read... [07:53:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:53:22]Read from MH i2c: E2 [07:53:22]MH_I2C_Read... [07:53:22]Read from MH i2c: E2 03 00 [07:53:22]MH_I2C_Read... [07:53:22]Read from MH i2c: E2 03 00 5D 03 00 90 00 D4 [07:53:22]RAPDU: 90 00 [07:53:22]wFMCommunicate OK [07:53:22]wFMCommunicate request_size=4 [07:53:22]MH_SAM_APDU [07:53:22]CAPDU: 80 0D 03 02 [07:53:22]Write to MH i2c: E2 08 00 5E 03 80 0D 03 02 00 00 00 00 DC [07:53:22]Write i2c OK [07:53:22]MH_I2C_Read... [07:53:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:53:22]Read from MH i2c: E2 [07:53:22]MH_I2C_Read... [07:53:22]Read from MH i2c: E2 0B 00 [07:53:22]MH_I2C_Read... [07:53:22]Read from MH i2c: E2 0B 00 5E 03 00 07 98 2F 45 EB B5 DE F1 90 00 5F [07:53:22]RAPDU: 07 98 2F 45 EB B5 DE F1 90 00 [07:53:22]wFMCommunicate OK [07:53:22]SAM_PROTO_SignData done [07:53:22]FM_MakeSignedData done [07:53:22]CreateOFDProtocolMessage [07:53:22]wFMCommunicate request_size=4 [07:53:22]MH_SAM_APDU [07:53:22]CAPDU: 80 11 00 00 [07:53:22]Write to MH i2c: E2 08 00 5F 03 80 11 00 00 00 00 00 00 DC [07:53:22]Write i2c OK [07:53:22]MH_I2C_Read... [07:53:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:53:22]Read from MH i2c: E2 [07:53:22]MH_I2C_Read... [07:53:22]Read from MH i2c: E2 17 00 [07:53:22]MH_I2C_Read... [07:53:22]Read from MH i2c: E2 17 00 5F 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 2E [07:53:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [07:53:22]wFMCommunicate OK [07:53:22]CreateOFDProtocolMessage done [07:53:22]OFDSenderStorePacket 63762 [07:53:22]StoreOFDPacket docnum=63762 [07:53:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 22 01 00 00 1A F1 1A 01 90 80 5A 03 01 00 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 32 30 30 30 30 33 39 34 34 30 30 31 31 06 04 1C 00 D0 A7 D0 B0 D0 B9 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 32 30 30 20 D0 BC D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 71 76 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 12 F9 00 00 35 04 06 00 4F EC 41 3E C6 2E 07 98 2F 45 EB B5 DE F1 [07:53:22]CheckFolder [07:53:22]dirname=/storage/ofd_packets [07:53:22]CheckFolder done [07:53:22]ProducePacketName [07:53:22]name=ofd_packets/00063762 [07:53:22]NVStorageSaveData ofd_packets/00063762 [07:53:22]File name is /storage/ofd_packets/00063762 [07:53:22]Write 320 bytes [07:53:22]NVStorageSaveData done [07:53:22]OFDSenderStorePacket done [07:53:22]KKMCreateOFDPacket done [07:53:22]NVStorageSaveData kkm_last_timestamp [07:53:22]File name is /storage/kkm_last_timestamp [07:53:22]Write 4 bytes [07:53:22]NVStorageSaveData done [07:53:22]ExternCall_PrintAddStr [07:53:22]wPrintStart [07:53:22]Write to MH i2c: 01 00 00 60 03 63 [07:53:22]Write i2c OK [07:53:22]MH_I2C_Read... [07:53:22]Read from MH i2c: 01 [07:53:22]MH_I2C_Read... [07:53:22]Read from MH i2c: 01 07 00 [07:53:22]MH_I2C_Read... [07:53:22]Read from MH i2c: 01 07 00 60 03 00 00 00 00 00 FF 0F 78 [07:53:22]RasterBufferAndPrint [07:53:22]line Счет N : (3)73351 [07:53:22]line ИНН: 02508201610067 [07:53:22]line Контрольно-Кассовый Чек [07:53:22]line ПРОДАЖА [07:53:22]line Товар: 2000039440011 [07:53:22]line Чай черный 200 мл [07:53:22]line 3.000 * 40.00 [07:53:22]line = 120.00 [07:53:22]line НДС 12% НСП 1% [07:53:22]line > о реализуемом товаре [07:53:22]line ИТОГО: 120.00 [07:53:22]line НСП 1% : 1.06 [07:53:22]line НДС 12% : 12.74 [07:53:22]line Наличными: 120.00 [07:53:22]line Безнал.: 0.00 [07:53:22]line Место: АЗС № 117 "Партнер Нефть" [07:53:22]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [07:53:22]line СНО: Общий режим [07:53:22]line Чек 20 03.06.2024 07:53 [07:53:22]line Смена: 373 ФФД: 1.0 [07:53:22]line ЗНМ: 0300000031 [07:53:22]line РНМ: 0000000000092737 [07:53:22]line Версия ККМ: 001 [07:53:22]line ФМ: 0000000000875074 [07:53:22]line ФД: 63762 [07:53:22]line ФПД: 87876125509166 [07:53:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T075321&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63762&fm=87876125509166&tin=02508201610067®Number=0000000000092737&sum=12000 [07:53:22]line 0 [07:53:22]OFD Sender: Processing packet 63762 [packets to send 14, broken 13] [07:53:22]ProducePacketName [07:53:22]name=ofd_packets/00063762 [07:53:22]OFD Sender: To server: pG, [07:53:22]CommunicateWithHost lk.salyk.kg:30040 [07:53:22]ConnectInit lk.salyk.kg [07:53:22]written 0, free lines is 4095 [07:53:22]Connected sock=11 [07:53:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 22 01 00 00 1A F1 1A 01 90 80 5A 03 01 00 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 32 30 30 30 30 33 39 34 34 30 30 31 31 06 04 1C 00 D0 A7 D0 B0 D0 B9 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 32 30 30 20 D0 BC D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 71 76 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 12 F9 00 00 35 04 06 00 4F EC 41 3E C6 2E 07 98 2F 45 EB B5 DE F1 [07:53:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 46 AD 47 00 CB 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 35 30 37 34 10 04 04 00 12 F9 00 00 F4 03 04 00 43 22 5D 66 B6 04 01 00 00 BB 86 C8 58 25 45 DA 6F [07:53:22]CommunicateWithHost err = 0 [07:53:22]CheckOFDResponse [07:53:22]1017 (14) - 77093643461234 [07:53:22]1041 (16) - 0000000000875074 [07:53:22]1040 (4) - 63762 [07:53:22]1012 (4) - 03.06.2024 01:54 [07:53:22]1206 (1) - 0 [07:53:22]OFD Sender: Remove packet 63762 [07:53:22]ProducePacketName [07:53:22]name=ofd_packets/00063762 [07:53:22]NVStorageDeleteData [07:53:23]Write to MH i2c: 01 00 00 88 03 8B [07:53:23]Write i2c OK [07:53:23]MH_I2C_Read... [07:53:23]Read from MH i2c: 01 [07:53:23]MH_I2C_Read... [07:53:23]Read from MH i2c: 01 07 00 [07:53:23]MH_I2C_Read... [07:53:23]Read from MH i2c: 01 07 00 88 03 00 00 00 00 00 FE 0C 9C [07:53:23]RasterBufferAndPrint [07:53:23]line [07:53:23]line [07:53:23]line [07:53:23]line [07:53:23]line [07:53:23]written 0, free lines is 3331 [07:53:23]MH_Cut [07:53:23]Write to MH i2c: D1 01 00 8F 03 01 64 [07:53:23]Write i2c OK [07:53:23]MH_I2C_Read... [07:53:23]Read from MH i2c: D1 [07:53:23]MH_I2C_Read... [07:53:23]Read from MH i2c: D1 01 00 [07:53:23]MH_I2C_Read... [07:53:23]Read from MH i2c: D1 01 00 8F 03 00 63 [07:53:23]Write to MH i2c: 01 00 00 90 03 93 [07:53:23]Write i2c OK [07:53:23]MH_I2C_Read... [07:53:23]OFD Sender: No OFD packet to send [07:53:23]*** Cut start [07:53:23]*** Partial cut [07:53:23]*** CUTSNS_PIN = 1 [07:53:23]*** CUTSNS_PIN = 0 [07:53:24]*** Brake cut motor [07:53:24]Read from MH i2c: 01 [07:53:24]MH_I2C_Read... [07:53:24]*** Stop cut motor [07:53:24]*** Cut end [07:53:24]Read from MH i2c: 01 07 00 [07:53:24]MH_I2C_Read... [07:53:24]Read from MH i2c: 01 07 00 90 03 00 00 00 00 00 FF 0F A8 [07:53:24]process_action close_receipt done [07:53:24]requested_data is exist [07:53:24]produce_requested_data [07:53:24]requested_item fm.sn is exist - process it [07:53:24]wFMCommunicate request_size=4 [07:53:24]MH_SAM_APDU [07:53:24]CAPDU: 80 11 00 00 [07:53:24]Write to MH i2c: E2 08 00 91 03 80 11 00 00 00 00 00 00 0E [07:53:24]Write i2c OK [07:53:24]MH_I2C_Read... [07:53:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:53:24]Read from MH i2c: E2 [07:53:24]MH_I2C_Read... [07:53:24]Read from MH i2c: E2 17 00 [07:53:24]MH_I2C_Read... [07:53:24]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 35 30 37 34 90 00 60 [07:53:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [07:53:24]wFMCommunicate OK [07:53:24]requested_item fd.num is exist - process it [07:53:24]SAM_PROTO_GetFieldsCounters [07:53:24]wFMCommunicate request_size=4 [07:53:24]MH_SAM_APDU [07:53:24]CAPDU: 80 13 00 00 [07:53:24]Write to MH i2c: E2 08 00 92 03 80 13 00 00 00 00 00 00 11 [07:53:24]Write i2c OK [07:53:24]MH_I2C_Read... [07:53:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:53:24]Read from MH i2c: E2 [07:53:24]MH_I2C_Read... [07:53:24]Read from MH i2c: E2 62 00 [07:53:24]MH_I2C_Read... [07:53:24]Read from MH i2c: E2 62 00 92 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 12 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 F1 [07:53: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 12 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:53:24]wFMCommunicate OK [07:53:24]SAM_PROTO_GetFieldsCounters done [07:53:24]requested_item shift.num is exist - process it [07:53:24]requested_item shift.opened is exist - process it [07:53:24]req_shift_opened [07:53:24]FM_GetShiftState [07:53:24]SAM_PROTO_GetShiftState [07:53:24]wFMCommunicate request_size=4 [07:53:24]MH_SAM_APDU [07:53:24]CAPDU: 80 13 01 00 [07:53:24]Write to MH i2c: E2 08 00 93 03 80 13 01 00 00 00 00 00 13 [07:53:24]Write i2c OK [07:53:24]MH_I2C_Read... [07:53:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:53:24]Read from MH i2c: E2 [07:53:24]MH_I2C_Read... [07:53:24]Read from MH i2c: E2 0E 00 [07:53:24]MH_I2C_Read... [07:53:24]Read from MH i2c: E2 0E 00 93 03 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 DF [07:53:24]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [07:53:24]wFMCommunicate OK [07:53:24]SAM_PROTO_GetShiftState done [07:53:24]FM_GetShiftState done [07:53:24]req_shift_opened done [07:53:24]requested_item shift.open_date is exist - process it [07:53:24]req_shift_open_date [07:53:24]req_shift_open_date done [07:53:24]produce_requested_data done [07:53:24]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63762,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [07:53:24]process_action_free close_receipt [07:53:24]json_value_free [07:53:24]json_value_free done [07:53:24]process_json_proto returns [07:53:24]Send response to host [07:53:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63762,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [07:53:24]free response buf [07:53:24]execute_script done [07:53:24]execute_script returns [07:53:24]free content buf [07:53:24]Sock 7.Close socket [07:53:24]Sock 7.Thread stoped [07:53:28]OFD Sender: No OFD packet to send [07:53:33]OFD Sender: No OFD packet to send [07:53:38]OFD Sender: No OFD packet to send [07:53:43]OFD Sender: No OFD packet to send [07:53:48]OFD Sender: No OFD packet to send [07:53:53]OFD Sender: No OFD packet to send [07:53:58]OFD Sender: No OFD packet to send [07:54:03]OFD Sender: No OFD packet to send [07:54:08]OFD Sender: No OFD packet to send [07:54:13]OFD Sender: No OFD packet to send [07:54:18]OFD Sender: No OFD packet to send [07:54:23]OFD Sender: No OFD packet to send [07:54:28]OFD Sender: No OFD packet to send [07:54:33]OFD Sender: No OFD packet to send [07:54:38]OFD Sender: No OFD packet to send [07:54:43]OFD Sender: No OFD packet to send [07:54:48]OFD Sender: No OFD packet to send [07:54:53]OFD Sender: No OFD packet to send [07:54:58]OFD Sender: No OFD packet to send [07:55:03]OFD Sender: No OFD packet to send [07:55:08]OFD Sender: No OFD packet to send [07:55:13]OFD Sender: No OFD packet to send [07:55:18]OFD Sender: No OFD packet to send [07:55:23]OFD Sender: No OFD packet to send [07:55:28]OFD Sender: No OFD packet to send [07:55:33]OFD Sender: No OFD packet to send [07:55:38]OFD Sender: No OFD packet to send [07:55:43]OFD Sender: No OFD packet to send [07:55:48]OFD Sender: No OFD packet to send [07:55:53]OFD Sender: No OFD packet to send [07:55:58]OFD Sender: No OFD packet to send [07:56:03]OFD Sender: No OFD packet to send [07:56:08]OFD Sender: No OFD packet to send [07:56:13]OFD Sender: No OFD packet to send [07:56:18]OFD Sender: No OFD packet to send [07:56:23]OFD Sender: No OFD packet to send [07:56:28]OFD Sender: No OFD packet to send [07:56:33]OFD Sender: No OFD packet to send [07:56:38]OFD Sender: No OFD packet to send [07:56:43]OFD Sender: No OFD packet to send [07:56:48]OFD Sender: No OFD packet to send [07:56:53]OFD Sender: No OFD packet to send [07:56:58]OFD Sender: No OFD packet to send [07:57:03]OFD Sender: No OFD packet to send [07:57:08]OFD Sender: No OFD packet to send [07:57:13]OFD Sender: No OFD packet to send [07:57:18]OFD Sender: No OFD packet to send [07:57:23]OFD Sender: No OFD packet to send [07:57:28]OFD Sender: No OFD packet to send [07:57:33]OFD Sender: No OFD packet to send [07:57:38]OFD Sender: No OFD packet to send [07:57:43]OFD Sender: No OFD packet to send [07:57:48]OFD Sender: No OFD packet to send [07:57:53]OFD Sender: No OFD packet to send [07:57:58]OFD Sender: No OFD packet to send [07:58:03]OFD Sender: No OFD packet to send [07:58:08]OFD Sender: No OFD packet to send [07:58:13]OFD Sender: No OFD packet to send [07:58:18]OFD Sender: No OFD packet to send [07:58:23]OFD Sender: No OFD packet to send [07:58:28]OFD Sender: No OFD packet to send [07:58:33]OFD Sender: No OFD packet to send [07:58:38]OFD Sender: No OFD packet to send [07:58:43]OFD Sender: No OFD packet to send [07:58:48]OFD Sender: No OFD packet to send [07:58:53]OFD Sender: No OFD packet to send [07:58:58]OFD Sender: No OFD packet to send [07:59:03]OFD Sender: No OFD packet to send [07:59:08]OFD Sender: No OFD packet to send [07:59:13]OFD Sender: No OFD packet to send [07:59:18]OFD Sender: No OFD packet to send [07:59:23]OFD Sender: No OFD packet to send [07:59:28]OFD Sender: No OFD packet to send [07:59:33]OFD Sender: No OFD packet to send [07:59:38]OFD Sender: No OFD packet to send [07:59:43]OFD Sender: No OFD packet to send [07:59:48]OFD Sender: No OFD packet to send [07:59:53]OFD Sender: No OFD packet to send [07:59:58]OFD Sender: No OFD packet to send [08:00:03]OFD Sender: No OFD packet to send [08:00:08]OFD Sender: No OFD packet to send [08:00:13]OFD Sender: No OFD packet to send [08:00:18]OFD Sender: No OFD packet to send [08:00:23]OFD Sender: No OFD packet to send [08:00:28]OFD Sender: No OFD packet to send [08:00:33]OFD Sender: No OFD packet to send [08:00:38]OFD Sender: No OFD packet to send [08:00:43]OFD Sender: No OFD packet to send [08:00:48]OFD Sender: No OFD packet to send [08:00:53]OFD Sender: No OFD packet to send [08:00:58]OFD Sender: No OFD packet to send [08:01:03]OFD Sender: No OFD packet to send [08:01:08]OFD Sender: No OFD packet to send [08:01:13]OFD Sender: No OFD packet to send [08:01:18]OFD Sender: No OFD packet to send [08:01:23]OFD Sender: No OFD packet to send [08:01:28]OFD Sender: No OFD packet to send [08:01:33]OFD Sender: No OFD packet to send [08:01:38]OFD Sender: No OFD packet to send [08:01:43]OFD Sender: No OFD packet to send [08:01:48]OFD Sender: No OFD packet to send [08:01:53]OFD Sender: No OFD packet to send [08:01:58]OFD Sender: No OFD packet to send [08:02:03]OFD Sender: No OFD packet to send [08:02:08]OFD Sender: No OFD packet to send [08:02:13]OFD Sender: No OFD packet to send [08:02:18]OFD Sender: No OFD packet to send [08:02:23]OFD Sender: No OFD packet to send [08:02:28]OFD Sender: No OFD packet to send [08:02:33]OFD Sender: No OFD packet to send [08:02:38]OFD Sender: No OFD packet to send [08:02:43]OFD Sender: No OFD packet to send [08:02:48]OFD Sender: No OFD packet to send [08:02:53]OFD Sender: No OFD packet to send [08:02:58]OFD Sender: No OFD packet to send [08:03:03]OFD Sender: No OFD packet to send [08:03:08]OFD Sender: No OFD packet to send [08:03:13]OFD Sender: No OFD packet to send [08:03:18]OFD Sender: No OFD packet to send [08:03:23]OFD Sender: No OFD packet to send [08:03:28]OFD Sender: No OFD packet to send [08:03:33]OFD Sender: No OFD packet to send [08:03:37]accept exits with 9 [08:03:37]New connection [08:03:37]New thread 3067518308 created [08:03:37]Thread 3067374948 joined [08:03:37]Waiting for new connection... [08:03:37] Sock 9.Parse request [08:03:37]Sock 9.Check first char [08:03:37]Sock 9.First char is OK [08:03:37]request: POST /json_proto HTTP/1.0 [08:03:37]Method: POST [08:03:37]URL: /json_proto [08:03:37]Method is POST - this is cgi request [08:03:37]url: /json_proto [08:03:37]query_string will be loaded in cgi processing [08:03:37]execute_cgi json_proto POST (null) [08:03:37]execute_cgi path=json_proto method=POST [08:03:37]POST find Content-Length [08:03:37]Host: 172.17.60.69:8080 [08:03:37]Content-Length: 643 [08:03:37]Content-Type: application/json [08:03:37] [08:03:37]POST finish read [08:03:37]Found Content-Length = 643 [08:03:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73352", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 115.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:03:37]execute_script... [08:03: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 : (3)73352", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 115.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:03:37]POST & json_proto [08:03:37]process_json_proto [08:03:37]json parsed OK: [08:03:37]protocol is kg_v1.0 [08:03:37]action value=close_receipt [08:03:37]process_action close_receipt [08:03:37]cmd_close_receipt [08:03:37]MH_GetDate [08:03:37]Write to MH i2c: F0 00 00 94 03 86 [08:03:37]Write i2c OK [08:03:37]MH_I2C_Read... [08:03:37]Read from MH i2c: F0 [08:03:37]MH_I2C_Read... [08:03:37]Read from MH i2c: F0 09 00 [08:03:37]MH_I2C_Read... [08:03:37]Read from MH i2c: F0 09 00 94 03 00 DA 78 5D 66 6A 96 4A 66 54 [08:03:37]GetLastDocTimeStamp 1717401201 [08:03:37]current date 1717401818 [08:03:37]FM_GetShiftState [08:03:37]SAM_PROTO_GetShiftState [08:03:37]wFMCommunicate request_size=4 [08:03:37]MH_SAM_APDU [08:03:37]CAPDU: 80 13 01 00 [08:03:37]Write to MH i2c: E2 08 00 95 03 80 13 01 00 00 00 00 00 15 [08:03:37]Write i2c OK [08:03:37]MH_I2C_Read... [08:03:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:03:37]Read from MH i2c: E2 [08:03:37]MH_I2C_Read... [08:03:37]Read from MH i2c: E2 0E 00 [08:03:37]MH_I2C_Read... [08:03:37]Read from MH i2c: E2 0E 00 95 03 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 E1 [08:03:37]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [08:03:37]wFMCommunicate OK [08:03:37]SAM_PROTO_GetShiftState done [08:03:37]FM_GetShiftState done [08:03:37]opened in 1717373173 [08:03:37]opened+sec_in_day 1717459573 [08:03:37]quantity*price = 11500 [08:03:37]sum+1 = 11501 [08:03:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 115.00 НСП 1% : 1.02 НДС 12% : 12.21 Наличными: 115.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 21 03.06.2024 08:03 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63763 ФПД: 32481984885636 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T080338&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63763&fm=32481984885636&tin=02508201610067®Number=0000000000092737&sum=11500 0 [08:03:38]StoreToDocumentArchive [08:03:38]shift 373 fd 63763 [08:03:38]save to /storage/0373/doc_00063763 [08:03:38]save last doc name /storage/0373/doc_00063763 to /storage/kkm_last_doc_name [08:03:38]save OK [08:03:38]Clear old archive folders... [08:03:38]ProcessDocumentItem done err = 0, tmpTLVsize=280 [08:03:38]tlvbuf is 00CFFA10 [08:03:38]SAM_PROTO_ClearQueue [08:03:38]wFMCommunicate request_size=4 [08:03:38]MH_SAM_APDU [08:03:38]CAPDU: 80 09 00 00 [08:03:38]Write to MH i2c: E2 08 00 A2 03 80 09 00 00 00 00 00 00 17 [08:03:38]Write i2c OK [08:03:38]MH_I2C_Read... [08:03:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:03:38]Read from MH i2c: E2 [08:03:38]MH_I2C_Read... [08:03:38]Read from MH i2c: E2 03 00 [08:03:38]MH_I2C_Read... [08:03:38]Read from MH i2c: E2 03 00 A2 03 00 90 00 19 [08:03:38]RAPDU: 90 00 [08:03:38]wFMCommunicate OK [08:03:38]SAM_PROTO_ClearQueue done [08:03:38]KKMCreateOFDPacket [08:03:38]OFDProtocolAddRootSTLVToBuf [08:03:38]FM_MakeSignedData [08:03:38]FM_MakeSignedData [08:03:38]SAM_PROTO_SignData [08:03:38]wFMCommunicate request_size=4 [08:03:38]MH_SAM_APDU [08:03:38]CAPDU: 80 0D 01 02 [08:03:38]Write to MH i2c: E2 08 00 A3 03 80 0D 01 02 00 00 00 00 1F [08:03:38]Write i2c OK [08:03:38]MH_I2C_Read... [08:03:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:03:38]Read from MH i2c: E2 [08:03:38]MH_I2C_Read... [08:03:38]Read from MH i2c: E2 03 00 [08:03:38]MH_I2C_Read... [08:03:38]Read from MH i2c: E2 03 00 A3 03 00 90 00 1A [08:03:38]RAPDU: 90 00 [08:03:38]wFMCommunicate OK [08:03:38]wFMCommunicate request_size=255 [08:03:38]MH_SAM_APDU [08:03:38]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 DA 78 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 [08:03:38]Write to MH i2c: E2 02 01 A4 03 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 DA 78 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 00 00 02 [08:03:38]Write i2c OK [08:03:38]MH_I2C_Read... [08:03:39]OFD Sender: No OFD packet to send [08:03:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:03:39]Read from MH i2c: E2 [08:03:39]MH_I2C_Read... [08:03:39]Read from MH i2c: E2 03 00 [08:03:39]MH_I2C_Read... [08:03:39]Read from MH i2c: E2 03 00 A4 03 00 90 00 1B [08:03:39]RAPDU: 90 00 [08:03:39]wFMCommunicate OK [08:03:39]wFMCommunicate request_size=39 [08:03:39]MH_SAM_APDU [08:03:39]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 13 F9 00 00 35 04 06 00 1D 8A CD 2B B3 84 [08:03:39]Write to MH i2c: E2 2A 00 A5 03 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 13 F9 00 00 35 04 06 00 1D 8A CD 2B B3 84 00 00 BE [08:03:39]Write i2c OK [08:03:39]MH_I2C_Read... [08:03:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:03:39]Read from MH i2c: E2 [08:03:39]MH_I2C_Read... [08:03:39]Read from MH i2c: E2 03 00 [08:03:39]MH_I2C_Read... [08:03:39]Read from MH i2c: E2 03 00 A5 03 00 90 00 1C [08:03:39]RAPDU: 90 00 [08:03:39]wFMCommunicate OK [08:03:39]wFMCommunicate request_size=4 [08:03:39]MH_SAM_APDU [08:03:39]CAPDU: 80 0D 03 02 [08:03:39]Write to MH i2c: E2 08 00 A6 03 80 0D 03 02 00 00 00 00 24 [08:03:39]Write i2c OK [08:03:39]MH_I2C_Read... [08:03:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:03:39]Read from MH i2c: E2 [08:03:39]MH_I2C_Read... [08:03:39]Read from MH i2c: E2 0B 00 [08:03:39]MH_I2C_Read... [08:03:39]Read from MH i2c: E2 0B 00 A6 03 00 14 22 7D B3 05 1A F4 28 90 00 C6 [08:03:39]RAPDU: 14 22 7D B3 05 1A F4 28 90 00 [08:03:39]wFMCommunicate OK [08:03:39]SAM_PROTO_SignData done [08:03:39]FM_MakeSignedData done [08:03:39]CreateOFDProtocolMessage [08:03:39]wFMCommunicate request_size=4 [08:03:39]MH_SAM_APDU [08:03:39]CAPDU: 80 11 00 00 [08:03:39]Write to MH i2c: E2 08 00 A7 03 80 11 00 00 00 00 00 00 24 [08:03:39]Write i2c OK [08:03:39]MH_I2C_Read... [08:03:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:03:39]Read from MH i2c: E2 [08:03:39]MH_I2C_Read... [08:03:39]Read from MH i2c: E2 17 00 [08:03:39]MH_I2C_Read... [08:03:39]Read from MH i2c: E2 17 00 A7 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 76 [08:03:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [08:03:39]wFMCommunicate OK [08:03:39]CreateOFDProtocolMessage done [08:03:39]OFDSenderStorePacket 63763 [08:03:39]StoreOFDPacket docnum=63763 [08:03:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 2C 01 00 00 49 77 24 01 D3 52 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 DA 78 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 13 F9 00 00 35 04 06 00 1D 8A CD 2B B3 84 14 22 7D B3 05 1A F4 28 [08:03:39]CheckFolder [08:03:39]dirname=/storage/ofd_packets [08:03:39]CheckFolder done [08:03:39]ProducePacketName [08:03:39]name=ofd_packets/00063763 [08:03:39]NVStorageSaveData ofd_packets/00063763 [08:03:39]File name is /storage/ofd_packets/00063763 [08:03:39]Write 330 bytes [08:03:39]NVStorageSaveData done [08:03:39]OFDSenderStorePacket done [08:03:39]KKMCreateOFDPacket done [08:03:39]NVStorageSaveData kkm_last_timestamp [08:03:39]File name is /storage/kkm_last_timestamp [08:03:39]Write 4 bytes [08:03:39]NVStorageSaveData done [08:03:39]ExternCall_PrintAddStr [08:03:39]wPrintStart [08:03:39]Write to MH i2c: 01 00 00 A8 03 AB [08:03:39]Write i2c OK [08:03:39]MH_I2C_Read... [08:03:39]Read from MH i2c: 01 [08:03:39]MH_I2C_Read... [08:03:39]Read from MH i2c: 01 07 00 [08:03:39]MH_I2C_Read... [08:03:39]Read from MH i2c: 01 07 00 A8 03 00 00 00 00 00 FF 0F C0 [08:03:39]RasterBufferAndPrint [08:03:39]line Счет N : (3)73352 [08:03:39]line ИНН: 02508201610067 [08:03:39]line Контрольно-Кассовый Чек [08:03:39]line ПРОДАЖА [08:03:39]line Товар: 2000036210013 [08:03:39]line Кофе Капучино (GABB TRADE) [08:03:39]line 1.000 * 115.00 [08:03:39]line = 115.00 [08:03:39]line НДС 12% НСП 1% [08:03:39]line > о реализуемом товаре [08:03:39]line ИТОГО: 115.00 [08:03:39]line НСП 1% : 1.02 [08:03:39]line НДС 12% : 12.21 [08:03:39]line Наличными: 115.00 [08:03:39]line Безнал.: 0.00 [08:03:39]line Место: АЗС № 117 "Партнер Нефть" [08:03:39]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [08:03:39]line СНО: Общий режим [08:03:39]line Чек 21 03.06.2024 08:03 [08:03:39]line Смена: 373 ФФД: 1.0 [08:03:39]line ЗНМ: 0300000031 [08:03:39]line РНМ: 0000000000092737 [08:03:39]line Версия ККМ: 001 [08:03:39]line ФМ: 0000000000875074 [08:03:39]line ФД: 63763 [08:03:39]line ФПД: 32481984885636 [08:03:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T080338&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63763&fm=32481984885636&tin=02508201610067®Number=0000000000092737&sum=11500 [08:03:39]line 0 [08:03:39]OFD Sender: Processing packet 63763 [packets to send 14, broken 13] [08:03:39]ProducePacketName [08:03:39]name=ofd_packets/00063763 [08:03:39]OFD Sender: To server: pG, [08:03:39]CommunicateWithHost lk.salyk.kg:30040 [08:03:39]ConnectInit lk.salyk.kg [08:03:39]written 0, free lines is 4095 [08:03:39]Connected sock=10 [08:03:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 2C 01 00 00 49 77 24 01 D3 52 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 DA 78 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 13 F9 00 00 35 04 06 00 1D 8A CD 2B B3 84 14 22 7D B3 05 1A F4 28 [08:03:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 D3 5D 47 00 06 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 35 30 37 34 10 04 04 00 13 F9 00 00 F4 03 04 00 AC 24 5D 66 B6 04 01 00 00 8C E8 4D 46 B5 DC 50 93 [08:03:40]CommunicateWithHost err = 0 [08:03:40]CheckOFDResponse [08:03:40]1017 (14) - 77093643461234 [08:03:40]1041 (16) - 0000000000875074 [08:03:40]1040 (4) - 63763 [08:03:40]1012 (4) - 03.06.2024 02:04 [08:03:40]1206 (1) - 0 [08:03:40]OFD Sender: Remove packet 63763 [08:03:40]ProducePacketName [08:03:40]name=ofd_packets/00063763 [08:03:40]NVStorageDeleteData [08:03:40]Write to MH i2c: 01 00 00 D0 03 D3 [08:03:40]Write i2c OK [08:03:40]MH_I2C_Read... [08:03:40]Read from MH i2c: 01 [08:03:40]MH_I2C_Read... [08:03:40]Read from MH i2c: 01 07 00 [08:03:40]MH_I2C_Read... [08:03:40]Read from MH i2c: 01 07 00 D0 03 00 00 00 00 00 0A 0D F1 [08:03:40]RasterBufferAndPrint [08:03:40]line [08:03:40]line [08:03:40]line [08:03:40]line [08:03:40]line [08:03:40]written 0, free lines is 3344 [08:03:40]MH_Cut [08:03:40]Write to MH i2c: D1 01 00 D7 03 01 AC [08:03:40]Write i2c OK [08:03:40]MH_I2C_Read... [08:03:40]Read from MH i2c: D1 [08:03:40]MH_I2C_Read... [08:03:40]Read from MH i2c: D1 01 00 [08:03:40]MH_I2C_Read... [08:03:40]Read from MH i2c: D1 01 00 D7 03 00 AB [08:03:40]Write to MH i2c: 01 00 00 D8 03 DB [08:03:40]Write i2c OK [08:03:40]MH_I2C_Read... [08:03:40]OFD Sender: No OFD packet to send [08:03:40]*** Cut start [08:03:40]*** Partial cut [08:03:40]*** CUTSNS_PIN = 1 [08:03:40]*** CUTSNS_PIN = 0 [08:03:41]*** Brake cut motor [08:03:41]Read from MH i2c: 01 [08:03:41]MH_I2C_Read... [08:03:41]*** Stop cut motor [08:03:41]*** Cut end [08:03:41]Read from MH i2c: 01 07 00 [08:03:41]MH_I2C_Read... [08:03:41]Read from MH i2c: 01 07 00 D8 03 00 00 00 00 00 FF 0F F0 [08:03:41]process_action close_receipt done [08:03:41]requested_data is exist [08:03:41]produce_requested_data [08:03:41]requested_item fm.sn is exist - process it [08:03:41]wFMCommunicate request_size=4 [08:03:41]MH_SAM_APDU [08:03:41]CAPDU: 80 11 00 00 [08:03:41]Write to MH i2c: E2 08 00 D9 03 80 11 00 00 00 00 00 00 56 [08:03:41]Write i2c OK [08:03:41]MH_I2C_Read... [08:03:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:03:41]Read from MH i2c: E2 [08:03:41]MH_I2C_Read... [08:03:41]Read from MH i2c: E2 17 00 [08:03:41]MH_I2C_Read... [08:03:41]Read from MH i2c: E2 17 00 D9 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 A8 [08:03:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [08:03:41]wFMCommunicate OK [08:03:41]requested_item fd.num is exist - process it [08:03:41]SAM_PROTO_GetFieldsCounters [08:03:41]wFMCommunicate request_size=4 [08:03:41]MH_SAM_APDU [08:03:41]CAPDU: 80 13 00 00 [08:03:41]Write to MH i2c: E2 08 00 DA 03 80 13 00 00 00 00 00 00 59 [08:03:41]Write i2c OK [08:03:41]MH_I2C_Read... [08:03:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:03:41]Read from MH i2c: E2 [08:03:41]MH_I2C_Read... [08:03:41]Read from MH i2c: E2 62 00 [08:03:41]MH_I2C_Read... [08:03:41]Read from MH i2c: E2 62 00 DA 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 13 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 3D [08:03: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 13 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:03:41]wFMCommunicate OK [08:03:41]SAM_PROTO_GetFieldsCounters done [08:03:41]requested_item shift.num is exist - process it [08:03:41]requested_item shift.opened is exist - process it [08:03:41]req_shift_opened [08:03:41]FM_GetShiftState [08:03:41]SAM_PROTO_GetShiftState [08:03:41]wFMCommunicate request_size=4 [08:03:41]MH_SAM_APDU [08:03:41]CAPDU: 80 13 01 00 [08:03:41]Write to MH i2c: E2 08 00 DB 03 80 13 01 00 00 00 00 00 5B [08:03:41]Write i2c OK [08:03:41]MH_I2C_Read... [08:03:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:03:41]Read from MH i2c: E2 [08:03:41]MH_I2C_Read... [08:03:41]Read from MH i2c: E2 0E 00 [08:03:41]MH_I2C_Read... [08:03:41]Read from MH i2c: E2 0E 00 DB 03 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 27 [08:03:41]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [08:03:41]wFMCommunicate OK [08:03:41]SAM_PROTO_GetShiftState done [08:03:41]FM_GetShiftState done [08:03:41]req_shift_opened done [08:03:41]requested_item shift.open_date is exist - process it [08:03:41]req_shift_open_date [08:03:41]req_shift_open_date done [08:03:41]produce_requested_data done [08:03:41]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63763,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [08:03:41]process_action_free close_receipt [08:03:41]json_value_free [08:03:41]json_value_free done [08:03:41]process_json_proto returns [08:03:41]Send response to host [08:03:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63763,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [08:03:41]free response buf [08:03:41]execute_script done [08:03:41]execute_script returns [08:03:41]free content buf [08:03:41]Sock 9.Close socket [08:03:41]Sock 9.Thread stoped [08:03:45]OFD Sender: No OFD packet to send [08:03:50]OFD Sender: No OFD packet to send [08:03:55]OFD Sender: No OFD packet to send [08:04:00]OFD Sender: No OFD packet to send [08:04:05]OFD Sender: No OFD packet to send [08:04:10]OFD Sender: No OFD packet to send [08:04:15]OFD Sender: No OFD packet to send [08:04:20]OFD Sender: No OFD packet to send [08:04:25]OFD Sender: No OFD packet to send [08:04:30]OFD Sender: No OFD packet to send [08:04:35]OFD Sender: No OFD packet to send [08:04:40]OFD Sender: No OFD packet to send [08:04:45]OFD Sender: No OFD packet to send [08:04:50]OFD Sender: No OFD packet to send [08:04:55]OFD Sender: No OFD packet to send [08:05:00]OFD Sender: No OFD packet to send [08:05:05]OFD Sender: No OFD packet to send [08:05:10]OFD Sender: No OFD packet to send [08:05:12]accept exits with 7 [08:05:12]New connection [08:05:12]New thread 3067374948 created [08:05:12]Thread 3067518308 joined [08:05:12]Waiting for new connection... [08:05:12] Sock 7.Parse request [08:05:12]Sock 7.Check first char [08:05:12]Sock 7.First char is OK [08:05:12]request: POST /json_proto HTTP/1.0 [08:05:12]Method: POST [08:05:12]URL: /json_proto [08:05:12]Method is POST - this is cgi request [08:05:12]url: /json_proto [08:05:12]query_string will be loaded in cgi processing [08:05:12]execute_cgi json_proto POST (null) [08:05:12]execute_cgi path=json_proto method=POST [08:05:12]POST find Content-Length [08:05:12]Host: 172.17.60.69:8080 [08:05:12]Content-Length: 626 [08:05:12]Content-Type: application/json [08:05:12] [08:05:12]POST finish read [08:05:12]Found Content-Length = 626 [08:05:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73353", "tax_sys" : 0, "items" : [ { "code": "2000039440011", "name": "\u0427\u0430\u0439 \u0447\u0435\u0440\u043D\u044B\u0439 200 \u043C\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 40.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:05:12]execute_script... [08:05:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73353", "tax_sys" : 0, "items" : [ { "code": "2000039440011", "name": "\u0427\u0430\u0439 \u0447\u0435\u0440\u043D\u044B\u0439 200 \u043C\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 40.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:05:12]POST & json_proto [08:05:12]process_json_proto [08:05:12]json parsed OK: [08:05:12]protocol is kg_v1.0 [08:05:12]action value=close_receipt [08:05:12]process_action close_receipt [08:05:12]cmd_close_receipt [08:05:12]MH_GetDate [08:05:12]Write to MH i2c: F0 00 00 DC 03 CE [08:05:12]Write i2c OK [08:05:12]MH_I2C_Read... [08:05:12]Read from MH i2c: F0 [08:05:12]MH_I2C_Read... [08:05:12]Read from MH i2c: F0 09 00 [08:05:12]MH_I2C_Read... [08:05:12]Read from MH i2c: F0 09 00 DC 03 00 39 79 5D 66 6A 96 4A 66 FC [08:05:12]GetLastDocTimeStamp 1717401818 [08:05:12]current date 1717401913 [08:05:12]FM_GetShiftState [08:05:12]SAM_PROTO_GetShiftState [08:05:12]wFMCommunicate request_size=4 [08:05:12]MH_SAM_APDU [08:05:12]CAPDU: 80 13 01 00 [08:05:12]Write to MH i2c: E2 08 00 DD 03 80 13 01 00 00 00 00 00 5D [08:05:12]Write i2c OK [08:05:12]MH_I2C_Read... [08:05:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:05:12]Read from MH i2c: E2 [08:05:12]MH_I2C_Read... [08:05:12]Read from MH i2c: E2 0E 00 [08:05:12]MH_I2C_Read... [08:05:12]Read from MH i2c: E2 0E 00 DD 03 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 29 [08:05:12]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [08:05:12]wFMCommunicate OK [08:05:12]SAM_PROTO_GetShiftState done [08:05:12]FM_GetShiftState done [08:05:12]opened in 1717373173 [08:05:12]opened+sec_in_day 1717459573 [08:05:12]quantity*price = 4000 [08:05:12]sum+1 = 4001 [08:05:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 40.00 НСП 1% : 0.35 НДС 12% : 4.25 Наличными: 40.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 22 03.06.2024 08:05 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63764 ФПД: 101236577545679 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T080513&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63764&fm=101236577545679&tin=02508201610067®Number=0000000000092737&sum=4000 0 [08:05:13]StoreToDocumentArchive [08:05:13]shift 373 fd 63764 [08:05:13]save to /storage/0373/doc_00063764 [08:05:13]save last doc name /storage/0373/doc_00063764 to /storage/kkm_last_doc_name [08:05:13]save OK [08:05:13]Clear old archive folders... [08:05:13]ProcessDocumentItem done err = 0, tmpTLVsize=270 [08:05:13]tlvbuf is B6E32300 [08:05:13]SAM_PROTO_ClearQueue [08:05:13]wFMCommunicate request_size=4 [08:05:13]MH_SAM_APDU [08:05:13]CAPDU: 80 09 00 00 [08:05:13]Write to MH i2c: E2 08 00 EA 03 80 09 00 00 00 00 00 00 5F [08:05:13]Write i2c OK [08:05:13]MH_I2C_Read... [08:05:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:05:13]Read from MH i2c: E2 [08:05:13]MH_I2C_Read... [08:05:13]Read from MH i2c: E2 03 00 [08:05:13]MH_I2C_Read... [08:05:13]Read from MH i2c: E2 03 00 EA 03 00 90 00 61 [08:05:13]RAPDU: 90 00 [08:05:13]wFMCommunicate OK [08:05:13]SAM_PROTO_ClearQueue done [08:05:13]KKMCreateOFDPacket [08:05:13]OFDProtocolAddRootSTLVToBuf [08:05:13]FM_MakeSignedData [08:05:13]FM_MakeSignedData [08:05:13]SAM_PROTO_SignData [08:05:13]wFMCommunicate request_size=4 [08:05:13]MH_SAM_APDU [08:05:13]CAPDU: 80 0D 01 02 [08:05:13]Write to MH i2c: E2 08 00 EB 03 80 0D 01 02 00 00 00 00 67 [08:05:13]Write i2c OK [08:05:13]MH_I2C_Read... [08:05:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:05:13]Read from MH i2c: E2 [08:05:13]MH_I2C_Read... [08:05:13]Read from MH i2c: E2 03 00 [08:05:13]MH_I2C_Read... [08:05:13]Read from MH i2c: E2 03 00 EB 03 00 90 00 62 [08:05:13]RAPDU: 90 00 [08:05:13]wFMCommunicate OK [08:05:13]wFMCommunicate request_size=255 [08:05:13]MH_SAM_APDU [08:05:13]CAPDU: 80 0D 02 02 FA 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 32 30 30 30 30 33 39 34 34 30 30 31 31 06 04 1C 00 D0 A7 D0 B0 D0 B9 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 32 30 30 20 D0 BC D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 39 79 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 [08:05:13]Write to MH i2c: E2 02 01 EC 03 80 0D 02 02 FA 00 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 32 30 30 30 30 33 39 34 34 30 30 31 31 06 04 1C 00 D0 A7 D0 B0 D0 B9 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 32 30 30 20 D0 BC D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 39 79 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 00 00 CF [08:05:13]Write i2c OK [08:05:13]MH_I2C_Read... [08:05:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:05:13]Read from MH i2c: E2 [08:05:13]MH_I2C_Read... [08:05:13]Read from MH i2c: E2 03 00 [08:05:13]MH_I2C_Read... [08:05:13]Read from MH i2c: E2 03 00 EC 03 00 90 00 63 [08:05:13]RAPDU: 90 00 [08:05:13]wFMCommunicate OK [08:05:13]wFMCommunicate request_size=29 [08:05:13]MH_SAM_APDU [08:05:13]CAPDU: 80 0D 02 02 18 38 37 35 30 37 34 10 04 04 00 14 F9 00 00 35 04 06 00 5C 12 FA 3E 2D CF [08:05:13]Write to MH i2c: E2 20 00 ED 03 80 0D 02 02 18 00 38 37 35 30 37 34 10 04 04 00 14 F9 00 00 35 04 06 00 5C 12 FA 3E 2D CF 00 00 DF [08:05:13]Write i2c OK [08:05:13]MH_I2C_Read... [08:05:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:05:14]Read from MH i2c: E2 [08:05:14]MH_I2C_Read... [08:05:14]Read from MH i2c: E2 03 00 [08:05:14]MH_I2C_Read... [08:05:14]Read from MH i2c: E2 03 00 ED 03 00 90 00 64 [08:05:14]RAPDU: 90 00 [08:05:14]wFMCommunicate OK [08:05:14]wFMCommunicate request_size=4 [08:05:14]MH_SAM_APDU [08:05:14]CAPDU: 80 0D 03 02 [08:05:14]Write to MH i2c: E2 08 00 EE 03 80 0D 03 02 00 00 00 00 6C [08:05:14]Write i2c OK [08:05:14]MH_I2C_Read... [08:05:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:05:14]Read from MH i2c: E2 [08:05:14]MH_I2C_Read... [08:05:14]Read from MH i2c: E2 0B 00 [08:05:14]MH_I2C_Read... [08:05:14]Read from MH i2c: E2 0B 00 EE 03 00 BA B7 98 0B 8B 54 E0 11 90 00 51 [08:05:14]RAPDU: BA B7 98 0B 8B 54 E0 11 90 00 [08:05:14]wFMCommunicate OK [08:05:14]SAM_PROTO_SignData done [08:05:14]FM_MakeSignedData done [08:05:14]CreateOFDProtocolMessage [08:05:14]wFMCommunicate request_size=4 [08:05:14]MH_SAM_APDU [08:05:14]CAPDU: 80 11 00 00 [08:05:14]Write to MH i2c: E2 08 00 EF 03 80 11 00 00 00 00 00 00 6C [08:05:14]Write i2c OK [08:05:14]MH_I2C_Read... [08:05:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:05:14]Read from MH i2c: E2 [08:05:14]MH_I2C_Read... [08:05:14]Read from MH i2c: E2 17 00 [08:05:14]MH_I2C_Read... [08:05:14]Read from MH i2c: E2 17 00 EF 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 BE [08:05:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [08:05:14]wFMCommunicate OK [08:05:14]CreateOFDProtocolMessage done [08:05:14]OFDSenderStorePacket 63764 [08:05:14]StoreOFDPacket docnum=63764 [08:05:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 22 01 00 00 DC EF 1A 01 CE 2A 5A 03 01 00 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 32 30 30 30 30 33 39 34 34 30 30 31 31 06 04 1C 00 D0 A7 D0 B0 D0 B9 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 32 30 30 20 D0 BC D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 39 79 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 14 F9 00 00 35 04 06 00 5C 12 FA 3E 2D CF BA B7 98 0B 8B 54 E0 11 [08:05:14]CheckFolder [08:05:14]dirname=/storage/ofd_packets [08:05:14]CheckFolder done [08:05:14]ProducePacketName [08:05:14]name=ofd_packets/00063764 [08:05:14]NVStorageSaveData ofd_packets/00063764 [08:05:14]File name is /storage/ofd_packets/00063764 [08:05:14]Write 320 bytes [08:05:14]NVStorageSaveData done [08:05:14]OFDSenderStorePacket done [08:05:14]KKMCreateOFDPacket done [08:05:14]NVStorageSaveData kkm_last_timestamp [08:05:14]File name is /storage/kkm_last_timestamp [08:05:14]Write 4 bytes [08:05:14]NVStorageSaveData done [08:05:14]ExternCall_PrintAddStr [08:05:14]wPrintStart [08:05:14]Write to MH i2c: 01 00 00 F0 03 F3 [08:05:14]Write i2c OK [08:05:14]MH_I2C_Read... [08:05:14]Read from MH i2c: 01 [08:05:14]MH_I2C_Read... [08:05:14]Read from MH i2c: 01 07 00 [08:05:14]MH_I2C_Read... [08:05:14]Read from MH i2c: 01 07 00 F0 03 00 00 00 00 00 FF 0F 08 [08:05:14]RasterBufferAndPrint [08:05:14]line Счет N : (3)73353 [08:05:14]line ИНН: 02508201610067 [08:05:14]line Контрольно-Кассовый Чек [08:05:14]line ПРОДАЖА [08:05:14]line Товар: 2000039440011 [08:05:14]line Чай черный 200 мл [08:05:14]line 1.000 * 40.00 [08:05:14]line = 40.00 [08:05:14]line НДС 12% НСП 1% [08:05:14]line > о реализуемом товаре [08:05:14]line ИТОГО: 40.00 [08:05:14]line НСП 1% : 0.35 [08:05:14]line НДС 12% : 4.25 [08:05:14]line Наличными: 40.00 [08:05:14]line Безнал.: 0.00 [08:05:14]line Место: АЗС № 117 "Партнер Нефть" [08:05:14]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [08:05:14]line СНО: Общий режим [08:05:14]line Чек 22 03.06.2024 08:05 [08:05:14]line Смена: 373 ФФД: 1.0 [08:05:14]line ЗНМ: 0300000031 [08:05:14]line РНМ: 0000000000092737 [08:05:14]line Версия ККМ: 001 [08:05:14]line ФМ: 0000000000875074 [08:05:14]line ФД: 63764 [08:05:14]line ФПД: 101236577545679 [08:05:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T080513&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63764&fm=101236577545679&tin=02508201610067®Number=0000000000092737&sum=4000 [08:05:14]line 0 [08:05:14]written 0, free lines is 4095 [08:05:14]OFD Sender: Processing packet 63764 [packets to send 14, broken 13] [08:05:14]ProducePacketName [08:05:14]name=ofd_packets/00063764 [08:05:14]OFD Sender: To server: pG, [08:05:14]CommunicateWithHost lk.salyk.kg:30040 [08:05:14]ConnectInit lk.salyk.kg [08:05:14]Connected sock=10 [08:05:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 22 01 00 00 DC EF 1A 01 CE 2A 5A 03 01 00 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 32 30 30 30 30 33 39 34 34 30 30 31 31 06 04 1C 00 D0 A7 D0 B0 D0 B9 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 32 30 30 20 D0 BC D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 39 79 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 14 F9 00 00 35 04 06 00 5C 12 FA 3E 2D CF BA B7 98 0B 8B 54 E0 11 [08:05:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 C6 F0 47 00 1E 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 35 30 37 34 10 04 04 00 14 F9 00 00 F4 03 04 00 0B 25 5D 66 B6 04 01 00 00 18 72 02 2B 9B 19 93 1B [08:05:14]CommunicateWithHost err = 0 [08:05:14]CheckOFDResponse [08:05:14]1017 (14) - 77093643461234 [08:05:14]1041 (16) - 0000000000875074 [08:05:14]1040 (4) - 63764 [08:05:14]1012 (4) - 03.06.2024 02:06 [08:05:14]1206 (1) - 0 [08:05:14]OFD Sender: Remove packet 63764 [08:05:14]ProducePacketName [08:05:14]name=ofd_packets/00063764 [08:05:14]NVStorageDeleteData [08:05:14]Write to MH i2c: 01 00 00 18 04 1C [08:05:14]Write i2c OK [08:05:14]MH_I2C_Read... [08:05:14]Read from MH i2c: 01 [08:05:14]MH_I2C_Read... [08:05:14]Read from MH i2c: 01 07 00 [08:05:14]MH_I2C_Read... [08:05:14]Read from MH i2c: 01 07 00 18 04 00 00 00 00 00 04 0D 34 [08:05:14]RasterBufferAndPrint [08:05:14]line [08:05:14]line [08:05:14]line [08:05:14]line [08:05:14]line [08:05:14]written 0, free lines is 3337 [08:05:14]MH_Cut [08:05:14]Write to MH i2c: D1 01 00 1F 04 01 F5 [08:05:14]Write i2c OK [08:05:14]MH_I2C_Read... [08:05:14]Read from MH i2c: D1 [08:05:14]MH_I2C_Read... [08:05:14]Read from MH i2c: D1 01 00 [08:05:14]MH_I2C_Read... [08:05:14]Read from MH i2c: D1 01 00 1F 04 00 F4 [08:05:14]Write to MH i2c: 01 00 00 20 04 24 [08:05:14]Write i2c OK [08:05:14]MH_I2C_Read... [08:05:14]OFD Sender: No OFD packet to send [08:05:15]*** Cut start [08:05:15]*** Partial cut [08:05:15]*** CUTSNS_PIN = 1 [08:05:15]*** CUTSNS_PIN = 0 [08:05:15]*** Brake cut motor [08:05:15]Read from MH i2c: 01 [08:05:15]MH_I2C_Read... [08:05:15]*** Stop cut motor [08:05:15]*** Cut end [08:05:15]Read from MH i2c: 01 07 00 [08:05:15]MH_I2C_Read... [08:05:15]Read from MH i2c: 01 07 00 20 04 00 00 00 00 00 FF 0F 39 [08:05:15]process_action close_receipt done [08:05:15]requested_data is exist [08:05:15]produce_requested_data [08:05:15]requested_item fm.sn is exist - process it [08:05:15]wFMCommunicate request_size=4 [08:05:15]MH_SAM_APDU [08:05:15]CAPDU: 80 11 00 00 [08:05:15]Write to MH i2c: E2 08 00 21 04 80 11 00 00 00 00 00 00 9F [08:05:15]Write i2c OK [08:05:15]MH_I2C_Read... [08:05:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:05:16]Read from MH i2c: E2 [08:05:16]MH_I2C_Read... [08:05:16]Read from MH i2c: E2 17 00 [08:05:16]MH_I2C_Read... [08:05:16]Read from MH i2c: E2 17 00 21 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 F1 [08:05:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [08:05:16]wFMCommunicate OK [08:05:16]requested_item fd.num is exist - process it [08:05:16]SAM_PROTO_GetFieldsCounters [08:05:16]wFMCommunicate request_size=4 [08:05:16]MH_SAM_APDU [08:05:16]CAPDU: 80 13 00 00 [08:05:16]Write to MH i2c: E2 08 00 22 04 80 13 00 00 00 00 00 00 A2 [08:05:16]Write i2c OK [08:05:16]MH_I2C_Read... [08:05:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:05:16]Read from MH i2c: E2 [08:05:16]MH_I2C_Read... [08:05:16]Read from MH i2c: E2 62 00 [08:05:16]MH_I2C_Read... [08:05:16]Read from MH i2c: E2 62 00 22 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 14 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 8A [08:05: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 14 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:05:16]wFMCommunicate OK [08:05:16]SAM_PROTO_GetFieldsCounters done [08:05:16]requested_item shift.num is exist - process it [08:05:16]requested_item shift.opened is exist - process it [08:05:16]req_shift_opened [08:05:16]FM_GetShiftState [08:05:16]SAM_PROTO_GetShiftState [08:05:16]wFMCommunicate request_size=4 [08:05:16]MH_SAM_APDU [08:05:16]CAPDU: 80 13 01 00 [08:05:16]Write to MH i2c: E2 08 00 23 04 80 13 01 00 00 00 00 00 A4 [08:05:16]Write i2c OK [08:05:16]MH_I2C_Read... [08:05:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:05:16]Read from MH i2c: E2 [08:05:16]MH_I2C_Read... [08:05:16]Read from MH i2c: E2 0E 00 [08:05:16]MH_I2C_Read... [08:05:16]Read from MH i2c: E2 0E 00 23 04 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 70 [08:05:16]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [08:05:16]wFMCommunicate OK [08:05:16]SAM_PROTO_GetShiftState done [08:05:16]FM_GetShiftState done [08:05:16]req_shift_opened done [08:05:16]requested_item shift.open_date is exist - process it [08:05:16]req_shift_open_date [08:05:16]req_shift_open_date done [08:05:16]produce_requested_data done [08:05:16]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63764,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [08:05:16]process_action_free close_receipt [08:05:16]json_value_free [08:05:16]json_value_free done [08:05:16]process_json_proto returns [08:05:16]Send response to host [08:05:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63764,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [08:05:16]free response buf [08:05:16]execute_script done [08:05:16]execute_script returns [08:05:16]free content buf [08:05:16]Sock 7.Close socket [08:05:16]Sock 7.Thread stoped [08:05:19]OFD Sender: No OFD packet to send [08:05:24]OFD Sender: No OFD packet to send [08:05:29]OFD Sender: No OFD packet to send [08:05:35]OFD Sender: No OFD packet to send [08:05:40]OFD Sender: No OFD packet to send [08:05:45]OFD Sender: No OFD packet to send [08:05:50]OFD Sender: No OFD packet to send [08:05:55]OFD Sender: No OFD packet to send [08:06:00]OFD Sender: No OFD packet to send [08:06:05]OFD Sender: No OFD packet to send [08:06:10]OFD Sender: No OFD packet to send [08:06:15]OFD Sender: No OFD packet to send [08:06:20]OFD Sender: No OFD packet to send [08:06:25]OFD Sender: No OFD packet to send [08:06:30]OFD Sender: No OFD packet to send [08:06:35]OFD Sender: No OFD packet to send [08:06:40]OFD Sender: No OFD packet to send [08:06:45]OFD Sender: No OFD packet to send [08:06:47]accept exits with 9 [08:06:47]New connection [08:06:47]New thread 3067518308 created [08:06:47]Thread 3067374948 joined [08:06:47]Waiting for new connection... [08:06:47] Sock 9.Parse request [08:06:47]Sock 9.Check first char [08:06:47]Sock 9.First char is OK [08:06:47]request: POST /json_proto HTTP/1.0 [08:06:47]Method: POST [08:06:47]URL: /json_proto [08:06:47]Method is POST - this is cgi request [08:06:47]url: /json_proto [08:06:47]query_string will be loaded in cgi processing [08:06:47]execute_cgi json_proto POST (null) [08:06:47]execute_cgi path=json_proto method=POST [08:06:47]POST find Content-Length [08:06:47]Host: 172.17.60.69:8080 [08:06:47]Content-Length: 942 [08:06:47]Content-Type: application/json [08:06:47] [08:06:47]POST finish read [08:06:47]Found Content-Length = 942 [08:06:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73354", "tax_sys" : 0, "items" : [ { "code": "4602441011292", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041B\u0438\u043C\u043E\u043D\u0430\u0434 0,5\u043B \u0441\u0442 (Gabb trade)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4860019001346", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u0440\u0436\u043E\u043C\u0438 0,5\u043B \u0441\u0442", "price" : 160.00, "quantity" : 1.000, "sum" : 160.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 285.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:06:47]execute_script... [08:06:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73354", "tax_sys" : 0, "items" : [ { "code": "4602441011292", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041B\u0438\u043C\u043E\u043D\u0430\u0434 0,5\u043B \u0441\u0442 (Gabb trade)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4860019001346", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u0440\u0436\u043E\u043C\u0438 0,5\u043B \u0441\u0442", "price" : 160.00, "quantity" : 1.000, "sum" : 160.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 285.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:06:47]POST & json_proto [08:06:47]process_json_proto [08:06:47]json parsed OK: [08:06:47]protocol is kg_v1.0 [08:06:47]action value=close_receipt [08:06:47]process_action close_receipt [08:06:47]cmd_close_receipt [08:06:47]MH_GetDate [08:06:47]Write to MH i2c: F0 00 00 24 04 17 [08:06:47]Write i2c OK [08:06:47]MH_I2C_Read... [08:06:47]Read from MH i2c: F0 [08:06:47]MH_I2C_Read... [08:06:47]Read from MH i2c: F0 09 00 [08:06:47]MH_I2C_Read... [08:06:47]Read from MH i2c: F0 09 00 24 04 00 98 79 5D 66 6A 96 4A 66 A4 [08:06:47]GetLastDocTimeStamp 1717401913 [08:06:47]current date 1717402008 [08:06:47]FM_GetShiftState [08:06:47]SAM_PROTO_GetShiftState [08:06:47]wFMCommunicate request_size=4 [08:06:47]MH_SAM_APDU [08:06:47]CAPDU: 80 13 01 00 [08:06:47]Write to MH i2c: E2 08 00 25 04 80 13 01 00 00 00 00 00 A6 [08:06:47]Write i2c OK [08:06:47]MH_I2C_Read... [08:06:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:06:47]Read from MH i2c: E2 [08:06:47]MH_I2C_Read... [08:06:47]Read from MH i2c: E2 0E 00 [08:06:47]MH_I2C_Read... [08:06:47]Read from MH i2c: E2 0E 00 25 04 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 72 [08:06:47]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [08:06:47]wFMCommunicate OK [08:06:47]SAM_PROTO_GetShiftState done [08:06:47]FM_GetShiftState done [08:06:47]opened in 1717373173 [08:06:47]opened+sec_in_day 1717459573 [08:06:47]quantity*price = 12500 [08:06:47]sum+1 = 12501 [08:06:47]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4860019001346 Вода Боржоми 0,5л ст 1.000 * 160.00 = 160.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 285.00 НСП 1% : 2.53 НДС 12% : 30.26 Наличными: 285.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 23 03.06.2024 08:06 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63765 ФПД: 240181458260469 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T080648&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63765&fm=240181458260469&tin=02508201610067®Number=0000000000092737&sum=28500 0 [08:06:48]StoreToDocumentArchive [08:06:48]shift 373 fd 63765 [08:06:48]save to /storage/0373/doc_00063765 [08:06:48]save last doc name /storage/0373/doc_00063765 to /storage/kkm_last_doc_name [08:06:48]save OK [08:06:48]Clear old archive folders... [08:06:48]ProcessDocumentItem done err = 0, tmpTLVsize=401 [08:06:48]tlvbuf is 00D1FE80 [08:06:48]SAM_PROTO_ClearQueue [08:06:48]wFMCommunicate request_size=4 [08:06:48]MH_SAM_APDU [08:06:48]CAPDU: 80 09 00 00 [08:06:48]Write to MH i2c: E2 08 00 32 04 80 09 00 00 00 00 00 00 A8 [08:06:48]Write i2c OK [08:06:48]MH_I2C_Read... [08:06:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:06:48]Read from MH i2c: E2 [08:06:48]MH_I2C_Read... [08:06:48]Read from MH i2c: E2 03 00 [08:06:48]MH_I2C_Read... [08:06:48]Read from MH i2c: E2 03 00 32 04 00 90 00 AA [08:06:48]RAPDU: 90 00 [08:06:48]wFMCommunicate OK [08:06:48]SAM_PROTO_ClearQueue done [08:06:48]KKMCreateOFDPacket [08:06:48]OFDProtocolAddRootSTLVToBuf [08:06:48]FM_MakeSignedData [08:06:48]FM_MakeSignedData [08:06:48]SAM_PROTO_SignData [08:06:48]wFMCommunicate request_size=4 [08:06:48]MH_SAM_APDU [08:06:48]CAPDU: 80 0D 01 02 [08:06:48]Write to MH i2c: E2 08 00 33 04 80 0D 01 02 00 00 00 00 B0 [08:06:48]Write i2c OK [08:06:48]MH_I2C_Read... [08:06:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:06:48]Read from MH i2c: E2 [08:06:48]MH_I2C_Read... [08:06:48]Read from MH i2c: E2 03 00 [08:06:48]MH_I2C_Read... [08:06:48]Read from MH i2c: E2 03 00 33 04 00 90 00 AB [08:06:48]RAPDU: 90 00 [08:06:48]wFMCommunicate OK [08:06:48]wFMCommunicate request_size=255 [08:06:48]MH_SAM_APDU [08:06:48]CAPDU: 80 0D 02 02 FA 03 00 91 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 36 30 32 34 34 31 30 31 31 32 39 32 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 30 2C 35 D0 BB 20 D1 81 D1 82 20 28 47 61 62 62 20 74 72 61 64 65 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 34 36 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 3E 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 6F 00 00 00 00 [08:06:48]Write to MH i2c: E2 02 01 34 04 80 0D 02 02 FA 00 03 00 91 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 36 30 32 34 34 31 30 31 31 32 39 32 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 30 2C 35 D0 BB 20 D1 81 D1 82 20 28 47 61 62 62 20 74 72 61 64 65 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 34 36 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 3E 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 6F 00 00 00 00 00 00 74 [08:06:48]Write i2c OK [08:06:48]MH_I2C_Read... [08:06:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:06:48]Read from MH i2c: E2 [08:06:48]MH_I2C_Read... [08:06:48]Read from MH i2c: E2 03 00 [08:06:48]MH_I2C_Read... [08:06:48]Read from MH i2c: E2 03 00 34 04 00 90 00 AC [08:06:48]RAPDU: 90 00 [08:06:48]wFMCommunicate OK [08:06:48]wFMCommunicate request_size=160 [08:06:48]MH_SAM_APDU [08:06:48]CAPDU: 80 0D 02 02 9B EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 0B 00 00 00 00 07 04 06 00 54 6F 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 98 79 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 15 F9 00 00 35 04 06 00 DA 71 9A 80 51 F5 [08:06:48]Write to MH i2c: E2 A3 00 35 04 80 0D 02 02 9B 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 0B 00 00 00 00 07 04 06 00 54 6F 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 98 79 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 15 F9 00 00 35 04 06 00 DA 71 9A 80 51 F5 00 00 DF [08:06:48]Write i2c OK [08:06:48]MH_I2C_Read... [08:06:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:06:48]Read from MH i2c: E2 [08:06:48]MH_I2C_Read... [08:06:48]Read from MH i2c: E2 03 00 [08:06:48]MH_I2C_Read... [08:06:48]Read from MH i2c: E2 03 00 35 04 00 90 00 AD [08:06:48]RAPDU: 90 00 [08:06:48]wFMCommunicate OK [08:06:48]wFMCommunicate request_size=4 [08:06:48]MH_SAM_APDU [08:06:48]CAPDU: 80 0D 03 02 [08:06:48]Write to MH i2c: E2 08 00 36 04 80 0D 03 02 00 00 00 00 B5 [08:06:48]Write i2c OK [08:06:48]MH_I2C_Read... [08:06:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:06:48]Read from MH i2c: E2 [08:06:48]MH_I2C_Read... [08:06:48]Read from MH i2c: E2 0B 00 [08:06:48]MH_I2C_Read... [08:06:48]Read from MH i2c: E2 0B 00 36 04 00 6E 0B BD 24 78 97 BD AD 90 00 89 [08:06:48]RAPDU: 6E 0B BD 24 78 97 BD AD 90 00 [08:06:48]wFMCommunicate OK [08:06:48]SAM_PROTO_SignData done [08:06:48]FM_MakeSignedData done [08:06:48]CreateOFDProtocolMessage [08:06:48]wFMCommunicate request_size=4 [08:06:48]MH_SAM_APDU [08:06:48]CAPDU: 80 11 00 00 [08:06:48]Write to MH i2c: E2 08 00 37 04 80 11 00 00 00 00 00 00 B5 [08:06:48]Write i2c OK [08:06:48]MH_I2C_Read... [08:06:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:06:48]Read from MH i2c: E2 [08:06:48]MH_I2C_Read... [08:06:48]Read from MH i2c: E2 17 00 [08:06:48]MH_I2C_Read... [08:06:48]Read from MH i2c: E2 17 00 37 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 07 [08:06:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [08:06:48]wFMCommunicate OK [08:06:48]CreateOFDProtocolMessage done [08:06:48]OFDSenderStorePacket 63765 [08:06:48]StoreOFDPacket docnum=63765 [08:06:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 A5 01 00 00 D2 A5 9D 01 0D 38 5A 03 01 00 03 00 91 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 36 30 32 34 34 31 30 31 31 32 39 32 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 30 2C 35 D0 BB 20 D1 81 D1 82 20 28 47 61 62 62 20 74 72 61 64 65 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 34 36 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 3E 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 6F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 0B 00 00 00 00 07 04 06 00 54 6F 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 98 79 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 15 F9 00 00 35 04 06 00 DA 71 9A 80 51 F5 6E 0B BD 24 78 97 BD AD [08:06:48]CheckFolder [08:06:48]dirname=/storage/ofd_packets [08:06:48]CheckFolder done [08:06:48]ProducePacketName [08:06:48]name=ofd_packets/00063765 [08:06:48]NVStorageSaveData ofd_packets/00063765 [08:06:48]File name is /storage/ofd_packets/00063765 [08:06:48]Write 451 bytes [08:06:48]NVStorageSaveData done [08:06:48]OFDSenderStorePacket done [08:06:48]KKMCreateOFDPacket done [08:06:48]NVStorageSaveData kkm_last_timestamp [08:06:49]File name is /storage/kkm_last_timestamp [08:06:49]Write 4 bytes [08:06:49]NVStorageSaveData done [08:06:49]ExternCall_PrintAddStr [08:06:49]wPrintStart [08:06:49]Write to MH i2c: 01 00 00 38 04 3C [08:06:49]OFD Sender: Processing packet 63765 [packets to send 14, broken 13] [08:06:49]ProducePacketName [08:06:49]name=ofd_packets/00063765 [08:06:49]OFD Sender: To server: pG, [08:06:49]CommunicateWithHost lk.salyk.kg:30040 [08:06:49]ConnectInit lk.salyk.kg [08:06:49]Write i2c OK [08:06:49]MH_I2C_Read... [08:06:49]Read from MH i2c: 01 [08:06:49]MH_I2C_Read... [08:06:49]Read from MH i2c: 01 07 00 [08:06:49]MH_I2C_Read... [08:06:49]Read from MH i2c: 01 07 00 38 04 00 00 00 00 00 FF 0F 51 [08:06:49]RasterBufferAndPrint [08:06:49]line Счет N : (3)73354 [08:06:49]line ИНН: 02508201610067 [08:06:49]line Контрольно-Кассовый Чек [08:06:49]line ПРОДАЖА [08:06:49]line Товар: 4602441011292 [08:06:49]line Напиток Лимонад 0,5л ст (Gabb trade) [08:06:49]line 1.000 * 125.00 [08:06:49]line = 125.00 [08:06:49]line НДС 12% НСП 1% [08:06:49]line > о реализуемом товаре [08:06:49]line Товар: 4860019001346 [08:06:49]line Вода Боржоми 0,5л ст [08:06:49]line 1.000 * 160.00 [08:06:49]line = 160.00 [08:06:49]line НДС 12% НСП 1% [08:06:49]line > о реализуемом товаре [08:06:49]line ИТОГО: 285.00 [08:06:49]line НСП 1% : 2.53 [08:06:49]line НДС 12% : 30.26 [08:06:49]line Наличными: 285.00 [08:06:49]line Безнал.: 0.00 [08:06:49]line Место: АЗС № 117 "Партнер Нефть" [08:06:49]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [08:06:49]line СНО: Общий режим [08:06:49]line Чек 23 03.06.2024 08:06 [08:06:49]line Смена: 373 ФФД: 1.0 [08:06:49]line ЗНМ: 0300000031 [08:06:49]line РНМ: 0000000000092737 [08:06:49]line Версия ККМ: 001 [08:06:49]line ФМ: 0000000000875074 [08:06:49]line ФД: 63765 [08:06:49]line ФПД: 240181458260469 [08:06:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T080648&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63765&fm=240181458260469&tin=02508201610067®Number=0000000000092737&sum=28500 [08:06:49]line 0 [08:06:49]written 0, free lines is 4095 [08:06:49]Connected sock=10 [08:06:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 A5 01 00 00 D2 A5 9D 01 0D 38 5A 03 01 00 03 00 91 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 36 30 32 34 34 31 30 31 31 32 39 32 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 30 2C 35 D0 BB 20 D1 81 D1 82 20 28 47 61 62 62 20 74 72 61 64 65 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 34 36 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 3E 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 6F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 0B 00 00 00 00 07 04 06 00 54 6F 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 98 79 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 15 F9 00 00 35 04 06 00 DA 71 9A 80 51 F5 6E 0B BD 24 78 97 BD AD [08:06:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 FE 3D 47 00 85 40 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 15 F9 00 00 F4 03 04 00 6A 25 5D 66 B6 04 01 00 00 A7 A6 03 90 55 56 F5 09 [08:06:49]CommunicateWithHost err = 0 [08:06:49]CheckOFDResponse [08:06:49]1017 (14) - 77093643461234 [08:06:49]1041 (16) - 0000000000875074 [08:06:49]1040 (4) - 63765 [08:06:49]1012 (4) - 03.06.2024 02:07 [08:06:49]1206 (1) - 0 [08:06:49]OFD Sender: Remove packet 63765 [08:06:49]ProducePacketName [08:06:49]name=ofd_packets/00063765 [08:06:49]NVStorageDeleteData [08:06:49]Write to MH i2c: 01 00 00 67 04 6B [08:06:49]Write i2c OK [08:06:49]MH_I2C_Read... [08:06:49]Read from MH i2c: 01 [08:06:49]MH_I2C_Read... [08:06:49]Read from MH i2c: 01 07 00 [08:06:49]MH_I2C_Read... [08:06:49]Read from MH i2c: 01 07 00 67 04 00 00 00 00 00 A4 0C 22 [08:06:49]RasterBufferAndPrint [08:06:49]line [08:06:49]line [08:06:49]line [08:06:49]line [08:06:49]line [08:06:49]written 0, free lines is 3242 [08:06:49]MH_Cut [08:06:49]Write to MH i2c: D1 01 00 6E 04 01 44 [08:06:49]Write i2c OK [08:06:49]MH_I2C_Read... [08:06:49]Read from MH i2c: D1 [08:06:49]MH_I2C_Read... [08:06:49]Read from MH i2c: D1 01 00 [08:06:49]MH_I2C_Read... [08:06:49]Read from MH i2c: D1 01 00 6E 04 00 43 [08:06:49]Write to MH i2c: 01 00 00 6F 04 73 [08:06:49]Write i2c OK [08:06:49]MH_I2C_Read... [08:06:49]OFD Sender: No OFD packet to send [08:06:50]*** Cut start [08:06:50]*** Partial cut [08:06:50]*** CUTSNS_PIN = 1 [08:06:50]*** CUTSNS_PIN = 0 [08:06:50]*** Brake cut motor [08:06:51]Read from MH i2c: 01 [08:06:51]MH_I2C_Read... [08:06:51]*** Stop cut motor [08:06:51]*** Cut end [08:06:51]Read from MH i2c: 01 07 00 [08:06:51]MH_I2C_Read... [08:06:51]Read from MH i2c: 01 07 00 6F 04 00 00 00 00 00 FF 0F 88 [08:06:51]process_action close_receipt done [08:06:51]requested_data is exist [08:06:51]produce_requested_data [08:06:51]requested_item fm.sn is exist - process it [08:06:51]wFMCommunicate request_size=4 [08:06:51]MH_SAM_APDU [08:06:51]CAPDU: 80 11 00 00 [08:06:51]Write to MH i2c: E2 08 00 70 04 80 11 00 00 00 00 00 00 EE [08:06:51]Write i2c OK [08:06:51]MH_I2C_Read... [08:06:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:06:51]Read from MH i2c: E2 [08:06:51]MH_I2C_Read... [08:06:51]Read from MH i2c: E2 17 00 [08:06:51]MH_I2C_Read... [08:06:51]Read from MH i2c: E2 17 00 70 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 40 [08:06:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [08:06:51]wFMCommunicate OK [08:06:51]requested_item fd.num is exist - process it [08:06:51]SAM_PROTO_GetFieldsCounters [08:06:51]wFMCommunicate request_size=4 [08:06:51]MH_SAM_APDU [08:06:51]CAPDU: 80 13 00 00 [08:06:51]Write to MH i2c: E2 08 00 71 04 80 13 00 00 00 00 00 00 F1 [08:06:51]Write i2c OK [08:06:51]MH_I2C_Read... [08:06:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:06:51]Read from MH i2c: E2 [08:06:51]MH_I2C_Read... [08:06:51]Read from MH i2c: E2 62 00 [08:06:51]MH_I2C_Read... [08:06:51]Read from MH i2c: E2 62 00 71 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 15 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 DD [08:06:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 15 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:06:51]wFMCommunicate OK [08:06:51]SAM_PROTO_GetFieldsCounters done [08:06:51]requested_item shift.num is exist - process it [08:06:51]requested_item shift.opened is exist - process it [08:06:51]req_shift_opened [08:06:51]FM_GetShiftState [08:06:51]SAM_PROTO_GetShiftState [08:06:51]wFMCommunicate request_size=4 [08:06:51]MH_SAM_APDU [08:06:51]CAPDU: 80 13 01 00 [08:06:51]Write to MH i2c: E2 08 00 72 04 80 13 01 00 00 00 00 00 F3 [08:06:51]Write i2c OK [08:06:51]MH_I2C_Read... [08:06:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:06:51]Read from MH i2c: E2 [08:06:51]MH_I2C_Read... [08:06:51]Read from MH i2c: E2 0E 00 [08:06:51]MH_I2C_Read... [08:06:51]Read from MH i2c: E2 0E 00 72 04 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 BF [08:06:51]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [08:06:51]wFMCommunicate OK [08:06:51]SAM_PROTO_GetShiftState done [08:06:51]FM_GetShiftState done [08:06:51]req_shift_opened done [08:06:51]requested_item shift.open_date is exist - process it [08:06:51]req_shift_open_date [08:06:51]req_shift_open_date done [08:06:51]produce_requested_data done [08:06:51]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63765,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [08:06:51]process_action_free close_receipt [08:06:51]json_value_free [08:06:51]json_value_free done [08:06:51]process_json_proto returns [08:06:51]Send response to host [08:06:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63765,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [08:06:51]free response buf [08:06:51]execute_script done [08:06:51]execute_script returns [08:06:51]free content buf [08:06:51]Sock 9.Close socket [08:06:51]Sock 9.Thread stoped [08:06:54]OFD Sender: No OFD packet to send [08:06:59]OFD Sender: No OFD packet to send [08:07:04]OFD Sender: No OFD packet to send [08:07:09]OFD Sender: No OFD packet to send [08:07:14]OFD Sender: No OFD packet to send [08:07:19]OFD Sender: No OFD packet to send [08:07:24]OFD Sender: No OFD packet to send [08:07:29]OFD Sender: No OFD packet to send [08:07:34]OFD Sender: No OFD packet to send [08:07:39]OFD Sender: No OFD packet to send [08:07:44]OFD Sender: No OFD packet to send [08:07:49]OFD Sender: No OFD packet to send [08:07:54]OFD Sender: No OFD packet to send [08:07:59]OFD Sender: No OFD packet to send [08:08:04]OFD Sender: No OFD packet to send [08:08:09]OFD Sender: No OFD packet to send [08:08:15]OFD Sender: No OFD packet to send [08:08:20]OFD Sender: No OFD packet to send [08:08:25]OFD Sender: No OFD packet to send [08:08:30]OFD Sender: No OFD packet to send [08:08:35]OFD Sender: No OFD packet to send [08:08:40]OFD Sender: No OFD packet to send [08:08:45]OFD Sender: No OFD packet to send [08:08:50]OFD Sender: No OFD packet to send [08:08:55]OFD Sender: No OFD packet to send [08:09:00]OFD Sender: No OFD packet to send [08:09:05]OFD Sender: No OFD packet to send [08:09:10]OFD Sender: No OFD packet to send [08:09:15]OFD Sender: No OFD packet to send [08:09:20]OFD Sender: No OFD packet to send [08:09:25]OFD Sender: No OFD packet to send [08:09:27]accept exits with 7 [08:09:27]New connection [08:09:27]New thread 3067374948 created [08:09:27]Thread 3067518308 joined [08:09:27]Waiting for new connection... [08:09:27] Sock 7.Parse request [08:09:27]Sock 7.Check first char [08:09:27]Sock 7.First char is OK [08:09:27]request: POST /json_proto HTTP/1.0 [08:09:27]Method: POST [08:09:27]URL: /json_proto [08:09:27]Method is POST - this is cgi request [08:09:27]url: /json_proto [08:09:27]query_string will be loaded in cgi processing [08:09:27]execute_cgi json_proto POST (null) [08:09:27]execute_cgi path=json_proto method=POST [08:09:27]POST find Content-Length [08:09:27]Host: 172.17.60.69:8080 [08:09:27]Content-Length: 1194 [08:09:27]Content-Type: application/json [08:09:27] [08:09:27]POST finish read [08:09:27]Found Content-Length = 1194 [08:09:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 117\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u043B\u044B\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)543356\u000A03.06.2024 08:03\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 51\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 20.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 1458.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3789324\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:09:27]execute_script... [08:09:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 117\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u043B\u044B\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)543356\u000A03.06.2024 08:03\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 51\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 20.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 1458.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3789324\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:09:27]POST & json_proto [08:09:27]process_json_proto [08:09:27]json parsed OK: [08:09:27]protocol is kg_v1.0 [08:09:27]action value=print_text [08:09:27]process_action print_text [08:09:27]cmd_print_text [08:09:27]ExternCall_PrintAddStr [08:09:27]wPrintStart [08:09:27]Write to MH i2c: 01 00 00 73 04 77 [08:09:27]Write i2c OK [08:09:27]MH_I2C_Read... [08:09:27]Read from MH i2c: 01 [08:09:27]MH_I2C_Read... [08:09:27]Read from MH i2c: 01 07 00 [08:09:27]MH_I2C_Read... [08:09:27]Read from MH i2c: 01 07 00 73 04 00 00 00 00 00 FF 0F 8C [08:09:27]RasterBufferAndPrint [08:09:27]line *****ТОВАРНЫЙ ЧЕК***** [08:09:27]line АЗС 117 [08:09:27]line Партнер нефть [08:09:27]line 02508201610067 [08:09:27]line Кассир : Калыгулова Н. [08:09:27]line Счет N : (1)543356 [08:09:27]line 03.06.2024 08:03 [08:09:27]line ПРОДАЖА [08:09:27]line ТРК (МРК, ГНК): 51 [08:09:27]line Вид ГСМ : 2710194210 [08:09:27]line ДТ-К-5 [08:09:27]line 20.000 x 72.90 [08:09:27]line ИТОГ: 1458.00 [08:09:27]line Тип оплаты: Талоны: Партнер нефть [08:09:27]line 3789324 [08:09:27]line ______________________ [08:09:27]line (подпись) [08:09:27]written 0, free lines is 4095 [08:09:27]Write to MH i2c: 01 00 00 87 04 8B [08:09:27]Write i2c OK [08:09:27]MH_I2C_Read... [08:09:27]Read from MH i2c: 01 [08:09:27]MH_I2C_Read... [08:09:27]Read from MH i2c: 01 07 00 [08:09:27]MH_I2C_Read... [08:09:27]Read from MH i2c: 01 07 00 87 04 00 00 00 00 00 12 0E B2 [08:09:27]RasterBufferAndPrint [08:09:27]line [08:09:27]line [08:09:27]line [08:09:27]line [08:09:27]line [08:09:27]written 0, free lines is 3604 [08:09:27]MH_Cut [08:09:27]Write to MH i2c: D1 01 00 8E 04 01 64 [08:09:27]Write i2c OK [08:09:27]MH_I2C_Read... [08:09:27]Read from MH i2c: D1 [08:09:27]MH_I2C_Read... [08:09:27]Read from MH i2c: D1 01 00 [08:09:27]MH_I2C_Read... [08:09:27]Read from MH i2c: D1 01 00 8E 04 00 63 [08:09:27]Write to MH i2c: 01 00 00 8F 04 93 [08:09:27]Write i2c OK [08:09:27]MH_I2C_Read... [08:09:28]*** Cut start [08:09:28]*** Partial cut [08:09:28]*** CUTSNS_PIN = 1 [08:09:28]*** CUTSNS_PIN = 0 [08:09:28]*** Brake cut motor [08:09:28]Read from MH i2c: 01 [08:09:28]MH_I2C_Read... [08:09:28]*** Stop cut motor [08:09:28]*** Cut end [08:09:28]Read from MH i2c: 01 07 00 [08:09:28]MH_I2C_Read... [08:09:28]Read from MH i2c: 01 07 00 8F 04 00 00 00 00 00 FF 0F A8 [08:09:28]process_action print_text done [08:09:28]requested_data is exist [08:09:28]produce_requested_data [08:09:28]requested_item fm.sn is exist - process it [08:09:28]wFMCommunicate request_size=4 [08:09:28]MH_SAM_APDU [08:09:28]CAPDU: 80 11 00 00 [08:09:28]Write to MH i2c: E2 08 00 90 04 80 11 00 00 00 00 00 00 0E [08:09:28]Write i2c OK [08:09:28]MH_I2C_Read... [08:09:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:09:28]Read from MH i2c: E2 [08:09:28]MH_I2C_Read... [08:09:28]Read from MH i2c: E2 17 00 [08:09:28]MH_I2C_Read... [08:09:28]Read from MH i2c: E2 17 00 90 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 60 [08:09:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [08:09:28]wFMCommunicate OK [08:09:28]requested_item fd.num is exist - process it [08:09:28]SAM_PROTO_GetFieldsCounters [08:09:28]wFMCommunicate request_size=4 [08:09:28]MH_SAM_APDU [08:09:28]CAPDU: 80 13 00 00 [08:09:28]Write to MH i2c: E2 08 00 91 04 80 13 00 00 00 00 00 00 11 [08:09:28]Write i2c OK [08:09:28]MH_I2C_Read... [08:09:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:09:28]Read from MH i2c: E2 [08:09:28]MH_I2C_Read... [08:09:28]Read from MH i2c: E2 62 00 [08:09:28]MH_I2C_Read... [08:09:28]Read from MH i2c: E2 62 00 91 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 15 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 FD [08:09: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 15 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:09:28]wFMCommunicate OK [08:09:28]SAM_PROTO_GetFieldsCounters done [08:09:28]requested_item shift.num is exist - process it [08:09:28]requested_item shift.opened is exist - process it [08:09:28]req_shift_opened [08:09:28]FM_GetShiftState [08:09:28]SAM_PROTO_GetShiftState [08:09:28]wFMCommunicate request_size=4 [08:09:28]MH_SAM_APDU [08:09:28]CAPDU: 80 13 01 00 [08:09:28]Write to MH i2c: E2 08 00 92 04 80 13 01 00 00 00 00 00 13 [08:09:28]Write i2c OK [08:09:28]MH_I2C_Read... [08:09:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:09:28]Read from MH i2c: E2 [08:09:28]MH_I2C_Read... [08:09:28]Read from MH i2c: E2 0E 00 [08:09:28]MH_I2C_Read... [08:09:28]Read from MH i2c: E2 0E 00 92 04 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 DF [08:09:28]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [08:09:28]wFMCommunicate OK [08:09:28]SAM_PROTO_GetShiftState done [08:09:28]FM_GetShiftState done [08:09:28]req_shift_opened done [08:09:28]requested_item shift.open_date is exist - process it [08:09:28]req_shift_open_date [08:09:28]req_shift_open_date done [08:09:28]produce_requested_data done [08:09:28]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63765,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [08:09:28]process_action_free print_text [08:09:28]json_value_free [08:09:28]json_value_free done [08:09:28]process_json_proto returns [08:09:28]Send response to host [08:09:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63765,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [08:09:28]free response buf [08:09:28]execute_script done [08:09:28]execute_script returns [08:09:28]free content buf [08:09:28]Sock 7.Close socket [08:09:28]Sock 7.Thread stoped [08:09:30]OFD Sender: No OFD packet to send [08:09:35]OFD Sender: No OFD packet to send [08:09:40]OFD Sender: No OFD packet to send [08:09:45]OFD Sender: No OFD packet to send [08:09:50]OFD Sender: No OFD packet to send [08:09:55]OFD Sender: No OFD packet to send [08:10:00]OFD Sender: No OFD packet to send [08:10:05]OFD Sender: No OFD packet to send [08:10:10]OFD Sender: No OFD packet to send [08:10:15]OFD Sender: No OFD packet to send [08:10:20]OFD Sender: No OFD packet to send [08:10:25]OFD Sender: No OFD packet to send [08:10:30]OFD Sender: No OFD packet to send [08:10:35]OFD Sender: No OFD packet to send [08:10:40]OFD Sender: No OFD packet to send [08:10:45]OFD Sender: No OFD packet to send [08:10:50]OFD Sender: No OFD packet to send [08:10:55]OFD Sender: No OFD packet to send [08:11:00]OFD Sender: No OFD packet to send [08:11:05]OFD Sender: No OFD packet to send [08:11:10]OFD Sender: No OFD packet to send [08:11:15]OFD Sender: No OFD packet to send [08:11:20]OFD Sender: No OFD packet to send [08:11:25]OFD Sender: No OFD packet to send [08:11:30]OFD Sender: No OFD packet to send [08:11:35]OFD Sender: No OFD packet to send [08:11:40]OFD Sender: No OFD packet to send [08:11:45]OFD Sender: No OFD packet to send [08:11:50]OFD Sender: No OFD packet to send [08:11:55]OFD Sender: No OFD packet to send [08:12:00]OFD Sender: No OFD packet to send [08:12:05]OFD Sender: No OFD packet to send [08:12:10]OFD Sender: No OFD packet to send [08:12:15]OFD Sender: No OFD packet to send [08:12:20]OFD Sender: No OFD packet to send [08:12:25]OFD Sender: No OFD packet to send [08:12:30]OFD Sender: No OFD packet to send [08:12:35]OFD Sender: No OFD packet to send [08:12:40]OFD Sender: No OFD packet to send [08:12:45]OFD Sender: No OFD packet to send [08:12:50]OFD Sender: No OFD packet to send [08:12:55]OFD Sender: No OFD packet to send [08:13:00]OFD Sender: No OFD packet to send [08:13:05]OFD Sender: No OFD packet to send [08:13:10]OFD Sender: No OFD packet to send [08:13:15]OFD Sender: No OFD packet to send [08:13:20]OFD Sender: No OFD packet to send [08:13:25]OFD Sender: No OFD packet to send [08:13:30]OFD Sender: No OFD packet to send [08:13:35]OFD Sender: No OFD packet to send [08:13:40]OFD Sender: No OFD packet to send [08:13:45]OFD Sender: No OFD packet to send [08:13:50]OFD Sender: No OFD packet to send [08:13:55]OFD Sender: No OFD packet to send [08:14:00]OFD Sender: No OFD packet to send [08:14:05]OFD Sender: No OFD packet to send [08:14:10]OFD Sender: No OFD packet to send [08:14:15]OFD Sender: No OFD packet to send [08:14:20]OFD Sender: No OFD packet to send [08:14:25]OFD Sender: No OFD packet to send [08:14:30]OFD Sender: No OFD packet to send [08:14:35]OFD Sender: No OFD packet to send [08:14:40]OFD Sender: No OFD packet to send [08:14:45]OFD Sender: No OFD packet to send [08:14:50]OFD Sender: No OFD packet to send [08:14:55]OFD Sender: No OFD packet to send [08:15:00]OFD Sender: No OFD packet to send [08:15:05]OFD Sender: No OFD packet to send [08:15:10]OFD Sender: No OFD packet to send [08:15:15]OFD Sender: No OFD packet to send [08:15:20]OFD Sender: No OFD packet to send [08:15:25]OFD Sender: No OFD packet to send [08:15:30]OFD Sender: No OFD packet to send [08:15:35]OFD Sender: No OFD packet to send [08:15:40]OFD Sender: No OFD packet to send [08:15:45]OFD Sender: No OFD packet to send [08:15:49]accept exits with 9 [08:15:49]New connection [08:15:49]New thread 3067518308 created [08:15:49]Thread 3067374948 joined [08:15:49]Waiting for new connection... [08:15:49] Sock 9.Parse request [08:15:49]Sock 9.Check first char [08:15:49]Sock 9.First char is OK [08:15:49]request: POST /json_proto HTTP/1.0 [08:15:49]Method: POST [08:15:49]URL: /json_proto [08:15:49]Method is POST - this is cgi request [08:15:49]url: /json_proto [08:15:49]query_string will be loaded in cgi processing [08:15:49]execute_cgi json_proto POST (null) [08:15:49]execute_cgi path=json_proto method=POST [08:15:49]POST find Content-Length [08:15:49]Host: 172.17.60.69:8080 [08:15:49]Content-Length: 1205 [08:15:49]Content-Type: application/json [08:15:49] [08:15:49]POST finish read [08:15:49]Found Content-Length = 1205 [08:15:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 117\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u043B\u044B\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)543364\u000A03.06.2024 08:09\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 22\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 66.90\u000A\u0418\u0422\u041E\u0413: 1338.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3889361;3889362\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:15:49]execute_script... [08:15:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 117\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u043B\u044B\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)543364\u000A03.06.2024 08:09\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 22\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 66.90\u000A\u0418\u0422\u041E\u0413: 1338.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3889361;3889362\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:15:49]POST & json_proto [08:15:49]process_json_proto [08:15:49]json parsed OK: [08:15:49]protocol is kg_v1.0 [08:15:49]action value=print_text [08:15:49]process_action print_text [08:15:49]cmd_print_text [08:15:49]ExternCall_PrintAddStr [08:15:49]wPrintStart [08:15:49]Write to MH i2c: 01 00 00 93 04 97 [08:15:49]Write i2c OK [08:15:49]MH_I2C_Read... [08:15:49]Read from MH i2c: 01 [08:15:49]MH_I2C_Read... [08:15:49]Read from MH i2c: 01 07 00 [08:15:49]MH_I2C_Read... [08:15:49]Read from MH i2c: 01 07 00 93 04 00 00 00 00 00 FF 0F AC [08:15:49]RasterBufferAndPrint [08:15:49]line *****ТОВАРНЫЙ ЧЕК***** [08:15:49]line АЗС 117 [08:15:49]line Партнер нефть [08:15:49]line 02508201610067 [08:15:49]line Кассир : Калыгулова Н. [08:15:49]line Счет N : (1)543364 [08:15:49]line 03.06.2024 08:09 [08:15:49]line ПРОДАЖА [08:15:49]line ТРК (МРК, ГНК): 22 [08:15:49]line Вид ГСМ : 2710124130 [08:15:49]line Аи-92-К-5 [08:15:49]line 20.000 x 66.90 [08:15:49]line ИТОГ: 1338.00 [08:15:49]line Тип оплаты: Талоны: Партнер нефть [08:15:49]line 3889361;3889362 [08:15:49]line ______________________ [08:15:49]line (подпись) [08:15:49]written 0, free lines is 4095 [08:15:50]Write to MH i2c: 01 00 00 A7 04 AB [08:15:50]Write i2c OK [08:15:50]MH_I2C_Read... [08:15:50]Read from MH i2c: 01 [08:15:50]MH_I2C_Read... [08:15:50]Read from MH i2c: 01 07 00 [08:15:50]MH_I2C_Read... [08:15:50]Read from MH i2c: 01 07 00 A7 04 00 00 00 00 00 1A 0E DA [08:15:50]RasterBufferAndPrint [08:15:50]line [08:15:50]line [08:15:50]line [08:15:50]line [08:15:50]line [08:15:50]written 0, free lines is 3612 [08:15:50]MH_Cut [08:15:50]Write to MH i2c: D1 01 00 AE 04 01 84 [08:15:50]Write i2c OK [08:15:50]MH_I2C_Read... [08:15:50]Read from MH i2c: D1 [08:15:50]MH_I2C_Read... [08:15:50]Read from MH i2c: D1 01 00 [08:15:50]MH_I2C_Read... [08:15:50]Read from MH i2c: D1 01 00 AE 04 00 83 [08:15:50]Write to MH i2c: 01 00 00 AF 04 B3 [08:15:50]Write i2c OK [08:15:50]MH_I2C_Read... [08:15:50]OFD Sender: No OFD packet to send [08:15:50]*** Cut start [08:15:50]*** Partial cut [08:15:50]*** CUTSNS_PIN = 1 [08:15:50]*** CUTSNS_PIN = 0 [08:15:50]*** Brake cut motor [08:15:51]Read from MH i2c: 01 [08:15:51]MH_I2C_Read... [08:15:51]*** Stop cut motor [08:15:51]*** Cut end [08:15:51]Read from MH i2c: 01 07 00 [08:15:51]MH_I2C_Read... [08:15:51]Read from MH i2c: 01 07 00 AF 04 00 00 00 00 00 FF 0F C8 [08:15:51]process_action print_text done [08:15:51]requested_data is exist [08:15:51]produce_requested_data [08:15:51]requested_item fm.sn is exist - process it [08:15:51]wFMCommunicate request_size=4 [08:15:51]MH_SAM_APDU [08:15:51]CAPDU: 80 11 00 00 [08:15:51]Write to MH i2c: E2 08 00 B0 04 80 11 00 00 00 00 00 00 2E [08:15:51]Write i2c OK [08:15:51]MH_I2C_Read... [08:15:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:15:51]Read from MH i2c: E2 [08:15:51]MH_I2C_Read... [08:15:51]Read from MH i2c: E2 17 00 [08:15:51]MH_I2C_Read... [08:15:51]Read from MH i2c: E2 17 00 B0 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 80 [08:15:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [08:15:51]wFMCommunicate OK [08:15:51]requested_item fd.num is exist - process it [08:15:51]SAM_PROTO_GetFieldsCounters [08:15:51]wFMCommunicate request_size=4 [08:15:51]MH_SAM_APDU [08:15:51]CAPDU: 80 13 00 00 [08:15:51]Write to MH i2c: E2 08 00 B1 04 80 13 00 00 00 00 00 00 31 [08:15:51]Write i2c OK [08:15:51]MH_I2C_Read... [08:15:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:15:51]Read from MH i2c: E2 [08:15:51]MH_I2C_Read... [08:15:51]Read from MH i2c: E2 62 00 [08:15:51]MH_I2C_Read... [08:15:51]Read from MH i2c: E2 62 00 B1 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 15 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 1D [08:15: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 15 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:15:51]wFMCommunicate OK [08:15:51]SAM_PROTO_GetFieldsCounters done [08:15:51]requested_item shift.num is exist - process it [08:15:51]requested_item shift.opened is exist - process it [08:15:51]req_shift_opened [08:15:51]FM_GetShiftState [08:15:51]SAM_PROTO_GetShiftState [08:15:51]wFMCommunicate request_size=4 [08:15:51]MH_SAM_APDU [08:15:51]CAPDU: 80 13 01 00 [08:15:51]Write to MH i2c: E2 08 00 B2 04 80 13 01 00 00 00 00 00 33 [08:15:51]Write i2c OK [08:15:51]MH_I2C_Read... [08:15:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:15:51]Read from MH i2c: E2 [08:15:51]MH_I2C_Read... [08:15:51]Read from MH i2c: E2 0E 00 [08:15:51]MH_I2C_Read... [08:15:51]Read from MH i2c: E2 0E 00 B2 04 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 FF [08:15:51]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [08:15:51]wFMCommunicate OK [08:15:51]SAM_PROTO_GetShiftState done [08:15:51]FM_GetShiftState done [08:15:51]req_shift_opened done [08:15:51]requested_item shift.open_date is exist - process it [08:15:51]req_shift_open_date [08:15:51]req_shift_open_date done [08:15:51]produce_requested_data done [08:15:51]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63765,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [08:15:51]process_action_free print_text [08:15:51]json_value_free [08:15:51]json_value_free done [08:15:51]process_json_proto returns [08:15:51]Send response to host [08:15:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63765,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [08:15:51]free response buf [08:15:51]execute_script done [08:15:51]execute_script returns [08:15:51]free content buf [08:15:51]Sock 9.Close socket [08:15:51]Sock 9.Thread stoped [08:15:55]OFD Sender: No OFD packet to send [08:16:00]OFD Sender: No OFD packet to send [08:16:05]OFD Sender: No OFD packet to send [08:16:10]OFD Sender: No OFD packet to send [08:16:15]OFD Sender: No OFD packet to send [08:16:20]OFD Sender: No OFD packet to send [08:16:25]OFD Sender: No OFD packet to send [08:16:30]OFD Sender: No OFD packet to send [08:16:35]OFD Sender: No OFD packet to send [08:16:40]OFD Sender: No OFD packet to send [08:16:45]OFD Sender: No OFD packet to send [08:16:50]OFD Sender: No OFD packet to send [08:16:55]OFD Sender: No OFD packet to send [08:17:00]OFD Sender: No OFD packet to send [08:17:05]OFD Sender: No OFD packet to send [08:17:10]OFD Sender: No OFD packet to send [08:17:15]OFD Sender: No OFD packet to send [08:17:20]OFD Sender: No OFD packet to send [08:17:25]OFD Sender: No OFD packet to send [08:17:30]OFD Sender: No OFD packet to send [08:17:35]OFD Sender: No OFD packet to send [08:17:40]OFD Sender: No OFD packet to send [08:17:45]OFD Sender: No OFD packet to send [08:17:50]OFD Sender: No OFD packet to send [08:17:55]OFD Sender: No OFD packet to send [08:18:00]OFD Sender: No OFD packet to send [08:18:05]OFD Sender: No OFD packet to send [08:18:10]OFD Sender: No OFD packet to send [08:18:15]OFD Sender: No OFD packet to send [08:18:20]OFD Sender: No OFD packet to send [08:18:25]OFD Sender: No OFD packet to send [08:18:30]OFD Sender: No OFD packet to send [08:18:35]OFD Sender: No OFD packet to send [08:18:40]OFD Sender: No OFD packet to send [08:18:45]OFD Sender: No OFD packet to send [08:18:50]OFD Sender: No OFD packet to send [08:18:55]OFD Sender: No OFD packet to send [08:19:00]OFD Sender: No OFD packet to send [08:19:05]OFD Sender: No OFD packet to send [08:19:10]OFD Sender: No OFD packet to send [08:19:15]OFD Sender: No OFD packet to send [08:19:20]OFD Sender: No OFD packet to send [08:19:25]OFD Sender: No OFD packet to send [08:19:30]OFD Sender: No OFD packet to send [08:19:35]OFD Sender: No OFD packet to send [08:19:40]OFD Sender: No OFD packet to send [08:19:45]OFD Sender: No OFD packet to send [08:19:50]OFD Sender: No OFD packet to send [08:19:55]OFD Sender: No OFD packet to send [08:20:00]OFD Sender: No OFD packet to send [08:20:05]OFD Sender: No OFD packet to send [08:20:10]OFD Sender: No OFD packet to send [08:20:15]OFD Sender: No OFD packet to send [08:20:20]OFD Sender: No OFD packet to send [08:20:25]OFD Sender: No OFD packet to send [08:20:30]OFD Sender: No OFD packet to send [08:20:35]OFD Sender: No OFD packet to send [08:20:40]OFD Sender: No OFD packet to send [08:20:45]OFD Sender: No OFD packet to send [08:20:50]OFD Sender: No OFD packet to send [08:20:55]OFD Sender: No OFD packet to send [08:21:00]OFD Sender: No OFD packet to send [08:21:05]OFD Sender: No OFD packet to send [08:21:10]OFD Sender: No OFD packet to send [08:21:15]OFD Sender: No OFD packet to send [08:21:20]OFD Sender: No OFD packet to send [08:21:25]OFD Sender: No OFD packet to send [08:21:30]OFD Sender: No OFD packet to send [08:21:35]OFD Sender: No OFD packet to send [08:21:40]OFD Sender: No OFD packet to send [08:21:45]OFD Sender: No OFD packet to send [08:21:50]OFD Sender: No OFD packet to send [08:21:55]OFD Sender: No OFD packet to send [08:21:56]accept exits with 7 [08:21:56]New connection [08:21:56]New thread 3067374948 created [08:21:56]Thread 3067518308 joined [08:21:56]Waiting for new connection... [08:21:56] Sock 7.Parse request [08:21:56]Sock 7.Check first char [08:21:56]Sock 7.First char is OK [08:21:56]request: POST /json_proto HTTP/1.0 [08:21:56]Method: POST [08:21:56]URL: /json_proto [08:21:56]Method is POST - this is cgi request [08:21:56]url: /json_proto [08:21:56]query_string will be loaded in cgi processing [08:21:56]execute_cgi json_proto POST (null) [08:21:56]execute_cgi path=json_proto method=POST [08:21:56]POST find Content-Length [08:21:56]Host: 172.17.60.69:8080 [08:21:56]Content-Length: 984 [08:21:56]Content-Type: application/json [08:21:56] [08:21:56]POST finish read [08:21:56]Found Content-Length = 984 [08:21:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543368", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 27.930, "sum" : 1840.59, "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 117\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 27.93 \u0441\u043E\u043C", "deposit" : 1840.00, "total" : 1840.00, "payments": [ { "type": 0, "sum" : 1840.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:21:56]execute_script... [08:21: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)543368", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 27.930, "sum" : 1840.59, "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 117\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 27.93 \u0441\u043E\u043C", "deposit" : 1840.00, "total" : 1840.00, "payments": [ { "type": 0, "sum" : 1840.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:21:56]POST & json_proto [08:21:56]process_json_proto [08:21:56]json parsed OK: [08:21:56]protocol is kg_v1.0 [08:21:56]action value=close_receipt [08:21:56]process_action close_receipt [08:21:56]cmd_close_receipt [08:21:56]MH_GetDate [08:21:56]Write to MH i2c: F0 00 00 B3 04 A6 [08:21:56]Write i2c OK [08:21:56]MH_I2C_Read... [08:21:56]Read from MH i2c: F0 [08:21:56]MH_I2C_Read... [08:21:56]Read from MH i2c: F0 09 00 [08:21:56]MH_I2C_Read... [08:21:56]Read from MH i2c: F0 09 00 B3 04 00 25 7D 5D 66 6A 96 4A 66 C4 [08:21:56]GetLastDocTimeStamp 1717402008 [08:21:56]current date 1717402917 [08:21:56]FM_GetShiftState [08:21:56]SAM_PROTO_GetShiftState [08:21:56]wFMCommunicate request_size=4 [08:21:56]MH_SAM_APDU [08:21:56]CAPDU: 80 13 01 00 [08:21:56]Write to MH i2c: E2 08 00 B4 04 80 13 01 00 00 00 00 00 35 [08:21:56]Write i2c OK [08:21:56]MH_I2C_Read... [08:21:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:21:56]Read from MH i2c: E2 [08:21:56]MH_I2C_Read... [08:21:56]Read from MH i2c: E2 0E 00 [08:21:56]MH_I2C_Read... [08:21:56]Read from MH i2c: E2 0E 00 B4 04 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 01 [08:21:56]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [08:21:56]wFMCommunicate OK [08:21:56]SAM_PROTO_GetShiftState done [08:21:56]FM_GetShiftState done [08:21:56]opened in 1717373173 [08:21:56]opened+sec_in_day 1717459573 [08:21:56]quantity*price = 184058 [08:21:56]sum+1 = 184060 [08:21:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 1840.00 Внесено: 1840.00 СДАЧА: 0.00 НСП 1% : 16.29 НДС 12% : 195.46 Наличными: 1840.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 24 03.06.2024 08:21 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 Дисконтная программа АИ-92 номер 117 сэкономлено 27.93 сом ФМ: 0000000000875074 ФД: 63766 ФПД: 130208031282316 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T082157&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63766&fm=130208031282316&tin=02508201610067®Number=0000000000092737&sum=184000 [08:21:57]StoreToDocumentArchive [08:21:57]shift 373 fd 63766 [08:21:57]save to /storage/0373/doc_00063766 [08:21:57]save last doc name /storage/0373/doc_00063766 to /storage/kkm_last_doc_name [08:21:57]save OK [08:21:57]Clear old archive folders... [08:21:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:21:57]tlvbuf is B6FE24D0 [08:21:57]SAM_PROTO_ClearQueue [08:21:57]wFMCommunicate request_size=4 [08:21:57]MH_SAM_APDU [08:21:57]CAPDU: 80 09 00 00 [08:21:57]Write to MH i2c: E2 08 00 C1 04 80 09 00 00 00 00 00 00 37 [08:21:57]Write i2c OK [08:21:57]MH_I2C_Read... [08:21:57]Read from MH i2c: E2 [08:21:57]MH_I2C_Read... [08:21:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:21:57]Read from MH i2c: E2 03 00 [08:21:57]MH_I2C_Read... [08:21:57]Read from MH i2c: E2 03 00 C1 04 00 90 00 39 [08:21:57]RAPDU: 90 00 [08:21:57]wFMCommunicate OK [08:21:57]SAM_PROTO_ClearQueue done [08:21:57]KKMCreateOFDPacket [08:21:57]OFDProtocolAddRootSTLVToBuf [08:21:57]FM_MakeSignedData [08:21:57]FM_MakeSignedData [08:21:57]SAM_PROTO_SignData [08:21:57]wFMCommunicate request_size=4 [08:21:57]MH_SAM_APDU [08:21:57]CAPDU: 80 0D 01 02 [08:21:57]Write to MH i2c: E2 08 00 C2 04 80 0D 01 02 00 00 00 00 3F [08:21:57]Write i2c OK [08:21:57]MH_I2C_Read... [08:21:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:21:57]Read from MH i2c: E2 [08:21:57]MH_I2C_Read... [08:21:57]Read from MH i2c: E2 03 00 [08:21:57]MH_I2C_Read... [08:21:57]Read from MH i2c: E2 03 00 C2 04 00 90 00 3A [08:21:57]RAPDU: 90 00 [08:21:57]wFMCommunicate OK [08:21:57]wFMCommunicate request_size=255 [08:21:57]MH_SAM_APDU [08:21: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 35 FF 03 08 00 03 1A 6D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 FB CE 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 CE 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 4C 00 00 00 00 07 04 06 00 C0 CE 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 25 7D 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 16 F9 00 00 35 04 06 00 76 [08:21:57]Write to MH i2c: E2 02 01 C3 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 35 FF 03 08 00 03 1A 6D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 FB CE 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 CE 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 4C 00 00 00 00 07 04 06 00 C0 CE 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 25 7D 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 16 F9 00 00 35 04 06 00 76 00 00 15 [08:21:57]Write i2c OK [08:21:57]MH_I2C_Read... [08:21:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:21:58]Read from MH i2c: E2 [08:21:58]MH_I2C_Read... [08:21:58]Read from MH i2c: E2 03 00 [08:21:58]MH_I2C_Read... [08:21:58]Read from MH i2c: E2 03 00 C3 04 00 90 00 3B [08:21:58]RAPDU: 90 00 [08:21:58]wFMCommunicate OK [08:21:58]wFMCommunicate request_size=10 [08:21:58]MH_SAM_APDU [08:21:58]CAPDU: 80 0D 02 02 05 6C 6B 73 94 8C [08:21:58]Write to MH i2c: E2 0D 00 C4 04 80 0D 02 02 05 00 6C 6B 73 94 8C 00 00 B6 [08:21:58]Write i2c OK [08:21:58]MH_I2C_Read... [08:21:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:21:58]Read from MH i2c: E2 [08:21:58]MH_I2C_Read... [08:21:58]Read from MH i2c: E2 03 00 [08:21:58]MH_I2C_Read... [08:21:58]Read from MH i2c: E2 03 00 C4 04 00 90 00 3C [08:21:58]RAPDU: 90 00 [08:21:58]wFMCommunicate OK [08:21:58]wFMCommunicate request_size=4 [08:21:58]MH_SAM_APDU [08:21:58]CAPDU: 80 0D 03 02 [08:21:58]Write to MH i2c: E2 08 00 C5 04 80 0D 03 02 00 00 00 00 44 [08:21:58]Write i2c OK [08:21:58]MH_I2C_Read... [08:21:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:21:58]Read from MH i2c: E2 [08:21:58]MH_I2C_Read... [08:21:58]Read from MH i2c: E2 0B 00 [08:21:58]MH_I2C_Read... [08:21:58]Read from MH i2c: E2 0B 00 C5 04 00 19 8A 11 16 34 19 B4 0E 90 00 1E [08:21:58]RAPDU: 19 8A 11 16 34 19 B4 0E 90 00 [08:21:58]wFMCommunicate OK [08:21:58]SAM_PROTO_SignData done [08:21:58]FM_MakeSignedData done [08:21:58]CreateOFDProtocolMessage [08:21:58]wFMCommunicate request_size=4 [08:21:58]MH_SAM_APDU [08:21:58]CAPDU: 80 11 00 00 [08:21:58]Write to MH i2c: E2 08 00 C6 04 80 11 00 00 00 00 00 00 44 [08:21:58]Write i2c OK [08:21:58]MH_I2C_Read... [08:21:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:21:58]Read from MH i2c: E2 [08:21:58]MH_I2C_Read... [08:21:58]Read from MH i2c: E2 17 00 [08:21:58]MH_I2C_Read... [08:21:58]Read from MH i2c: E2 17 00 C6 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 96 [08:21:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [08:21:58]wFMCommunicate OK [08:21:58]CreateOFDProtocolMessage done [08:21:58]OFDSenderStorePacket 63766 [08:21:58]StoreOFDPacket docnum=63766 [08:21:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0F 01 00 00 1C 3D 07 01 81 4C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1A 6D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 FB CE 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 CE 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 4C 00 00 00 00 07 04 06 00 C0 CE 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 25 7D 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 16 F9 00 00 35 04 06 00 76 6C 6B 73 94 8C 19 8A 11 16 34 19 B4 0E [08:21:58]CheckFolder [08:21:58]dirname=/storage/ofd_packets [08:21:58]CheckFolder done [08:21:58]ProducePacketName [08:21:58]name=ofd_packets/00063766 [08:21:58]NVStorageSaveData ofd_packets/00063766 [08:21:58]File name is /storage/ofd_packets/00063766 [08:21:58]Write 301 bytes [08:21:58]NVStorageSaveData done [08:21:58]OFDSenderStorePacket done [08:21:58]KKMCreateOFDPacket done [08:21:58]NVStorageSaveData kkm_last_timestamp [08:21:58]File name is /storage/kkm_last_timestamp [08:21:58]Write 4 bytes [08:21:58]NVStorageSaveData done [08:21:58]ExternCall_PrintAddStr [08:21:58]wPrintStart [08:21:58]Write to MH i2c: 01 00 00 C7 04 CB [08:21:58]Write i2c OK [08:21:58]MH_I2C_Read... [08:21:58]Read from MH i2c: 01 [08:21:58]MH_I2C_Read... [08:21:58]Read from MH i2c: 01 07 00 [08:21:58]MH_I2C_Read... [08:21:58]Read from MH i2c: 01 07 00 C7 04 00 00 00 00 00 FF 0F E0 [08:21:58]RasterBufferAndPrint [08:21:58]line Счет N : (1)543368 [08:21:58]line ИНН: 02508201610067 [08:21:58]line Контрольно-Кассовый Чек [08:21:58]line ПРОДАЖА [08:21:58]line ТРК (МРК, ГНК) : 22 [08:21:58]line Товар: 2710124130 [08:21:58]line Аи-92-К-5 [08:21:58]line 27.930 * 65.90 [08:21:58]line = 1840.59 [08:21:58]line НДС 12% НСП 1% [08:21:58]line > о реализуемом товаре [08:21:58]line ОКРУГЛЕНИЕ: -0.59 [08:21:58]line ИТОГО: 1840.00 [08:21:58]line Внесено: 1840.00 [08:21:58]line СДАЧА: 0.00 [08:21:58]line НСП 1% : 16.29 [08:21:58]line НДС 12% : 195.46 [08:21:58]line Наличными: 1840.00 [08:21:58]line Безнал.: 0.00 [08:21:58]line Место: АЗС № 117 "Партнер Нефть" [08:21:58]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [08:21:58]line СНО: Общий режим [08:21:58]line Чек 24 03.06.2024 08:21 [08:21:58]line Смена: 373 ФФД: 1.0 [08:21:58]line ЗНМ: 0300000031 [08:21:58]line РНМ: 0000000000092737 [08:21:58]line Версия ККМ: 001 [08:21:58]line [08:21:58]line Дисконтная программа [08:21:58]line АИ-92 [08:21:58]line номер 117 [08:21:58]line сэкономлено 27.93 сом [08:21:58]line ФМ: 0000000000875074 [08:21:58]line ФД: 63766 [08:21:58]line ФПД: 130208031282316 [08:21:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T082157&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63766&fm=130208031282316&tin=02508201610067®Number=0000000000092737&sum=184000 [08:21:58]OFD Sender: Processing packet 63766 [packets to send 14, broken 13] [08:21:58]ProducePacketName [08:21:58]name=ofd_packets/00063766 [08:21:58]OFD Sender: To server: pG, [08:21:58]CommunicateWithHost lk.salyk.kg:30040 [08:21:58]ConnectInit lk.salyk.kg [08:21:58]written 0, free lines is 4095 [08:21:58]Connected sock=11 [08:21:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0F 01 00 00 1C 3D 07 01 81 4C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1A 6D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 FB CE 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 CE 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 4C 00 00 00 00 07 04 06 00 C0 CE 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 25 7D 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 16 F9 00 00 35 04 06 00 76 6C 6B 73 94 8C 19 8A 11 16 34 19 B4 0E [08:21:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 E4 48 47 00 4B 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 35 30 37 34 10 04 04 00 16 F9 00 00 F4 03 04 00 F7 28 5D 66 B6 04 01 00 00 7E AF B2 1F F2 48 5D DD [08:21:58]CommunicateWithHost err = 0 [08:21:58]CheckOFDResponse [08:21:58]1017 (14) - 77093643461234 [08:21:58]1041 (16) - 0000000000875074 [08:21:58]1040 (4) - 63766 [08:21:58]1012 (4) - 03.06.2024 02:22 [08:21:58]1206 (1) - 0 [08:21:58]OFD Sender: Remove packet 63766 [08:21:58]ProducePacketName [08:21:58]name=ofd_packets/00063766 [08:21:58]NVStorageDeleteData [08:21:59]Write to MH i2c: 01 00 00 F7 04 FB [08:21:59]Write i2c OK [08:21:59]MH_I2C_Read... [08:21:59]Read from MH i2c: 01 [08:21:59]MH_I2C_Read... [08:21:59]Read from MH i2c: 01 07 00 [08:21:59]MH_I2C_Read... [08:21:59]Read from MH i2c: 01 07 00 F7 04 00 00 00 00 00 87 0C 95 [08:21:59]RasterBufferAndPrint [08:21:59]line [08:21:59]line [08:21:59]line [08:21:59]line [08:21:59]line [08:21:59]written 0, free lines is 3213 [08:21:59]MH_Cut [08:21:59]Write to MH i2c: D1 01 00 FE 04 01 D4 [08:21:59]Write i2c OK [08:21:59]MH_I2C_Read... [08:21:59]Read from MH i2c: D1 [08:21:59]MH_I2C_Read... [08:21:59]Read from MH i2c: D1 01 00 [08:21:59]MH_I2C_Read... [08:21:59]Read from MH i2c: D1 01 00 FE 04 00 D3 [08:21:59]Write to MH i2c: 01 00 00 FF 04 03 [08:21:59]Write i2c OK [08:21:59]MH_I2C_Read... [08:21:59]OFD Sender: No OFD packet to send [08:21:59]*** Cut start [08:21:59]*** Partial cut [08:21:59]*** CUTSNS_PIN = 1 [08:22:00]*** CUTSNS_PIN = 0 [08:22:00]*** Brake cut motor [08:22:00]Read from MH i2c: 01 [08:22:00]MH_I2C_Read... [08:22:00]*** Stop cut motor [08:22:00]*** Cut end [08:22:00]Read from MH i2c: 01 07 00 [08:22:00]MH_I2C_Read... [08:22:00]Read from MH i2c: 01 07 00 FF 04 00 00 00 00 00 FF 0F 18 [08:22:00]process_action close_receipt done [08:22:00]requested_data is exist [08:22:00]produce_requested_data [08:22:00]requested_item fm.sn is exist - process it [08:22:00]wFMCommunicate request_size=4 [08:22:00]MH_SAM_APDU [08:22:00]CAPDU: 80 11 00 00 [08:22:00]Write to MH i2c: E2 08 00 00 05 80 11 00 00 00 00 00 00 7F [08:22:00]Write i2c OK [08:22:00]MH_I2C_Read... [08:22:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:22:00]Read from MH i2c: E2 [08:22:00]MH_I2C_Read... [08:22:00]Read from MH i2c: E2 17 00 [08:22:00]MH_I2C_Read... [08:22:00]Read from MH i2c: E2 17 00 00 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 D1 [08:22:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [08:22:00]wFMCommunicate OK [08:22:00]requested_item fd.num is exist - process it [08:22:00]SAM_PROTO_GetFieldsCounters [08:22:00]wFMCommunicate request_size=4 [08:22:00]MH_SAM_APDU [08:22:00]CAPDU: 80 13 00 00 [08:22:00]Write to MH i2c: E2 08 00 01 05 80 13 00 00 00 00 00 00 82 [08:22:00]Write i2c OK [08:22:00]MH_I2C_Read... [08:22:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:22:00]Read from MH i2c: E2 [08:22:00]MH_I2C_Read... [08:22:00]Read from MH i2c: E2 62 00 [08:22:00]MH_I2C_Read... [08:22:00]Read from MH i2c: E2 62 00 01 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 16 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 72 [08:22: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 16 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:22:00]wFMCommunicate OK [08:22:00]SAM_PROTO_GetFieldsCounters done [08:22:00]requested_item shift.num is exist - process it [08:22:00]requested_item shift.opened is exist - process it [08:22:00]req_shift_opened [08:22:00]FM_GetShiftState [08:22:00]SAM_PROTO_GetShiftState [08:22:00]wFMCommunicate request_size=4 [08:22:00]MH_SAM_APDU [08:22:00]CAPDU: 80 13 01 00 [08:22:00]Write to MH i2c: E2 08 00 02 05 80 13 01 00 00 00 00 00 84 [08:22:00]Write i2c OK [08:22:00]MH_I2C_Read... [08:22:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:22:00]Read from MH i2c: E2 [08:22:00]MH_I2C_Read... [08:22:00]Read from MH i2c: E2 0E 00 [08:22:00]MH_I2C_Read... [08:22:00]Read from MH i2c: E2 0E 00 02 05 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 50 [08:22:00]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [08:22:00]wFMCommunicate OK [08:22:00]SAM_PROTO_GetShiftState done [08:22:00]FM_GetShiftState done [08:22:00]req_shift_opened done [08:22:00]requested_item shift.open_date is exist - process it [08:22:00]req_shift_open_date [08:22:00]req_shift_open_date done [08:22:00]produce_requested_data done [08:22:00]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63766,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [08:22:00]process_action_free close_receipt [08:22:00]json_value_free [08:22:00]json_value_free done [08:22:00]process_json_proto returns [08:22:00]Send response to host [08:22:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63766,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [08:22:00]free response buf [08:22:00]execute_script done [08:22:00]execute_script returns [08:22:00]free content buf [08:22:00]Sock 7.Close socket [08:22:00]Sock 7.Thread stoped [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:34]OFD Sender: No OFD packet to send [08:24:39]OFD Sender: No OFD packet to send [08:24:44]OFD Sender: No OFD packet to send [08:24:49]OFD Sender: No OFD packet to send [08:24:54]OFD Sender: No OFD packet to send [08:24:59]OFD Sender: No OFD packet to send [08:25:04]OFD Sender: No OFD packet to send [08:25:09]OFD Sender: No OFD packet to send [08:25:14]OFD Sender: No OFD packet to send [08:25:19]OFD Sender: No OFD packet to send [08:25:24]OFD Sender: No OFD packet to send [08:25:29]OFD Sender: No OFD packet to send [08:25:34]OFD Sender: No OFD packet to send [08:25:39]OFD Sender: No OFD packet to send [08:25:44]OFD Sender: No OFD packet to send [08:25:49]OFD Sender: No OFD packet to send [08:25:54]OFD Sender: No OFD packet to send [08:25:59]OFD Sender: No OFD packet to send [08:26:04]OFD Sender: No OFD packet to send [08:26:09]OFD Sender: No OFD packet to send [08:26:14]OFD Sender: No OFD packet to send [08:26:19]OFD Sender: No OFD packet to send [08:26:24]OFD Sender: No OFD packet to send [08:26:29]OFD Sender: No OFD packet to send [08:26:34]OFD Sender: No OFD packet to send [08:26:39]OFD Sender: No OFD packet to send [08:26:44]OFD Sender: No OFD packet to send [08:26:49]OFD Sender: No OFD packet to send [08:26:54]OFD Sender: No OFD packet to send [08:26:59]OFD Sender: No OFD packet to send [08:27:04]OFD Sender: No OFD packet to send [08:27:09]OFD Sender: No OFD packet to send [08:27:14]OFD Sender: No OFD packet to send [08:27:19]OFD Sender: No OFD packet to send [08:27:24]OFD Sender: No OFD packet to send [08:27:29]OFD Sender: No OFD packet to send [08:27:34]OFD Sender: No OFD packet to send [08:27:39]OFD Sender: No OFD packet to send [08:27:44]OFD Sender: No OFD packet to send [08:27:49]OFD Sender: No OFD packet to send [08:27:54]OFD Sender: No OFD packet to send [08:27:59]OFD Sender: No OFD packet to send [08:28:04]OFD Sender: No OFD packet to send [08:28:09]OFD Sender: No OFD packet to send [08:28:14]OFD Sender: No OFD packet to send [08:28:19]OFD Sender: No OFD packet to send [08:28:24]OFD Sender: No OFD packet to send [08:28:29]OFD Sender: No OFD packet to send [08:28:34]OFD Sender: No OFD packet to send [08:28:39]OFD Sender: No OFD packet to send [08:28:44]OFD Sender: No OFD packet to send [08:28:49]OFD Sender: No OFD packet to send [08:28:54]OFD Sender: No OFD packet to send [08:28:59]OFD Sender: No OFD packet to send [08:29:04]OFD Sender: No OFD packet to send [08:29:09]OFD Sender: No OFD packet to send [08:29:10]accept exits with 9 [08:29:10]New connection [08:29:10]New thread 3067518308 created [08:29:10]Thread 3067374948 joined [08:29:10]Waiting for new connection... [08:29:10] Sock 9.Parse request [08:29:10]Sock 9.Check first char [08:29:10]Sock 9.First char is OK [08:29:10]request: POST /json_proto HTTP/1.0 [08:29:10]Method: POST [08:29:10]URL: /json_proto [08:29:10]Method is POST - this is cgi request [08:29:10]url: /json_proto [08:29:10]query_string will be loaded in cgi processing [08:29:10]execute_cgi json_proto POST (null) [08:29:10]execute_cgi path=json_proto method=POST [08:29:10]POST find Content-Length [08:29:10]Host: 172.17.60.69:8080 [08:29:10]Content-Length: 882 [08:29:10]Content-Type: application/json [08:29:10] [08:29:10]POST finish read [08:29:10]Found Content-Length = 882 [08:29:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73355", "tax_sys" : 0, "items" : [ { "code": "2000036240010", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 (GABB TRADE)", "price" : 115.00, "quantity" : 2.000, "sum" : 230.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000032710015", "name": "\u0421\u043E\u0447\u043D\u0438\u043A DC \u0442\u0432\u043E\u0440\u043E\u0433 75\u0433", "price" : 35.00, "quantity" : 2.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 300.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:29:10]execute_script... [08:29:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73355", "tax_sys" : 0, "items" : [ { "code": "2000036240010", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 (GABB TRADE)", "price" : 115.00, "quantity" : 2.000, "sum" : 230.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000032710015", "name": "\u0421\u043E\u0447\u043D\u0438\u043A DC \u0442\u0432\u043E\u0440\u043E\u0433 75\u0433", "price" : 35.00, "quantity" : 2.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 300.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:29:10]POST & json_proto [08:29:10]process_json_proto [08:29:10]json parsed OK: [08:29:10]protocol is kg_v1.0 [08:29:10]action value=close_receipt [08:29:10]process_action close_receipt [08:29:10]cmd_close_receipt [08:29:10]MH_GetDate [08:29:10]Write to MH i2c: F0 00 00 03 05 F7 [08:29:10]Write i2c OK [08:29:10]MH_I2C_Read... [08:29:10]Read from MH i2c: F0 [08:29:10]MH_I2C_Read... [08:29:10]Read from MH i2c: F0 09 00 [08:29:10]MH_I2C_Read... [08:29:10]Read from MH i2c: F0 09 00 03 05 00 D8 7E 5D 66 6A 96 4A 66 C9 [08:29:10]GetLastDocTimeStamp 1717402917 [08:29:10]current date 1717403352 [08:29:10]FM_GetShiftState [08:29:10]SAM_PROTO_GetShiftState [08:29:10]wFMCommunicate request_size=4 [08:29:10]MH_SAM_APDU [08:29:10]CAPDU: 80 13 01 00 [08:29:10]Write to MH i2c: E2 08 00 04 05 80 13 01 00 00 00 00 00 86 [08:29:10]Write i2c OK [08:29:10]MH_I2C_Read... [08:29:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:29:10]Read from MH i2c: E2 [08:29:10]MH_I2C_Read... [08:29:10]Read from MH i2c: E2 0E 00 [08:29:10]MH_I2C_Read... [08:29:10]Read from MH i2c: E2 0E 00 04 05 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 52 [08:29:10]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [08:29:10]wFMCommunicate OK [08:29:10]SAM_PROTO_GetShiftState done [08:29:10]FM_GetShiftState done [08:29:10]opened in 1717373173 [08:29:10]opened+sec_in_day 1717459573 [08:29:10]quantity*price = 23000 [08:29:10]sum+1 = 23001 [08:29:10]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000032710015 Сочник DC творог 75г 2.000 * 35.00 = 70.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 300.00 НСП 1% : 2.65 НДС 12% : 31.85 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 25 03.06.2024 08:29 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63767 ФПД: 153680522507104 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T082912&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63767&fm=153680522507104&tin=02508201610067®Number=0000000000092737&sum=30000 0 [08:29:12]StoreToDocumentArchive [08:29:12]shift 373 fd 63767 [08:29:12]save to /storage/0373/doc_00063767 [08:29:12]save last doc name /storage/0373/doc_00063767 to /storage/kkm_last_doc_name [08:29:12]save OK [08:29:12]Clear old archive folders... [08:29:12]ProcessDocumentItem done err = 0, tmpTLVsize=379 [08:29:12]tlvbuf is 00D2A4E0 [08:29:12]SAM_PROTO_ClearQueue [08:29:12]wFMCommunicate request_size=4 [08:29:12]MH_SAM_APDU [08:29:12]CAPDU: 80 09 00 00 [08:29:12]Write to MH i2c: E2 08 00 11 05 80 09 00 00 00 00 00 00 88 [08:29:12]Write i2c OK [08:29:12]MH_I2C_Read... [08:29:12]Read from MH i2c: E2 [08:29:12]MH_I2C_Read... [08:29:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:29:12]Read from MH i2c: E2 03 00 [08:29:12]MH_I2C_Read... [08:29:12]Read from MH i2c: E2 03 00 11 05 00 90 00 8A [08:29:12]RAPDU: 90 00 [08:29:12]wFMCommunicate OK [08:29:12]SAM_PROTO_ClearQueue done [08:29:12]KKMCreateOFDPacket [08:29:12]OFDProtocolAddRootSTLVToBuf [08:29:12]FM_MakeSignedData [08:29:12]FM_MakeSignedData [08:29:12]SAM_PROTO_SignData [08:29:12]wFMCommunicate request_size=4 [08:29:12]MH_SAM_APDU [08:29:12]CAPDU: 80 0D 01 02 [08:29:12]Write to MH i2c: E2 08 00 12 05 80 0D 01 02 00 00 00 00 90 [08:29:12]Write i2c OK [08:29:12]MH_I2C_Read... [08:29:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:29:12]Read from MH i2c: E2 [08:29:12]MH_I2C_Read... [08:29:12]Read from MH i2c: E2 03 00 [08:29:12]MH_I2C_Read... [08:29:12]Read from MH i2c: E2 03 00 12 05 00 90 00 8B [08:29:12]RAPDU: 90 00 [08:29:12]wFMCommunicate OK [08:29:12]wFMCommunicate request_size=255 [08:29:12]MH_SAM_APDU [08:29:12]CAPDU: 80 0D 02 02 FA 03 00 7B 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 32 30 30 30 30 33 32 37 31 30 30 31 35 06 04 21 00 D0 A1 D0 BE D1 87 D0 BD D0 B8 D0 BA 20 44 43 20 D1 82 D0 B2 D0 BE D1 80 D0 BE D0 B3 20 37 35 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 [08:29:12]Write to MH i2c: E2 02 01 13 05 80 0D 02 02 FA 00 03 00 7B 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 32 30 30 30 30 33 32 37 31 30 30 31 35 06 04 21 00 D0 A1 D0 BE D1 87 D0 BD D0 B8 D0 BA 20 44 43 20 D1 82 D0 B2 D0 BE D1 80 D0 BE D0 B3 20 37 35 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 00 9E [08:29:12]Write i2c OK [08:29:12]MH_I2C_Read... [08:29:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:29:12]Read from MH i2c: E2 [08:29:12]MH_I2C_Read... [08:29:12]Read from MH i2c: E2 03 00 [08:29:12]MH_I2C_Read... [08:29:12]Read from MH i2c: E2 03 00 13 05 00 90 00 8C [08:29:12]RAPDU: 90 00 [08:29:12]wFMCommunicate OK [08:29:12]wFMCommunicate request_size=138 [08:29:12]MH_SAM_APDU [08:29:12]CAPDU: 80 0D 02 02 85 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 71 0C 00 00 00 00 07 04 06 00 30 75 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 D8 7E 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 17 F9 00 00 35 04 06 00 8B C5 88 F3 F3 60 [08:29:12]Write to MH i2c: E2 8D 00 14 05 80 0D 02 02 85 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 71 0C 00 00 00 00 07 04 06 00 30 75 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 D8 7E 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 17 F9 00 00 35 04 06 00 8B C5 88 F3 F3 60 00 00 C4 [08:29:12]Write i2c OK [08:29:12]MH_I2C_Read... [08:29:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:29:12]Read from MH i2c: E2 [08:29:12]MH_I2C_Read... [08:29:12]Read from MH i2c: E2 03 00 [08:29:12]MH_I2C_Read... [08:29:12]Read from MH i2c: E2 03 00 14 05 00 90 00 8D [08:29:12]RAPDU: 90 00 [08:29:12]wFMCommunicate OK [08:29:12]wFMCommunicate request_size=4 [08:29:12]MH_SAM_APDU [08:29:12]CAPDU: 80 0D 03 02 [08:29:12]Write to MH i2c: E2 08 00 15 05 80 0D 03 02 00 00 00 00 95 [08:29:12]Write i2c OK [08:29:12]MH_I2C_Read... [08:29:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:29:12]Read from MH i2c: E2 [08:29:12]MH_I2C_Read... [08:29:12]Read from MH i2c: E2 0B 00 [08:29:12]MH_I2C_Read... [08:29:12]Read from MH i2c: E2 0B 00 15 05 00 D1 9A 1B E0 63 22 1F DB 90 00 7B [08:29:12]RAPDU: D1 9A 1B E0 63 22 1F DB 90 00 [08:29:12]wFMCommunicate OK [08:29:12]SAM_PROTO_SignData done [08:29:12]FM_MakeSignedData done [08:29:12]CreateOFDProtocolMessage [08:29:12]wFMCommunicate request_size=4 [08:29:12]MH_SAM_APDU [08:29:12]CAPDU: 80 11 00 00 [08:29:12]Write to MH i2c: E2 08 00 16 05 80 11 00 00 00 00 00 00 95 [08:29:12]Write i2c OK [08:29:12]MH_I2C_Read... [08:29:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:29:12]Read from MH i2c: E2 [08:29:12]MH_I2C_Read... [08:29:12]Read from MH i2c: E2 17 00 [08:29:12]MH_I2C_Read... [08:29:12]Read from MH i2c: E2 17 00 16 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 E7 [08:29:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [08:29:12]wFMCommunicate OK [08:29:12]CreateOFDProtocolMessage done [08:29:12]OFDSenderStorePacket 63767 [08:29:12]StoreOFDPacket docnum=63767 [08:29:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 8F 01 00 00 2B D6 87 01 BC F0 5A 03 01 00 03 00 7B 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 32 30 30 30 30 33 32 37 31 30 30 31 35 06 04 21 00 D0 A1 D0 BE D1 87 D0 BD D0 B8 D0 BA 20 44 43 20 D1 82 D0 B2 D0 BE D1 80 D0 BE D0 B3 20 37 35 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 71 0C 00 00 00 00 07 04 06 00 30 75 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 D8 7E 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 17 F9 00 00 35 04 06 00 8B C5 88 F3 F3 60 D1 9A 1B E0 63 22 1F DB [08:29:12]CheckFolder [08:29:12]dirname=/storage/ofd_packets [08:29:12]CheckFolder done [08:29:12]ProducePacketName [08:29:12]name=ofd_packets/00063767 [08:29:12]NVStorageSaveData ofd_packets/00063767 [08:29:12]File name is /storage/ofd_packets/00063767 [08:29:12]Write 429 bytes [08:29:12]NVStorageSaveData done [08:29:12]OFDSenderStorePacket done [08:29:12]KKMCreateOFDPacket done [08:29:12]NVStorageSaveData kkm_last_timestamp [08:29:12]File name is /storage/kkm_last_timestamp [08:29:12]Write 4 bytes [08:29:12]NVStorageSaveData done [08:29:12]ExternCall_PrintAddStr [08:29:12]wPrintStart [08:29:12]Write to MH i2c: 01 00 00 17 05 1C [08:29:12]Write i2c OK [08:29:12]MH_I2C_Read... [08:29:12]Read from MH i2c: 01 [08:29:12]MH_I2C_Read... [08:29:12]Read from MH i2c: 01 07 00 [08:29:12]MH_I2C_Read... [08:29:12]Read from MH i2c: 01 07 00 17 05 00 00 00 00 00 FF 0F 31 [08:29:12]RasterBufferAndPrint [08:29:12]line Счет N : (3)73355 [08:29:12]line ИНН: 02508201610067 [08:29:12]line Контрольно-Кассовый Чек [08:29:12]line ПРОДАЖА [08:29:12]line Товар: 2000036240010 [08:29:12]line Кофе Латте (GABB TRADE) [08:29:12]line 2.000 * 115.00 [08:29:12]line = 230.00 [08:29:12]line НДС 12% НСП 1% [08:29:12]line > о реализуемом товаре [08:29:12]line Товар: 2000032710015 [08:29:12]line Сочник DC творог 75г [08:29:12]line 2.000 * 35.00 [08:29:12]line = 70.00 [08:29:12]line НДС 12% НСП 1% [08:29:12]line > о реализуемом товаре [08:29:12]line ИТОГО: 300.00 [08:29:12]line НСП 1% : 2.65 [08:29:12]line НДС 12% : 31.85 [08:29:12]line Наличными: 300.00 [08:29:12]line Безнал.: 0.00 [08:29:12]line Место: АЗС № 117 "Партнер Нефть" [08:29:12]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [08:29:12]line СНО: Общий режим [08:29:12]line Чек 25 03.06.2024 08:29 [08:29:12]line Смена: 373 ФФД: 1.0 [08:29:12]line ЗНМ: 0300000031 [08:29:12]line РНМ: 0000000000092737 [08:29:12]line Версия ККМ: 001 [08:29:12]line ФМ: 0000000000875074 [08:29:12]line ФД: 63767 [08:29:12]line ФПД: 153680522507104 [08:29:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T082912&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63767&fm=153680522507104&tin=02508201610067®Number=0000000000092737&sum=30000 [08:29:12]line 0 [08:29:12]OFD Sender: Processing packet 63767 [packets to send 14, broken 13] [08:29:12]ProducePacketName [08:29:12]name=ofd_packets/00063767 [08:29:12]OFD Sender: To server: pG, [08:29:12]CommunicateWithHost lk.salyk.kg:30040 [08:29:12]ConnectInit lk.salyk.kg [08:29:12]written 0, free lines is 4095 [08:29:13]Connected sock=10 [08:29:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 8F 01 00 00 2B D6 87 01 BC F0 5A 03 01 00 03 00 7B 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 32 30 30 30 30 33 32 37 31 30 30 31 35 06 04 21 00 D0 A1 D0 BE D1 87 D0 BD D0 B8 D0 BA 20 44 43 20 D1 82 D0 B2 D0 BE D1 80 D0 BE D0 B3 20 37 35 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 71 0C 00 00 00 00 07 04 06 00 30 75 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 D8 7E 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 17 F9 00 00 35 04 06 00 8B C5 88 F3 F3 60 D1 9A 1B E0 63 22 1F DB [08:29:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 3E 16 47 00 16 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 35 30 37 34 10 04 04 00 17 F9 00 00 F4 03 04 00 AA 2A 5D 66 B6 04 01 00 00 8A 98 C0 A4 26 38 85 87 [08:29:13]CommunicateWithHost err = 0 [08:29:13]CheckOFDResponse [08:29:13]1017 (14) - 77093643461234 [08:29:13]1041 (16) - 0000000000875074 [08:29:13]1040 (4) - 63767 [08:29:13]1012 (4) - 03.06.2024 02:30 [08:29:13]1206 (1) - 0 [08:29:13]OFD Sender: Remove packet 63767 [08:29:13]ProducePacketName [08:29:13]name=ofd_packets/00063767 [08:29:13]NVStorageDeleteData [08:29:13]Write to MH i2c: 01 00 00 45 05 4A [08:29:13]Write i2c OK [08:29:13]MH_I2C_Read... [08:29:13]Read from MH i2c: 01 [08:29:13]MH_I2C_Read... [08:29:13]Read from MH i2c: 01 07 00 [08:29:13]MH_I2C_Read... [08:29:13]Read from MH i2c: 01 07 00 45 05 00 00 00 00 00 B4 0C 11 [08:29:13]RasterBufferAndPrint [08:29:13]line [08:29:13]line [08:29:13]line [08:29:13]line [08:29:13]line [08:29:13]written 0, free lines is 3258 [08:29:13]MH_Cut [08:29:13]Write to MH i2c: D1 01 00 4C 05 01 23 [08:29:13]Write i2c OK [08:29:13]MH_I2C_Read... [08:29:13]Read from MH i2c: D1 [08:29:13]MH_I2C_Read... [08:29:13]Read from MH i2c: D1 01 00 [08:29:13]MH_I2C_Read... [08:29:13]Read from MH i2c: D1 01 00 4C 05 00 22 [08:29:13]Write to MH i2c: 01 00 00 4D 05 52 [08:29:13]Write i2c OK [08:29:13]MH_I2C_Read... [08:29:13]OFD Sender: No OFD packet to send [08:29:14]*** Cut start [08:29:14]*** Partial cut [08:29:14]*** CUTSNS_PIN = 1 [08:29:14]*** CUTSNS_PIN = 0 [08:29:14]*** Brake cut motor [08:29:14]Read from MH i2c: 01 [08:29:14]MH_I2C_Read... [08:29:14]*** Stop cut motor [08:29:14]*** Cut end [08:29:14]Read from MH i2c: 01 07 00 [08:29:14]MH_I2C_Read... [08:29:14]Read from MH i2c: 01 07 00 4D 05 00 00 00 00 00 FF 0F 67 [08:29:14]process_action close_receipt done [08:29:14]requested_data is exist [08:29:14]produce_requested_data [08:29:14]requested_item fm.sn is exist - process it [08:29:14]wFMCommunicate request_size=4 [08:29:14]MH_SAM_APDU [08:29:14]CAPDU: 80 11 00 00 [08:29:14]Write to MH i2c: E2 08 00 4E 05 80 11 00 00 00 00 00 00 CD [08:29:14]Write i2c OK [08:29:14]MH_I2C_Read... [08:29:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:29:14]Read from MH i2c: E2 [08:29:14]MH_I2C_Read... [08:29:14]Read from MH i2c: E2 17 00 [08:29:14]MH_I2C_Read... [08:29:14]Read from MH i2c: E2 17 00 4E 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 1F [08:29:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [08:29:14]wFMCommunicate OK [08:29:14]requested_item fd.num is exist - process it [08:29:14]SAM_PROTO_GetFieldsCounters [08:29:14]wFMCommunicate request_size=4 [08:29:14]MH_SAM_APDU [08:29:14]CAPDU: 80 13 00 00 [08:29:14]Write to MH i2c: E2 08 00 4F 05 80 13 00 00 00 00 00 00 D0 [08:29:14]Write i2c OK [08:29:14]MH_I2C_Read... [08:29:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:29:15]Read from MH i2c: E2 [08:29:15]MH_I2C_Read... [08:29:15]Read from MH i2c: E2 62 00 [08:29:15]MH_I2C_Read... [08:29:15]Read from MH i2c: E2 62 00 4F 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 17 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 C4 [08:29:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 17 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:29:15]wFMCommunicate OK [08:29:15]SAM_PROTO_GetFieldsCounters done [08:29:15]requested_item shift.num is exist - process it [08:29:15]requested_item shift.opened is exist - process it [08:29:15]req_shift_opened [08:29:15]FM_GetShiftState [08:29:15]SAM_PROTO_GetShiftState [08:29:15]wFMCommunicate request_size=4 [08:29:15]MH_SAM_APDU [08:29:15]CAPDU: 80 13 01 00 [08:29:15]Write to MH i2c: E2 08 00 50 05 80 13 01 00 00 00 00 00 D2 [08:29:15]Write i2c OK [08:29:15]MH_I2C_Read... [08:29:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:29:15]Read from MH i2c: E2 [08:29:15]MH_I2C_Read... [08:29:15]Read from MH i2c: E2 0E 00 [08:29:15]MH_I2C_Read... [08:29:15]Read from MH i2c: E2 0E 00 50 05 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 9E [08:29:15]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [08:29:15]wFMCommunicate OK [08:29:15]SAM_PROTO_GetShiftState done [08:29:15]FM_GetShiftState done [08:29:15]req_shift_opened done [08:29:15]requested_item shift.open_date is exist - process it [08:29:15]req_shift_open_date [08:29:15]req_shift_open_date done [08:29:15]produce_requested_data done [08:29:15]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63767,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [08:29:15]process_action_free close_receipt [08:29:15]json_value_free [08:29:15]json_value_free done [08:29:15]process_json_proto returns [08:29:15]Send response to host [08:29:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63767,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [08:29:15]free response buf [08:29:15]execute_script done [08:29:15]execute_script returns [08:29:15]free content buf [08:29:15]Sock 9.Close socket [08:29:15]Sock 9.Thread stoped [08:29:18]OFD Sender: No OFD packet to send [08:29:23]OFD Sender: No OFD packet to send [08:29:28]OFD Sender: No OFD packet to send [08:29:33]OFD Sender: No OFD packet to send [08:29:38]OFD Sender: No OFD packet to send [08:29:43]OFD Sender: No OFD packet to send [08:29:48]OFD Sender: No OFD packet to send [08:29:53]OFD Sender: No OFD packet to send [08:29:58]OFD Sender: No OFD packet to send [08:30:03]OFD Sender: No OFD packet to send [08:30:08]OFD Sender: No OFD packet to send [08:30:13]OFD Sender: No OFD packet to send [08:30:18]OFD Sender: No OFD packet to send [08:30:21]accept exits with 7 [08:30:21]New connection [08:30:21]New thread 3067374948 created [08:30:21]Thread 3067518308 joined [08:30:21]Waiting for new connection... [08:30:21] Sock 7.Parse request [08:30:21]Sock 7.Check first char [08:30:21]Sock 7.First char is OK [08:30:21]request: POST /json_proto HTTP/1.0 [08:30:21]Method: POST [08:30:21]URL: /json_proto [08:30:21]Method is POST - this is cgi request [08:30:21]url: /json_proto [08:30:21]query_string will be loaded in cgi processing [08:30:21]execute_cgi json_proto POST (null) [08:30:21]execute_cgi path=json_proto method=POST [08:30:21]POST find Content-Length [08:30:21]Host: 172.17.60.69:8080 [08:30:21]Content-Length: 645 [08:30:21]Content-Type: application/json [08:30:21] [08:30:21]POST finish read [08:30:21]Found Content-Length = 645 [08:30:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73356", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:30:21]execute_script... [08: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 : (3)73356", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:30:21]POST & json_proto [08:30:21]process_json_proto [08:30:21]json parsed OK: [08:30:21]protocol is kg_v1.0 [08:30:21]action value=close_receipt [08:30:21]process_action close_receipt [08:30:21]cmd_close_receipt [08:30:21]MH_GetDate [08:30:21]Write to MH i2c: F0 00 00 51 05 45 [08:30:21]Write i2c OK [08:30:21]MH_I2C_Read... [08:30:21]Read from MH i2c: F0 [08:30:21]MH_I2C_Read... [08:30:21]Read from MH i2c: F0 09 00 [08:30:21]MH_I2C_Read... [08:30:21]Read from MH i2c: F0 09 00 51 05 00 1F 7F 5D 66 6A 96 4A 66 5F [08:30:21]GetLastDocTimeStamp 1717403352 [08:30:21]current date 1717403423 [08:30:21]FM_GetShiftState [08:30:21]SAM_PROTO_GetShiftState [08:30:21]wFMCommunicate request_size=4 [08:30:21]MH_SAM_APDU [08:30:21]CAPDU: 80 13 01 00 [08:30:21]Write to MH i2c: E2 08 00 52 05 80 13 01 00 00 00 00 00 D4 [08:30:21]Write i2c OK [08:30:21]MH_I2C_Read... [08:30:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:30:21]Read from MH i2c: E2 [08:30:21]MH_I2C_Read... [08:30:21]Read from MH i2c: E2 0E 00 [08:30:21]MH_I2C_Read... [08:30:21]Read from MH i2c: E2 0E 00 52 05 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 A0 [08:30:21]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [08:30:21]wFMCommunicate OK [08:30:21]SAM_PROTO_GetShiftState done [08:30:21]FM_GetShiftState done [08:30:21]opened in 1717373173 [08:30:21]opened+sec_in_day 1717459573 [08:30:21]quantity*price = 12500 [08:30:21]sum+1 = 12501 [08:30:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 125.00 НСП 1% : 1.11 НДС 12% : 13.27 Наличными: 125.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 26 03.06.2024 08:30 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63768 ФПД: 227861383089170 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T083023&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63768&fm=227861383089170&tin=02508201610067®Number=0000000000092737&sum=12500 0 [08:30:22]StoreToDocumentArchive [08:30:22]shift 373 fd 63768 [08:30:22]save to /storage/0373/doc_00063768 [08:30:22]save last doc name /storage/0373/doc_00063768 to /storage/kkm_last_doc_name [08:30:22]save OK [08:30:22]Clear old archive folders... [08:30:22]ProcessDocumentItem done err = 0, tmpTLVsize=282 [08:30:22]tlvbuf is 00D28760 [08:30:22]SAM_PROTO_ClearQueue [08:30:22]wFMCommunicate request_size=4 [08:30:22]MH_SAM_APDU [08:30:22]CAPDU: 80 09 00 00 [08:30:22]Write to MH i2c: E2 08 00 5F 05 80 09 00 00 00 00 00 00 D6 [08:30:22]Write i2c OK [08:30:22]MH_I2C_Read... [08:30:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:30:23]Read from MH i2c: E2 [08:30:23]MH_I2C_Read... [08:30:23]Read from MH i2c: E2 03 00 [08:30:23]MH_I2C_Read... [08:30:23]Read from MH i2c: E2 03 00 5F 05 00 90 00 D8 [08:30:23]RAPDU: 90 00 [08:30:23]wFMCommunicate OK [08:30:23]SAM_PROTO_ClearQueue done [08:30:23]KKMCreateOFDPacket [08:30:23]OFDProtocolAddRootSTLVToBuf [08:30:23]FM_MakeSignedData [08:30:23]FM_MakeSignedData [08:30:23]SAM_PROTO_SignData [08:30:23]wFMCommunicate request_size=4 [08:30:23]MH_SAM_APDU [08:30:23]CAPDU: 80 0D 01 02 [08:30:23]Write to MH i2c: E2 08 00 60 05 80 0D 01 02 00 00 00 00 DE [08:30:23]Write i2c OK [08:30:23]MH_I2C_Read... [08:30:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:30:23]Read from MH i2c: E2 [08:30:23]MH_I2C_Read... [08:30:23]Read from MH i2c: E2 03 00 [08:30:23]MH_I2C_Read... [08:30:23]Read from MH i2c: E2 03 00 60 05 00 90 00 D9 [08:30:23]RAPDU: 90 00 [08:30:23]wFMCommunicate OK [08:30:23]wFMCommunicate request_size=255 [08:30:23]MH_SAM_APDU [08:30:23]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 1F 7F 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 [08:30:23]Write to MH i2c: E2 02 01 61 05 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 1F 7F 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 00 00 D0 [08:30:23]Write i2c OK [08:30:23]MH_I2C_Read... [08:30:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:30:23]Read from MH i2c: E2 [08:30:23]MH_I2C_Read... [08:30:23]Read from MH i2c: E2 03 00 [08:30:23]MH_I2C_Read... [08:30:23]Read from MH i2c: E2 03 00 61 05 00 90 00 DA [08:30:23]RAPDU: 90 00 [08:30:23]wFMCommunicate OK [08:30:23]wFMCommunicate request_size=41 [08:30:23]MH_SAM_APDU [08:30:23]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 18 F9 00 00 35 04 06 00 CF 3D 1C CC 0C 12 [08:30:23]Write to MH i2c: E2 2C 00 62 05 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 18 F9 00 00 35 04 06 00 CF 3D 1C CC 0C 12 00 00 D2 [08:30:23]Write i2c OK [08:30:23]MH_I2C_Read... [08:30:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:30:23]Read from MH i2c: E2 [08:30:23]MH_I2C_Read... [08:30:23]Read from MH i2c: E2 03 00 [08:30:23]MH_I2C_Read... [08:30:23]Read from MH i2c: E2 03 00 62 05 00 90 00 DB [08:30:23]RAPDU: 90 00 [08:30:23]wFMCommunicate OK [08:30:23]wFMCommunicate request_size=4 [08:30:23]MH_SAM_APDU [08:30:23]CAPDU: 80 0D 03 02 [08:30:23]Write to MH i2c: E2 08 00 63 05 80 0D 03 02 00 00 00 00 E3 [08:30:23]Write i2c OK [08:30:23]MH_I2C_Read... [08:30:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:30:23]Read from MH i2c: E2 [08:30:23]MH_I2C_Read... [08:30:23]Read from MH i2c: E2 0B 00 [08:30:23]MH_I2C_Read... [08:30:23]Read from MH i2c: E2 0B 00 63 05 00 C3 13 4D 98 42 0A C0 52 90 00 FD [08:30:23]RAPDU: C3 13 4D 98 42 0A C0 52 90 00 [08:30:23]wFMCommunicate OK [08:30:23]SAM_PROTO_SignData done [08:30:23]FM_MakeSignedData done [08:30:23]CreateOFDProtocolMessage [08:30:23]wFMCommunicate request_size=4 [08:30:23]MH_SAM_APDU [08:30:23]CAPDU: 80 11 00 00 [08:30:23]Write to MH i2c: E2 08 00 64 05 80 11 00 00 00 00 00 00 E3 [08:30:23]Write i2c OK [08:30:23]MH_I2C_Read... [08:30:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:30:23]Read from MH i2c: E2 [08:30:23]MH_I2C_Read... [08:30:23]Read from MH i2c: E2 17 00 [08:30:23]MH_I2C_Read... [08:30:23]Read from MH i2c: E2 17 00 64 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 35 [08:30:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [08:30:23]wFMCommunicate OK [08:30:23]CreateOFDProtocolMessage done [08:30:23]OFDSenderStorePacket 63768 [08:30:23]StoreOFDPacket docnum=63768 [08:30:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 2E 01 00 00 2F A8 26 01 D6 03 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 1F 7F 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 18 F9 00 00 35 04 06 00 CF 3D 1C CC 0C 12 C3 13 4D 98 42 0A C0 52 [08:30:23]CheckFolder [08:30:23]dirname=/storage/ofd_packets [08:30:23]CheckFolder done [08:30:23]ProducePacketName [08:30:23]name=ofd_packets/00063768 [08:30:23]NVStorageSaveData ofd_packets/00063768 [08:30:23]File name is /storage/ofd_packets/00063768 [08:30:23]Write 332 bytes [08:30:23]NVStorageSaveData done [08:30:23]OFDSenderStorePacket done [08:30:23]KKMCreateOFDPacket done [08:30:23]NVStorageSaveData kkm_last_timestamp [08:30:23]File name is /storage/kkm_last_timestamp [08:30:23]Write 4 bytes [08:30:23]NVStorageSaveData done [08:30:23]ExternCall_PrintAddStr [08:30:23]wPrintStart [08:30:23]Write to MH i2c: 01 00 00 65 05 6A [08:30:23]Write i2c OK [08:30:23]MH_I2C_Read... [08:30:23]Read from MH i2c: 01 [08:30:23]MH_I2C_Read... [08:30:23]Read from MH i2c: 01 07 00 [08:30:23]MH_I2C_Read... [08:30:23]Read from MH i2c: 01 07 00 65 05 00 00 00 00 00 FF 0F 7F [08:30:23]RasterBufferAndPrint [08:30:23]line Счет N : (3)73356 [08:30:23]line ИНН: 02508201610067 [08:30:23]line Контрольно-Кассовый Чек [08:30:23]line ПРОДАЖА [08:30:23]line Товар: 2000036220012 [08:30:23]line Кофе Капучино XL(GABB TRADE) [08:30:23]line 1.000 * 125.00 [08:30:23]line = 125.00 [08:30:23]line НДС 12% НСП 1% [08:30:23]line > о реализуемом товаре [08:30:23]line ИТОГО: 125.00 [08:30:23]line НСП 1% : 1.11 [08:30:23]line НДС 12% : 13.27 [08:30:23]line Наличными: 125.00 [08:30:23]line Безнал.: 0.00 [08:30:23]line Место: АЗС № 117 "Партнер Нефть" [08:30:23]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [08:30:23]line СНО: Общий режим [08:30:23]line Чек 26 03.06.2024 08:30 [08:30:23]line Смена: 373 ФФД: 1.0 [08:30:23]line ЗНМ: 0300000031 [08:30:23]line РНМ: 0000000000092737 [08:30:23]line Версия ККМ: 001 [08:30:23]line ФМ: 0000000000875074 [08:30:23]line ФД: 63768 [08:30:23]line ФПД: 227861383089170 [08:30:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T083023&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63768&fm=227861383089170&tin=02508201610067®Number=0000000000092737&sum=12500 [08:30:23]line 0 [08:30:23]OFD Sender: Processing packet 63768 [packets to send 14, broken 13] [08:30:23]ProducePacketName [08:30:23]name=ofd_packets/00063768 [08:30:23]OFD Sender: To server: pG, [08:30:23]CommunicateWithHost lk.salyk.kg:30040 [08:30:23]ConnectInit lk.salyk.kg [08:30:23]written 0, free lines is 4095 [08:30:23]Connected sock=10 [08: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 35 30 37 34 2E 01 00 00 2F A8 26 01 D6 03 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 1F 7F 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 18 F9 00 00 35 04 06 00 CF 3D 1C CC 0C 12 C3 13 4D 98 42 0A C0 52 [08:30:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 B5 C4 47 00 95 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 35 30 37 34 10 04 04 00 18 F9 00 00 F4 03 04 00 F1 2A 5D 66 B6 04 01 00 00 08 3C 79 03 42 B5 15 A9 [08:30:24]CommunicateWithHost err = 0 [08:30:24]CheckOFDResponse [08:30:24]1017 (14) - 77093643461234 [08:30:24]1041 (16) - 0000000000875074 [08:30:24]1040 (4) - 63768 [08:30:24]1012 (4) - 03.06.2024 02:31 [08:30:24]1206 (1) - 0 [08:30:24]OFD Sender: Remove packet 63768 [08:30:24]ProducePacketName [08:30:24]name=ofd_packets/00063768 [08:30:24]NVStorageDeleteData [08:30:24]Write to MH i2c: 01 00 00 8E 05 93 [08:30:24]Write i2c OK [08:30:24]MH_I2C_Read... [08:30:24]Read from MH i2c: 01 [08:30:24]MH_I2C_Read... [08:30:24]Read from MH i2c: 01 07 00 [08:30:24]MH_I2C_Read... [08:30:24]Read from MH i2c: 01 07 00 8E 05 00 00 00 00 00 F7 0C 9D [08:30:24]RasterBufferAndPrint [08:30:24]line [08:30:24]line [08:30:24]line [08:30:24]line [08:30:24]line [08:30:24]written 0, free lines is 3326 [08:30:24]MH_Cut [08:30:24]Write to MH i2c: D1 01 00 95 05 01 6C [08:30:24]Write i2c OK [08:30:24]MH_I2C_Read... [08:30:24]Read from MH i2c: D1 [08:30:24]MH_I2C_Read... [08:30:24]Read from MH i2c: D1 01 00 [08:30:24]MH_I2C_Read... [08:30:24]Read from MH i2c: D1 01 00 95 05 00 6B [08:30:24]Write to MH i2c: 01 00 00 96 05 9B [08:30:24]Write i2c OK [08:30:24]MH_I2C_Read... [08:30:24]OFD Sender: No OFD packet to send [08:30:25]*** Cut start [08:30:25]*** Partial cut [08:30:25]*** CUTSNS_PIN = 1 [08:30:25]*** CUTSNS_PIN = 0 [08:30:25]*** Brake cut motor [08:30:25]Read from MH i2c: 01 [08:30:25]MH_I2C_Read... [08:30:25]*** Stop cut motor [08:30:25]*** Cut end [08:30:25]Read from MH i2c: 01 07 00 [08:30:25]MH_I2C_Read... [08:30:25]Read from MH i2c: 01 07 00 96 05 00 00 00 00 00 FF 0F B0 [08:30:25]process_action close_receipt done [08:30:25]requested_data is exist [08:30:25]produce_requested_data [08:30:25]requested_item fm.sn is exist - process it [08:30:25]wFMCommunicate request_size=4 [08:30:25]MH_SAM_APDU [08:30:25]CAPDU: 80 11 00 00 [08:30:25]Write to MH i2c: E2 08 00 97 05 80 11 00 00 00 00 00 00 16 [08:30:25]Write i2c OK [08:30:25]MH_I2C_Read... [08:30:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:30:25]Read from MH i2c: E2 [08:30:25]MH_I2C_Read... [08:30:25]Read from MH i2c: E2 17 00 [08:30:25]MH_I2C_Read... [08:30:25]Read from MH i2c: E2 17 00 97 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 68 [08:30:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [08:30:25]wFMCommunicate OK [08:30:25]requested_item fd.num is exist - process it [08:30:25]SAM_PROTO_GetFieldsCounters [08:30:25]wFMCommunicate request_size=4 [08:30:25]MH_SAM_APDU [08:30:25]CAPDU: 80 13 00 00 [08:30:25]Write to MH i2c: E2 08 00 98 05 80 13 00 00 00 00 00 00 19 [08:30:25]Write i2c OK [08:30:25]MH_I2C_Read... [08:30:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:30:25]Read from MH i2c: E2 [08:30:25]MH_I2C_Read... [08:30:25]Read from MH i2c: E2 62 00 [08:30:25]MH_I2C_Read... [08:30:25]Read from MH i2c: E2 62 00 98 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 18 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 11 [08:30:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 18 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:30:25]wFMCommunicate OK [08:30:25]SAM_PROTO_GetFieldsCounters done [08:30:25]requested_item shift.num is exist - process it [08:30:25]requested_item shift.opened is exist - process it [08:30:25]req_shift_opened [08:30:25]FM_GetShiftState [08:30:25]SAM_PROTO_GetShiftState [08:30:25]wFMCommunicate request_size=4 [08:30:25]MH_SAM_APDU [08:30:25]CAPDU: 80 13 01 00 [08:30:25]Write to MH i2c: E2 08 00 99 05 80 13 01 00 00 00 00 00 1B [08:30:25]Write i2c OK [08:30:25]MH_I2C_Read... [08:30:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:30:25]Read from MH i2c: E2 [08:30:25]MH_I2C_Read... [08:30:25]Read from MH i2c: E2 0E 00 [08:30:25]MH_I2C_Read... [08:30:25]Read from MH i2c: E2 0E 00 99 05 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 E7 [08:30:25]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [08:30:25]wFMCommunicate OK [08:30:25]SAM_PROTO_GetShiftState done [08:30:25]FM_GetShiftState done [08:30:25]req_shift_opened done [08:30:25]requested_item shift.open_date is exist - process it [08:30:25]req_shift_open_date [08:30:25]req_shift_open_date done [08:30:25]produce_requested_data done [08:30:25]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63768,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [08:30:25]process_action_free close_receipt [08:30:25]json_value_free [08:30:25]json_value_free done [08:30:25]process_json_proto returns [08:30:25]Send response to host [08:30:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63768,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [08:30:25]free response buf [08:30:25]execute_script done [08:30:25]execute_script returns [08:30:25]free content buf [08:30:25]Sock 7.Close socket [08:30:25]Sock 7.Thread stoped [08:30:29]OFD Sender: No OFD packet to send [08:30:34]OFD Sender: No OFD packet to send [08:30:39]OFD Sender: No OFD packet to send [08:30:44]OFD Sender: No OFD packet to send [08:30:46]accept exits with 9 [08:30:46]New connection [08:30:46]New thread 3067518308 created [08:30:46]Thread 3067374948 joined [08:30:46]Waiting for new connection... [08:30:46] Sock 9.Parse request [08:30:46]Sock 9.Check first char [08:30:46]Sock 9.First char is OK [08:30:46]request: POST /json_proto HTTP/1.0 [08:30:46]Method: POST [08:30:46]URL: /json_proto [08:30:46]Method is POST - this is cgi request [08:30:46]url: /json_proto [08:30:46]query_string will be loaded in cgi processing [08:30:46]execute_cgi json_proto POST (null) [08:30:46]execute_cgi path=json_proto method=POST [08:30:46]POST find Content-Length [08:30:46]Host: 172.17.60.69:8080 [08:30:46]Content-Length: 645 [08:30:46]Content-Type: application/json [08:30:46] [08:30:46]POST finish read [08:30:46]Found Content-Length = 645 [08:30:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73357", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:30:46]execute_script... [08:30:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73357", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:30:46]POST & json_proto [08:30:46]process_json_proto [08:30:46]json parsed OK: [08:30:46]protocol is kg_v1.0 [08:30:46]action value=close_receipt [08:30:46]process_action close_receipt [08:30:46]cmd_close_receipt [08:30:46]MH_GetDate [08:30:46]Write to MH i2c: F0 00 00 9A 05 8E [08:30:46]Write i2c OK [08:30:46]MH_I2C_Read... [08:30:46]Read from MH i2c: F0 [08:30:46]MH_I2C_Read... [08:30:46]Read from MH i2c: F0 09 00 [08:30:46]MH_I2C_Read... [08:30:46]Read from MH i2c: F0 09 00 9A 05 00 38 7F 5D 66 6A 96 4A 66 C1 [08:30:46]GetLastDocTimeStamp 1717403423 [08:30:46]current date 1717403448 [08:30:46]FM_GetShiftState [08:30:46]SAM_PROTO_GetShiftState [08:30:46]wFMCommunicate request_size=4 [08:30:46]MH_SAM_APDU [08:30:46]CAPDU: 80 13 01 00 [08:30:46]Write to MH i2c: E2 08 00 9B 05 80 13 01 00 00 00 00 00 1D [08:30:46]Write i2c OK [08:30:46]MH_I2C_Read... [08:30:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:30:46]Read from MH i2c: E2 [08:30:46]MH_I2C_Read... [08:30:46]Read from MH i2c: E2 0E 00 [08:30:46]MH_I2C_Read... [08:30:46]Read from MH i2c: E2 0E 00 9B 05 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 E9 [08:30:46]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [08:30:46]wFMCommunicate OK [08:30:46]SAM_PROTO_GetShiftState done [08:30:46]FM_GetShiftState done [08:30:46]opened in 1717373173 [08:30:46]opened+sec_in_day 1717459573 [08:30:46]quantity*price = 12500 [08:30:46]sum+1 = 12501 [08:30:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 125.00 НСП 1% : 1.11 НДС 12% : 13.27 Наличными: 125.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 27 03.06.2024 08:30 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63769 ФПД: 120856177916074 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T083048&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63769&fm=120856177916074&tin=02508201610067®Number=0000000000092737&sum=12500 0 [08:30:47]StoreToDocumentArchive [08:30:47]shift 373 fd 63769 [08:30:47]save to /storage/0373/doc_00063769 [08:30:47]save last doc name /storage/0373/doc_00063769 to /storage/kkm_last_doc_name [08:30:47]save OK [08:30:47]Clear old archive folders... [08:30:47]ProcessDocumentItem done err = 0, tmpTLVsize=282 [08:30:47]tlvbuf is 00D19190 [08:30:47]SAM_PROTO_ClearQueue [08:30:47]wFMCommunicate request_size=4 [08:30:47]MH_SAM_APDU [08:30:47]CAPDU: 80 09 00 00 [08:30:47]Write to MH i2c: E2 08 00 A8 05 80 09 00 00 00 00 00 00 1F [08:30:47]Write i2c OK [08:30:47]MH_I2C_Read... [08:30:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:30:48]Read from MH i2c: E2 [08:30:48]MH_I2C_Read... [08:30:48]Read from MH i2c: E2 03 00 [08:30:48]MH_I2C_Read... [08:30:48]Read from MH i2c: E2 03 00 A8 05 00 90 00 21 [08:30:48]RAPDU: 90 00 [08:30:48]wFMCommunicate OK [08:30:48]SAM_PROTO_ClearQueue done [08:30:48]KKMCreateOFDPacket [08:30:48]OFDProtocolAddRootSTLVToBuf [08:30:48]FM_MakeSignedData [08:30:48]FM_MakeSignedData [08:30:48]SAM_PROTO_SignData [08:30:48]wFMCommunicate request_size=4 [08:30:48]MH_SAM_APDU [08:30:48]CAPDU: 80 0D 01 02 [08:30:48]Write to MH i2c: E2 08 00 A9 05 80 0D 01 02 00 00 00 00 27 [08:30:48]Write i2c OK [08:30:48]MH_I2C_Read... [08:30:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:30:48]Read from MH i2c: E2 [08:30:48]MH_I2C_Read... [08:30:48]Read from MH i2c: E2 03 00 [08:30:48]MH_I2C_Read... [08:30:48]Read from MH i2c: E2 03 00 A9 05 00 90 00 22 [08:30:48]RAPDU: 90 00 [08:30:48]wFMCommunicate OK [08:30:48]wFMCommunicate request_size=255 [08:30:48]MH_SAM_APDU [08:30:48]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 38 7F 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 [08:30:48]Write to MH i2c: E2 02 01 AA 05 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 38 7F 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 00 00 33 [08:30:48]Write i2c OK [08:30:48]MH_I2C_Read... [08:30:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:30:48]Read from MH i2c: E2 [08:30:48]MH_I2C_Read... [08:30:48]Read from MH i2c: E2 03 00 [08:30:48]MH_I2C_Read... [08:30:48]Read from MH i2c: E2 03 00 AA 05 00 90 00 23 [08:30:48]RAPDU: 90 00 [08:30:48]wFMCommunicate OK [08:30:48]wFMCommunicate request_size=41 [08:30:48]MH_SAM_APDU [08:30:48]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 19 F9 00 00 35 04 06 00 6D EB 05 8D B8 AA [08:30:48]Write to MH i2c: E2 2C 00 AB 05 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 19 F9 00 00 35 04 06 00 6D EB 05 8D B8 AA 00 00 56 [08:30:48]Write i2c OK [08:30:48]MH_I2C_Read... [08:30:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:30:48]Read from MH i2c: E2 [08:30:48]MH_I2C_Read... [08:30:48]Read from MH i2c: E2 03 00 [08:30:48]MH_I2C_Read... [08:30:48]Read from MH i2c: E2 03 00 AB 05 00 90 00 24 [08:30:48]RAPDU: 90 00 [08:30:48]wFMCommunicate OK [08:30:48]wFMCommunicate request_size=4 [08:30:48]MH_SAM_APDU [08:30:48]CAPDU: 80 0D 03 02 [08:30:48]Write to MH i2c: E2 08 00 AC 05 80 0D 03 02 00 00 00 00 2C [08:30:48]Write i2c OK [08:30:48]MH_I2C_Read... [08:30:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:30:48]Read from MH i2c: E2 [08:30:48]MH_I2C_Read... [08:30:48]Read from MH i2c: E2 0B 00 [08:30:48]MH_I2C_Read... [08:30:48]Read from MH i2c: E2 0B 00 AC 05 00 C1 82 8D B3 94 70 02 D5 90 00 8B [08:30:48]RAPDU: C1 82 8D B3 94 70 02 D5 90 00 [08:30:48]wFMCommunicate OK [08:30:48]SAM_PROTO_SignData done [08:30:48]FM_MakeSignedData done [08:30:48]CreateOFDProtocolMessage [08:30:48]wFMCommunicate request_size=4 [08:30:48]MH_SAM_APDU [08:30:48]CAPDU: 80 11 00 00 [08:30:48]Write to MH i2c: E2 08 00 AD 05 80 11 00 00 00 00 00 00 2C [08:30:48]Write i2c OK [08:30:48]MH_I2C_Read... [08:30:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:30:48]Read from MH i2c: E2 [08:30:48]MH_I2C_Read... [08:30:48]Read from MH i2c: E2 17 00 [08:30:48]MH_I2C_Read... [08:30:48]Read from MH i2c: E2 17 00 AD 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 7E [08:30:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [08:30:48]wFMCommunicate OK [08:30:48]CreateOFDProtocolMessage done [08:30:48]OFDSenderStorePacket 63769 [08:30:48]StoreOFDPacket docnum=63769 [08:30:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 2E 01 00 00 D1 BE 26 01 15 7E 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 38 7F 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 19 F9 00 00 35 04 06 00 6D EB 05 8D B8 AA C1 82 8D B3 94 70 02 D5 [08:30:48]CheckFolder [08:30:48]dirname=/storage/ofd_packets [08:30:48]CheckFolder done [08:30:48]ProducePacketName [08:30:48]name=ofd_packets/00063769 [08:30:48]NVStorageSaveData ofd_packets/00063769 [08:30:48]File name is /storage/ofd_packets/00063769 [08:30:48]Write 332 bytes [08:30:48]NVStorageSaveData done [08:30:48]OFDSenderStorePacket done [08:30:48]KKMCreateOFDPacket done [08:30:48]NVStorageSaveData kkm_last_timestamp [08:30:48]File name is /storage/kkm_last_timestamp [08:30:48]Write 4 bytes [08:30:48]NVStorageSaveData done [08:30:48]ExternCall_PrintAddStr [08:30:48]wPrintStart [08:30:48]Write to MH i2c: 01 00 00 AE 05 B3 [08:30:48]Write i2c OK [08:30:48]MH_I2C_Read... [08:30:48]Read from MH i2c: 01 [08:30:48]MH_I2C_Read... [08:30:48]Read from MH i2c: 01 07 00 [08:30:48]MH_I2C_Read... [08:30:48]Read from MH i2c: 01 07 00 AE 05 00 00 00 00 00 FF 0F C8 [08:30:48]RasterBufferAndPrint [08:30:48]line Счет N : (3)73357 [08:30:48]line ИНН: 02508201610067 [08:30:48]line Контрольно-Кассовый Чек [08:30:48]line ПРОДАЖА [08:30:48]line Товар: 2000036220012 [08:30:48]line Кофе Капучино XL(GABB TRADE) [08:30:48]line 1.000 * 125.00 [08:30:48]line = 125.00 [08:30:48]line НДС 12% НСП 1% [08:30:48]line > о реализуемом товаре [08:30:48]line ИТОГО: 125.00 [08:30:48]line НСП 1% : 1.11 [08:30:48]line НДС 12% : 13.27 [08:30:48]line Наличными: 125.00 [08:30:48]line Безнал.: 0.00 [08:30:48]line Место: АЗС № 117 "Партнер Нефть" [08:30:48]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [08:30:48]line СНО: Общий режим [08:30:48]line Чек 27 03.06.2024 08:30 [08:30:48]line Смена: 373 ФФД: 1.0 [08:30:48]line ЗНМ: 0300000031 [08:30:48]line РНМ: 0000000000092737 [08:30:48]line Версия ККМ: 001 [08:30:48]line ФМ: 0000000000875074 [08:30:48]line ФД: 63769 [08:30:48]line ФПД: 120856177916074 [08:30:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T083048&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63769&fm=120856177916074&tin=02508201610067®Number=0000000000092737&sum=12500 [08:30:48]line 0 [08:30:48]OFD Sender: Processing packet 63769 [packets to send 14, broken 13] [08:30:48]ProducePacketName [08:30:48]name=ofd_packets/00063769 [08:30:48]OFD Sender: To server: pG, [08:30:48]CommunicateWithHost lk.salyk.kg:30040 [08:30:48]ConnectInit lk.salyk.kg [08:30:48]written 0, free lines is 4095 [08:30:48]Connected sock=10 [08:30:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 2E 01 00 00 D1 BE 26 01 15 7E 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 38 7F 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 19 F9 00 00 35 04 06 00 6D EB 05 8D B8 AA C1 82 8D B3 94 70 02 D5 [08:30:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 AE F7 47 00 25 AA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 19 F9 00 00 F4 03 04 00 0A 2B 5D 66 B6 04 01 00 00 26 AA B9 14 4C 03 D4 93 [08:30:49]CommunicateWithHost err = 0 [08:30:49]CheckOFDResponse [08:30:49]1017 (14) - 77093643461234 [08:30:49]1041 (16) - 0000000000875074 [08:30:49]1040 (4) - 63769 [08:30:49]1012 (4) - 03.06.2024 02:31 [08:30:49]1206 (1) - 0 [08:30:49]OFD Sender: Remove packet 63769 [08:30:49]ProducePacketName [08:30:49]name=ofd_packets/00063769 [08:30:49]NVStorageDeleteData [08:30:49]Write to MH i2c: 01 00 00 D7 05 DC [08:30:49]Write i2c OK [08:30:49]MH_I2C_Read... [08:30:49]Read from MH i2c: 01 [08:30:49]MH_I2C_Read... [08:30:49]Read from MH i2c: 01 07 00 [08:30:49]MH_I2C_Read... [08:30:49]Read from MH i2c: 01 07 00 D7 05 00 00 00 00 00 FF 0C EE [08:30:49]RasterBufferAndPrint [08:30:49]line [08:30:49]line [08:30:49]line [08:30:49]line [08:30:49]line [08:30:49]written 0, free lines is 3336 [08:30:49]MH_Cut [08:30:49]Write to MH i2c: D1 01 00 DE 05 01 B5 [08:30:49]Write i2c OK [08:30:49]MH_I2C_Read... [08:30:49]Read from MH i2c: D1 [08:30:49]MH_I2C_Read... [08:30:49]Read from MH i2c: D1 01 00 [08:30:49]MH_I2C_Read... [08:30:49]Read from MH i2c: D1 01 00 DE 05 00 B4 [08:30:49]Write to MH i2c: 01 00 00 DF 05 E4 [08:30:49]Write i2c OK [08:30:49]MH_I2C_Read... [08:30:49]OFD Sender: No OFD packet to send [08:30:50]*** Cut start [08:30:50]*** Partial cut [08:30:50]*** CUTSNS_PIN = 1 [08:30:50]*** CUTSNS_PIN = 0 [08:30:50]*** Brake cut motor [08:30:50]Read from MH i2c: 01 [08:30:50]MH_I2C_Read... [08:30:50]*** Stop cut motor [08:30:50]*** Cut end [08:30:50]Read from MH i2c: 01 07 00 [08:30:50]MH_I2C_Read... [08:30:50]Read from MH i2c: 01 07 00 DF 05 00 00 00 00 00 FF 0F F9 [08:30:50]process_action close_receipt done [08:30:50]requested_data is exist [08:30:50]produce_requested_data [08:30:50]requested_item fm.sn is exist - process it [08:30:50]wFMCommunicate request_size=4 [08:30:50]MH_SAM_APDU [08:30:50]CAPDU: 80 11 00 00 [08:30:50]Write to MH i2c: E2 08 00 E0 05 80 11 00 00 00 00 00 00 5F [08:30:50]Write i2c OK [08:30:50]MH_I2C_Read... [08:30:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:30:50]Read from MH i2c: E2 [08:30:50]MH_I2C_Read... [08:30:50]Read from MH i2c: E2 17 00 [08:30:50]MH_I2C_Read... [08:30:50]Read from MH i2c: E2 17 00 E0 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 B1 [08:30:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [08:30:50]wFMCommunicate OK [08:30:50]requested_item fd.num is exist - process it [08:30:50]SAM_PROTO_GetFieldsCounters [08:30:50]wFMCommunicate request_size=4 [08:30:50]MH_SAM_APDU [08:30:50]CAPDU: 80 13 00 00 [08:30:50]Write to MH i2c: E2 08 00 E1 05 80 13 00 00 00 00 00 00 62 [08:30:50]Write i2c OK [08:30:50]MH_I2C_Read... [08:30:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:30:50]Read from MH i2c: E2 [08:30:50]MH_I2C_Read... [08:30:50]Read from MH i2c: E2 62 00 [08:30:50]MH_I2C_Read... [08:30:50]Read from MH i2c: E2 62 00 E1 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 19 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 5E [08:30: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 19 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:30:50]wFMCommunicate OK [08:30:50]SAM_PROTO_GetFieldsCounters done [08:30:50]requested_item shift.num is exist - process it [08:30:50]requested_item shift.opened is exist - process it [08:30:50]req_shift_opened [08:30:50]FM_GetShiftState [08:30:50]SAM_PROTO_GetShiftState [08:30:50]wFMCommunicate request_size=4 [08:30:50]MH_SAM_APDU [08:30:50]CAPDU: 80 13 01 00 [08:30:50]Write to MH i2c: E2 08 00 E2 05 80 13 01 00 00 00 00 00 64 [08:30:50]Write i2c OK [08:30:50]MH_I2C_Read... [08:30:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:30:50]Read from MH i2c: E2 [08:30:50]MH_I2C_Read... [08:30:50]Read from MH i2c: E2 0E 00 [08:30:50]MH_I2C_Read... [08:30:50]Read from MH i2c: E2 0E 00 E2 05 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 30 [08:30:50]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [08:30:50]wFMCommunicate OK [08:30:50]SAM_PROTO_GetShiftState done [08:30:50]FM_GetShiftState done [08:30:50]req_shift_opened done [08:30:50]requested_item shift.open_date is exist - process it [08:30:50]req_shift_open_date [08:30:50]req_shift_open_date done [08:30:50]produce_requested_data done [08:30:50]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63769,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [08:30:50]process_action_free close_receipt [08:30:50]json_value_free [08:30:50]json_value_free done [08:30:50]process_json_proto returns [08:30:50]Send response to host [08:30:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63769,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [08:30:50]free response buf [08:30:50]execute_script done [08:30:50]execute_script returns [08:30:50]free content buf [08:30:50]Sock 9.Close socket [08:30:50]Sock 9.Thread stoped [08:30:54]OFD Sender: No OFD packet to send [08:30:59]OFD Sender: No OFD packet to send [08:31:04]OFD Sender: No OFD packet to send [08:31:09]OFD Sender: No OFD packet to send [08:31:14]OFD Sender: No OFD packet to send [08:31:19]OFD Sender: No OFD packet to send [08:31:24]OFD Sender: No OFD packet to send [08:31:29]OFD Sender: No OFD packet to send [08:31:32]accept exits with 7 [08:31:32]New connection [08:31:32]New thread 3067374948 created [08:31:32]Thread 3067518308 joined [08:31:32]Waiting for new connection... [08:31:32] Sock 7.Parse request [08:31:32]Sock 7.Check first char [08:31:32]Sock 7.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.60.69:8080 [08:31:32]Content-Length: 215 [08:31:32]Content-Type: application/json [08:31:32] [08:31:32]POST finish read [08:31:32]Found Content-Length = 215 [08:31:32]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" ] } } [08:31:32]execute_script... [08:31:32]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" ] } } [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=get_value [08:31:32]process_action get_value [08:31:32]cmd_get_value [08:31:32]process_action get_value done [08:31:32]requested_data is exist [08:31:32]produce_requested_data [08:31:32]requested_item kkm.sn is exist - process it [08:31:32]requested_item kkm.ver is exist - process it [08:31:32]requested_item fm.sn is exist - process it [08:31:32]wFMCommunicate request_size=4 [08:31:32]MH_SAM_APDU [08:31:32]CAPDU: 80 11 00 00 [08:31:32]Write to MH i2c: E2 08 00 E3 05 80 11 00 00 00 00 00 00 62 [08:31:32]Write i2c OK [08:31:32]MH_I2C_Read... [08:31:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:31:32]Read from MH i2c: E2 [08:31:32]MH_I2C_Read... [08:31:32]Read from MH i2c: E2 17 00 [08:31:32]MH_I2C_Read... [08:31:32]Read from MH i2c: E2 17 00 E3 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 B4 [08:31:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [08:31:32]wFMCommunicate OK [08:31:32]requested_item fd.num is exist - process it [08:31:32]SAM_PROTO_GetFieldsCounters [08:31:32]wFMCommunicate request_size=4 [08:31:32]MH_SAM_APDU [08:31:32]CAPDU: 80 13 00 00 [08:31:32]Write to MH i2c: E2 08 00 E4 05 80 13 00 00 00 00 00 00 65 [08:31:32]Write i2c OK [08:31:32]MH_I2C_Read... [08:31:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:31:32]Read from MH i2c: E2 [08:31:32]MH_I2C_Read... [08:31:32]Read from MH i2c: E2 62 00 [08:31:32]MH_I2C_Read... [08:31:32]Read from MH i2c: E2 62 00 E4 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 19 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 61 [08:31: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 19 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:31:32]wFMCommunicate OK [08:31:32]SAM_PROTO_GetFieldsCounters done [08:31:32]requested_item shift.num is exist - process it [08:31:32]requested_item shift.opened is exist - process it [08:31:32]req_shift_opened [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 E5 05 80 13 01 00 00 00 00 00 67 [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 E5 05 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 33 [08:31:32]RAPDU: 09 00 01 F5 08 5D 66 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]req_shift_opened done [08:31:32]requested_item shift.open_date is exist - process it [08:31:32]req_shift_open_date [08:31:32]req_shift_open_date done [08:31:32]produce_requested_data done [08:31:32]produce_requested_data return {"kkm.sn":"0300000031","kkm.ver":"001","fm.sn":"0000000000875074","fd.num":63769,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [08:31:32]process_action_free get_value [08:31:32]json_value_free [08:31:32]json_value_free done [08:31:32]process_json_proto returns [08:31:32]Send response to host [08:31:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000031","kkm.ver":"001","fm.sn":"0000000000875074","fd.num":63769,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [08:31:32]free response buf [08:31:32]execute_script done [08:31:32]execute_script returns [08:31:32]free content buf [08:31:32]Sock 7.Close socket [08:31:32]Sock 7.Thread stoped [08:31:32]accept exits with 10 [08:31:32]New connection [08:31:32]New thread 3067518308 created [08:31:32]Thread 3067374948 joined [08:31:32]Waiting for new connection... [08:31:32] Sock 10.Parse request [08:31:32]Sock 10.Check first char [08:31:32]Sock 10.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.60.69:8080 [08:31:32]Content-Length: 331 [08:31:32]Content-Type: application/json [08:31:32] [08:31:32]POST finish read [08:31:32]Found Content-Length = 331 [08:31:32]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" ] } } [08:31:32]execute_script... [08:31:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [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=get_value [08:31:32]process_action get_value [08:31:32]cmd_get_value [08:31:32]process_action get_value done [08:31:32]requested_data is exist [08:31:32]produce_requested_data [08:31:32]requested_item fm.sale.total is exist - process it [08:31:32]SAM_PROTO_GetFMData [08:31:32]wFMCommunicate request_size=4 [08:31:32]MH_SAM_APDU [08:31:32]CAPDU: 80 13 03 00 [08:31:32]Write to MH i2c: E2 08 00 E6 05 80 13 03 00 00 00 00 00 6A [08:31:32]Write i2c OK [08:31:32]MH_I2C_Read... [08:31:33]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [08:31:33]Read from MH i2c: E2 [08:31:33]MH_I2C_Read... [08:31:33]Read from MH i2c: E2 FD 00 [08:31:33]MH_I2C_Read... [08:31:33]Read from MH i2c: E2 FD 00 E6 05 00 C5 04 85 04 C1 04 6E 04 04 00 2F F6 00 00 69 04 A1 00 6F 04 04 00 D2 F3 00 00 B1 04 04 00 1D 4D 81 76 70 04 04 00 BE 89 D4 65 72 04 04 00 5F C3 AC 10 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 BA 13 96 0C 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 FE 6D 0C 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 5D 02 00 00 B1 04 04 00 64 11 7D 03 70 04 04 00 E0 B5 61 03 72 04 03 00 84 5B 1B 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 F2 D8 5E EF 03 09 90 00 8B [08:31:33]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 2F F6 00 00 69 04 A1 00 6F 04 04 00 D2 F3 00 00 B1 04 04 00 1D 4D 81 76 70 04 04 00 BE 89 D4 65 72 04 04 00 5F C3 AC 10 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 BA 13 96 0C 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 FE 6D 0C 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 5D 02 00 00 B1 04 04 00 64 11 7D 03 70 04 04 00 E0 B5 61 03 72 04 03 00 84 5B 1B 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 F2 D8 5E EF 03 09 90 00 [08:31:33]wFMCommunicate OK [08:31:33]wFMCommunicate request_size=4 [08:31:33]MH_SAM_APDU [08:31:33]CAPDU: 80 17 00 00 [08:31:33]Write to MH i2c: E2 08 00 E7 05 80 17 00 00 00 00 00 00 6C [08:31:33]Write i2c OK [08:31:33]MH_I2C_Read... [08:31:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:31:33]Read from MH i2c: E2 [08:31:33]MH_I2C_Read... [08:31:33]Read from MH i2c: E2 FD 00 [08:31:33]MH_I2C_Read... [08:31:33]Read from MH i2c: E2 FD 00 E7 05 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 2E E7 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 3E [08:31:33]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 2E E7 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [08:31:33]wFMCommunicate OK [08:31:33]wFMCommunicate request_size=4 [08:31:33]MH_SAM_APDU [08:31:33]CAPDU: 80 17 00 00 [08:31:33]Write to MH i2c: E2 08 00 E8 05 80 17 00 00 00 00 00 00 6D [08:31:33]Write i2c OK [08:31:33]MH_I2C_Read... [08:31:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:31:33]Read from MH i2c: E2 [08:31:33]MH_I2C_Read... [08:31:33]Read from MH i2c: E2 FD 00 [08:31:33]MH_I2C_Read... [08:31:33]Read from MH i2c: E2 FD 00 E8 05 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 7F [08:31:33]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [08:31:33]wFMCommunicate OK [08:31:33]wFMCommunicate request_size=4 [08:31:33]MH_SAM_APDU [08:31:33]CAPDU: 80 17 00 00 [08:31:33]Write to MH i2c: E2 08 00 E9 05 80 17 00 00 00 00 00 00 6E [08:31:33]Write i2c OK [08:31:33]MH_I2C_Read... [08:31:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:31:33]Read from MH i2c: E2 [08:31:33]MH_I2C_Read... [08:31:33]Read from MH i2c: E2 FD 00 [08:31:33]MH_I2C_Read... [08:31:33]Read from MH i2c: E2 FD 00 E9 05 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 FA [08:31:33]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [08:31:33]wFMCommunicate OK [08:31:33]wFMCommunicate request_size=4 [08:31:33]MH_SAM_APDU [08:31:33]CAPDU: 80 17 00 00 [08:31:33]Write to MH i2c: E2 08 00 EA 05 80 17 00 00 00 00 00 00 6F [08:31:33]Write i2c OK [08:31:33]MH_I2C_Read... [08:31:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [08:31:34]Read from MH i2c: E2 [08:31:34]MH_I2C_Read... [08:31:34]Read from MH i2c: E2 E2 00 [08:31:34]MH_I2C_Read... [08:31:34]Read from MH i2c: E2 E2 00 EA 05 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 [08:31:34]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [08:31:34]wFMCommunicate OK [08:31:34]SAM_PROTO_GetFMData done [08:31:34]requested_item fm.sale_refund.total is exist - process it [08:31:34]requested_item fm.buy.total is exist - process it [08:31:34]requested_item shift.sale.total is exist - process it [08:31:34]SAM_PROTO_GetShiftData [08:31:34]wFMCommunicate request_size=4 [08:31:34]MH_SAM_APDU [08:31:34]CAPDU: 80 13 02 00 [08:31:34]Write to MH i2c: E2 08 00 EB 05 80 13 02 00 00 00 00 00 6E [08:31:34]Write i2c OK [08:31:34]MH_I2C_Read... [08:31:34]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [08:31:34]Read from MH i2c: E2 [08:31:34]MH_I2C_Read... [08:31:34]Read from MH i2c: E2 FD 00 [08:31:34]MH_I2C_Read... [08:31:34]Read from MH i2c: E2 FD 00 EB 05 00 AC 04 AA 04 A8 04 6E 04 04 00 1B 00 00 00 69 04 99 00 6F 04 04 00 1B 00 00 00 B1 04 03 00 30 58 09 70 04 03 00 B8 EE 08 72 04 02 00 78 69 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 0A FE 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 2A 15 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 90 00 C5 [08:31:34]RAPDU: AC 04 AA 04 A8 04 6E 04 04 00 1B 00 00 00 69 04 99 00 6F 04 04 00 1B 00 00 00 B1 04 03 00 30 58 09 70 04 03 00 B8 EE 08 72 04 02 00 78 69 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 0A FE 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 2A 15 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 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 17 00 00 [08:31:34]Write to MH i2c: E2 08 00 EC 05 80 17 00 00 00 00 00 00 71 [08:31:34]Write i2c OK [08:31:34]MH_I2C_Read... [08:31:34]OFD Sender: No OFD packet to send [08:31:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:31:34]Read from MH i2c: E2 [08:31:34]MH_I2C_Read... [08:31:34]Read from MH i2c: E2 FD 00 [08:31:34]MH_I2C_Read... [08:31:34]Read from MH i2c: E2 FD 00 EC 05 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 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 90 00 86 [08:31:34]RAPDU: 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 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 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 17 00 00 [08:31:34]Write to MH i2c: E2 08 00 ED 05 80 17 00 00 00 00 00 00 72 [08:31:34]Write i2c OK [08:31:34]MH_I2C_Read... [08:31:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:31:35]Read from MH i2c: E2 [08:31:35]MH_I2C_Read... [08:31:35]Read from MH i2c: E2 FD 00 [08:31:35]MH_I2C_Read... [08:31:35]Read from MH i2c: E2 FD 00 ED 05 00 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 90 00 33 [08:31:35]RAPDU: 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 90 00 [08:31:35]wFMCommunicate OK [08:31:35]wFMCommunicate request_size=4 [08:31:35]MH_SAM_APDU [08:31:35]CAPDU: 80 17 00 00 [08:31:35]Write to MH i2c: E2 08 00 EE 05 80 17 00 00 00 00 00 00 73 [08:31:35]Write i2c OK [08:31:35]MH_I2C_Read... [08:31:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:31:35]Read from MH i2c: E2 [08:31:35]MH_I2C_Read... [08:31:35]Read from MH i2c: E2 FD 00 [08:31:35]MH_I2C_Read... [08:31:35]Read from MH i2c: E2 FD 00 EE 05 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 90 00 E8 [08:31:35]RAPDU: EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 90 00 [08:31:35]wFMCommunicate OK [08:31:35]wFMCommunicate request_size=4 [08:31:35]MH_SAM_APDU [08:31:35]CAPDU: 80 17 00 00 [08:31:35]Write to MH i2c: E2 08 00 EF 05 80 17 00 00 00 00 00 00 74 [08:31:35]Write i2c OK [08:31:35]MH_I2C_Read... [08:31:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 198! [08:31:35]Read from MH i2c: E2 [08:31:35]MH_I2C_Read... [08:31:35]Read from MH i2c: E2 C9 00 [08:31:35]MH_I2C_Read... [08:31:35]Read from MH i2c: E2 C9 00 EF 05 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 58 [08:31:35]RAPDU: 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [08:31:35]wFMCommunicate OK [08:31:35]SAM_PROTO_GetShiftData done [08:31:35]requested_item shift.sale.total_cash is exist - process it [08:31:35]requested_item shift.sale_refund.total is exist - process it [08:31:35]requested_item shift.sale_refund.total_cash is exist - process it [08:31:35]requested_item shift.buy.total is exist - process it [08:31:35]requested_item shift.buy.total_cash is exist - process it [08:31:35]produce_requested_data done [08:31:35]produce_requested_data return {"fm.sale.total":19881853.73,"fm.sale_refund.total":585281.00,"fm.buy.total":0.00,"shift.sale.total":6124.00,"shift.sale.total_cash":5854.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} [08:31:35]process_action_free get_value [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.sale.total":19881853.73,"fm.sale_refund.total":585281.00,"fm.buy.total":0.00,"shift.sale.total":6124.00,"shift.sale.total_cash":5854.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}}} [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 10.Close socket [08:31:35]Sock 10.Thread stoped [08:31:35]accept exits with 7 [08:31:35]New connection [08:31:35]New thread 3067374948 created [08:31:35]Thread 3067518308 joined [08:31:35]Waiting for new connection... [08:31:35] Sock 7.Parse request [08:31:35]Sock 7.Check first char [08:31:35]Sock 7.First char is OK [08:31:35]request: POST /json_proto HTTP/1.0 [08:31:35]Method: POST [08:31:35]URL: /json_proto [08:31:35]Method is POST - this is cgi request [08:31:35]url: /json_proto [08:31:35]query_string will be loaded in cgi processing [08:31:35]execute_cgi json_proto POST (null) [08:31:35]execute_cgi path=json_proto method=POST [08:31:35]POST find Content-Length [08:31:35]Host: 172.17.60.69:8080 [08:31:35]Content-Length: 331 [08:31:35]Content-Type: application/json [08:31:35] [08:31:35]POST finish read [08:31:35]Found Content-Length = 331 [08:31:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [08:31:35]execute_script... [08:31:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [08:31:35]POST & json_proto [08:31:35]process_json_proto [08:31:35]json parsed OK: [08:31:35]protocol is kg_v1.0 [08:31:35]action value=get_value [08:31:35]process_action get_value [08:31:35]cmd_get_value [08:31:35]process_action get_value done [08:31:35]requested_data is exist [08:31:35]produce_requested_data [08:31:35]requested_item fm.sale.total is exist - process it [08:31:35]SAM_PROTO_GetFMData [08:31:35]wFMCommunicate request_size=4 [08:31:35]MH_SAM_APDU [08:31:35]CAPDU: 80 13 03 00 [08:31:35]Write to MH i2c: E2 08 00 F0 05 80 13 03 00 00 00 00 00 74 [08:31:35]Write i2c OK [08:31:35]MH_I2C_Read... [08:31:36]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [08:31:36]Read from MH i2c: E2 [08:31:36]MH_I2C_Read... [08:31:36]Read from MH i2c: E2 FD 00 [08:31:36]MH_I2C_Read... [08:31:36]Read from MH i2c: E2 FD 00 F0 05 00 C5 04 85 04 C1 04 6E 04 04 00 2F F6 00 00 69 04 A1 00 6F 04 04 00 D2 F3 00 00 B1 04 04 00 1D 4D 81 76 70 04 04 00 BE 89 D4 65 72 04 04 00 5F C3 AC 10 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 BA 13 96 0C 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 FE 6D 0C 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 5D 02 00 00 B1 04 04 00 64 11 7D 03 70 04 04 00 E0 B5 61 03 72 04 03 00 84 5B 1B 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 F2 D8 5E EF 03 09 90 00 95 [08:31:36]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 2F F6 00 00 69 04 A1 00 6F 04 04 00 D2 F3 00 00 B1 04 04 00 1D 4D 81 76 70 04 04 00 BE 89 D4 65 72 04 04 00 5F C3 AC 10 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 BA 13 96 0C 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 FE 6D 0C 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 5D 02 00 00 B1 04 04 00 64 11 7D 03 70 04 04 00 E0 B5 61 03 72 04 03 00 84 5B 1B 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 F2 D8 5E EF 03 09 90 00 [08:31:36]wFMCommunicate OK [08:31:36]wFMCommunicate request_size=4 [08:31:36]MH_SAM_APDU [08:31:36]CAPDU: 80 17 00 00 [08:31:36]Write to MH i2c: E2 08 00 F1 05 80 17 00 00 00 00 00 00 76 [08:31:36]Write i2c OK [08:31:36]MH_I2C_Read... [08:31:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:31:36]Read from MH i2c: E2 [08:31:36]MH_I2C_Read... [08:31:36]Read from MH i2c: E2 FD 00 [08:31:36]MH_I2C_Read... [08:31:36]Read from MH i2c: E2 FD 00 F1 05 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 2E E7 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 48 [08:31:36]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 2E E7 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [08:31:36]wFMCommunicate OK [08:31:36]wFMCommunicate request_size=4 [08:31:36]MH_SAM_APDU [08:31:36]CAPDU: 80 17 00 00 [08:31:36]Write to MH i2c: E2 08 00 F2 05 80 17 00 00 00 00 00 00 77 [08:31:36]Write i2c OK [08:31:36]MH_I2C_Read... [08:31:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:31:37]Read from MH i2c: E2 [08:31:37]MH_I2C_Read... [08:31:37]Read from MH i2c: E2 FD 00 [08:31:37]MH_I2C_Read... [08:31:37]Read from MH i2c: E2 FD 00 F2 05 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 89 [08:31:37]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [08:31:37]wFMCommunicate OK [08:31:37]wFMCommunicate request_size=4 [08:31:37]MH_SAM_APDU [08:31:37]CAPDU: 80 17 00 00 [08:31:37]Write to MH i2c: E2 08 00 F3 05 80 17 00 00 00 00 00 00 78 [08:31:37]Write i2c OK [08:31:37]MH_I2C_Read... [08:31:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:31:37]Read from MH i2c: E2 [08:31:37]MH_I2C_Read... [08:31:37]Read from MH i2c: E2 FD 00 [08:31:37]MH_I2C_Read... [08:31:37]Read from MH i2c: E2 FD 00 F3 05 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 04 [08:31:37]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [08:31:37]wFMCommunicate OK [08:31:37]wFMCommunicate request_size=4 [08:31:37]MH_SAM_APDU [08:31:37]CAPDU: 80 17 00 00 [08:31:37]Write to MH i2c: E2 08 00 F4 05 80 17 00 00 00 00 00 00 79 [08:31:37]Write i2c OK [08:31:37]MH_I2C_Read... [08:31:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [08:31:37]Read from MH i2c: E2 [08:31:37]MH_I2C_Read... [08:31:37]Read from MH i2c: E2 E2 00 [08:31:37]MH_I2C_Read... [08:31:37]Read from MH i2c: E2 E2 00 F4 05 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 [08:31:37]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [08:31:38]wFMCommunicate OK [08:31:38]SAM_PROTO_GetFMData done [08:31:38]requested_item fm.sale_refund.total is exist - process it [08:31:38]requested_item fm.buy.total is exist - process it [08:31:38]requested_item shift.sale.total is exist - process it [08:31:38]SAM_PROTO_GetShiftData [08:31:38]wFMCommunicate request_size=4 [08:31:38]MH_SAM_APDU [08:31:38]CAPDU: 80 13 02 00 [08:31:38]Write to MH i2c: E2 08 00 F5 05 80 13 02 00 00 00 00 00 78 [08:31:38]Write i2c OK [08:31:38]MH_I2C_Read... [08:31:38]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [08:31:38]Read from MH i2c: E2 [08:31:38]MH_I2C_Read... [08:31:38]Read from MH i2c: E2 FD 00 [08:31:38]MH_I2C_Read... [08:31:38]Read from MH i2c: E2 FD 00 F5 05 00 AC 04 AA 04 A8 04 6E 04 04 00 1B 00 00 00 69 04 99 00 6F 04 04 00 1B 00 00 00 B1 04 03 00 30 58 09 70 04 03 00 B8 EE 08 72 04 02 00 78 69 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 0A FE 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 2A 15 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 90 00 CF [08:31:38]RAPDU: AC 04 AA 04 A8 04 6E 04 04 00 1B 00 00 00 69 04 99 00 6F 04 04 00 1B 00 00 00 B1 04 03 00 30 58 09 70 04 03 00 B8 EE 08 72 04 02 00 78 69 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 0A FE 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 2A 15 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 90 00 [08:31:38]wFMCommunicate OK [08:31:38]wFMCommunicate request_size=4 [08:31:38]MH_SAM_APDU [08:31:38]CAPDU: 80 17 00 00 [08:31:38]Write to MH i2c: E2 08 00 F6 05 80 17 00 00 00 00 00 00 7B [08:31:38]Write i2c OK [08:31:38]MH_I2C_Read... [08:31:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:31:38]Read from MH i2c: E2 [08:31:38]MH_I2C_Read... [08:31:38]Read from MH i2c: E2 FD 00 [08:31:38]MH_I2C_Read... [08:31:38]Read from MH i2c: E2 FD 00 F6 05 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 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 90 00 90 [08:31:38]RAPDU: 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 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 90 00 [08:31:39]wFMCommunicate OK [08:31:39]wFMCommunicate request_size=4 [08:31:39]MH_SAM_APDU [08:31:39]CAPDU: 80 17 00 00 [08:31:39]Write to MH i2c: E2 08 00 F7 05 80 17 00 00 00 00 00 00 7C [08:31:39]Write i2c OK [08:31:39]MH_I2C_Read... [08:31:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:31:39]Read from MH i2c: E2 [08:31:39]MH_I2C_Read... [08:31:39]Read from MH i2c: E2 FD 00 [08:31:39]MH_I2C_Read... [08:31:39]Read from MH i2c: E2 FD 00 F7 05 00 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 90 00 3D [08:31:39]RAPDU: 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 90 00 [08:31:39]wFMCommunicate OK [08:31:39]wFMCommunicate request_size=4 [08:31:39]MH_SAM_APDU [08:31:39]CAPDU: 80 17 00 00 [08:31:39]Write to MH i2c: E2 08 00 F8 05 80 17 00 00 00 00 00 00 7D [08:31:39]Write i2c OK [08:31:39]MH_I2C_Read... [08:31:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:31:39]Read from MH i2c: E2 [08:31:39]MH_I2C_Read... [08:31:39]Read from MH i2c: E2 FD 00 [08:31:39]MH_I2C_Read... [08:31:39]Read from MH i2c: E2 FD 00 F8 05 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 90 00 F2 [08:31:39]RAPDU: EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 OFD Sender: No OFD packet to send [08:31:39]03 00 90 00 [08:31:39]wFMCommunicate OK [08:31:39]wFMCommunicate request_size=4 [08:31:39]MH_SAM_APDU [08:31:39]CAPDU: 80 17 00 00 [08:31:39]Write to MH i2c: E2 08 00 F9 05 80 17 00 00 00 00 00 00 7E [08:31:39]Write i2c OK [08:31:39]MH_I2C_Read... [08:31:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 198! [08:31:40]Read from MH i2c: E2 [08:31:40]MH_I2C_Read... [08:31:40]Read from MH i2c: E2 C9 00 [08:31:40]MH_I2C_Read... [08:31:40]Read from MH i2c: E2 C9 00 F9 05 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 [08:31:40]RAPDU: 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [08:31:40]wFMCommunicate OK [08:31:40]SAM_PROTO_GetShiftData done [08:31:40]requested_item shift.sale.total_cash is exist - process it [08:31:40]requested_item shift.sale_refund.total is exist - process it [08:31:40]requested_item shift.sale_refund.total_cash is exist - process it [08:31:40]requested_item shift.buy.total is exist - process it [08:31:40]requested_item shift.buy.total_cash is exist - process it [08:31:40]produce_requested_data done [08:31:40]produce_requested_data return {"fm.sale.total":19881853.73,"fm.sale_refund.total":585281.00,"fm.buy.total":0.00,"shift.sale.total":6124.00,"shift.sale.total_cash":5854.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} [08:31:40]process_action_free get_value [08:31:40]json_value_free [08:31:40]json_value_free done [08:31:40]process_json_proto returns [08:31:40]Send response to host [08:31:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":19881853.73,"fm.sale_refund.total":585281.00,"fm.buy.total":0.00,"shift.sale.total":6124.00,"shift.sale.total_cash":5854.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}}} [08:31:40]free response buf [08:31:40]execute_script done [08:31:40]execute_script returns [08:31:40]free content buf [08:31:40]Sock 7.Close socket [08:31:40]Sock 7.Thread stoped [08:31:40]accept exits with 9 [08:31:40]New connection [08:31:40]New thread 3067518308 created [08:31:40]Thread 3067374948 joined [08:31:40]Waiting for new connection... [08:31:40] Sock 9.Parse request [08:31:40]Sock 9.Check first char [08:31:40]Sock 9.First char is OK [08:31:40]request: POST /json_proto HTTP/1.0 [08:31:40]Method: POST [08:31:40]URL: /json_proto [08:31:40]Method is POST - this is cgi request [08:31:40]url: /json_proto [08:31:40]query_string will be loaded in cgi processing [08:31:40]execute_cgi json_proto POST (null) [08:31:40]execute_cgi path=json_proto method=POST [08:31:40]POST find Content-Length [08:31:40]Host: 172.17.60.69:8080 [08:31:40]Content-Length: 269 [08:31:40]Content-Type: application/json [08:31:40] [08:31:40]POST finish read [08:31:40]Found Content-Length = 269 [08:31:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u041A\u0430\u043B\u044B\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:31:40]execute_script... [08:31:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u041A\u0430\u043B\u044B\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:31:40]POST & json_proto [08:31:40]process_json_proto [08:31:40]json parsed OK: [08:31:40]protocol is kg_v1.0 [08:31:40]action value=x_report [08:31:40]process_action x_report [08:31:40]cmd_x_report [08:31:40]MH_GetDate [08:31:40]Write to MH i2c: F0 00 00 FA 05 EE [08:31:40]Write i2c OK [08:31:40]MH_I2C_Read... [08:31:40]Read from MH i2c: F0 [08:31:40]MH_I2C_Read... [08:31:40]Read from MH i2c: F0 09 00 [08:31:40]MH_I2C_Read... [08:31:40]Read from MH i2c: F0 09 00 FA 05 00 6D 7F 5D 66 6A 96 4A 66 56 [08:31:40]GetLastDocTimeStamp 1717403448 [08:31:40]current date 1717403501 [08:31:40]FM_GetShiftState [08:31:40]SAM_PROTO_GetShiftState [08:31:40]wFMCommunicate request_size=4 [08:31:40]MH_SAM_APDU [08:31:40]CAPDU: 80 13 01 00 [08:31:40]Write to MH i2c: E2 08 00 FB 05 80 13 01 00 00 00 00 00 7D [08:31:40]Write i2c OK [08:31:40]MH_I2C_Read... [08:31:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:31:40]Read from MH i2c: E2 [08:31:40]MH_I2C_Read... [08:31:40]Read from MH i2c: E2 0E 00 [08:31:40]MH_I2C_Read... [08:31:40]Read from MH i2c: E2 0E 00 FB 05 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 49 [08:31:40]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [08:31:40]wFMCommunicate OK [08:31:40]SAM_PROTO_GetShiftState done [08:31:40]FM_GetShiftState done [08:31:40]KKMCreateXReportDocument [08:31:40]Load OK [08:31:40]Malloc new data [08:31:40]MH_GetDate [08:31:40]Write to MH i2c: F0 00 00 FC 05 F0 [08:31:40]Write i2c OK [08:31:40]MH_I2C_Read... [08:31:40]Read from MH i2c: F0 [08:31:40]MH_I2C_Read... [08:31:40]Read from MH i2c: F0 09 00 [08:31:40]MH_I2C_Read... [08:31:40]Read from MH i2c: F0 09 00 FC 05 00 6D 7F 5D 66 6A 96 4A 66 58 [08:31:40]Malloc new data [08:31:40]Malloc new data [08:31:40]wFMCommunicate request_size=4 [08:31:40]MH_SAM_APDU [08:31:40]CAPDU: 80 11 00 00 [08:31:40]Write to MH i2c: E2 08 00 FD 05 80 11 00 00 00 00 00 00 7C [08:31:40]Write i2c OK [08:31:40]MH_I2C_Read... [08:31:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:31:40]Read from MH i2c: E2 [08:31:40]MH_I2C_Read... [08:31:40]Read from MH i2c: E2 17 00 [08:31:40]MH_I2C_Read... [08:31:40]Read from MH i2c: E2 17 00 FD 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 CE [08:31:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [08:31:40]wFMCommunicate OK [08:31:40]SAM_PROTO_GetFieldsCounters [08:31:40]wFMCommunicate request_size=4 [08:31:40]MH_SAM_APDU [08:31:40]CAPDU: 80 13 00 00 [08:31:40]Write to MH i2c: E2 08 00 FE 05 80 13 00 00 00 00 00 00 7F [08:31:40]Write i2c OK [08:31:40]MH_I2C_Read... [08:31:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:31:40]Read from MH i2c: E2 [08:31:40]MH_I2C_Read... [08:31:40]Read from MH i2c: E2 62 00 [08:31:40]MH_I2C_Read... [08:31:40]Read from MH i2c: E2 62 00 FE 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 19 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 7B [08:31: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 19 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:31:40]wFMCommunicate OK [08:31:40]SAM_PROTO_GetFieldsCounters done [08:31:40]Malloc new data [08:31:40]Malloc new data [08:31:40]Malloc new data [08:31:40]KKMCreateXReportDocument OK [08:31:40]KKMSetXReportData OK [08:31:40]KKMPrepareXReportFMData [08:31:40]SAM_PROTO_GetShiftData [08:31:40]wFMCommunicate request_size=4 [08:31:40]MH_SAM_APDU [08:31:40]CAPDU: 80 13 02 00 [08:31:40]Write to MH i2c: E2 08 00 FF 05 80 13 02 00 00 00 00 00 82 [08:31:40]Write i2c OK [08:31:40]MH_I2C_Read... [08:31:41]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [08:31:41]Read from MH i2c: E2 [08:31:41]MH_I2C_Read... [08:31:41]Read from MH i2c: E2 FD 00 [08:31:41]MH_I2C_Read... [08:31:41]Read from MH i2c: E2 FD 00 FF 05 00 AC 04 AA 04 A8 04 6E 04 04 00 1B 00 00 00 69 04 99 00 6F 04 04 00 1B 00 00 00 B1 04 03 00 30 58 09 70 04 03 00 B8 EE 08 72 04 02 00 78 69 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 0A FE 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 2A 15 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 90 00 D9 [08:31:41]RAPDU: AC 04 AA 04 A8 04 6E 04 04 00 1B 00 00 00 69 04 99 00 6F 04 04 00 1B 00 00 00 B1 04 03 00 30 58 09 70 04 03 00 B8 EE 08 72 04 02 00 78 69 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 0A FE 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 2A 15 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 90 00 [08:31:41]wFMCommunicate OK [08:31:41]wFMCommunicate request_size=4 [08:31:41]MH_SAM_APDU [08:31:41]CAPDU: 80 17 00 00 [08:31:41]Write to MH i2c: E2 08 00 00 06 80 17 00 00 00 00 00 00 86 [08:31:41]Write i2c OK [08:31:41]MH_I2C_Read... [08:31:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:31:41]Read from MH i2c: E2 [08:31:41]MH_I2C_Read... [08:31:41]Read from MH i2c: E2 FD 00 [08:31:41]MH_I2C_Read... [08:31:41]Read from MH i2c: E2 FD 00 00 06 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 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 90 00 9B [08:31:41]RAPDU: 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 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 90 00 [08:31:41]wFMCommunicate OK [08:31:41]wFMCommunicate request_size=4 [08:31:41]MH_SAM_APDU [08:31:41]CAPDU: 80 17 00 00 [08:31:41]Write to MH i2c: E2 08 00 01 06 80 17 00 00 00 00 00 00 87 [08:31:41]Write i2c OK [08:31:41]MH_I2C_Read... [08:31:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:31:42]Read from MH i2c: E2 [08:31:42]MH_I2C_Read... [08:31:42]Read from MH i2c: E2 FD 00 [08:31:42]MH_I2C_Read... [08:31:42]Read from MH i2c: E2 FD 00 01 06 00 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 90 00 48 [08:31:42]RAPDU: 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 90 00 [08:31:42]wFMCommunicate OK [08:31:42]wFMCommunicate request_size=4 [08:31:42]MH_SAM_APDU [08:31:42]CAPDU: 80 17 00 00 [08:31:42]Write to MH i2c: E2 08 00 02 06 80 17 00 00 00 00 00 00 88 [08:31:42]Write i2c OK [08:31:42]MH_I2C_Read... [08:31:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:31:42]Read from MH i2c: E2 [08:31:42]MH_I2C_Read... [08:31:42]Read from MH i2c: E2 FD 00 [08:31:42]MH_I2C_Read... [08:31:42]Read from MH i2c: E2 FD 00 02 06 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 90 00 FD [08:31:42]RAPDU: EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 90 00 [08:31:42]wFMCommunicate OK [08:31:42]wFMCommunicate request_size=4 [08:31:42]MH_SAM_APDU [08:31:42]CAPDU: 80 17 00 00 [08:31:42]Write to MH i2c: E2 08 00 03 06 80 17 00 00 00 00 00 00 89 [08:31:42]Write i2c OK [08:31:42]MH_I2C_Read... [08:31:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 198! [08:31:43]Read from MH i2c: E2 [08:31:43]MH_I2C_Read... [08:31:43]Read from MH i2c: E2 C9 00 [08:31:43]MH_I2C_Read... [08:31:43]Read from MH i2c: E2 C9 00 03 06 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 6D [08:31:43]RAPDU: 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [08:31:43]wFMCommunicate OK [08:31:43]SAM_PROTO_GetShiftData done [08:31:43]1194 (1192) - счетчики итогов смены [08:31:43] 1134 (4) - 27 - количество чеков со всеми признаками расчетов [08:31:43] 1129 (153) - счетчики операций «приход» [08:31:43] 1135 (4) - 27 - количество чеков по признаку расчетов [08:31:43] 1201 (3) - 6124.00 - общая итоговая сумма в чеках [08:31:43] 1136 (3) - 5854.00 - итоговая сумма в чеках наличными [08:31:43] 1138 (2) - 270.00 - итоговая сумма в чеках безналичными [08:31:43] 1024 (121) - суммы налогов [08:31:43] 1006 (9) - суммы НДС [08:31:43] 1010 (1) - 0% - код ставки НДС [08:31:43] 1011 (0) - 0.00 - сумма НДС по ставке [08:31:43] 1006 (11) - суммы НДС [08:31:43] 1010 (1) - 12% - код ставки НДС [08:31:43] 1011 (2) - 650.34 - сумма НДС по ставке [08:31:43] 1007 (9) - суммы НСП [08:31:43] 1014 (1) - 0% - код ставки НСП [08:31:43] 1015 (0) - 0.00 - сумма НСП по ставке [08:31:43] 1007 (11) - суммы НСП [08:31:43] 1014 (1) - 1% - код ставки НСП [08:31:43] 1015 (2) - 54.18 - сумма НСП по ставке [08:31:43] 1007 (9) - суммы НСП [08:31:43] 1014 (1) - 2% - код ставки НСП [08:31:43] 1015 (0) - 0.00 - сумма НСП по ставке [08:31:43] 1007 (9) - суммы НСП [08:31:43] 1014 (1) - 3% - код ставки НСП [08:31:43] 1015 (0) - 0.00 - сумма НСП по ставке [08:31:43] 1007 (9) - суммы НСП [08:31:43] 1014 (1) - 5% - код ставки НСП [08:31:43] 1015 (0) - 0.00 - сумма НСП по ставке [08:31:43] 1007 (9) - суммы НСП [08:31:43] 1014 (1) - 0,50% - код ставки НСП [08:31:43] 1015 (0) - 0.00 - сумма НСП по ставке [08:31:43] 1007 (9) - суммы НСП [08:31:43] 1014 (1) - 1,50% - код ставки НСП [08:31:43] 1015 (0) - 0.00 - сумма НСП по ставке [08:31:43] 1130 (141) - счетчики операций «возврат прихода» [08:31:43] 1135 (4) - 0 - количество чеков по признаку расчетов [08:31:43] 1201 (0) - 0.00 - общая итоговая сумма в чеках [08:31:43] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [08:31:43] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [08:31:43] 1024 (117) - суммы налогов [08:31:43] 1006 (9) - суммы НДС [08:31:43] 1010 (1) - 0% - код ставки НДС [08:31:43] 1011 (0) - 0.00 - сумма НДС по ставке [08:31:43] 1006 (9) - суммы НДС [08:31:43] 1010 (1) - 12% - код ставки НДС [08:31:43] 1011 (0) - 0.00 - сумма НДС по ставке [08:31:43] 1007 (9) - суммы НСП [08:31:43] 1014 (1) - 0% - код ставки НСП [08:31:43] 1015 (0) - 0.00 - сумма НСП по ставке [08:31:43] 1007 (9) - суммы НСП [08:31:43] 1014 (1) - 1% - код ставки НСП [08:31:43] 1015 (0) - 0.00 - сумма НСП по ставке [08:31:43] 1007 (9) - суммы НСП [08:31:43] 1014 (1) - 2% - код ставки НСП [08:31:43] 1015 (0) - 0.00 - сумма НСП по ставке [08:31:43] 1007 (9) - суммы НСП [08:31:43] 1014 (1) - 3% - код ставки НСП [08:31:43] 1015 (0) - 0.00 - сумма НСП по ставке [08:31:43] 1007 (9) - суммы НСП [08:31:43] 1014 (1) - 5% - код ставки НСП [08:31:43] 1015 (0) - 0.00 - сумма НСП по ставке [08:31:43] 1007 (9) - суммы НСП [08:31:43] 1014 (1) - 0,50% - код ставки НСП [08:31:43] 1015 (0) - 0.00 - сумма НСП по ставке [08:31:43] 1007 (9) - суммы НСП [08:31:43] 1014 (1) - 1,50% - код ставки НСП [08:31:43] 1015 (0) - 0.00 - сумма НСП по ставке [08:31:43] 1131 (141) - счетчики операций «расход» [08:31:43] 1135 (4) - 0 - количество чеков по признаку расчетов [08:31:43] 1201 (0) - 0.00 - общая итоговая сумма в чеках [08:31:43] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [08:31:43] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [08:31:43] 1024 (117) - суммы налогов [08:31:43] 1006 (9) - суммы НДС [08:31:43] 1010 (1) - 0% - код ставки НДС [08:31:43] 1011 (0) - 0.00 - сумма НДС по ставке [08:31:43] 1006 (9) - суммы НДС [08:31:43] 1010 (1) - 12% - код ставки НДС [08:31:43] 1011 (0) - 0.00 - сумма НДС по ставке [08:31:43] 1007 (9) - суммы НСП [08:31:43] 1014 (1) - 0% - код ставки НСП [08:31:43] 1015 (0) - 0.00 - сумма НСП по ставке [08:31:43] 1007 (9) - суммы НСП [08:31:43] 1014 (1) - 1% - код ставки НСП [08:31:43] 1015 (0) - 0.00 - сумма НСП по ставке [08:31:43] 1007 (9) - суммы НСП [08:31:43] 1014 (1) - 2% - код ставки НСП [08:31:43] 1015 (0) - 0.00 - сумма НСП по ставке [08:31:43] 1007 (9) - суммы НСП [08:31:43] 1014 (1) - 3% - код ставки НСП [08:31:43] 1015 (0) - 0.00 - сумма НСП по ставке [08:31:43] 1007 (9) - суммы НСП [08:31:43] 1014 (1) - 5% - код ставки НСП [08:31:43] 1015 (0) - 0.00 - сумма НСП по ставке [08:31:43] 1007 (9) - суммы НСП [08:31:43] 1014 (1) - 0,50% - код ставки НСП [08:31:43] 1015 (0) - 0.00 - сумма НСП по ставке [08:31:43] 1007 (9) - суммы НСП [08:31:43] 1014 (1) - 1,50% - код ставки НСП [08:31:43] 1015 (0) - 0.00 - сумма НСП по ставке [08:31:43] 1132 (141) - счетчики операций «возврат расхода» [08:31:43] 1135 (4) - 0 - количество чеков по признаку расчетов [08:31:43] 1201 (0) - 0.00 - общая итоговая сумма в чеках [08:31:43] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [08:31:43] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [08:31:43] 1024 (117) - суммы налогов [08:31:43] 1006 (9) - суммы НДС [08:31:43] 1010 (1) - 0% - код ставки НДС [08:31:43] 1011 (0) - 0.00 - сумма НДС по ставке [08:31:43] 1006 (9) - суммы НДС [08:31:43] 1010 (1) - 12% - код ставки НДС [08:31:43] 1011 (0) - 0.00 - сумма НДС по ставке [08:31:43] 1007 (9) - суммы НСП [08:31:43] 1014 (1) - 0% - код ставки НСП [08:31:43] 1015 (0) - 0.00 - сумма НСП по ставке [08:31:43] 1007 (9) - суммы НСП [08:31:43] 1014 (1) - 1% - код ставки НСП [08:31:43] 1015 (0) - 0.00 - сумма НСП по ставке [08:31:43] 1007 (9) - суммы НСП [08:31:43] 1014 (1) - 2% - код ставки НСП [08:31:43] 1015 (0) - 0.00 - сумма НСП по ставке [08:31:43] 1007 (9) - суммы НСП [08:31:43] 1014 (1) - 3% - код ставки НСП [08:31:43] 1015 (0) - 0.00 - сумма НСП по ставке [08:31:43] 1007 (9) - суммы НСП [08:31:43] 1014 (1) - 5% - код ставки НСП [08:31:43] 1015 (0) - 0.00 - сумма НСП по ставке [08:31:43] 1007 (9) - суммы НСП [08:31:43] 1014 (1) - 0,50% - код ставки НСП [08:31:43] 1015 (0) - 0.00 - сумма НСП по ставке [08:31:43] 1007 (9) - суммы НСП [08:31:43] 1014 (1) - 1,50% - код ставки НСП [08:31:43] 1015 (0) - 0.00 - сумма НСП по ставке [08:31:43] 1133 (588) - - счетчики коррекции - не используются [08:31:43]SetTLVBufToDocument [08:31:43]Processing tag 1194 (04AA) [08:31:43]Load OK [08:31:43]SetTLVBufToDocument [08:31:43]Processing tag 1134 (046E) [08:31:43]Malloc new data [08:31:43]Processing tag 1129 (0469) [08:31:43]Load OK [08:31:43]SetTLVBufToDocument [08:31:43]Processing tag 1135 (046F) [08:31:43]Malloc new data [08:31:43]Processing tag 1201 (04B1) [08:31:43]Malloc new data [08:31:43]Processing tag 1136 (0470) [08:31:43]Malloc new data [08:31:43]Processing tag 1138 (0472) [08:31:43]Malloc new data [08:31:43]Processing tag 1024 (0400) [08:31:43]Load OK [08:31:43]SetTLVBufToDocument [08:31:43]Processing tag 1006 (03EE) [08:31:43]Load OK [08:31:43]SetTLVBufToDocument [08:31:43]Processing tag 1010 (03F2) [08:31:43]Malloc new data [08:31:43]Processing tag 1011 (03F3) [08:31:43]Malloc new data [08:31:43]SetTLVBufToDocument err=0 [08:31:43]Processing tag 1006 (03EE) [08:31:43]Load OK [08:31:43]SetTLVBufToDocument [08:31:43]Processing tag 1010 (03F2) [08:31:43]Malloc new data [08:31:43]Processing tag 1011 (03F3) [08:31:43]Malloc new data [08:31:43]SetTLVBufToDocument err=0 [08:31:43]Processing tag 1007 (03EF) [08:31:43]Load OK [08:31:43]SetTLVBufToDocument [08:31:43]Processing tag 1014 (03F6) [08:31:43]Malloc new data [08:31:43]Processing tag 1015 (03F7) [08:31:43]Malloc new data [08:31:43]SetTLVBufToDocument err=0 [08:31:43]Processing tag 1007 (03EF) [08:31:43]Load OK [08:31:43]SetTLVBufToDocument [08:31:43]Processing tag 1014 (03F6) [08:31:43]Malloc new data [08:31:43]Processing tag 1015 (03F7) [08:31:43]Malloc new data [08:31:43]SetTLVBufToDocument err=0 [08:31:43]Processing tag 1007 (03EF) [08:31:43]Load OK [08:31:43]SetTLVBufToDocument [08:31:43]Processing tag 1014 (03F6) [08:31:43]Malloc new data [08:31:43]Processing tag 1015 (03F7) [08:31:43]Malloc new data [08:31:43]SetTLVBufToDocument err=0 [08:31:43]Processing tag 1007 (03EF) [08:31:43]Load OK [08:31:43]SetTLVBufToDocument [08:31:43]Processing tag 1014 (03F6) [08:31:43]Malloc new data [08:31:43]Processing tag 1015 (03F7) [08:31:43]Malloc new data [08:31:43]SetTLVBufToDocument err=0 [08:31:43]Processing tag 1007 (03EF) [08:31:43]Load OK [08:31:43]SetTLVBufToDocument [08:31:43]Processing tag 1014 (03F6) [08:31:43]Malloc new data [08:31:43]Processing tag 1015 (03F7) [08:31:43]Malloc new data [08:31:43]SetTLVBufToDocument err=0 [08:31:43]Processing tag 1007 (03EF) [08:31:43]Load OK [08:31:43]SetTLVBufToDocument [08:31:43]Processing tag 1014 (03F6) [08:31:43]Malloc new data [08:31:43]Processing tag 1015 (03F7) [08:31:43]Malloc new data [08:31:43]SetTLVBufToDocument err=0 [08:31:43]Processing tag 1007 (03EF) [08:31:43]Load OK [08:31:43]SetTLVBufToDocument [08:31:43]Processing tag 1014 (03F6) [08:31:43]Malloc new data [08:31:43]Processing tag 1015 (03F7) [08:31:43]Malloc new data [08:31:43]SetTLVBufToDocument err=0 [08:31:43]SetTLVBufToDocument err=0 [08:31:43]SetTLVBufToDocument err=0 [08:31:43]Processing tag 1130 (046A) [08:31:43]Load OK [08:31:43]SetTLVBufToDocument [08:31:43]Processing tag 1135 (046F) [08:31:43]Malloc new data [08:31:43]Processing tag 1201 (04B1) [08:31:43]Malloc new data [08:31:43]Processing tag 1136 (0470) [08:31:43]Malloc new data [08:31:43]Processing tag 1138 (0472) [08:31:43]Malloc new data [08:31:43]Processing tag 1024 (0400) [08:31:43]Load OK [08:31:43]SetTLVBufToDocument [08:31:43]Processing tag 1006 (03EE) [08:31:43]Load OK [08:31:43]SetTLVBufToDocument [08:31:43]Processing tag 1010 (03F2) [08:31:43]Malloc new data [08:31:43]Processing tag 1011 (03F3) [08:31:43]Malloc new data [08:31:43]SetTLVBufToDocument err=0 [08:31:43]Processing tag 1006 (03EE) [08:31:43]Load OK [08:31:43]SetTLVBufToDocument [08:31:43]Processing tag 1010 (03F2) [08:31:43]Malloc new data [08:31:43]Processing tag 1011 (03F3) [08:31:43]Malloc new data [08:31:43]SetTLVBufToDocument err=0 [08:31:43]Processing tag 1007 (03EF) [08:31:43]Load OK [08:31:43]SetTLVBufToDocument [08:31:43]Processing tag 1014 (03F6) [08:31:43]Malloc new data [08:31:43]Processing tag 1015 (03F7) [08:31:43]Malloc new data [08:31:43]SetTLVBufToDocument err=0 [08:31:43]Processing tag 1007 (03EF) [08:31:43]Load OK [08:31:43]SetTLVBufToDocument [08:31:43]Processing tag 1014 (03F6) [08:31:43]Malloc new data [08:31:43]Processing tag 1015 (03F7) [08:31:43]Malloc new data [08:31:43]SetTLVBufToDocument err=0 [08:31:43]Processing tag 1007 (03EF) [08:31:43]Load OK [08:31:43]SetTLVBufToDocument [08:31:43]Processing tag 1014 (03F6) [08:31:43]Malloc new data [08:31:43]Processing tag 1015 (03F7) [08:31:43]Malloc new data [08:31:43]SetTLVBufToDocument err=0 [08:31:43]Processing tag 1007 (03EF) [08:31:43]Load OK [08:31:43]SetTLVBufToDocument [08:31:43]Processing tag 1014 (03F6) [08:31:43]Malloc new data [08:31:43]Processing tag 1015 (03F7) [08:31:43]Malloc new data [08:31:43]SetTLVBufToDocument err=0 [08:31:43]Processing tag 1007 (03EF) [08:31:43]Load OK [08:31:43]SetTLVBufToDocument [08:31:43]Processing tag 1014 (03F6) [08:31:43]Malloc new data [08:31:43]Processing tag 1015 (03F7) [08:31:43]Malloc new data [08:31:43]SetTLVBufToDocument err=0 [08:31:43]Processing tag 1007 (03EF) [08:31:43]Load OK [08:31:43]SetTLVBufToDocument [08:31:43]Processing tag 1014 (03F6) [08:31:43]Malloc new data [08:31:43]Processing tag 1015 (03F7) [08:31:43]Malloc new data [08:31:43]SetTLVBufToDocument err=0 [08:31:43]Processing tag 1007 (03EF) [08:31:43]Load OK [08:31:43]SetTLVBufToDocument [08:31:43]Processing tag 1014 (03F6) [08:31:43]Malloc new data [08:31:43]Processing tag 1015 (03F7) [08:31:43]Malloc new data [08:31:43]SetTLVBufToDocument err=0 [08:31:43]SetTLVBufToDocument err=0 [08:31:43]SetTLVBufToDocument err=0 [08:31:43]Processing tag 1131 (046B) [08:31:43]Load OK [08:31:43]SetTLVBufToDocument [08:31:43]Processing tag 1135 (046F) [08:31:43]Malloc new data [08:31:43]Processing tag 1201 (04B1) [08:31:43]Malloc new data [08:31:43]Processing tag 1136 (0470) [08:31:43]Malloc new data [08:31:43]Processing tag 1138 (0472) [08:31:43]Malloc new data [08:31:43]Processing tag 1024 (0400) [08:31:43]Load OK [08:31:43]SetTLVBufToDocument [08:31:43]Processing tag 1006 (03EE) [08:31:43]Load OK [08:31:43]SetTLVBufToDocument [08:31:43]Processing tag 1010 (03F2) [08:31:43]Malloc new data [08:31:43]Processing tag 1011 (03F3) [08:31:43]Malloc new data [08:31:43]SetTLVBufToDocument err=0 [08:31:43]Processing tag 1006 (03EE) [08:31:43]Load OK [08:31:43]SetTLVBufToDocument [08:31:43]Processing tag 1010 (03F2) [08:31:43]Malloc new data [08:31:43]Processing tag 1011 (03F3) [08:31:43]Malloc new data [08:31:43]SetTLVBufToDocument err=0 [08:31:43]Processing tag 1007 (03EF) [08:31:43]Load OK [08:31:43]SetTLVBufToDocument [08:31:43]Processing tag 1014 (03F6) [08:31:43]Malloc new data [08:31:43]Processing tag 1015 (03F7) [08:31:43]Malloc new data [08:31:43]SetTLVBufToDocument err=0 [08:31:43]Processing tag 1007 (03EF) [08:31:43]Load OK [08:31:43]SetTLVBufToDocument [08:31:43]Processing tag 1014 (03F6) [08:31:43]Malloc new data [08:31:43]Processing tag 1015 (03F7) [08:31:43]Malloc new data [08:31:43]SetTLVBufToDocument err=0 [08:31:43]Processing tag 1007 (03EF) [08:31:43]Load OK [08:31:43]SetTLVBufToDocument [08:31:43]Processing tag 1014 (03F6) [08:31:43]Malloc new data [08:31:43]Processing tag 1015 (03F7) [08:31:43]Malloc new data [08:31:43]SetTLVBufToDocument err=0 [08:31:43]Processing tag 1007 (03EF) [08:31:43]Load OK [08:31:43]SetTLVBufToDocument [08:31:43]Processing tag 1014 (03F6) [08:31:43]Malloc new data [08:31:43]Processing tag 1015 (03F7) [08:31:43]Malloc new data [08:31:43]SetTLVBufToDocument err=0 [08:31:43]Processing tag 1007 (03EF) [08:31:43]Load OK [08:31:43]SetTLVBufToDocument [08:31:43]Processing tag 1014 (03F6) [08:31:43]Malloc new data [08:31:43]Processing tag 1015 (03F7) [08:31:43]Malloc new data [08:31:43]SetTLVBufToDocument err=0 [08:31:43]Processing tag 1007 (03EF) [08:31:43]Load OK [08:31:43]SetTLVBufToDocument [08:31:43]Processing tag 1014 (03F6) [08:31:43]Malloc new data [08:31:43]Processing tag 1015 (03F7) [08:31:43]Malloc new data [08:31:43]SetTLVBufToDocument err=0 [08:31:43]Processing tag 1007 (03EF) [08:31:43]Load OK [08:31:44]SetTLVBufToDocument [08:31:44]Processing tag 1014 (03F6) [08:31:44]Malloc new data [08:31:44]Processing tag 1015 (03F7) [08:31:44]Malloc new data [08:31:44]SetTLVBufToDocument err=0 [08:31:44]SetTLVBufToDocument err=0 [08:31:44]SetTLVBufToDocument err=0 [08:31:44]Processing tag 1132 (046C) [08:31:44]Load OK [08:31:44]SetTLVBufToDocument [08:31:44]Processing tag 1135 (046F) [08:31:44]Malloc new data [08:31:44]Processing tag 1201 (04B1) [08:31:44]Malloc new data [08:31:44]Processing tag 1136 (0470) [08:31:44]Malloc new data [08:31:44]Processing tag 1138 (0472) [08:31:44]Malloc new data [08:31:44]Processing tag 1024 (0400) [08:31:44]Load OK [08:31:44]SetTLVBufToDocument [08:31:44]Processing tag 1006 (03EE) [08:31:44]Load OK [08:31:44]SetTLVBufToDocument [08:31:44]Processing tag 1010 (03F2) [08:31:44]Malloc new data [08:31:44]Processing tag 1011 (03F3) [08:31:44]Malloc new data [08:31:44]SetTLVBufToDocument err=0 [08:31:44]Processing tag 1006 (03EE) [08:31:44]Load OK [08:31:44]SetTLVBufToDocument [08:31:44]Processing tag 1010 (03F2) [08:31:44]Malloc new data [08:31:44]Processing tag 1011 (03F3) [08:31:44]Malloc new data [08:31:44]SetTLVBufToDocument err=0 [08:31:44]Processing tag 1007 (03EF) [08:31:44]Load OK [08:31:44]SetTLVBufToDocument [08:31:44]Processing tag 1014 (03F6) [08:31:44]Malloc new data [08:31:44]Processing tag 1015 (03F7) [08:31:44]Malloc new data [08:31:44]SetTLVBufToDocument err=0 [08:31:44]Processing tag 1007 (03EF) [08:31:44]Load OK [08:31:44]SetTLVBufToDocument [08:31:44]Processing tag 1014 (03F6) [08:31:44]Malloc new data [08:31:44]Processing tag 1015 (03F7) [08:31:44]Malloc new data [08:31:44]SetTLVBufToDocument err=0 [08:31:44]Processing tag 1007 (03EF) [08:31:44]Load OK [08:31:44]SetTLVBufToDocument [08:31:44]Processing tag 1014 (03F6) [08:31:44]Malloc new data [08:31:44]Processing tag 1015 (03F7) [08:31:44]Malloc new data [08:31:44]SetTLVBufToDocument err=0 [08:31:44]Processing tag 1007 (03EF) [08:31:44]Load OK [08:31:44]SetTLVBufToDocument [08:31:44]Processing tag 1014 (03F6) [08:31:44]Malloc new data [08:31:44]Processing tag 1015 (03F7) [08:31:44]Malloc new data [08:31:44]SetTLVBufToDocument err=0 [08:31:44]Processing tag 1007 (03EF) [08:31:44]Load OK [08:31:44]SetTLVBufToDocument [08:31:44]Processing tag 1014 (03F6) [08:31:44]Malloc new data [08:31:44]Processing tag 1015 (03F7) [08:31:44]Malloc new data [08:31:44]SetTLVBufToDocument err=0 [08:31:44]Processing tag 1007 (03EF) [08:31:44]Load OK [08:31:44]SetTLVBufToDocument [08:31:44]Processing tag 1014 (03F6) [08:31:44]Malloc new data [08:31:44]Processing tag 1015 (03F7) [08:31:44]Malloc new data [08:31:44]SetTLVBufToDocument err=0 [08:31:44]Processing tag 1007 (03EF) [08:31:44]Load OK [08:31:44]SetTLVBufToDocument [08:31:44]Processing tag 1014 (03F6) [08:31:44]Malloc new data [08:31:44]Processing tag 1015 (03F7) [08:31:44]Malloc new data [08:31:44]SetTLVBufToDocument err=0 [08:31:44]SetTLVBufToDocument err=0 [08:31:44]SetTLVBufToDocument err=0 [08:31:44]Processing tag 1133 (046D) [08:31:44]Malloc new data [08:31:44]SetTLVBufToDocument err=0 [08:31:44]SetTLVBufToDocument err=0 [08:31:44]Malloc new data [08:31:44]SAM_PROTO_GetFMData [08:31:44]wFMCommunicate request_size=4 [08:31:44]MH_SAM_APDU [08:31:44]CAPDU: 80 13 03 00 [08:31:44]Write to MH i2c: E2 08 00 04 06 80 13 03 00 00 00 00 00 89 [08:31:44]Write i2c OK [08:31:44]MH_I2C_Read... [08:31:44]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [08:31:44]Read from MH i2c: E2 [08:31:44]MH_I2C_Read... [08:31:44]Read from MH i2c: E2 FD 00 [08:31:44]MH_I2C_Read... [08:31:44]Read from MH i2c: E2 FD 00 04 06 00 C5 04 85 04 C1 04 6E 04 04 00 2F F6 00 00 69 04 A1 00 6F 04 04 00 D2 F3 00 00 B1 04 04 00 1D 4D 81 76 70 04 04 00 BE 89 D4 65 72 04 04 00 5F C3 AC 10 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 BA 13 96 0C 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 FE 6D 0C 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 5D 02 00 00 B1 04 04 00 64 11 7D 03 70 04 04 00 E0 B5 61 03 72 04 03 00 84 5B 1B 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 F2 D8 5E EF 03 09 90 00 AA [08:31:44]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 2F F6 00 00 69 04 A1 00 6F 04 04 00 D2 F3 00 00 B1 04 04 00 1D 4D 81 76 70 04 04 00 BE 89 D4 65 72 04 04 00 5F C3 AC 10 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 BA 13 96 0C 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 FE 6D 0C 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 OFD Sender: No OFD packet to send [08:31:45]03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 5D 02 00 00 B1 04 04 00 64 11 7D 03 70 04 04 00 E0 B5 61 03 72 04 03 00 84 5B 1B 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 F2 D8 5E EF 03 09 90 00 [08:31:45]wFMCommunicate OK [08:31:45]wFMCommunicate request_size=4 [08:31:45]MH_SAM_APDU [08:31:45]CAPDU: 80 17 00 00 [08:31:45]Write to MH i2c: E2 08 00 05 06 80 17 00 00 00 00 00 00 8B [08:31:45]Write i2c OK [08:31:45]MH_I2C_Read... [08:31:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:31:45]Read from MH i2c: E2 [08:31:45]MH_I2C_Read... [08:31:45]Read from MH i2c: E2 FD 00 [08:31:45]MH_I2C_Read... [08:31:45]Read from MH i2c: E2 FD 00 05 06 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 2E E7 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 5D [08:31:45]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 2E E7 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [08:31:45]wFMCommunicate OK [08:31:45]wFMCommunicate request_size=4 [08:31:45]MH_SAM_APDU [08:31:45]CAPDU: 80 17 00 00 [08:31:45]Write to MH i2c: E2 08 00 06 06 80 17 00 00 00 00 00 00 8C [08:31:45]Write i2c OK [08:31:45]MH_I2C_Read... [08:31:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:31:45]Read from MH i2c: E2 [08:31:45]MH_I2C_Read... [08:31:45]Read from MH i2c: E2 FD 00 [08:31:45]MH_I2C_Read... [08:31:45]Read from MH i2c: E2 FD 00 06 06 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 9E [08:31:46]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [08:31:46]wFMCommunicate OK [08:31:46]wFMCommunicate request_size=4 [08:31:46]MH_SAM_APDU [08:31:46]CAPDU: 80 17 00 00 [08:31:46]Write to MH i2c: E2 08 00 07 06 80 17 00 00 00 00 00 00 8D [08:31:46]Write i2c OK [08:31:46]MH_I2C_Read... [08:31:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:31:46]Read from MH i2c: E2 [08:31:46]MH_I2C_Read... [08:31:46]Read from MH i2c: E2 FD 00 [08:31:46]MH_I2C_Read... [08:31:46]Read from MH i2c: E2 FD 00 07 06 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 19 [08:31:46]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [08:31:46]wFMCommunicate OK [08:31:46]wFMCommunicate request_size=4 [08:31:46]MH_SAM_APDU [08:31:46]CAPDU: 80 17 00 00 [08:31:46]Write to MH i2c: E2 08 00 08 06 80 17 00 00 00 00 00 00 8E [08:31:46]Write i2c OK [08:31:46]MH_I2C_Read... [08:31:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [08:31:46]Read from MH i2c: E2 [08:31:46]MH_I2C_Read... [08:31:46]Read from MH i2c: E2 E2 00 [08:31:46]MH_I2C_Read... [08:31:46]Read from MH i2c: E2 E2 00 08 06 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 6C [08:31:47]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [08:31:47]wFMCommunicate OK [08:31:47]SAM_PROTO_GetFMData done [08:31:47]FM_GetFMData:85 04 C1 04 6E 04 04 00 2F F6 00 00 69 04 A1 00 6F 04 04 00 D2 F3 00 00 B1 04 04 00 1D 4D 81 76 70 04 04 00 BE 89 D4 65 72 04 04 00 5F C3 AC 10 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 BA 13 96 0C 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 FE 6D 0C 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 5D 02 00 00 B1 04 04 00 64 11 7D 03 70 04 04 00 E0 B5 61 03 72 04 03 00 84 5B 1B 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 F2 D8 5E 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 2E E7 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [08:31:47]oper:6F 04 04 00 D2 F3 00 00 B1 04 04 00 1D 4D 81 76 70 04 04 00 BE 89 D4 65 72 04 04 00 5F C3 AC 10 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 BA 13 96 0C 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 FE 6D 0C 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 [08:31:47]total:1D 4D 81 76 [08:31:47]Malloc new data [08:31:47]oper:6F 04 04 00 5D 02 00 00 B1 04 04 00 64 11 7D 03 70 04 04 00 E0 B5 61 03 72 04 03 00 84 5B 1B 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 F2 D8 5E 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 2E E7 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [08:31:48]total:64 11 7D 03 [08:31:48]Malloc new data [08:31:48]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 [08:31:48]total: [08:31:48]Malloc new data [08:31:48]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 [08:31:48]total: [08:31:48]Malloc new data [08:31:48]KKMPrepareXReportFMData err=0 [08:31:48]Х отчет ИНН: 02508201610067 Кассир: Калыгулова Н. 03.06.2024 08:31 Смена: 266 РНМ: 0000000000092737 ЗНМ: 0300000031 СНО: Общий режим Всего чеков: 27 ИТОГИ ПРИХОД Чеков: 27 Общий итог: 6124.00 Итого наличными: 5854.00 Итого безнал.: 270.00 НДС 0% : 0.00 НДС 12% : 650.34 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 54.18 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 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 Нал. в кассе: 5854.00 НС Приход: 19881853.73 НС Возвр.Прихода: 585281.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000875074 [08:31:48]StoreToDocumentArchive [08:31:48]MH_GetDate [08:31:48]Write to MH i2c: F0 00 00 09 06 FE [08:31:48]Write i2c OK [08:31:48]MH_I2C_Read... [08:31:48]Read from MH i2c: F0 [08:31:48]MH_I2C_Read... [08:31:48]Read from MH i2c: F0 09 00 [08:31:48]MH_I2C_Read... [08:31:48]Read from MH i2c: F0 09 00 09 06 00 75 7F 5D 66 6A 96 4A 66 6E [08:31:48]shift 266 fd 1717403509 [08:31:48]Create dir for shift 0266 [08:31:48]save to /storage/0266/doc_1717403509 [08:31:48]save last doc name /storage/0266/doc_1717403509 to /storage/kkm_last_doc_name [08:31:48]save OK [08:31:48]Clear old archive folders... [08:31:48]NVStorageSaveData kkm_last_timestamp [08:31:48]File name is /storage/kkm_last_timestamp [08:31:48]Write 4 bytes [08:31:48]NVStorageSaveData done [08:31:48]ExternCall_PrintAddStr [08:31:48]wPrintStart [08:31:48]Write to MH i2c: 01 00 00 0A 06 10 [08:31:48]Write i2c OK [08:31:48]MH_I2C_Read... [08:31:48]Read from MH i2c: 01 [08:31:48]MH_I2C_Read... [08:31:48]Read from MH i2c: 01 07 00 [08:31:48]MH_I2C_Read... [08:31:48]Read from MH i2c: 01 07 00 0A 06 00 00 00 00 00 FF 0F 25 [08:31:48]RasterBufferAndPrint [08:31:48]line Х отчет [08:31:48]line ИНН: 02508201610067 [08:31:48]line Кассир: Калыгулова Н. [08:31:48]line 03.06.2024 08:31 [08:31:48]line Смена: 266 [08:31:48]line РНМ: 0000000000092737 [08:31:48]line ЗНМ: 0300000031 [08:31:48]line СНО: Общий режим [08:31:48]line Всего чеков: 27 [08:31:48]line ИТОГИ ПРИХОД [08:31:48]line Чеков: 27 [08:31:48]line Общий итог: 6124.00 [08:31:48]line Итого наличными: 5854.00 [08:31:48]line Итого безнал.: 270.00 [08:31:48]line НДС 0% : 0.00 [08:31:48]line НДС 12% : 650.34 [08:31:48]line НСП 0% : 0.00 [08:31:48]line НСП 1,50% : 0.00 [08:31:48]line НСП 0,50% : 0.00 [08:31:48]line НСП 5% : 0.00 [08:31:48]line НСП 3% : 0.00 [08:31:48]line НСП 2% : 0.00 [08:31:48]line НСП 1% : 54.18 [08:31:48]line ИТОГИ ВОЗВРАТ ПРИХОДА [08:31:48]line Чеков: 0 [08:31:48]line Общий итог: 0.00 [08:31:48]line Итого наличными: 0.00 [08:31:48]line Итого безнал.: 0.00 [08:31:48]line НДС 0% : 0.00 [08:31:48]line НДС 12% : 0.00 [08:31:48]line НСП 0% : 0.00 [08:31:48]line НСП 1,50% : 0.00 [08:31:48]line НСП 0,50% : 0.00 [08:31:48]line НСП 5% : 0.00 [08:31:48]line НСП 3% : 0.00 [08:31:48]line НСП 2% : 0.00 [08:31:48]line НСП 1% : 0.00 [08:31:48]line ИТОГИ РАСХОД [08:31:48]line Чеков: 0 [08:31:48]line Общий итог: 0.00 [08:31:48]line Итого наличными: 0.00 [08:31:48]line Итого безнал.: 0.00 [08:31:48]line НДС 0% : 0.00 [08:31:48]line НДС 12% : 0.00 [08:31:48]line НСП 0% : 0.00 [08:31:48]line НСП 1,50% : 0.00 [08:31:48]line НСП 0,50% : 0.00 [08:31:48]line НСП 5% : 0.00 [08:31:48]line НСП 3% : 0.00 [08:31:48]line НСП 2% : 0.00 [08:31:48]line НСП 1% : 0.00 [08:31:48]line ИТОГИ ВОЗВРАТ РАСХОДА [08:31:48]line Чеков: 0 [08:31:48]line Общий итог: 0.00 [08:31:48]line Итого наличными: 0.00 [08:31:48]line Итого безнал.: 0.00 [08:31:48]line НДС 0% : 0.00 [08:31:48]line НДС 12% : 0.00 [08:31:48]line НСП 0% : 0.00 [08:31:48]line НСП 1,50% : 0.00 [08:31:48]line НСП 0,50% : 0.00 [08:31:48]line НСП 5% : 0.00 [08:31:48]line НСП 3% : 0.00 [08:31:48]line НСП 2% : 0.00 [08:31:48]line НСП 1% : 0.00 [08:31:48]line Сумма внесений: 0.00 [08:31:48]line Сумма выплат: 0.00 [08:31:48]line Нал. в кассе: 5854.00 [08:31:48]line НС Приход: 19881853.73 [08:31:48]line НС Возвр.Прихода: 585281.00 [08:31:48]line НС Расход: 0.00 [08:31:48]line НС Возвр.Расхода: 0.00 [08:31:48]line ФМ: 0000000000875074 [08:31:48]written 0, free lines is 4095 [08:31:49]Write to MH i2c: 01 00 00 55 06 5B [08:31:49]Write i2c OK [08:31:49]MH_I2C_Read... [08:31:49]Read from MH i2c: 01 [08:31:49]MH_I2C_Read... [08:31:49]Read from MH i2c: 01 07 00 [08:31:49]MH_I2C_Read... [08:31:49]Read from MH i2c: 01 07 00 55 06 00 00 00 00 00 9D 0A 09 [08:31:49]RasterBufferAndPrint [08:31:49]line [08:31:49]line [08:31:49]line [08:31:49]line [08:31:49]line [08:31:49]written 0, free lines is 2746 [08:31:49]MH_Cut [08:31:49]Write to MH i2c: D1 01 00 5C 06 01 34 [08:31:49]Write i2c OK [08:31:49]MH_I2C_Read... [08:31:49]Read from MH i2c: D1 [08:31:49]MH_I2C_Read... [08:31:49]Read from MH i2c: D1 01 00 [08:31:49]MH_I2C_Read... [08:31:49]Read from MH i2c: D1 01 00 5C 06 00 33 [08:31:49]Write to MH i2c: 01 00 00 5D 06 63 [08:31:49]Write i2c OK [08:31:49]MH_I2C_Read... [08:31:50]OFD Sender: No OFD packet to send [08:31:50]*** Cut start [08:31:50]*** Partial cut [08:31:50]*** CUTSNS_PIN = 1 [08:31:50]*** CUTSNS_PIN = 0 [08:31:50]*** Brake cut motor [08:31:50]Read from MH i2c: 01 [08:31:50]MH_I2C_Read... [08:31:50]*** Stop cut motor [08:31:50]*** Cut end [08:31:50]Read from MH i2c: 01 07 00 [08:31:50]MH_I2C_Read... [08:31:50]Read from MH i2c: 01 07 00 5D 06 00 00 00 00 00 FF 0F 78 [08:31:50]process_action x_report done [08:31:50]requested_data is exist [08:31:50]produce_requested_data [08:31:50]requested_item fd.num is exist - process it [08:31:50]SAM_PROTO_GetFieldsCounters [08:31:50]wFMCommunicate request_size=4 [08:31:50]MH_SAM_APDU [08:31:50]CAPDU: 80 13 00 00 [08:31:50]Write to MH i2c: E2 08 00 5E 06 80 13 00 00 00 00 00 00 E0 [08:31:50]Write i2c OK [08:31:50]MH_I2C_Read... [08:31:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:31:51]Read from MH i2c: E2 [08:31:51]MH_I2C_Read... [08:31:51]Read from MH i2c: E2 62 00 [08:31:51]MH_I2C_Read... [08:31:51]Read from MH i2c: E2 62 00 5E 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 19 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 DC [08:31:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 19 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:31:51]wFMCommunicate OK [08:31:51]SAM_PROTO_GetFieldsCounters done [08:31:51]requested_item shift.num is exist - process it [08:31:51]requested_item shift.opened is exist - process it [08:31:51]req_shift_opened [08:31:51]FM_GetShiftState [08:31:51]SAM_PROTO_GetShiftState [08:31:51]wFMCommunicate request_size=4 [08:31:51]MH_SAM_APDU [08:31:51]CAPDU: 80 13 01 00 [08:31:51]Write to MH i2c: E2 08 00 5F 06 80 13 01 00 00 00 00 00 E2 [08:31:51]Write i2c OK [08:31:51]MH_I2C_Read... [08:31:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:31:51]Read from MH i2c: E2 [08:31:51]MH_I2C_Read... [08:31:51]Read from MH i2c: E2 0E 00 [08:31:51]MH_I2C_Read... [08:31:51]Read from MH i2c: E2 0E 00 5F 06 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 AE [08:31:51]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [08:31:51]wFMCommunicate OK [08:31:51]SAM_PROTO_GetShiftState done [08:31:51]FM_GetShiftState done [08:31:51]req_shift_opened done [08:31:51]requested_item shift.open_date is exist - process it [08:31:51]req_shift_open_date [08:31:51]req_shift_open_date done [08:31:51]produce_requested_data done [08:31:51]produce_requested_data return {"fd.num":63769,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [08:31:51]process_action_free x_report [08:31:51]json_value_free [08:31:51]json_value_free done [08:31:51]process_json_proto returns [08:31:51]Send response to host [08:31:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":63769,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [08:31:51]free response buf [08:31:51]execute_script done [08:31:51]execute_script returns [08:31:51]free content buf [08:31:51]Sock 9.Close socket [08:31:51]Sock 9.Thread stoped [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:25]OFD Sender: No OFD packet to send [08:41:30]OFD Sender: No OFD packet to send [08:41:35]OFD Sender: No OFD packet to send [08:41:40]OFD Sender: No OFD packet to send [08:41:45]OFD Sender: No OFD packet to send [08:41:50]OFD Sender: No OFD packet to send [08:41:55]OFD Sender: No OFD packet to send [08:42:00]OFD Sender: No OFD packet to send [08:42:05]OFD Sender: No OFD packet to send [08:42:10]OFD Sender: No OFD packet to send [08:42:15]OFD Sender: No OFD packet to send [08:42:20]OFD Sender: No OFD packet to send [08:42:25]OFD Sender: No OFD packet to send [08:42:30]OFD Sender: No OFD packet to send [08:42:35]OFD Sender: No OFD packet to send [08:42:40]OFD Sender: No OFD packet to send [08:42:45]OFD Sender: No OFD packet to send [08:42:50]OFD Sender: No OFD packet to send [08:42:55]OFD Sender: No OFD packet to send [08:43:00]OFD Sender: No OFD packet to send [08:43:05]OFD Sender: No OFD packet to send [08:43:10]OFD Sender: No OFD packet to send [08:43:15]OFD Sender: No OFD packet to send [08:43:20]OFD Sender: No OFD packet to send [08:43:25]OFD Sender: No OFD packet to send [08:43:30]OFD Sender: No OFD packet to send [08:43:35]OFD Sender: No OFD packet to send [08:43:40]OFD Sender: No OFD packet to send [08:43:45]OFD Sender: No OFD packet to send [08:43:50]OFD Sender: No OFD packet to send [08:43:55]OFD Sender: No OFD packet to send [08:44:00]OFD Sender: No OFD packet to send [08:44:05]OFD Sender: No OFD packet to send [08:44:10]OFD Sender: No OFD packet to send [08:44:15]OFD Sender: No OFD packet to send [08:44:20]OFD Sender: No OFD packet to send [08:44:25]OFD Sender: No OFD packet to send [08:44:30]OFD Sender: No OFD packet to send [08:44:35]OFD Sender: No OFD packet to send [08:44:40]OFD Sender: No OFD packet to send [08:44:45]OFD Sender: No OFD packet to send [08:44:50]OFD Sender: No OFD packet to send [08:44:55]OFD Sender: No OFD packet to send [08:45:00]OFD Sender: No OFD packet to send [08:45:05]OFD Sender: No OFD packet to send [08:45:10]OFD Sender: No OFD packet to send [08:45:15]OFD Sender: No OFD packet to send [08:45:20]OFD Sender: No OFD packet to send [08:45:25]OFD Sender: No OFD packet to send [08:45:30]OFD Sender: No OFD packet to send [08:45:35]OFD Sender: No OFD packet to send [08:45:40]OFD Sender: No OFD packet to send [08:45:45]OFD Sender: No OFD packet to send [08:45:50]OFD Sender: No OFD packet to send [08:45:55]OFD Sender: No OFD packet to send [08:46:00]OFD Sender: No OFD packet to send [08:46:05]OFD Sender: No OFD packet to send [08:46:10]OFD Sender: No OFD packet to send [08:46:15]OFD Sender: No OFD packet to send [08:46:20]OFD Sender: No OFD packet to send [08:46:25]OFD Sender: No OFD packet to send [08:46:30]OFD Sender: No OFD packet to send [08:46:35]OFD Sender: No OFD packet to send [08:46:40]OFD Sender: No OFD packet to send [08:46:45]OFD Sender: No OFD packet to send [08:46:50]OFD Sender: No OFD packet to send [08:46:55]OFD Sender: No OFD packet to send [08:47:00]OFD Sender: No OFD packet to send [08:47:05]OFD Sender: No OFD packet to send [08:47:10]OFD Sender: No OFD packet to send [08:47:15]OFD Sender: No OFD packet to send [08:47:20]OFD Sender: No OFD packet to send [08:47:25]OFD Sender: No OFD packet to send [08:47:30]OFD Sender: No OFD packet to send [08:47:35]OFD Sender: No OFD packet to send [08:47:40]OFD Sender: No OFD packet to send [08:47:45]OFD Sender: No OFD packet to send [08:47:50]OFD Sender: No OFD packet to send [08:47:55]OFD Sender: No OFD packet to send [08:48:00]OFD Sender: No OFD packet to send [08:48:05]OFD Sender: No OFD packet to send [08:48:10]OFD Sender: No OFD packet to send [08:48:15]OFD Sender: No OFD packet to send [08:48:20]OFD Sender: No OFD packet to send [08:48:25]OFD Sender: No OFD packet to send [08:48:30]OFD Sender: No OFD packet to send [08:48:35]OFD Sender: No OFD packet to send [08:48:40]OFD Sender: No OFD packet to send [08:48:45]OFD Sender: No OFD packet to send [08:48:50]OFD Sender: No OFD packet to send [08:48:55]OFD Sender: No OFD packet to send [08:49:00]OFD Sender: No OFD packet to send [08:49:05]OFD Sender: No OFD packet to send [08:49:10]OFD Sender: No OFD packet to send [08:49:15]OFD Sender: No OFD packet to send [08:49:20]OFD Sender: No OFD packet to send [08:49:25]OFD Sender: No OFD packet to send [08:49:30]OFD Sender: No OFD packet to send [08:49:35]OFD Sender: No OFD packet to send [08:49:40]OFD Sender: No OFD packet to send [08:49:45]OFD Sender: No OFD packet to send [08:49:50]OFD Sender: No OFD packet to send [08:49:55]OFD Sender: No OFD packet to send [08:50:00]OFD Sender: No OFD packet to send [08:50:05]OFD Sender: No OFD packet to send [08:50:10]OFD Sender: No OFD packet to send [08:50:15]OFD Sender: No OFD packet to send [08:50:20]OFD Sender: No OFD packet to send [08:50:26]OFD Sender: No OFD packet to send [08:50:31]OFD Sender: No OFD packet to send [08:50:36]OFD Sender: No OFD packet to send [08:50:41]OFD Sender: No OFD packet to send [08:50:46]OFD Sender: No OFD packet to send [08:50:51]OFD Sender: No OFD packet to send [08:50:56]OFD Sender: No OFD packet to send [08:51:01]OFD Sender: No OFD packet to send [08:51:06]OFD Sender: No OFD packet to send [08:51:11]OFD Sender: No OFD packet to send [08:51:16]OFD Sender: No OFD packet to send [08:51:21]OFD Sender: No OFD packet to send [08:51:26]OFD Sender: No OFD packet to send [08:51:31]OFD Sender: No OFD packet to send [08:51:36]OFD Sender: No OFD packet to send [08:51:41]OFD Sender: No OFD packet to send [08:51:46]OFD Sender: No OFD packet to send [08:51:51]OFD Sender: No OFD packet to send [08:51:56]OFD Sender: No OFD packet to send [08:52:01]OFD Sender: No OFD packet to send [08:52:06]OFD Sender: No OFD packet to send [08:52:11]OFD Sender: No OFD packet to send [08:52:16]OFD Sender: No OFD packet to send [08:52:21]OFD Sender: No OFD packet to send [08:52:26]OFD Sender: No OFD packet to send [08:52:31]OFD Sender: No OFD packet to send [08:52:36]OFD Sender: No OFD packet to send [08:52:41]OFD Sender: No OFD packet to send [08:52:46]OFD Sender: No OFD packet to send [08:52:51]OFD Sender: No OFD packet to send [08:52:56]OFD Sender: No OFD packet to send [08:53:01]OFD Sender: No OFD packet to send [08:53:06]OFD Sender: No OFD packet to send [08:53:11]OFD Sender: No OFD packet to send [08:53:16]OFD Sender: No OFD packet to send [08:53:21]OFD Sender: No OFD packet to send [08:53:26]OFD Sender: No OFD packet to send [08:53:31]OFD Sender: No OFD packet to send [08:53:36]OFD Sender: No OFD packet to send [08:53:41]OFD Sender: No OFD packet to send [08:53:46]OFD Sender: No OFD packet to send [08:53:51]OFD Sender: No OFD packet to send [08:53:56]OFD Sender: No OFD packet to send [08:54:01]OFD Sender: No OFD packet to send [08:54:06]OFD Sender: No OFD packet to send [08:54:11]OFD Sender: No OFD packet to send [08:54:16]OFD Sender: No OFD packet to send [08:54:21]OFD Sender: No OFD packet to send [08:54:26]OFD Sender: No OFD packet to send [08:54:31]OFD Sender: No OFD packet to send [08:54:36]OFD Sender: No OFD packet to send [08:54:41]OFD Sender: No OFD packet to send [08:54:46]OFD Sender: No OFD packet to send [08:54:51]OFD Sender: No OFD packet to send [08:54:56]OFD Sender: No OFD packet to send [08:55:01]OFD Sender: No OFD packet to send [08:55:06]OFD Sender: No OFD packet to send [08:55:11]OFD Sender: No OFD packet to send [08:55:16]OFD Sender: No OFD packet to send [08:55:21]OFD Sender: No OFD packet to send [08:55:26]OFD Sender: No OFD packet to send [08:55:31]OFD Sender: No OFD packet to send [08:55:36]OFD Sender: No OFD packet to send [08:55:41]OFD Sender: No OFD packet to send [08:55:46]OFD Sender: No OFD packet to send [08:55:51]OFD Sender: No OFD packet to send [08:55:56]OFD Sender: No OFD packet to send [08:56:01]OFD Sender: No OFD packet to send [08:56:06]OFD Sender: No OFD packet to send [08:56:11]OFD Sender: No OFD packet to send [08:56:16]OFD Sender: No OFD packet to send [08:56:21]OFD Sender: No OFD packet to send [08:56:26]OFD Sender: No OFD packet to send [08:56:31]OFD Sender: No OFD packet to send [08:56:36]OFD Sender: No OFD packet to send [08:56:41]OFD Sender: No OFD packet to send [08:56:46]OFD Sender: No OFD packet to send [08:56:51]OFD Sender: No OFD packet to send [08:56:56]OFD Sender: No OFD packet to send [08:57:01]OFD Sender: No OFD packet to send [08:57:06]OFD Sender: No OFD packet to send [08:57:11]OFD Sender: No OFD packet to send [08:57:16]OFD Sender: No OFD packet to send [08:57:21]OFD Sender: No OFD packet to send [08:57:26]OFD Sender: No OFD packet to send [08:57:31]OFD Sender: No OFD packet to send [08:57:36]OFD Sender: No OFD packet to send [08:57:41]OFD Sender: No OFD packet to send [08:57:46]OFD Sender: No OFD packet to send [08:57:51]OFD Sender: No OFD packet to send [08:57:56]OFD Sender: No OFD packet to send [08:58:01]OFD Sender: No OFD packet to send [08:58:06]OFD Sender: No OFD packet to send [08:58:11]OFD Sender: No OFD packet to send [08:58:16]OFD Sender: No OFD packet to send [08:58:21]OFD Sender: No OFD packet to send [08:58:26]OFD Sender: No OFD packet to send [08:58:31]OFD Sender: No OFD packet to send [08:58:36]OFD Sender: No OFD packet to send [08:58:41]OFD Sender: No OFD packet to send [08:58:46]OFD Sender: No OFD packet to send [08:58:51]OFD Sender: No OFD packet to send [08:58:56]OFD Sender: No OFD packet to send [08:59:01]OFD Sender: No OFD packet to send [08:59:06]OFD Sender: No OFD packet to send [08:59:11]OFD Sender: No OFD packet to send [08:59:16]OFD Sender: No OFD packet to send [08:59:21]OFD Sender: No OFD packet to send [08:59:26]OFD Sender: No OFD packet to send [08:59:31]OFD Sender: No OFD packet to send [08:59:36]OFD Sender: No OFD packet to send [08:59:41]OFD Sender: No OFD packet to send [08:59:46]OFD Sender: No OFD packet to send [08:59:51]OFD Sender: No OFD packet to send [08:59:56]OFD Sender: No OFD packet to send [09:00:01]OFD Sender: No OFD packet to send [09:00:06]OFD Sender: No OFD packet to send [09:00:11]OFD Sender: No OFD packet to send [09:00:16]OFD Sender: No OFD packet to send [09:00:21]OFD Sender: No OFD packet to send [09:00:26]OFD Sender: No OFD packet to send [09:00:31]OFD Sender: No OFD packet to send [09:00:36]OFD Sender: No OFD packet to send [09:00:41]OFD Sender: No OFD packet to send [09:00:46]OFD Sender: No OFD packet to send [09:00:51]OFD Sender: No OFD packet to send [09:00:56]OFD Sender: No OFD packet to send [09:01:01]OFD Sender: No OFD packet to send [09:01:06]OFD Sender: No OFD packet to send [09:01:11]OFD Sender: No OFD packet to send [09:01:16]OFD Sender: No OFD packet to send [09:01:21]OFD Sender: No OFD packet to send [09:01:26]OFD Sender: No OFD packet to send [09:01:31]OFD Sender: No OFD packet to send [09:01:36]OFD Sender: No OFD packet to send [09:01:41]OFD Sender: No OFD packet to send [09:01:46]OFD Sender: No OFD packet to send [09:01:51]OFD Sender: No OFD packet to send [09:01:56]OFD Sender: No OFD packet to send [09:02:01]OFD Sender: No OFD packet to send [09:02:06]OFD Sender: No OFD packet to send [09:02:11]OFD Sender: No OFD packet to send [09:02:16]OFD Sender: No OFD packet to send [09:02:21]OFD Sender: No OFD packet to send [09:02:26]OFD Sender: No OFD packet to send [09:02:31]OFD Sender: No OFD packet to send [09:02:36]OFD Sender: No OFD packet to send [09:02:41]OFD Sender: No OFD packet to send [09:02:46]OFD Sender: No OFD packet to send [09:02:51]OFD Sender: No OFD packet to send [09:02:56]OFD Sender: No OFD packet to send [09:03:01]OFD Sender: No OFD packet to send [09:03:06]OFD Sender: No OFD packet to send [09:03:11]OFD Sender: No OFD packet to send [09:03:16]OFD Sender: No OFD packet to send [09:03:21]OFD Sender: No OFD packet to send [09:03:26]OFD Sender: No OFD packet to send [09:03:31]OFD Sender: No OFD packet to send [09:03:36]OFD Sender: No OFD packet to send [09:03:41]OFD Sender: No OFD packet to send [09:03:46]OFD Sender: No OFD packet to send [09:03:51]OFD Sender: No OFD packet to send [09:03:56]OFD Sender: No OFD packet to send [09:04:01]OFD Sender: No OFD packet to send [09:04:06]OFD Sender: No OFD packet to send [09:04:11]OFD Sender: No OFD packet to send [09:04:16]OFD Sender: No OFD packet to send [09:04:21]OFD Sender: No OFD packet to send [09:04:26]OFD Sender: No OFD packet to send [09:04:31]OFD Sender: No OFD packet to send [09:04:36]OFD Sender: No OFD packet to send [09:04:41]OFD Sender: No OFD packet to send [09:04:46]OFD Sender: No OFD packet to send [09:04:51]OFD Sender: No OFD packet to send [09:04:56]OFD Sender: No OFD packet to send [09:05:01]OFD Sender: No OFD packet to send [09:05:06]OFD Sender: No OFD packet to send [09:05:11]OFD Sender: No OFD packet to send [09:05:16]OFD Sender: No OFD packet to send [09:05:21]OFD Sender: No OFD packet to send [09:05:24]accept exits with 7 [09:05:24]New connection [09:05:24]New thread 3067374948 created [09:05:24]Thread 3067518308 joined [09:05:24]Waiting for new connection... [09:05:24] Sock 7.Parse request [09:05:24]Sock 7.Check first char [09:05:24]Sock 7.First char is OK [09:05:24]request: POST /json_proto HTTP/1.0 [09:05:24]Method: POST [09:05:24]URL: /json_proto [09:05:24]Method is POST - this is cgi request [09:05:24]url: /json_proto [09:05:24]query_string will be loaded in cgi processing [09:05:24]execute_cgi json_proto POST (null) [09:05:24]execute_cgi path=json_proto method=POST [09:05:24]POST find Content-Length [09:05:24]Host: 172.17.60.69:8080 [09:05:24]Content-Length: 960 [09:05:24]Content-Type: application/json [09:05:24] [09:05:24]POST finish read [09:05:24]Found Content-Length = 960 [09:05:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73358", "tax_sys" : 0, "items" : [ { "code": "4870001150099", "name": "\u0421\u043E\u043A Da-Da 1\u043B \u043F\u0435\u0440\u0441\u0438\u043A", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4630056952082", "name": "\u041F\u0435\u0447\u0435\u043D\u044C\u0435 \u042E\u0431\u0438\u043B\u0435\u0439\u043D\u043E\u0435 \u0422\u043E\u0440\u0436\u0435\u0441\u0442\u0432\u043E 120\u0433", "price" : 59.00, "quantity" : 1.000, "sum" : 59.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 209.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:05:24]execute_script... [09: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 : (3)73358", "tax_sys" : 0, "items" : [ { "code": "4870001150099", "name": "\u0421\u043E\u043A Da-Da 1\u043B \u043F\u0435\u0440\u0441\u0438\u043A", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4630056952082", "name": "\u041F\u0435\u0447\u0435\u043D\u044C\u0435 \u042E\u0431\u0438\u043B\u0435\u0439\u043D\u043E\u0435 \u0422\u043E\u0440\u0436\u0435\u0441\u0442\u0432\u043E 120\u0433", "price" : 59.00, "quantity" : 1.000, "sum" : 59.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 209.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:05:24]POST & json_proto [09:05:24]process_json_proto [09:05:24]json parsed OK: [09:05:24]protocol is kg_v1.0 [09:05:24]action value=close_receipt [09:05:24]process_action close_receipt [09:05:24]cmd_close_receipt [09:05:24]MH_GetDate [09:05:24]Write to MH i2c: F0 00 00 60 06 55 [09:05:24]Write i2c OK [09:05:24]MH_I2C_Read... [09:05:24]Read from MH i2c: F0 [09:05:24]MH_I2C_Read... [09:05:24]Read from MH i2c: F0 09 00 [09:05:24]MH_I2C_Read... [09:05:24]Read from MH i2c: F0 09 00 60 06 00 56 87 5D 66 6A 96 4A 66 AE [09:05:24]GetLastDocTimeStamp 1717403501 [09:05:24]current date 1717405526 [09:05:24]FM_GetShiftState [09:05:24]SAM_PROTO_GetShiftState [09:05:24]wFMCommunicate request_size=4 [09:05:24]MH_SAM_APDU [09:05:24]CAPDU: 80 13 01 00 [09:05:24]Write to MH i2c: E2 08 00 61 06 80 13 01 00 00 00 00 00 E4 [09:05:24]Write i2c OK [09:05:24]MH_I2C_Read... [09:05:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:05:24]Read from MH i2c: E2 [09:05:24]MH_I2C_Read... [09:05:24]Read from MH i2c: E2 0E 00 [09:05:24]MH_I2C_Read... [09:05:25]Read from MH i2c: E2 0E 00 61 06 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 B0 [09:05:25]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [09:05:25]wFMCommunicate OK [09:05:25]SAM_PROTO_GetShiftState done [09:05:25]FM_GetShiftState done [09:05:25]opened in 1717373173 [09:05:25]opened+sec_in_day 1717459573 [09:05:25]quantity*price = 15000 [09:05:25]sum+1 = 15001 [09:05:25]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4630056952082 Печенье Юбилейное Торжество 120г 1.000 * 59.00 = 59.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 209.00 НСП 1% : 1.85 НДС 12% : 22.19 Наличными: 209.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 28 03.06.2024 09:05 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63770 ФПД: 238521577052823 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T090526&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63770&fm=238521577052823&tin=02508201610067®Number=0000000000092737&sum=20900 0 [09:05:26]StoreToDocumentArchive [09:05:26]shift 373 fd 63770 [09:05:26]save to /storage/0373/doc_00063770 [09:05:26]save last doc name /storage/0373/doc_00063770 to /storage/kkm_last_doc_name [09:05:26]save OK [09:05:26]Clear old archive folders... [09:05:26]Remove dir /storage/0266 [09:05:26]opendir ok [09:05:26]file . [09:05:26]file .. [09:05:26]file doc_1717403509 [09:05:26]remove file /storage/0266/doc_1717403509 [09:05:26]remove dir /storage/0266 [09:05:26]ProcessDocumentItem done err = 0, tmpTLVsize=401 [09:05:26]tlvbuf is 00D49830 [09:05:26]SAM_PROTO_ClearQueue [09:05:26]wFMCommunicate request_size=4 [09:05:26]MH_SAM_APDU [09:05:26]CAPDU: 80 09 00 00 [09:05:26]Write to MH i2c: E2 08 00 6E 06 80 09 00 00 00 00 00 00 E6 [09:05:26]Write i2c OK [09:05:26]MH_I2C_Read... [09:05:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:05:26]Read from MH i2c: E2 [09:05:26]MH_I2C_Read... [09:05:26]Read from MH i2c: E2 03 00 [09:05:26]MH_I2C_Read... [09:05:26]Read from MH i2c: E2 03 00 6E 06 00 90 00 E8 [09:05:26]RAPDU: 90 00 [09:05:26]wFMCommunicate OK [09:05:26]SAM_PROTO_ClearQueue done [09:05:26]KKMCreateOFDPacket [09:05:26]OFDProtocolAddRootSTLVToBuf [09:05:26]FM_MakeSignedData [09:05:26]FM_MakeSignedData [09:05:26]SAM_PROTO_SignData [09:05:26]wFMCommunicate request_size=4 [09:05:26]MH_SAM_APDU [09:05:26]CAPDU: 80 0D 01 02 [09:05:26]Write to MH i2c: E2 08 00 6F 06 80 0D 01 02 00 00 00 00 EE [09:05:26]Write i2c OK [09:05:26]MH_I2C_Read... [09:05:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:05:26]Read from MH i2c: E2 [09:05:26]MH_I2C_Read... [09:05:26]Read from MH i2c: E2 03 00 [09:05:26]MH_I2C_Read... [09:05:26]Read from MH i2c: E2 03 00 6F 06 00 90 00 E9 [09:05:26]RAPDU: 90 00 [09:05:26]wFMCommunicate OK [09:05:26]wFMCommunicate request_size=255 [09:05:26]MH_SAM_APDU [09:05:26]CAPDU: 80 0D 02 02 FA 03 00 91 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 30 30 39 39 06 04 1D 00 D0 A1 D0 BE D0 BA 20 44 61 2D 44 61 20 31 D0 BB 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 36 33 30 30 35 36 39 35 32 30 38 32 06 04 3A 00 D0 9F D0 B5 D1 87 D0 B5 D0 BD D1 8C D0 B5 20 D0 AE D0 B1 D0 B8 D0 BB D0 B5 D0 B9 D0 BD D0 BE D0 B5 20 D0 A2 D0 BE D1 80 D0 B6 D0 B5 D1 81 D1 82 D0 B2 D0 BE 20 31 32 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 51 00 00 00 00 [09:05:26]Write to MH i2c: E2 02 01 70 06 80 0D 02 02 FA 00 03 00 91 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 30 30 39 39 06 04 1D 00 D0 A1 D0 BE D0 BA 20 44 61 2D 44 61 20 31 D0 BB 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 36 33 30 30 35 36 39 35 32 30 38 32 06 04 3A 00 D0 9F D0 B5 D1 87 D0 B5 D0 BD D1 8C D0 B5 20 D0 AE D0 B1 D0 B8 D0 BB D0 B5 D0 B9 D0 BD D0 BE D0 B5 20 D0 A2 D0 BE D1 80 D0 B6 D0 B5 D1 81 D1 82 D0 B2 D0 BE 20 31 32 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 51 00 00 00 00 00 00 0E [09:05:26]Write i2c OK [09:05:26]MH_I2C_Read... [09:05:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:05:26]Read from MH i2c: E2 [09:05:26]MH_I2C_Read... [09:05:26]Read from MH i2c: E2 03 00 [09:05:26]MH_I2C_Read... [09:05:26]Read from MH i2c: E2 03 00 70 06 00 90 00 EA [09:05:26]RAPDU: 90 00 [09:05:26]wFMCommunicate OK [09:05:26]wFMCommunicate request_size=160 [09:05:26]MH_SAM_APDU [09:05:26]CAPDU: 80 0D 02 02 9B EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AB 08 00 00 00 00 07 04 06 00 A4 51 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 56 87 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 1A F9 00 00 35 04 06 00 D8 EF 21 DF 1A 97 [09:05:26]Write to MH i2c: E2 A3 00 71 06 80 0D 02 02 9B 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AB 08 00 00 00 00 07 04 06 00 A4 51 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 56 87 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 1A F9 00 00 35 04 06 00 D8 EF 21 DF 1A 97 00 00 84 [09:05:26]Write i2c OK [09:05:26]MH_I2C_Read... [09:05:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:05:26]Read from MH i2c: E2 [09:05:26]MH_I2C_Read... [09:05:26]Read from MH i2c: E2 03 00 [09:05:26]MH_I2C_Read... [09:05:26]Read from MH i2c: E2 03 00 71 06 00 90 00 EB [09:05:26]RAPDU: 90 00 [09:05:26]wFMCommunicate OK [09:05:26]wFMCommunicate request_size=4 [09:05:26]MH_SAM_APDU [09:05:26]CAPDU: 80 0D 03 02 [09:05:26]Write to MH i2c: E2 08 00 72 06 80 0D 03 02 00 00 00 00 F3 [09:05:26]Write i2c OK [09:05:26]MH_I2C_Read... [09:05:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:05:26]OFD Sender: No OFD packet to send [09:05:26]Read from MH i2c: E2 [09:05:26]MH_I2C_Read... [09:05:26]Read from MH i2c: E2 0B 00 [09:05:26]MH_I2C_Read... [09:05:26]Read from MH i2c: E2 0B 00 72 06 00 47 46 1C E8 6A E6 EF 6D 90 00 31 [09:05:26]RAPDU: 47 46 1C E8 6A E6 EF 6D 90 00 [09:05:26]wFMCommunicate OK [09:05:26]SAM_PROTO_SignData done [09:05:26]FM_MakeSignedData done [09:05:26]CreateOFDProtocolMessage [09:05:26]wFMCommunicate request_size=4 [09:05:26]MH_SAM_APDU [09:05:26]CAPDU: 80 11 00 00 [09:05:26]Write to MH i2c: E2 08 00 73 06 80 11 00 00 00 00 00 00 F3 [09:05:26]Write i2c OK [09:05:26]MH_I2C_Read... [09:05:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:05:26]Read from MH i2c: E2 [09:05:26]MH_I2C_Read... [09:05:26]Read from MH i2c: E2 17 00 [09:05:26]MH_I2C_Read... [09:05:26]Read from MH i2c: E2 17 00 73 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 45 [09:05:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [09:05:26]wFMCommunicate OK [09:05:26]CreateOFDProtocolMessage done [09:05:26]OFDSenderStorePacket 63770 [09:05:26]StoreOFDPacket docnum=63770 [09:05:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 A5 01 00 00 77 B8 9D 01 4F 2F 5A 03 01 00 03 00 91 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 30 30 39 39 06 04 1D 00 D0 A1 D0 BE D0 BA 20 44 61 2D 44 61 20 31 D0 BB 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 36 33 30 30 35 36 39 35 32 30 38 32 06 04 3A 00 D0 9F D0 B5 D1 87 D0 B5 D0 BD D1 8C D0 B5 20 D0 AE D0 B1 D0 B8 D0 BB D0 B5 D0 B9 D0 BD D0 BE D0 B5 20 D0 A2 D0 BE D1 80 D0 B6 D0 B5 D1 81 D1 82 D0 B2 D0 BE 20 31 32 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 51 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AB 08 00 00 00 00 07 04 06 00 A4 51 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 56 87 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 1A F9 00 00 35 04 06 00 D8 EF 21 DF 1A 97 47 46 1C E8 6A E6 EF 6D [09:05:26]CheckFolder [09:05:26]dirname=/storage/ofd_packets [09:05:26]CheckFolder done [09:05:26]ProducePacketName [09:05:26]name=ofd_packets/00063770 [09:05:26]NVStorageSaveData ofd_packets/00063770 [09:05:26]File name is /storage/ofd_packets/00063770 [09:05:26]Write 451 bytes [09:05:26]NVStorageSaveData done [09:05:26]OFDSenderStorePacket done [09:05:26]KKMCreateOFDPacket done [09:05:26]NVStorageSaveData kkm_last_timestamp [09:05:26]File name is /storage/kkm_last_timestamp [09:05:26]Write 4 bytes [09:05:26]NVStorageSaveData done [09:05:26]ExternCall_PrintAddStr [09:05:26]wPrintStart [09:05:26]Write to MH i2c: 01 00 00 74 06 7A [09:05:26]Write i2c OK [09:05:26]MH_I2C_Read... [09:05:26]Read from MH i2c: 01 [09:05:27]MH_I2C_Read... [09:05:27]OFD Sender: Processing packet 63770 [packets to send 14, broken 13] [09:05:27]Read from MH i2c: ProducePacketName [09:05:27]01 name=ofd_packets/00063770 [09:05:27]07 00 [09:05:27]OFD Sender: To server: pG, [09:05:27]MH_I2C_Read... [09:05:27]CommunicateWithHost lk.salyk.kg:30040 [09:05:27]ConnectInit lk.salyk.kg [09:05:27]Read from MH i2c: 01 07 00 74 06 00 00 00 00 00 FF 0F 8F [09:05:27]RasterBufferAndPrint [09:05:27]line Счет N : (3)73358 [09:05:27]line ИНН: 02508201610067 [09:05:27]line Контрольно-Кассовый Чек [09:05:27]line ПРОДАЖА [09:05:27]line Товар: 4870001150099 [09:05:27]line Сок Da-Da 1л персик [09:05:27]line 1.000 * 150.00 [09:05:27]line = 150.00 [09:05:27]line НДС 12% НСП 1% [09:05:27]line > о реализуемом товаре [09:05:27]line Товар: 4630056952082 [09:05:27]line Печенье Юбилейное Торжество 120г [09:05:27]line 1.000 * 59.00 [09:05:27]line = 59.00 [09:05:27]line НДС 12% НСП 1% [09:05:27]line > о реализуемом товаре [09:05:27]line ИТОГО: 209.00 [09:05:27]line НСП 1% : 1.85 [09:05:27]line НДС 12% : 22.19 [09:05:27]line Наличными: 209.00 [09:05:27]line Безнал.: 0.00 [09:05:27]line Место: АЗС № 117 "Партнер Нефть" [09:05:27]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [09:05:27]line СНО: Общий режим [09:05:27]line Чек 28 03.06.2024 09:05 [09:05:27]line Смена: 373 ФФД: 1.0 [09:05:27]line ЗНМ: 0300000031 [09:05:27]line РНМ: 0000000000092737 [09:05:27]line Версия ККМ: 001 [09:05:27]line ФМ: 0000000000875074 [09:05:27]line ФД: 63770 [09:05:27]line ФПД: 238521577052823 [09:05:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T090526&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63770&fm=238521577052823&tin=02508201610067®Number=0000000000092737&sum=20900 [09:05:27]line 0 [09:05:27]written 0, free lines is 4095 [09:05:27]Connected sock=9 [09: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 35 30 37 34 A5 01 00 00 77 B8 9D 01 4F 2F 5A 03 01 00 03 00 91 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 30 30 39 39 06 04 1D 00 D0 A1 D0 BE D0 BA 20 44 61 2D 44 61 20 31 D0 BB 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 36 33 30 30 35 36 39 35 32 30 38 32 06 04 3A 00 D0 9F D0 B5 D1 87 D0 B5 D0 BD D1 8C D0 B5 20 D0 AE D0 B1 D0 B8 D0 BB D0 B5 D0 B9 D0 BD D0 BE D0 B5 20 D0 A2 D0 BE D1 80 D0 B6 D0 B5 D1 81 D1 82 D0 B2 D0 BE 20 31 32 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 51 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AB 08 00 00 00 00 07 04 06 00 A4 51 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 56 87 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 1A F9 00 00 35 04 06 00 D8 EF 21 DF 1A 97 47 46 1C E8 6A E6 EF 6D [09:05:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 25 B0 47 00 BE 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 35 30 37 34 10 04 04 00 1A F9 00 00 F4 03 04 00 28 33 5D 66 B6 04 01 00 00 7B B7 95 1D A2 0D 24 02 [09:05:27]CommunicateWithHost err = 0 [09:05:27]CheckOFDResponse [09:05:27]1017 (14) - 77093643461234 [09:05:27]1041 (16) - 0000000000875074 [09:05:27]1040 (4) - 63770 [09:05:27]1012 (4) - 03.06.2024 03:06 [09:05:27]1206 (1) - 0 [09:05:27]OFD Sender: Remove packet 63770 [09:05:27]ProducePacketName [09:05:27]name=ofd_packets/00063770 [09:05:27]NVStorageDeleteData [09:05:27]Write to MH i2c: 01 00 00 A3 06 A9 [09:05:27]Write i2c OK [09:05:27]MH_I2C_Read... [09:05:27]Read from MH i2c: 01 [09:05:27]MH_I2C_Read... [09:05:27]Read from MH i2c: 01 07 00 [09:05:27]MH_I2C_Read... [09:05:27]Read from MH i2c: 01 07 00 A3 06 00 00 00 00 00 8F 0C 4B [09:05:27]RasterBufferAndPrint [09:05:27]line [09:05:27]line [09:05:27]line [09:05:27]line [09:05:27]line [09:05:27]written 0, free lines is 3221 [09:05:27]MH_Cut [09:05:27]Write to MH i2c: D1 01 00 AA 06 01 82 [09:05:27]Write i2c OK [09:05:27]MH_I2C_Read... [09:05:27]Read from MH i2c: D1 [09:05:27]MH_I2C_Read... [09:05:27]Read from MH i2c: D1 01 00 [09:05:27]MH_I2C_Read... [09:05:27]Read from MH i2c: D1 01 00 AA 06 00 81 [09:05:27]Write to MH i2c: 01 00 00 AB 06 B1 [09:05:27]Write i2c OK [09:05:27]MH_I2C_Read... [09:05:27]OFD Sender: No OFD packet to send [09:05:28]*** Cut start [09:05:28]*** Partial cut [09:05:28]*** CUTSNS_PIN = 1 [09:05:28]*** CUTSNS_PIN = 0 [09:05:28]*** Brake cut motor [09:05:29]Read from MH i2c: 01 [09:05:29]MH_I2C_Read... [09:05:29]*** Stop cut motor [09:05:29]*** Cut end [09:05:29]Read from MH i2c: 01 07 00 [09:05:29]MH_I2C_Read... [09:05:29]Read from MH i2c: 01 07 00 AB 06 00 00 00 00 00 FF 0F C6 [09:05:29]process_action close_receipt done [09:05:29]requested_data is exist [09:05:29]produce_requested_data [09:05:29]requested_item fm.sn is exist - process it [09:05:29]wFMCommunicate request_size=4 [09:05:29]MH_SAM_APDU [09:05:29]CAPDU: 80 11 00 00 [09:05:29]Write to MH i2c: E2 08 00 AC 06 80 11 00 00 00 00 00 00 2C [09:05:29]Write i2c OK [09:05:29]MH_I2C_Read... [09:05:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:05:29]Read from MH i2c: E2 [09:05:29]MH_I2C_Read... [09:05:29]Read from MH i2c: E2 17 00 [09:05:29]MH_I2C_Read... [09:05:29]Read from MH i2c: E2 17 00 AC 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 7E [09:05:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [09:05:29]wFMCommunicate OK [09:05:29]requested_item fd.num is exist - process it [09:05:29]SAM_PROTO_GetFieldsCounters [09:05:29]wFMCommunicate request_size=4 [09:05:29]MH_SAM_APDU [09:05:29]CAPDU: 80 13 00 00 [09:05:29]Write to MH i2c: E2 08 00 AD 06 80 13 00 00 00 00 00 00 2F [09:05:29]Write i2c OK [09:05:29]MH_I2C_Read... [09:05:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:05:29]Read from MH i2c: E2 [09:05:29]MH_I2C_Read... [09:05:29]Read from MH i2c: E2 62 00 [09:05:29]MH_I2C_Read... [09:05:29]Read from MH i2c: E2 62 00 AD 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 1A F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 2F [09:05: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 1A F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:05:29]wFMCommunicate OK [09:05:29]SAM_PROTO_GetFieldsCounters done [09:05:29]requested_item shift.num is exist - process it [09:05:29]requested_item shift.opened is exist - process it [09:05:29]req_shift_opened [09:05:29]FM_GetShiftState [09:05:29]SAM_PROTO_GetShiftState [09:05:29]wFMCommunicate request_size=4 [09:05:29]MH_SAM_APDU [09:05:29]CAPDU: 80 13 01 00 [09:05:29]Write to MH i2c: E2 08 00 AE 06 80 13 01 00 00 00 00 00 31 [09:05:29]Write i2c OK [09:05:29]MH_I2C_Read... [09:05:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:05:29]Read from MH i2c: E2 [09:05:29]MH_I2C_Read... [09:05:29]Read from MH i2c: E2 0E 00 [09:05:29]MH_I2C_Read... [09:05:29]Read from MH i2c: E2 0E 00 AE 06 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 FD [09:05:29]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [09:05:29]wFMCommunicate OK [09:05:29]SAM_PROTO_GetShiftState done [09:05:29]FM_GetShiftState done [09:05:29]req_shift_opened done [09:05:29]requested_item shift.open_date is exist - process it [09:05:29]req_shift_open_date [09:05:29]req_shift_open_date done [09:05:29]produce_requested_data done [09:05:29]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63770,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [09:05:29]process_action_free close_receipt [09:05:29]json_value_free [09:05:29]json_value_free done [09:05:29]process_json_proto returns [09:05:29]Send response to host [09:05:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63770,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [09:05:29]free response buf [09:05:29]execute_script done [09:05:29]execute_script returns [09:05:29]free content buf [09:05:29]Sock 7.Close socket [09:05:29]Sock 7.Thread stoped [09:05:32]OFD Sender: No OFD packet to send [09:05:37]OFD Sender: No OFD packet to send [09:05:42]OFD Sender: No OFD packet to send [09:05:47]OFD Sender: No OFD packet to send [09:05:52]OFD Sender: No OFD packet to send [09:05:57]OFD Sender: No OFD packet to send [09:05:59]accept exits with 10 [09:05:59]New connection [09:05:59]New thread 3067518308 created [09:05:59]Thread 3067374948 joined [09:05:59]Waiting for new connection... [09:05:59] Sock 10.Parse request [09:05:59]Sock 10.Check first char [09:05:59]Sock 10.First char is OK [09:05:59]request: POST /json_proto HTTP/1.0 [09:05:59]Method: POST [09:05:59]URL: /json_proto [09:05:59]Method is POST - this is cgi request [09:05:59]url: /json_proto [09:05:59]query_string will be loaded in cgi processing [09:05:59]execute_cgi json_proto POST (null) [09:05:59]execute_cgi path=json_proto method=POST [09:05:59]POST find Content-Length [09:05:59]Host: 172.17.60.69:8080 [09:05:59]Content-Length: 887 [09:05:59]Content-Type: application/json [09:05:59] [09:05:59]POST finish read [09:05:59]Found Content-Length = 887 [09:05:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73359", "tax_sys" : 0, "items" : [ { "code": "48745536", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston SS Caster+", "price" : 143.00, "quantity" : 1.000, "sum" : 143.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "9002490206550", "name": "\u042D\u043D\u0435\u0440\u0433 \u043D\u0430\u043F\u0438\u0442\u043E\u043A Red Bull 0,355\u043B", "price" : 265.00, "quantity" : 1.000, "sum" : 265.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 408.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:05:59]execute_script... [09:05:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73359", "tax_sys" : 0, "items" : [ { "code": "48745536", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston SS Caster+", "price" : 143.00, "quantity" : 1.000, "sum" : 143.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "9002490206550", "name": "\u042D\u043D\u0435\u0440\u0433 \u043D\u0430\u043F\u0438\u0442\u043E\u043A Red Bull 0,355\u043B", "price" : 265.00, "quantity" : 1.000, "sum" : 265.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 408.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:05:59]POST & json_proto [09:05:59]process_json_proto [09:05:59]json parsed OK: [09:05:59]protocol is kg_v1.0 [09:05:59]action value=close_receipt [09:05:59]process_action close_receipt [09:05:59]cmd_close_receipt [09:05:59]MH_GetDate [09:05:59]Write to MH i2c: F0 00 00 AF 06 A4 [09:05:59]Write i2c OK [09:05:59]MH_I2C_Read... [09:05:59]Read from MH i2c: F0 [09:05:59]MH_I2C_Read... [09:05:59]Read from MH i2c: F0 09 00 [09:05:59]MH_I2C_Read... [09:05:59]Read from MH i2c: F0 09 00 AF 06 00 79 87 5D 66 6A 96 4A 66 20 [09:05:59]GetLastDocTimeStamp 1717405526 [09:05:59]current date 1717405561 [09:05:59]FM_GetShiftState [09:05:59]SAM_PROTO_GetShiftState [09:05:59]wFMCommunicate request_size=4 [09:05:59]MH_SAM_APDU [09:05:59]CAPDU: 80 13 01 00 [09:05:59]Write to MH i2c: E2 08 00 B0 06 80 13 01 00 00 00 00 00 33 [09:05:59]Write i2c OK [09:05:59]MH_I2C_Read... [09:06:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:06:00]Read from MH i2c: E2 [09:06:00]MH_I2C_Read... [09:06:00]Read from MH i2c: E2 0E 00 [09:06:00]MH_I2C_Read... [09:06:00]Read from MH i2c: E2 0E 00 B0 06 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 FF [09:06:00]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [09:06:00]wFMCommunicate OK [09:06:00]SAM_PROTO_GetShiftState done [09:06:00]FM_GetShiftState done [09:06:00]opened in 1717373173 [09:06:00]opened+sec_in_day 1717459573 [09:06:00]quantity*price = 14300 [09:06:00]sum+1 = 14301 [09:06:00]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 9002490206550 Энерг напиток Red Bull 0,355л 1.000 * 265.00 = 265.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 408.00 НСП 1% : 3.60 НДС 12% : 43.33 Наличными: 408.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 29 03.06.2024 09:06 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63771 ФПД: 264094114519556 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T090601&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63771&fm=264094114519556&tin=02508201610067®Number=0000000000092737&sum=40800 0 [09:06:01]StoreToDocumentArchive [09:06:01]shift 373 fd 63771 [09:06:01]save to /storage/0373/doc_00063771 [09:06:01]save last doc name /storage/0373/doc_00063771 to /storage/kkm_last_doc_name [09:06:01]save OK [09:06:01]Clear old archive folders... [09:06:01]ProcessDocumentItem done err = 0, tmpTLVsize=386 [09:06:01]tlvbuf is 00D40070 [09:06:01]SAM_PROTO_ClearQueue [09:06:01]wFMCommunicate request_size=4 [09:06:01]MH_SAM_APDU [09:06:01]CAPDU: 80 09 00 00 [09:06:01]Write to MH i2c: E2 08 00 BD 06 80 09 00 00 00 00 00 00 35 [09:06:01]Write i2c OK [09:06:01]MH_I2C_Read... [09:06:01]Read from MH i2c: E2 [09:06:01]MH_I2C_Read... [09:06:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:06:01]Read from MH i2c: E2 03 00 [09:06:01]MH_I2C_Read... [09:06:01]Read from MH i2c: E2 03 00 BD 06 00 90 00 37 [09:06:01]RAPDU: 90 00 [09:06:01]wFMCommunicate OK [09:06:01]SAM_PROTO_ClearQueue done [09:06:01]KKMCreateOFDPacket [09:06:01]OFDProtocolAddRootSTLVToBuf [09:06:01]FM_MakeSignedData [09:06:01]FM_MakeSignedData [09:06:01]SAM_PROTO_SignData [09:06:01]wFMCommunicate request_size=4 [09:06:01]MH_SAM_APDU [09:06:01]CAPDU: 80 0D 01 02 [09:06:01]Write to MH i2c: E2 08 00 BE 06 80 0D 01 02 00 00 00 00 3D [09:06:01]Write i2c OK [09:06:01]MH_I2C_Read... [09:06:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:06:01]Read from MH i2c: E2 [09:06:01]MH_I2C_Read... [09:06:01]Read from MH i2c: E2 03 00 [09:06:01]MH_I2C_Read... [09:06:01]Read from MH i2c: E2 03 00 BE 06 00 90 00 38 [09:06:01]RAPDU: 90 00 [09:06:01]wFMCommunicate OK [09:06:01]wFMCommunicate request_size=255 [09:06:01]MH_SAM_APDU [09:06:01]CAPDU: 80 0D 02 02 FA 03 00 82 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 35 33 36 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 53 20 43 61 73 74 65 72 2B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 37 00 00 00 00 13 04 06 00 DC 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 39 30 30 32 34 39 30 32 30 36 35 35 30 06 04 2A 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 42 75 6C 6C 20 30 2C 33 35 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 84 67 00 00 00 00 13 04 06 00 84 67 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 9F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 [09:06:01]Write to MH i2c: E2 02 01 BF 06 80 0D 02 02 FA 00 03 00 82 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 35 33 36 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 53 20 43 61 73 74 65 72 2B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 37 00 00 00 00 13 04 06 00 DC 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 39 30 30 32 34 39 30 32 30 36 35 35 30 06 04 2A 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 42 75 6C 6C 20 30 2C 33 35 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 84 67 00 00 00 00 13 04 06 00 84 67 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 9F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 00 00 96 [09:06:01]Write i2c OK [09:06:01]MH_I2C_Read... [09:06:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:06:01]Read from MH i2c: E2 [09:06:01]MH_I2C_Read... [09:06:01]Read from MH i2c: E2 03 00 [09:06:01]MH_I2C_Read... [09:06:01]Read from MH i2c: E2 03 00 BF 06 00 90 00 39 [09:06:01]RAPDU: 90 00 [09:06:01]wFMCommunicate OK [09:06:01]wFMCommunicate request_size=145 [09:06:01]MH_SAM_APDU [09:06:01]CAPDU: 80 0D 02 02 8C 06 00 68 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED 10 00 00 00 00 07 04 06 00 60 9F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 79 87 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 1B F9 00 00 35 04 06 00 F0 31 33 E2 1A 04 [09:06:01]Write to MH i2c: E2 94 00 C0 06 80 0D 02 02 8C 00 06 00 68 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED 10 00 00 00 00 07 04 06 00 60 9F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 79 87 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 1B F9 00 00 35 04 06 00 F0 31 33 E2 1A 04 00 00 B0 [09:06:01]Write i2c OK [09:06:01]MH_I2C_Read... [09:06:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:06:01]Read from MH i2c: E2 [09:06:01]MH_I2C_Read... [09:06:01]Read from MH i2c: E2 03 00 [09:06:01]MH_I2C_Read... [09:06:01]Read from MH i2c: E2 03 00 C0 06 00 90 00 3A [09:06:01]RAPDU: 90 00 [09:06:01]wFMCommunicate OK [09:06:01]wFMCommunicate request_size=4 [09:06:01]MH_SAM_APDU [09:06:01]CAPDU: 80 0D 03 02 [09:06:01]Write to MH i2c: E2 08 00 C1 06 80 0D 03 02 00 00 00 00 42 [09:06:01]Write i2c OK [09:06:01]MH_I2C_Read... [09:06:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:06:01]Read from MH i2c: E2 [09:06:01]MH_I2C_Read... [09:06:01]Read from MH i2c: E2 0B 00 [09:06:01]MH_I2C_Read... [09:06:01]Read from MH i2c: E2 0B 00 C1 06 00 58 01 20 EF 0E EC F6 31 90 00 CC [09:06:01]RAPDU: 58 01 20 EF 0E EC F6 31 90 00 [09:06:01]wFMCommunicate OK [09:06:01]SAM_PROTO_SignData done [09:06:01]FM_MakeSignedData done [09:06:01]CreateOFDProtocolMessage [09:06:01]wFMCommunicate request_size=4 [09:06:01]MH_SAM_APDU [09:06:01]CAPDU: 80 11 00 00 [09:06:01]Write to MH i2c: E2 08 00 C2 06 80 11 00 00 00 00 00 00 42 [09:06:01]Write i2c OK [09:06:01]MH_I2C_Read... [09:06:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:06:01]Read from MH i2c: E2 [09:06:01]MH_I2C_Read... [09:06:01]Read from MH i2c: E2 17 00 [09:06:01]MH_I2C_Read... [09:06:01]Read from MH i2c: E2 17 00 C2 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 94 [09:06:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [09:06:01]wFMCommunicate OK [09:06:01]CreateOFDProtocolMessage done [09:06:01]OFDSenderStorePacket 63771 [09:06:01]StoreOFDPacket docnum=63771 [09:06:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 96 01 00 00 61 E6 8E 01 6B D9 5A 03 01 00 03 00 82 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 35 33 36 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 53 20 43 61 73 74 65 72 2B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 37 00 00 00 00 13 04 06 00 DC 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 39 30 30 32 34 39 30 32 30 36 35 35 30 06 04 2A 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 42 75 6C 6C 20 30 2C 33 35 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 84 67 00 00 00 00 13 04 06 00 84 67 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 9F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 68 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED 10 00 00 00 00 07 04 06 00 60 9F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 79 87 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 1B F9 00 00 35 04 06 00 F0 31 33 E2 1A 04 58 01 20 EF 0E EC F6 31 [09:06:01]CheckFolder [09:06:01]dirname=/storage/ofd_packets [09:06:01]CheckFolder done [09:06:01]ProducePacketName [09:06:01]name=ofd_packets/00063771 [09:06:01]NVStorageSaveData ofd_packets/00063771 [09:06:01]File name is /storage/ofd_packets/00063771 [09:06:01]Write 436 bytes [09:06:01]NVStorageSaveData done [09:06:01]OFDSenderStorePacket done [09:06:01]KKMCreateOFDPacket done [09:06:01]NVStorageSaveData kkm_last_timestamp [09:06:01]File name is /storage/kkm_last_timestamp [09:06:01]Write 4 bytes [09:06:01]NVStorageSaveData done [09:06:01]ExternCall_PrintAddStr [09:06:01]wPrintStart [09:06:01]Write to MH i2c: 01 00 00 C3 06 C9 [09:06:01]Write i2c OK [09:06:01]MH_I2C_Read... [09:06:01]Read from MH i2c: 01 [09:06:01]MH_I2C_Read... [09:06:01]Read from MH i2c: 01 07 00 [09:06:01]MH_I2C_Read... [09:06:01]Read from MH i2c: 01 07 00 C3 06 00 00 00 00 00 FF 0F DE [09:06:01]RasterBufferAndPrint [09:06:01]line Счет N : (3)73359 [09:06:01]line ИНН: 02508201610067 [09:06:01]line Контрольно-Кассовый Чек [09:06:01]line ПРОДАЖА [09:06:02]line Товар: 48745536 [09:06:02]line Сигареты Winston SS Caster+ [09:06:02]line 1.000 * 143.00 [09:06:02]line = 143.00 [09:06:02]line НДС 12% НСП 1% [09:06:02]line > о реализуемом товаре [09:06:02]line Товар: 9002490206550 [09:06:02]line Энерг напиток Red Bull 0,355л [09:06:02]line 1.000 * 265.00 [09:06:02]line = 265.00 [09:06:02]line НДС 12% НСП 1% [09:06:02]line > о реализуемом товаре [09:06:02]line ИТОГО: 408.00 [09:06:02]line НСП 1% : 3.60 [09:06:02]line НДС 12% : 43.33 [09:06:02]line Наличными: 408.00 [09:06:02]line Безнал.: 0.00 [09:06:02]line Место: АЗС № 117 "Партнер Нефть" [09:06:02]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [09:06:02]line СНО: Общий режим [09:06:02]line Чек 29 03.06.2024 09:06 [09:06:02]line Смена: 373 ФФД: 1.0 [09:06:02]line ЗНМ: 0300000031 [09:06:02]line РНМ: 0000000000092737 [09:06:02]line Версия ККМ: 001 [09:06:02]line ФМ: 0000000000875074 [09:06:02]line ФД: 63771 [09:06:02]line ФПД: 264094114519556 [09:06:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T090601&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63771&fm=264094114519556&tin=02508201610067®Number=0000000000092737&sum=40800 [09:06:02]line 0 [09:06:02]OFD Sender: Processing packet 63771 [packets to send 14, broken 13] [09:06:02]ProducePacketName [09:06:02]name=ofd_packets/00063771 [09:06:02]OFD Sender: To server: pG, [09:06:02]CommunicateWithHost lk.salyk.kg:30040 [09:06:02]ConnectInit lk.salyk.kg [09:06:02]written 0, free lines is 4095 [09:06:02]Connected sock=9 [09:06:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 96 01 00 00 61 E6 8E 01 6B D9 5A 03 01 00 03 00 82 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 35 33 36 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 53 20 43 61 73 74 65 72 2B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 37 00 00 00 00 13 04 06 00 DC 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 39 30 30 32 34 39 30 32 30 36 35 35 30 06 04 2A 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 42 75 6C 6C 20 30 2C 33 35 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 84 67 00 00 00 00 13 04 06 00 84 67 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 9F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 68 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED 10 00 00 00 00 07 04 06 00 60 9F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 79 87 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 1B F9 00 00 35 04 06 00 F0 31 33 E2 1A 04 58 01 20 EF 0E EC F6 31 [09:06:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 4C D6 47 00 08 03 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 1B F9 00 00 F4 03 04 00 4B 33 5D 66 B6 04 01 00 00 9E BC 38 C0 BF 93 31 26 [09:06:02]CommunicateWithHost err = 0 [09:06:02]CheckOFDResponse [09:06:02]1017 (14) - 77093643461234 [09:06:02]1041 (16) - 0000000000875074 [09:06:02]1040 (4) - 63771 [09:06:02]1012 (4) - 03.06.2024 03:06 [09:06:02]1206 (1) - 0 [09:06:02]OFD Sender: Remove packet 63771 [09:06:02]ProducePacketName [09:06:02]name=ofd_packets/00063771 [09:06:02]NVStorageDeleteData [09:06:02]Write to MH i2c: 01 00 00 F1 06 F7 [09:06:02]Write i2c OK [09:06:02]MH_I2C_Read... [09:06:02]Read from MH i2c: 01 [09:06:02]MH_I2C_Read... [09:06:02]Read from MH i2c: 01 07 00 [09:06:02]MH_I2C_Read... [09:06:02]Read from MH i2c: 01 07 00 F1 06 00 00 00 00 00 94 0C 9E [09:06:02]RasterBufferAndPrint [09:06:02]line [09:06:02]line [09:06:02]line [09:06:02]line [09:06:02]line [09:06:02]written 0, free lines is 3226 [09:06:02]MH_Cut [09:06:02]Write to MH i2c: D1 01 00 F8 06 01 D0 [09:06:02]Write i2c OK [09:06:02]MH_I2C_Read... [09:06:02]Read from MH i2c: D1 [09:06:02]MH_I2C_Read... [09:06:02]Read from MH i2c: D1 01 00 [09:06:02]MH_I2C_Read... [09:06:02]Read from MH i2c: D1 01 00 F8 06 00 CF [09:06:02]Write to MH i2c: 01 00 00 F9 06 FF [09:06:02]Write i2c OK [09:06:02]MH_I2C_Read... [09:06:02]OFD Sender: No OFD packet to send [09:06:03]*** Cut start [09:06:03]*** Partial cut [09:06:03]*** CUTSNS_PIN = 1 [09:06:03]*** CUTSNS_PIN = 0 [09:06:03]*** Brake cut motor [09:06:04]Read from MH i2c: 01 [09:06:04]MH_I2C_Read... [09:06:04]*** Stop cut motor [09:06:04]*** Cut end [09:06:04]Read from MH i2c: 01 07 00 [09:06:04]MH_I2C_Read... [09:06:04]Read from MH i2c: 01 07 00 F9 06 00 00 00 00 00 FF 0F 14 [09:06:04]process_action close_receipt done [09:06:04]requested_data is exist [09:06:04]produce_requested_data [09:06:04]requested_item fm.sn is exist - process it [09:06:04]wFMCommunicate request_size=4 [09:06:04]MH_SAM_APDU [09:06:04]CAPDU: 80 11 00 00 [09:06:04]Write to MH i2c: E2 08 00 FA 06 80 11 00 00 00 00 00 00 7A [09:06:04]Write i2c OK [09:06:04]MH_I2C_Read... [09:06:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:06:04]Read from MH i2c: E2 [09:06:04]MH_I2C_Read... [09:06:04]Read from MH i2c: E2 17 00 [09:06:04]MH_I2C_Read... [09:06:04]Read from MH i2c: E2 17 00 FA 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 CC [09:06:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [09:06:04]wFMCommunicate OK [09:06:04]requested_item fd.num is exist - process it [09:06:04]SAM_PROTO_GetFieldsCounters [09:06:04]wFMCommunicate request_size=4 [09:06:04]MH_SAM_APDU [09:06:04]CAPDU: 80 13 00 00 [09:06:04]Write to MH i2c: E2 08 00 FB 06 80 13 00 00 00 00 00 00 7D [09:06:04]Write i2c OK [09:06:04]MH_I2C_Read... [09:06:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:06:04]Read from MH i2c: E2 [09:06:04]MH_I2C_Read... [09:06:04]Read from MH i2c: E2 62 00 [09:06:04]MH_I2C_Read... [09:06:04]Read from MH i2c: E2 62 00 FB 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 1B F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 81 [09:06: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 1B F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:06:04]wFMCommunicate OK [09:06:04]SAM_PROTO_GetFieldsCounters done [09:06:04]requested_item shift.num is exist - process it [09:06:04]requested_item shift.opened is exist - process it [09:06:04]req_shift_opened [09:06:04]FM_GetShiftState [09:06:04]SAM_PROTO_GetShiftState [09:06:04]wFMCommunicate request_size=4 [09:06:04]MH_SAM_APDU [09:06:04]CAPDU: 80 13 01 00 [09:06:04]Write to MH i2c: E2 08 00 FC 06 80 13 01 00 00 00 00 00 7F [09:06:04]Write i2c OK [09:06:04]MH_I2C_Read... [09:06:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:06:04]Read from MH i2c: E2 [09:06:04]MH_I2C_Read... [09:06:04]Read from MH i2c: E2 0E 00 [09:06:04]MH_I2C_Read... [09:06:04]Read from MH i2c: E2 0E 00 FC 06 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 4B [09:06:04]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [09:06:04]wFMCommunicate OK [09:06:04]SAM_PROTO_GetShiftState done [09:06:04]FM_GetShiftState done [09:06:04]req_shift_opened done [09:06:04]requested_item shift.open_date is exist - process it [09:06:04]req_shift_open_date [09:06:04]req_shift_open_date done [09:06:04]produce_requested_data done [09:06:04]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63771,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [09:06:04]process_action_free close_receipt [09:06:04]json_value_free [09:06:04]json_value_free done [09:06:04]process_json_proto returns [09:06:04]Send response to host [09:06:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63771,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [09:06:04]free response buf [09:06:04]execute_script done [09:06:04]execute_script returns [09:06:04]free content buf [09:06:04]Sock 10.Close socket [09:06:04]Sock 10.Thread stoped [09:06:07]OFD Sender: No OFD packet to send [09:06:12]OFD Sender: No OFD packet to send [09:06:17]OFD Sender: No OFD packet to send [09:06:22]OFD Sender: No OFD packet to send [09:06:27]OFD Sender: No OFD packet to send [09:06:32]OFD Sender: No OFD packet to send [09:06:37]OFD Sender: No OFD packet to send [09:06:42]OFD Sender: No OFD packet to send [09:06:47]OFD Sender: No OFD packet to send [09:06:52]OFD Sender: No OFD packet to send [09:06:57]OFD Sender: No OFD packet to send [09:07:02]OFD Sender: No OFD packet to send [09:07:07]OFD Sender: No OFD packet to send [09:07:12]OFD Sender: No OFD packet to send [09:07:18]OFD Sender: No OFD packet to send [09:07:23]OFD Sender: No OFD packet to send [09:07:28]OFD Sender: No OFD packet to send [09:07:33]OFD Sender: No OFD packet to send [09:07:38]OFD Sender: No OFD packet to send [09:07:43]OFD Sender: No OFD packet to send [09:07:48]OFD Sender: No OFD packet to send [09:07:53]OFD Sender: No OFD packet to send [09:07:58]OFD Sender: No OFD packet to send [09:08:03]OFD Sender: No OFD packet to send [09:08:08]OFD Sender: No OFD packet to send [09:08:13]OFD Sender: No OFD packet to send [09:08:18]OFD Sender: No OFD packet to send [09:08:23]OFD Sender: No OFD packet to send [09:08:28]OFD Sender: No OFD packet to send [09:08:33]OFD Sender: No OFD packet to send [09:08:38]OFD Sender: No OFD packet to send [09:08:43]OFD Sender: No OFD packet to send [09:08:48]OFD Sender: No OFD packet to send [09:08:53]OFD Sender: No OFD packet to send [09:08:58]OFD Sender: No OFD packet to send [09:09:03]OFD Sender: No OFD packet to send [09:09:08]OFD Sender: No OFD packet to send [09:09:13]OFD Sender: No OFD packet to send [09:09:18]OFD Sender: No OFD packet to send [09:09:23]OFD Sender: No OFD packet to send [09:09:28]OFD Sender: No OFD packet to send [09:09:33]OFD Sender: No OFD packet to send [09:09:38]OFD Sender: No OFD packet to send [09:09:43]OFD Sender: No OFD packet to send [09:09:47]accept exits with 7 [09:09:47]New connection [09:09:47]New thread 3067374948 created [09:09:47]Thread 3067518308 joined [09:09:47]Waiting for new connection... [09:09:47] Sock 7.Parse request [09:09:47]Sock 7.Check first char [09:09:47]Sock 7.First char is OK [09:09:47]request: POST /json_proto HTTP/1.0 [09:09:47]Method: POST [09:09:47]URL: /json_proto [09:09:47]Method is POST - this is cgi request [09:09:47]url: /json_proto [09:09:47]query_string will be loaded in cgi processing [09:09:47]execute_cgi json_proto POST (null) [09:09:47]execute_cgi path=json_proto method=POST [09:09:47]POST find Content-Length [09:09:47]Host: 172.17.60.69:8080 [09:09:47]Content-Length: 612 [09:09:47]Content-Type: application/json [09:09:47] [09:09:47]POST finish read [09:09:47]Found Content-Length = 612 [09:09:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73360", "tax_sys" : 0, "items" : [ { "code": "47803152", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Mevius Revo", "price" : 155.00, "quantity" : 1.000, "sum" : 155.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 155.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:09:47]execute_script... [09:09:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73360", "tax_sys" : 0, "items" : [ { "code": "47803152", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Mevius Revo", "price" : 155.00, "quantity" : 1.000, "sum" : 155.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 155.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:09:47]POST & json_proto [09:09:47]process_json_proto [09:09:47]json parsed OK: [09:09:47]protocol is kg_v1.0 [09:09:47]action value=close_receipt [09:09:47]process_action close_receipt [09:09:47]cmd_close_receipt [09:09:47]MH_GetDate [09:09:47]Write to MH i2c: F0 00 00 FD 06 F2 [09:09:47]Write i2c OK [09:09:47]MH_I2C_Read... [09:09:47]Read from MH i2c: F0 [09:09:47]MH_I2C_Read... [09:09:47]Read from MH i2c: F0 09 00 [09:09:47]MH_I2C_Read... [09:09:47]Read from MH i2c: F0 09 00 FD 06 00 5D 88 5D 66 6A 96 4A 66 53 [09:09:47]GetLastDocTimeStamp 1717405561 [09:09:47]current date 1717405789 [09:09:47]FM_GetShiftState [09:09:47]SAM_PROTO_GetShiftState [09:09:47]wFMCommunicate request_size=4 [09:09:47]MH_SAM_APDU [09:09:47]CAPDU: 80 13 01 00 [09:09:47]Write to MH i2c: E2 08 00 FE 06 80 13 01 00 00 00 00 00 81 [09:09:47]Write i2c OK [09:09:47]MH_I2C_Read... [09:09:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:09:47]Read from MH i2c: E2 [09:09:47]MH_I2C_Read... [09:09:47]Read from MH i2c: E2 0E 00 [09:09:47]MH_I2C_Read... [09:09:47]Read from MH i2c: E2 0E 00 FE 06 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 4D [09:09:47]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [09:09:47]wFMCommunicate OK [09:09:47]SAM_PROTO_GetShiftState done [09:09:47]FM_GetShiftState done [09:09:47]opened in 1717373173 [09:09:47]opened+sec_in_day 1717459573 [09:09:47]quantity*price = 15500 [09:09:47]sum+1 = 15501 [09:09:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 155.00 НСП 1% : 1.37 НДС 12% : 16.46 Наличными: 155.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 30 03.06.2024 09:09 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63772 ФПД: 56089976089887 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T090949&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63772&fm=56089976089887&tin=02508201610067®Number=0000000000092737&sum=15500 0 [09:09:48]StoreToDocumentArchive [09:09:48]shift 373 fd 63772 [09:09:48]save to /storage/0373/doc_00063772 [09:09:48]save last doc name /storage/0373/doc_00063772 to /storage/kkm_last_doc_name [09:09:48]save OK [09:09:48]Clear old archive folders... [09:09:48]ProcessDocumentItem done err = 0, tmpTLVsize=265 [09:09:48]tlvbuf is 00D512B0 [09:09:48]SAM_PROTO_ClearQueue [09:09:48]wFMCommunicate request_size=4 [09:09:48]MH_SAM_APDU [09:09:48]CAPDU: 80 09 00 00 [09:09:48]Write to MH i2c: E2 08 00 0B 07 80 09 00 00 00 00 00 00 84 [09:09:48]Write i2c OK [09:09:48]MH_I2C_Read... [09:09:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:09:48]Read from MH i2c: E2 [09:09:48]MH_I2C_Read... [09:09:48]Read from MH i2c: E2 03 00 [09:09:48]MH_I2C_Read... [09:09:48]Read from MH i2c: E2 03 00 0B 07 00 90 00 86 [09:09:48]RAPDU: 90 00 [09:09:48]wFMCommunicate OK [09:09:48]SAM_PROTO_ClearQueue done [09:09:48]KKMCreateOFDPacket [09:09:48]OFDProtocolAddRootSTLVToBuf [09:09:48]FM_MakeSignedData [09:09:48]FM_MakeSignedData [09:09:48]SAM_PROTO_SignData [09:09:48]wFMCommunicate request_size=4 [09:09:48]MH_SAM_APDU [09:09:48]CAPDU: 80 0D 01 02 [09:09:48]Write to MH i2c: E2 08 00 0C 07 80 0D 01 02 00 00 00 00 8C [09:09:48]Write i2c OK [09:09:48]MH_I2C_Read... [09:09:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:09:49]Read from MH i2c: E2 [09:09:49]MH_I2C_Read... [09:09:49]Read from MH i2c: E2 03 00 [09:09:49]MH_I2C_Read... [09:09:49]Read from MH i2c: E2 03 00 0C 07 00 90 00 87 [09:09:49]RAPDU: 90 00 [09:09:49]wFMCommunicate OK [09:09:49]wFMCommunicate request_size=255 [09:09:49]MH_SAM_APDU [09:09:49]CAPDU: 80 0D 02 02 FA 03 00 09 01 1E 04 01 00 01 23 04 5B 00 8A 04 08 00 34 37 38 30 33 31 35 32 06 04 1C 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 65 76 69 75 73 20 52 65 76 6F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 8C 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 5D 88 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 [09:09:49]Write to MH i2c: E2 02 01 0D 07 80 0D 02 02 FA 00 03 00 09 01 1E 04 01 00 01 23 04 5B 00 8A 04 08 00 34 37 38 30 33 31 35 32 06 04 1C 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 65 76 69 75 73 20 52 65 76 6F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 8C 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 5D 88 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 00 00 82 [09:09:49]Write i2c OK [09:09:49]MH_I2C_Read... [09:09:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:09:49]Read from MH i2c: E2 [09:09:49]MH_I2C_Read... [09:09:49]Read from MH i2c: E2 03 00 [09:09:49]MH_I2C_Read... [09:09:49]Read from MH i2c: E2 03 00 0D 07 00 90 00 88 [09:09:49]RAPDU: 90 00 [09:09:49]wFMCommunicate OK [09:09:49]wFMCommunicate request_size=24 [09:09:49]MH_SAM_APDU [09:09:49]CAPDU: 80 0D 02 02 13 34 10 04 04 00 1C F9 00 00 35 04 06 00 33 03 77 19 AD 1F [09:09:49]Write to MH i2c: E2 1B 00 0E 07 80 0D 02 02 13 00 34 10 04 04 00 1C F9 00 00 35 04 06 00 33 03 77 19 AD 1F 00 00 E7 [09:09:49]Write i2c OK [09:09:49]MH_I2C_Read... [09:09:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:09:49]Read from MH i2c: E2 [09:09:49]MH_I2C_Read... [09:09:49]Read from MH i2c: E2 03 00 [09:09:49]MH_I2C_Read... [09:09:49]Read from MH i2c: E2 03 00 0E 07 00 90 00 89 [09:09:49]RAPDU: 90 00 [09:09:49]wFMCommunicate OK [09:09:49]wFMCommunicate request_size=4 [09:09:49]MH_SAM_APDU [09:09:49]CAPDU: 80 0D 03 02 [09:09:49]Write to MH i2c: E2 08 00 0F 07 80 0D 03 02 00 00 00 00 91 [09:09:49]Write i2c OK [09:09:49]MH_I2C_Read... [09:09:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:09:49]Read from MH i2c: E2 [09:09:49]MH_I2C_Read... [09:09:49]Read from MH i2c: E2 0B 00 [09:09:49]MH_I2C_Read... [09:09:49]Read from MH i2c: E2 0B 00 0F 07 00 F8 52 F7 02 D8 5A B0 17 90 00 CE [09:09:49]RAPDU: F8 52 F7 02 D8 5A B0 17 90 00 [09:09:49]wFMCommunicate OK [09:09:49]SAM_PROTO_SignData done [09:09:49]FM_MakeSignedData done [09:09:49]CreateOFDProtocolMessage [09:09:49]wFMCommunicate request_size=4 [09:09:49]MH_SAM_APDU [09:09:49]CAPDU: 80 11 00 00 [09:09:49]Write to MH i2c: E2 08 00 10 07 80 11 00 00 00 00 00 00 91 [09:09:49]Write i2c OK [09:09:49]MH_I2C_Read... [09:09:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:09:49]Read from MH i2c: E2 [09:09:49]MH_I2C_Read... [09:09:49]Read from MH i2c: E2 17 00 [09:09:49]MH_I2C_Read... [09:09:49]Read from MH i2c: E2 17 00 10 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 E3 [09:09:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [09:09:49]wFMCommunicate OK [09:09:49]CreateOFDProtocolMessage done [09:09:49]OFDSenderStorePacket 63772 [09:09:49]StoreOFDPacket docnum=63772 [09:09:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 1D 01 00 00 BD 72 15 01 87 03 5A 03 01 00 03 00 09 01 1E 04 01 00 01 23 04 5B 00 8A 04 08 00 34 37 38 30 33 31 35 32 06 04 1C 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 65 76 69 75 73 20 52 65 76 6F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 8C 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 5D 88 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 1C F9 00 00 35 04 06 00 33 03 77 19 AD 1F F8 52 F7 02 D8 5A B0 17 [09:09:49]CheckFolder [09:09:49]dirname=/storage/ofd_packets [09:09:49]CheckFolder done [09:09:49]ProducePacketName [09:09:49]name=ofd_packets/00063772 [09:09:49]NVStorageSaveData ofd_packets/00063772 [09:09:49]File name is /storage/ofd_packets/00063772 [09:09:49]Write 315 bytes [09:09:49]NVStorageSaveData done [09:09:49]OFDSenderStorePacket done [09:09:49]KKMCreateOFDPacket done [09:09:49]NVStorageSaveData kkm_last_timestamp [09:09:49]File name is /storage/kkm_last_timestamp [09:09:49]Write 4 bytes [09:09:49]NVStorageSaveData done [09:09:49]ExternCall_PrintAddStr [09:09:49]wPrintStart [09:09:49]Write to MH i2c: 01 00 00 11 07 18 [09:09:49]Write i2c OK [09:09:49]MH_I2C_Read... [09:09:49]Read from MH i2c: 01 [09:09:49]MH_I2C_Read... [09:09:49]Read from MH i2c: 01 07 00 [09:09:49]MH_I2C_Read... [09:09:49]Read from MH i2c: 01 07 00 11 07 00 00 00 00 00 FF 0F 2D [09:09:49]RasterBufferAndPrint [09:09:49]line Счет N : (3)73360 [09:09:49]line ИНН: 02508201610067 [09:09:49]line Контрольно-Кассовый Чек [09:09:49]line ПРОДАЖА [09:09:49]line Товар: 47803152 [09:09:49]line Сигареты Mevius Revo [09:09:49]line 1.000 * 155.00 [09:09:49]line = 155.00 [09:09:49]line НДС 12% НСП 1% [09:09:49]line > о реализуемом товаре [09:09:49]line ИТОГО: 155.00 [09:09:49]line НСП 1% : 1.37 [09:09:49]line НДС 12% : 16.46 [09:09:49]line Наличными: 155.00 [09:09:49]line Безнал.: 0.00 [09:09:49]line Место: АЗС № 117 "Партнер Нефть" [09:09:49]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [09:09:49]line СНО: Общий режим [09:09:49]line Чек 30 03.06.2024 09:09 [09:09:49]line Смена: 373 ФФД: 1.0 [09:09:49]line ЗНМ: 0300000031 [09:09:49]line РНМ: 0000000000092737 [09:09:49]line Версия ККМ: 001 [09:09:49]line ФМ: 0000000000875074 [09:09:49]line ФД: 63772 [09:09:49]line ФПД: 56089976089887 [09:09:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T090949&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63772&fm=56089976089887&tin=02508201610067®Number=0000000000092737&sum=15500 [09:09:49]line 0 [09:09:49]OFD Sender: Processing packet 63772 [packets to send 14, broken 13] [09:09:49]ProducePacketName [09:09:49]name=ofd_packets/00063772 [09:09:49]OFD Sender: To server: pG, [09:09:49]CommunicateWithHost lk.salyk.kg:30040 [09:09:49]ConnectInit lk.salyk.kg [09:09:49]written 0, free lines is 4095 [09:09:49]Connected sock=10 [09:09:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 1D 01 00 00 BD 72 15 01 87 03 5A 03 01 00 03 00 09 01 1E 04 01 00 01 23 04 5B 00 8A 04 08 00 34 37 38 30 33 31 35 32 06 04 1C 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 65 76 69 75 73 20 52 65 76 6F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 8C 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 5D 88 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 1C F9 00 00 35 04 06 00 33 03 77 19 AD 1F F8 52 F7 02 D8 5A B0 17 [09:09:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 2B 11 47 00 D3 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 35 30 37 34 10 04 04 00 1C F9 00 00 F4 03 04 00 2F 34 5D 66 B6 04 01 00 00 6E 96 5D 63 65 03 A1 CF [09:09:50]CommunicateWithHost err = 0 [09:09:50]CheckOFDResponse [09:09:50]1017 (14) - 77093643461234 [09:09:50]1041 (16) - 0000000000875074 [09:09:50]1040 (4) - 63772 [09:09:50]1012 (4) - 03.06.2024 03:10 [09:09:50]1206 (1) - 0 [09:09:50]OFD Sender: Remove packet 63772 [09:09:50]ProducePacketName [09:09:50]name=ofd_packets/00063772 [09:09:50]NVStorageDeleteData [09:09:50]Write to MH i2c: 01 00 00 39 07 40 [09:09:50]Write i2c OK [09:09:50]MH_I2C_Read... [09:09:50]Read from MH i2c: 01 [09:09:50]MH_I2C_Read... [09:09:50]Read from MH i2c: 01 07 00 [09:09:50]MH_I2C_Read... [09:09:50]Read from MH i2c: 01 07 00 39 07 00 00 00 00 00 F4 0C 47 [09:09:50]RasterBufferAndPrint [09:09:50]line [09:09:50]line [09:09:50]line [09:09:50]line [09:09:50]line [09:09:50]written 0, free lines is 3323 [09:09:50]MH_Cut [09:09:50]Write to MH i2c: D1 01 00 40 07 01 19 [09:09:50]Write i2c OK [09:09:50]MH_I2C_Read... [09:09:50]Read from MH i2c: D1 [09:09:50]MH_I2C_Read... [09:09:50]Read from MH i2c: D1 01 00 [09:09:50]MH_I2C_Read... [09:09:50]Read from MH i2c: D1 01 00 40 07 00 18 [09:09:50]Write to MH i2c: 01 00 00 41 07 48 [09:09:50]Write i2c OK [09:09:50]MH_I2C_Read... [09:09:50]OFD Sender: No OFD packet to send [09:09:50]*** Cut start [09:09:50]*** Partial cut [09:09:50]*** CUTSNS_PIN = 1 [09:09:51]*** CUTSNS_PIN = 0 [09:09:51]*** Brake cut motor [09:09:51]Read from MH i2c: 01 [09:09:51]MH_I2C_Read... [09:09:51]*** Stop cut motor [09:09:51]*** Cut end [09:09:51]Read from MH i2c: 01 07 00 [09:09:51]MH_I2C_Read... [09:09:51]Read from MH i2c: 01 07 00 41 07 00 00 00 00 00 FF 0F 5D [09:09:51]process_action close_receipt done [09:09:51]requested_data is exist [09:09:51]produce_requested_data [09:09:51]requested_item fm.sn is exist - process it [09:09:51]wFMCommunicate request_size=4 [09:09:51]MH_SAM_APDU [09:09:51]CAPDU: 80 11 00 00 [09:09:51]Write to MH i2c: E2 08 00 42 07 80 11 00 00 00 00 00 00 C3 [09:09:51]Write i2c OK [09:09:51]MH_I2C_Read... [09:09:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:09:51]Read from MH i2c: E2 [09:09:51]MH_I2C_Read... [09:09:51]Read from MH i2c: E2 17 00 [09:09:51]MH_I2C_Read... [09:09:51]Read from MH i2c: E2 17 00 42 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 15 [09:09:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [09:09:51]wFMCommunicate OK [09:09:51]requested_item fd.num is exist - process it [09:09:51]SAM_PROTO_GetFieldsCounters [09:09:51]wFMCommunicate request_size=4 [09:09:51]MH_SAM_APDU [09:09:51]CAPDU: 80 13 00 00 [09:09:51]Write to MH i2c: E2 08 00 43 07 80 13 00 00 00 00 00 00 C6 [09:09:51]Write i2c OK [09:09:51]MH_I2C_Read... [09:09:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:09:51]Read from MH i2c: E2 [09:09:51]MH_I2C_Read... [09:09:51]Read from MH i2c: E2 62 00 [09:09:51]MH_I2C_Read... [09:09:51]Read from MH i2c: E2 62 00 43 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 1C F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 CE [09:09: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 1C F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:09:51]wFMCommunicate OK [09:09:51]SAM_PROTO_GetFieldsCounters done [09:09:51]requested_item shift.num is exist - process it [09:09:51]requested_item shift.opened is exist - process it [09:09:51]req_shift_opened [09:09:51]FM_GetShiftState [09:09:51]SAM_PROTO_GetShiftState [09:09:51]wFMCommunicate request_size=4 [09:09:51]MH_SAM_APDU [09:09:51]CAPDU: 80 13 01 00 [09:09:51]Write to MH i2c: E2 08 00 44 07 80 13 01 00 00 00 00 00 C8 [09:09:51]Write i2c OK [09:09:51]MH_I2C_Read... [09:09:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:09:51]Read from MH i2c: E2 [09:09:51]MH_I2C_Read... [09:09:51]Read from MH i2c: E2 0E 00 [09:09:51]MH_I2C_Read... [09:09:51]Read from MH i2c: E2 0E 00 44 07 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 94 [09:09:51]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [09:09:51]wFMCommunicate OK [09:09:51]SAM_PROTO_GetShiftState done [09:09:51]FM_GetShiftState done [09:09:51]req_shift_opened done [09:09:51]requested_item shift.open_date is exist - process it [09:09:51]req_shift_open_date [09:09:51]req_shift_open_date done [09:09:51]produce_requested_data done [09:09:51]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63772,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [09:09:51]process_action_free close_receipt [09:09:51]json_value_free [09:09:51]json_value_free done [09:09:51]process_json_proto returns [09:09:51]Send response to host [09:09:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63772,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [09:09:51]free response buf [09:09:51]execute_script done [09:09:51]execute_script returns [09:09:51]free content buf [09:09:51]Sock 7.Close socket [09:09:51]Sock 7.Thread stoped [09:09:55]OFD Sender: No OFD packet to send [09:10:00]OFD Sender: No OFD packet to send [09:10:05]OFD Sender: No OFD packet to send [09:10:10]OFD Sender: No OFD packet to send [09:10:15]OFD Sender: No OFD packet to send [09:10:20]OFD Sender: No OFD packet to send [09:10:25]OFD Sender: No OFD packet to send [09:10:30]OFD Sender: No OFD packet to send [09:10:35]OFD Sender: No OFD packet to send [09:10:40]OFD Sender: No OFD packet to send [09:10:45]OFD Sender: No OFD packet to send [09:10:50]OFD Sender: No OFD packet to send [09:10:55]OFD Sender: No OFD packet to send [09:11:00]OFD Sender: No OFD packet to send [09:11:05]OFD Sender: No OFD packet to send [09:11:07]accept exits with 9 [09:11:07]New connection [09:11:07]New thread 3067518308 created [09:11:07]Thread 3067374948 joined [09:11:07]Waiting for new connection... [09:11:07] Sock 9.Parse request [09:11:07]Sock 9.Check first char [09:11:07]Sock 9.First char is OK [09:11:07]request: POST /json_proto HTTP/1.0 [09:11:07]Method: POST [09:11:07]URL: /json_proto [09:11:07]Method is POST - this is cgi request [09:11:07]url: /json_proto [09:11:07]query_string will be loaded in cgi processing [09:11:07]execute_cgi json_proto POST (null) [09:11:07]execute_cgi path=json_proto method=POST [09:11:07]POST find Content-Length [09:11:07]Host: 172.17.60.69:8080 [09:11:07]Content-Length: 1324 [09:11:07]Content-Type: application/json [09:11:07] [09:11:07]POST finish read [09:11:07]Found Content-Length = 1324 [09:11:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73361", "tax_sys" : 0, "items" : [ { "code": "4870235681062", "name": "Grizzly \u0432\u043E\u043B\u043D\u0438\u0441\u0442\u044B\u0435 \u041A\u043E\u043B\u0431\u0430\u0441\u043A\u0438 \u0441 \u0433\u043E\u0440\u0447\u0438\u0446\u0435\u0439 55", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46141538", "name": "\u0420/\u0436 Orbit Bubblemint 13,6\u0433", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 245.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:11:07]execute_script... [09:11: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 : (3)73361", "tax_sys" : 0, "items" : [ { "code": "4870235681062", "name": "Grizzly \u0432\u043E\u043B\u043D\u0438\u0441\u0442\u044B\u0435 \u041A\u043E\u043B\u0431\u0430\u0441\u043A\u0438 \u0441 \u0433\u043E\u0440\u0447\u0438\u0446\u0435\u0439 55", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46141538", "name": "\u0420/\u0436 Orbit Bubblemint 13,6\u0433", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 245.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:11:07]POST & json_proto [09:11:07]process_json_proto [09:11:07]json parsed OK: [09:11:07]protocol is kg_v1.0 [09:11:07]action value=close_receipt [09:11:07]process_action close_receipt [09:11:07]cmd_close_receipt [09:11:07]MH_GetDate [09:11:07]Write to MH i2c: F0 00 00 45 07 3B [09:11:07]Write i2c OK [09:11:07]MH_I2C_Read... [09:11:07]Read from MH i2c: F0 [09:11:07]MH_I2C_Read... [09:11:07]Read from MH i2c: F0 09 00 [09:11:07]MH_I2C_Read... [09:11:07]Read from MH i2c: F0 09 00 45 07 00 AC 88 5D 66 6A 96 4A 66 EB [09:11:07]GetLastDocTimeStamp 1717405789 [09:11:07]current date 1717405868 [09:11:07]FM_GetShiftState [09:11:07]SAM_PROTO_GetShiftState [09:11:07]wFMCommunicate request_size=4 [09:11:07]MH_SAM_APDU [09:11:07]CAPDU: 80 13 01 00 [09:11:07]Write to MH i2c: E2 08 00 46 07 80 13 01 00 00 00 00 00 CA [09:11:07]Write i2c OK [09:11:07]MH_I2C_Read... [09:11:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:11:07]Read from MH i2c: E2 [09:11:07]MH_I2C_Read... [09:11:07]Read from MH i2c: E2 0E 00 [09:11:07]MH_I2C_Read... [09:11:07]Read from MH i2c: E2 0E 00 46 07 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 96 [09:11:07]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [09:11:07]wFMCommunicate OK [09:11:07]SAM_PROTO_GetShiftState done [09:11:07]FM_GetShiftState done [09:11:07]opened in 1717373173 [09:11:07]opened+sec_in_day 1717459573 [09:11:07]quantity*price = 9000 [09:11:07]sum+1 = 9001 [09:11:07]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870001570071 Напиток Pepsi 1л 1.000 * 110.00 = 110.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 46141538 Р/ж Orbit Bubblemint 13,6г 1.000 * 45.00 = 45.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 245.00 НСП 1% : 2.17 НДС 12% : 26.02 Наличными: 0.00 Безнал.: 245.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 31 03.06.2024 09:11 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875074 ФД: 63773 ФПД: 44353386425040 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T091109&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63773&fm=44353386425040&tin=02508201610067®Number=0000000000092737&sum=24500 0 [09:11:08]StoreToDocumentArchive [09:11:08]shift 373 fd 63773 [09:11:08]save to /storage/0373/doc_00063773 [09:11:08]save last doc name /storage/0373/doc_00063773 to /storage/kkm_last_doc_name [09:11:08]save OK [09:11:08]Clear old archive folders... [09:11:08]ProcessDocumentItem done err = 0, tmpTLVsize=500 [09:11:08]tlvbuf is 00D1E7F0 [09:11:08]SAM_PROTO_ClearQueue [09:11:08]wFMCommunicate request_size=4 [09:11:08]MH_SAM_APDU [09:11:08]CAPDU: 80 09 00 00 [09:11:08]Write to MH i2c: E2 08 00 53 07 80 09 00 00 00 00 00 00 CC [09:11:08]Write i2c OK [09:11:08]MH_I2C_Read... [09:11:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:11:08]Read from MH i2c: E2 [09:11:08]MH_I2C_Read... [09:11:08]Read from MH i2c: E2 03 00 [09:11:08]MH_I2C_Read... [09:11:08]Read from MH i2c: E2 03 00 53 07 00 90 00 CE [09:11:08]RAPDU: 90 00 [09:11:08]wFMCommunicate OK [09:11:08]SAM_PROTO_ClearQueue done [09:11:08]KKMCreateOFDPacket [09:11:08]OFDProtocolAddRootSTLVToBuf [09:11:08]FM_MakeSignedData [09:11:08]FM_MakeSignedData [09:11:08]SAM_PROTO_SignData [09:11:08]wFMCommunicate request_size=4 [09:11:08]MH_SAM_APDU [09:11:08]CAPDU: 80 0D 01 02 [09:11:08]Write to MH i2c: E2 08 00 54 07 80 0D 01 02 00 00 00 00 D4 [09:11:08]Write i2c OK [09:11:08]MH_I2C_Read... [09:11:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:11:08]Read from MH i2c: E2 [09:11:08]MH_I2C_Read... [09:11:08]Read from MH i2c: E2 03 00 [09:11:08]MH_I2C_Read... [09:11:08]Read from MH i2c: E2 03 00 54 07 00 90 00 CF [09:11:08]RAPDU: 90 00 [09:11:08]wFMCommunicate OK [09:11:08]wFMCommunicate request_size=255 [09:11:08]MH_SAM_APDU [09:11:08]CAPDU: 80 0D 02 02 FA 03 00 F4 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 30 36 32 06 04 42 00 47 72 69 7A 7A 6C 79 20 D0 B2 D0 BE D0 BB D0 BD D0 B8 D1 81 D1 82 D1 8B D0 B5 20 D0 9A D0 BE D0 BB D0 B1 D0 B0 D1 81 D0 BA D0 B8 20 D1 81 20 D0 B3 D0 BE D1 80 D1 87 D0 B8 D1 86 D0 B5 D0 B9 20 35 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 08 [09:11:08]Write to MH i2c: E2 02 01 55 07 80 0D 02 02 FA 00 03 00 F4 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 30 36 32 06 04 42 00 47 72 69 7A 7A 6C 79 20 D0 B2 D0 BE D0 BB D0 BD D0 B8 D1 81 D1 82 D1 8B D0 B5 20 D0 9A D0 BE D0 BB D0 B1 D0 B0 D1 81 D0 BA D0 B8 20 D1 81 20 D0 B3 D0 BE D1 80 D1 87 D0 B8 D1 86 D0 B5 D0 B9 20 35 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 08 00 00 86 [09:11:08]Write i2c OK [09:11:08]MH_I2C_Read... [09:11:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:11:09]Read from MH i2c: E2 [09:11:09]MH_I2C_Read... [09:11:09]Read from MH i2c: E2 03 00 [09:11:09]MH_I2C_Read... [09:11:09]Read from MH i2c: E2 03 00 55 07 00 90 00 D0 [09:11:09]RAPDU: 90 00 [09:11:09]wFMCommunicate OK [09:11:09]wFMCommunicate request_size=255 [09:11:09]MH_SAM_APDU [09:11:09]CAPDU: 80 0D 02 02 FA 00 34 36 31 34 31 35 33 38 06 04 1D 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 42 75 62 62 6C 65 6D 69 6E 74 20 31 33 2C 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 5F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B4 5F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 AD 88 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 1D F9 00 00 35 04 06 00 28 56 [09:11:09]Write to MH i2c: E2 02 01 56 07 80 0D 02 02 FA 00 00 34 36 31 34 31 35 33 38 06 04 1D 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 42 75 62 62 6C 65 6D 69 6E 74 20 31 33 2C 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 5F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B4 5F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 AD 88 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 1D F9 00 00 35 04 06 00 28 56 00 00 51 [09:11:09]Write i2c OK [09:11:09]MH_I2C_Read... [09:11:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:11:09]Read from MH i2c: E2 [09:11:09]MH_I2C_Read... [09:11:09]Read from MH i2c: E2 03 00 [09:11:09]MH_I2C_Read... [09:11:09]Read from MH i2c: E2 03 00 56 07 00 90 00 D1 [09:11:09]RAPDU: 90 00 [09:11:09]wFMCommunicate OK [09:11:09]wFMCommunicate request_size=9 [09:11:09]MH_SAM_APDU [09:11:09]CAPDU: 80 0D 02 02 04 D3 D7 AA D0 [09:11:09]Write to MH i2c: E2 0C 00 57 07 80 0D 02 02 04 00 D3 D7 AA D0 00 00 04 [09:11:09]Write i2c OK [09:11:09]MH_I2C_Read... [09:11:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:11:09]Read from MH i2c: E2 [09:11:09]MH_I2C_Read... [09:11:09]Read from MH i2c: E2 03 00 [09:11:09]MH_I2C_Read... [09:11:09]Read from MH i2c: E2 03 00 57 07 00 90 00 D2 [09:11:09]RAPDU: 90 00 [09:11:09]wFMCommunicate OK [09:11:09]wFMCommunicate request_size=4 [09:11:09]MH_SAM_APDU [09:11:09]CAPDU: 80 0D 03 02 [09:11:09]Write to MH i2c: E2 08 00 58 07 80 0D 03 02 00 00 00 00 DA [09:11:09]Write i2c OK [09:11:09]MH_I2C_Read... [09:11:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:11:09]Read from MH i2c: E2 [09:11:09]MH_I2C_Read... [09:11:09]Read from MH i2c: E2 0B 00 [09:11:09]MH_I2C_Read... [09:11:09]Read from MH i2c: E2 0B 00 58 07 00 F8 FB E5 D7 BD 81 FC 21 90 00 E5 [09:11:09]RAPDU: F8 FB E5 D7 BD 81 FC 21 90 00 [09:11:09]wFMCommunicate OK [09:11:09]SAM_PROTO_SignData done [09:11:09]FM_MakeSignedData done [09:11:09]CreateOFDProtocolMessage [09:11:09]wFMCommunicate request_size=4 [09:11:09]MH_SAM_APDU [09:11:09]CAPDU: 80 11 00 00 [09:11:09]Write to MH i2c: E2 08 00 59 07 80 11 00 00 00 00 00 00 DA [09:11:09]Write i2c OK [09:11:09]MH_I2C_Read... [09:11:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:11:09]Read from MH i2c: E2 [09:11:09]MH_I2C_Read... [09:11:09]Read from MH i2c: E2 17 00 [09:11:09]MH_I2C_Read... [09:11:09]Read from MH i2c: E2 17 00 59 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 2C [09:11:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [09:11:09]wFMCommunicate OK [09:11:09]CreateOFDProtocolMessage done [09:11:09]OFDSenderStorePacket 63773 [09:11:09]StoreOFDPacket docnum=63773 [09:11:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 08 02 00 00 D2 A1 00 02 F8 F6 5A 03 01 00 03 00 F4 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 30 36 32 06 04 42 00 47 72 69 7A 7A 6C 79 20 D0 B2 D0 BE D0 BB D0 BD D0 B8 D1 81 D1 82 D1 8B D0 B5 20 D0 9A D0 BE D0 BB D0 B1 D0 B0 D1 81 D0 BA D0 B8 20 D1 81 20 D0 B3 D0 BE D1 80 D1 87 D0 B8 D1 86 D0 B5 D0 B9 20 35 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 08 00 34 36 31 34 31 35 33 38 06 04 1D 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 42 75 62 62 6C 65 6D 69 6E 74 20 31 33 2C 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 5F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B4 5F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 AD 88 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 1D F9 00 00 35 04 06 00 28 56 D3 D7 AA D0 F8 FB E5 D7 BD 81 FC 21 [09:11:09]CheckFolder [09:11:09]dirname=/storage/ofd_packets [09:11:09]CheckFolder done [09:11:09]ProducePacketName [09:11:09]name=ofd_packets/00063773 [09:11:09]NVStorageSaveData ofd_packets/00063773 [09:11:09]File name is /storage/ofd_packets/00063773 [09:11:09]Write 550 bytes [09:11:09]NVStorageSaveData done [09:11:09]OFDSenderStorePacket done [09:11:09]KKMCreateOFDPacket done [09:11:09]NVStorageSaveData kkm_last_timestamp [09:11:09]File name is /storage/kkm_last_timestamp [09:11:09]Write 4 bytes [09:11:09]NVStorageSaveData done [09:11:09]ExternCall_PrintAddStr [09:11:09]wPrintStart [09:11:09]Write to MH i2c: 01 00 00 5A 07 61 [09:11:09]Write i2c OK [09:11:09]MH_I2C_Read... [09:11:09]Read from MH i2c: 01 [09:11:09]MH_I2C_Read... [09:11:09]Read from MH i2c: 01 07 00 [09:11:09]MH_I2C_Read... [09:11:09]Read from MH i2c: 01 07 00 5A 07 00 00 00 00 00 FF 0F 76 [09:11:09]RasterBufferAndPrint [09:11:09]line Счет N : (3)73361 [09:11:09]line ИНН: 02508201610067 [09:11:09]line Контрольно-Кассовый Чек [09:11:09]line ПРОДАЖА [09:11:09]line Товар: 4870235681062 [09:11:09]line Grizzly волнистые Колбаски с горчицей 55 [09:11:09]line 1.000 * 90.00 [09:11:09]line = 90.00 [09:11:09]line НДС 12% НСП 1% [09:11:09]line > о реализуемом товаре [09:11:09]line Товар: 4870001570071 [09:11:09]line Напиток Pepsi 1л [09:11:09]line 1.000 * 110.00 [09:11:09]line = 110.00 [09:11:09]line НДС 12% НСП 1% [09:11:09]line > о реализуемом товаре [09:11:09]line Товар: 46141538 [09:11:09]line Р/ж Orbit Bubblemint 13,6г [09:11:09]line 1.000 * 45.00 [09:11:09]line = 45.00 [09:11:09]line НДС 12% НСП 1% [09:11:09]line > о реализуемом товаре [09:11:09]line ИТОГО: 245.00 [09:11:09]line НСП 1% : 2.17 [09:11:09]line НДС 12% : 26.02 [09:11:09]line Наличными: 0.00 [09:11:09]line Безнал.: 245.00 [09:11:09]line Место: АЗС № 117 "Партнер Нефть" [09:11:09]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [09:11:09]line СНО: Общий режим [09:11:09]line Чек 31 03.06.2024 09:11 [09:11:09]line Смена: 373 ФФД: 1.0 [09:11:09]line ЗНМ: 0300000031 [09:11:09]line РНМ: 0000000000092737 [09:11:09]line Версия ККМ: 001 [09:11:09]line Платежная система: O! деньги [09:11:09]line ФМ: 0000000000875074 [09:11:09]line ФД: 63773 [09:11:09]line ФПД: 44353386425040 [09:11:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T091109&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63773&fm=44353386425040&tin=02508201610067®Number=0000000000092737&sum=24500 [09:11:09]line 0 [09:11:09]OFD Sender: Processing packet 63773 [packets to send 14, broken 13] [09:11:09]ProducePacketName [09:11:09]name=ofd_packets/00063773 [09:11:09]OFD Sender: To server: pG, [09:11:09]CommunicateWithHost lk.salyk.kg:30040 [09:11:09]ConnectInit lk.salyk.kg [09:11:09]written 0, free lines is 4095 [09:11:09]Connected sock=10 [09:11:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 08 02 00 00 D2 A1 00 02 F8 F6 5A 03 01 00 03 00 F4 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 30 36 32 06 04 42 00 47 72 69 7A 7A 6C 79 20 D0 B2 D0 BE D0 BB D0 BD D0 B8 D1 81 D1 82 D1 8B D0 B5 20 D0 9A D0 BE D0 BB D0 B1 D0 B0 D1 81 D0 BA D0 B8 20 D1 81 20 D0 B3 D0 BE D1 80 D1 87 D0 B8 D1 86 D0 B5 D0 B9 20 35 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 08 00 34 36 31 34 31 35 33 38 06 04 1D 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 42 75 62 62 6C 65 6D 69 6E 74 20 31 33 2C 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 5F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B4 5F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 AD 88 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 1D F9 00 00 35 04 06 00 28 56 D3 D7 AA D0 F8 FB E5 D7 BD 81 FC 21 [09:11:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 40 8C 47 00 DE 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 35 30 37 34 10 04 04 00 1D F9 00 00 F4 03 04 00 7F 34 5D 66 B6 04 01 00 00 C0 65 8D CB AE D5 05 9C [09:11:10]CommunicateWithHost err = 0 [09:11:10]CheckOFDResponse [09:11:10]1017 (14) - 77093643461234 [09:11:10]1041 (16) - 0000000000875074 [09:11:10]1040 (4) - 63773 [09:11:10]1012 (4) - 03.06.2024 03:11 [09:11:10]1206 (1) - 0 [09:11:10]OFD Sender: Remove packet 63773 [09:11:10]ProducePacketName [09:11:10]name=ofd_packets/00063773 [09:11:10]NVStorageDeleteData [09:11:10]Write to MH i2c: 01 00 00 91 07 98 [09:11:10]Write i2c OK [09:11:10]MH_I2C_Read... [09:11:10]Read from MH i2c: 01 [09:11:10]MH_I2C_Read... [09:11:10]Read from MH i2c: 01 07 00 [09:11:10]MH_I2C_Read... [09:11:10]Read from MH i2c: 01 07 00 91 07 00 00 00 00 00 01 0C AC [09:11:10]RasterBufferAndPrint [09:11:10]line [09:11:10]line [09:11:10]line [09:11:10]line [09:11:10]line [09:11:10]written 0, free lines is 3078 [09:11:10]MH_Cut [09:11:10]Write to MH i2c: D1 01 00 98 07 01 71 [09:11:10]Write i2c OK [09:11:10]MH_I2C_Read... [09:11:10]Read from MH i2c: D1 [09:11:10]MH_I2C_Read... [09:11:10]Read from MH i2c: D1 01 00 [09:11:10]MH_I2C_Read... [09:11:10]Read from MH i2c: D1 01 00 98 07 00 70 [09:11:10]Write to MH i2c: 01 00 00 99 07 A0 [09:11:10]Write i2c OK [09:11:10]MH_I2C_Read... [09:11:10]OFD Sender: No OFD packet to send [09:11:11]*** Cut start [09:11:11]*** Partial cut [09:11:11]*** CUTSNS_PIN = 1 [09:11:11]*** CUTSNS_PIN = 0 [09:11:11]*** Brake cut motor [09:11:11]Read from MH i2c: 01 [09:11:11]MH_I2C_Read... [09:11:11]*** Stop cut motor [09:11:12]*** Cut end [09:11:12]Read from MH i2c: 01 07 00 [09:11:12]MH_I2C_Read... [09:11:12]Read from MH i2c: 01 07 00 99 07 00 00 00 00 00 FF 0F B5 [09:11:12]process_action close_receipt done [09:11:12]requested_data is exist [09:11:12]produce_requested_data [09:11:12]requested_item fm.sn is exist - process it [09:11:12]wFMCommunicate request_size=4 [09:11:12]MH_SAM_APDU [09:11:12]CAPDU: 80 11 00 00 [09:11:12]Write to MH i2c: E2 08 00 9A 07 80 11 00 00 00 00 00 00 1B [09:11:12]Write i2c OK [09:11:12]MH_I2C_Read... [09:11:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:11:12]Read from MH i2c: E2 [09:11:12]MH_I2C_Read... [09:11:12]Read from MH i2c: E2 17 00 [09:11:12]MH_I2C_Read... [09:11:12]Read from MH i2c: E2 17 00 9A 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 6D [09:11:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [09:11:12]wFMCommunicate OK [09:11:12]requested_item fd.num is exist - process it [09:11:12]SAM_PROTO_GetFieldsCounters [09:11:12]wFMCommunicate request_size=4 [09:11:12]MH_SAM_APDU [09:11:12]CAPDU: 80 13 00 00 [09:11:12]Write to MH i2c: E2 08 00 9B 07 80 13 00 00 00 00 00 00 1E [09:11:12]Write i2c OK [09:11:12]MH_I2C_Read... [09:11:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:11:12]Read from MH i2c: E2 [09:11:12]MH_I2C_Read... [09:11:12]Read from MH i2c: E2 62 00 [09:11:12]MH_I2C_Read... [09:11:12]Read from MH i2c: E2 62 00 9B 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 1D F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 2A [09:11: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 1D F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:11:12]wFMCommunicate OK [09:11:12]SAM_PROTO_GetFieldsCounters done [09:11:12]requested_item shift.num is exist - process it [09:11:12]requested_item shift.opened is exist - process it [09:11:12]req_shift_opened [09:11:12]FM_GetShiftState [09:11:12]SAM_PROTO_GetShiftState [09:11:12]wFMCommunicate request_size=4 [09:11:12]MH_SAM_APDU [09:11:12]CAPDU: 80 13 01 00 [09:11:12]Write to MH i2c: E2 08 00 9C 07 80 13 01 00 00 00 00 00 20 [09:11:12]Write i2c OK [09:11:12]MH_I2C_Read... [09:11:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:11:12]Read from MH i2c: E2 [09:11:12]MH_I2C_Read... [09:11:12]Read from MH i2c: E2 0E 00 [09:11:12]MH_I2C_Read... [09:11:12]Read from MH i2c: E2 0E 00 9C 07 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 EC [09:11:12]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [09:11:12]wFMCommunicate OK [09:11:12]SAM_PROTO_GetShiftState done [09:11:12]FM_GetShiftState done [09:11:12]req_shift_opened done [09:11:12]requested_item shift.open_date is exist - process it [09:11:12]req_shift_open_date [09:11:12]req_shift_open_date done [09:11:12]produce_requested_data done [09:11:12]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63773,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [09:11:12]process_action_free close_receipt [09:11:12]json_value_free [09:11:12]json_value_free done [09:11:12]process_json_proto returns [09:11:12]Send response to host [09:11:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63773,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [09:11:12]free response buf [09:11:12]execute_script done [09:11:12]execute_script returns [09:11:12]free content buf [09:11:12]Sock 9.Close socket [09:11:12]Sock 9.Thread stoped [09:11:15]OFD Sender: No OFD packet to send [09:11:20]OFD Sender: No OFD packet to send [09:11:25]OFD Sender: No OFD packet to send [09:11:30]OFD Sender: No OFD packet to send [09:11:35]OFD Sender: No OFD packet to send [09:11:40]OFD Sender: No OFD packet to send [09:11:45]OFD Sender: No OFD packet to send [09:11:50]OFD Sender: No OFD packet to send [09:11:55]OFD Sender: No OFD packet to send [09:12:00]OFD Sender: No OFD packet to send [09:12:05]OFD Sender: No OFD packet to send [09:12:10]OFD Sender: No OFD packet to send [09:12:15]OFD Sender: No OFD packet to send [09:12:20]OFD Sender: No OFD packet to send [09:12:25]OFD Sender: No OFD packet to send [09:12:30]OFD Sender: No OFD packet to send [09:12:35]OFD Sender: No OFD packet to send [09:12:40]OFD Sender: No OFD packet to send [09:12:45]OFD Sender: No OFD packet to send [09:12:50]OFD Sender: No OFD packet to send [09:12:55]OFD Sender: No OFD packet to send [09:13:00]OFD Sender: No OFD packet to send [09:13:02]accept exits with 7 [09:13:02]New connection [09:13:02]New thread 3067374948 created [09:13:02]Thread 3067518308 joined [09:13:02]Waiting for new connection... [09:13:02] Sock 7.Parse request [09:13:02]Sock 7.Check first char [09:13:02]Sock 7.First char is OK [09:13:02]request: POST /json_proto HTTP/1.0 [09:13:02]Method: POST [09:13:02]URL: /json_proto [09:13:02]Method is POST - this is cgi request [09:13:02]url: /json_proto [09:13:02]query_string will be loaded in cgi processing [09:13:02]execute_cgi json_proto POST (null) [09:13:02]execute_cgi path=json_proto method=POST [09:13:02]POST find Content-Length [09:13:02]Host: 172.17.60.69:8080 [09:13:02]Content-Length: 800 [09:13:02]Content-Type: application/json [09:13:02] [09:13:02]POST finish read [09:13:02]Found Content-Length = 800 [09:13:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543417", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 25.450, "sum" : 1855.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1855.31 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:13:02]execute_script... [09:13:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543417", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 25.450, "sum" : 1855.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1855.31 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:13:02]POST & json_proto [09:13:02]process_json_proto [09:13:02]json parsed OK: [09:13:02]protocol is kg_v1.0 [09:13:02]action value=close_receipt [09:13:02]process_action close_receipt [09:13:02]cmd_close_receipt [09:13:02]MH_GetDate [09:13:02]Write to MH i2c: F0 00 00 9D 07 93 [09:13:02]Write i2c OK [09:13:02]MH_I2C_Read... [09:13:02]Read from MH i2c: F0 [09:13:02]MH_I2C_Read... [09:13:02]Read from MH i2c: F0 09 00 [09:13:02]MH_I2C_Read... [09:13:02]Read from MH i2c: F0 09 00 9D 07 00 20 89 5D 66 6A 96 4A 66 B8 [09:13:02]GetLastDocTimeStamp 1717405869 [09:13:02]current date 1717405984 [09:13:02]FM_GetShiftState [09:13:02]SAM_PROTO_GetShiftState [09:13:02]wFMCommunicate request_size=4 [09:13:02]MH_SAM_APDU [09:13:02]CAPDU: 80 13 01 00 [09:13:02]Write to MH i2c: E2 08 00 9E 07 80 13 01 00 00 00 00 00 22 [09:13:02]Write i2c OK [09:13:02]MH_I2C_Read... [09:13:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:13:02]Read from MH i2c: E2 [09:13:02]MH_I2C_Read... [09:13:02]Read from MH i2c: E2 0E 00 [09:13:02]MH_I2C_Read... [09:13:02]Read from MH i2c: E2 0E 00 9E 07 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 EE [09:13:02]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [09:13:02]wFMCommunicate OK [09:13:02]SAM_PROTO_GetShiftState done [09:13:02]FM_GetShiftState done [09:13:02]opened in 1717373173 [09:13:02]opened+sec_in_day 1717459573 [09:13:02]quantity*price = 185530 [09:13:02]sum+1 = 185532 [09:13:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1855.31 НСП 1% : 16.42 НДС 12% : 197.02 Наличными: 0.00 Безнал.: 1855.31 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 32 03.06.2024 09:13 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875074 ФД: 63774 ФПД: 65549327057114 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T091304&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63774&fm=65549327057114&tin=02508201610067®Number=0000000000092737&sum=185531 [09:13:04]StoreToDocumentArchive [09:13:04]shift 373 fd 63774 [09:13:04]save to /storage/0373/doc_00063774 [09:13:04]save last doc name /storage/0373/doc_00063774 to /storage/kkm_last_doc_name [09:13:04]save OK [09:13:04]Clear old archive folders... [09:13:04]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:13:04]tlvbuf is 00D468F0 [09:13:04]SAM_PROTO_ClearQueue [09:13:04]wFMCommunicate request_size=4 [09:13:04]MH_SAM_APDU [09:13:04]CAPDU: 80 09 00 00 [09:13:04]Write to MH i2c: E2 08 00 AB 07 80 09 00 00 00 00 00 00 24 [09:13:04]Write i2c OK [09:13:04]MH_I2C_Read... [09:13:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:13:04]Read from MH i2c: E2 [09:13:04]MH_I2C_Read... [09:13:04]Read from MH i2c: E2 03 00 [09:13:04]MH_I2C_Read... [09:13:04]Read from MH i2c: E2 03 00 AB 07 00 90 00 26 [09:13:04]RAPDU: 90 00 [09:13:04]wFMCommunicate OK [09:13:04]SAM_PROTO_ClearQueue done [09:13:04]KKMCreateOFDPacket [09:13:04]OFDProtocolAddRootSTLVToBuf [09:13:04]FM_MakeSignedData [09:13:04]FM_MakeSignedData [09:13:04]SAM_PROTO_SignData [09:13:04]wFMCommunicate request_size=4 [09:13:04]MH_SAM_APDU [09:13:04]CAPDU: 80 0D 01 02 [09:13:04]Write to MH i2c: E2 08 00 AC 07 80 0D 01 02 00 00 00 00 2C [09:13:04]Write i2c OK [09:13:04]MH_I2C_Read... [09:13:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:13:04]Read from MH i2c: E2 [09:13:04]MH_I2C_Read... [09:13:04]Read from MH i2c: E2 03 00 [09:13:04]MH_I2C_Read... [09:13:04]Read from MH i2c: E2 03 00 AC 07 00 90 00 27 [09:13:04]RAPDU: 90 00 [09:13:04]wFMCommunicate OK [09:13:04]wFMCommunicate request_size=255 [09:13:04]MH_SAM_APDU [09:13:04]CAPDU: 80 0D 02 02 FA 03 00 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 35 FF 03 08 00 03 6A 63 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 BB D4 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BB D4 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F6 4C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BB D4 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 20 89 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 1E F9 00 00 35 04 06 00 3B 9D E4 5A [09:13:04]Write to MH i2c: E2 02 01 AD 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 35 FF 03 08 00 03 6A 63 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 BB D4 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BB D4 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F6 4C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BB D4 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 20 89 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 1E F9 00 00 35 04 06 00 3B 9D E4 5A 00 00 82 [09:13:04]Write i2c OK [09:13:04]MH_I2C_Read... [09:13:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:13:04]Read from MH i2c: E2 [09:13:04]MH_I2C_Read... [09:13:04]Read from MH i2c: E2 03 00 [09:13:04]MH_I2C_Read... [09:13:04]Read from MH i2c: E2 03 00 AD 07 00 90 00 28 [09:13:04]RAPDU: 90 00 [09:13:04]wFMCommunicate OK [09:13:04]wFMCommunicate request_size=7 [09:13:04]MH_SAM_APDU [09:13:04]CAPDU: 80 0D 02 02 02 C0 DA [09:13:04]Write to MH i2c: E2 0A 00 AE 07 80 0D 02 02 02 00 C0 DA 00 00 CD [09:13:04]Write i2c OK [09:13:04]MH_I2C_Read... [09:13:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:13:04]Read from MH i2c: E2 [09:13:04]MH_I2C_Read... [09:13:04]Read from MH i2c: E2 03 00 [09:13:04]MH_I2C_Read... [09:13:04]Read from MH i2c: E2 03 00 AE 07 00 90 00 29 [09:13:04]RAPDU: 90 00 [09:13:04]wFMCommunicate OK [09:13:04]wFMCommunicate request_size=4 [09:13:04]MH_SAM_APDU [09:13:04]CAPDU: 80 0D 03 02 [09:13:04]Write to MH i2c: E2 08 00 AF 07 80 0D 03 02 00 00 00 00 31 [09:13:04]Write i2c OK [09:13:04]MH_I2C_Read... [09:13:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:13:04]Read from MH i2c: E2 [09:13:04]MH_I2C_Read... [09:13:04]Read from MH i2c: E2 0B 00 [09:13:04]MH_I2C_Read... [09:13:04]Read from MH i2c: E2 0B 00 AF 07 00 27 A5 76 8D 2E 0D 46 4F 90 00 D1 [09:13:04]RAPDU: 27 A5 76 8D 2E 0D 46 4F 90 00 [09:13:04]wFMCommunicate OK [09:13:04]SAM_PROTO_SignData done [09:13:04]FM_MakeSignedData done [09:13:04]CreateOFDProtocolMessage [09:13:04]wFMCommunicate request_size=4 [09:13:04]MH_SAM_APDU [09:13:04]CAPDU: 80 11 00 00 [09:13:04]Write to MH i2c: E2 08 00 B0 07 80 11 00 00 00 00 00 00 31 [09:13:04]Write i2c OK [09:13:04]MH_I2C_Read... [09:13:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:13:04]Read from MH i2c: E2 [09:13:04]MH_I2C_Read... [09:13:04]Read from MH i2c: E2 17 00 [09:13:04]MH_I2C_Read... [09:13:04]Read from MH i2c: E2 17 00 B0 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 83 [09:13:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [09:13:04]wFMCommunicate OK [09:13:04]CreateOFDProtocolMessage done [09:13:04]OFDSenderStorePacket 63774 [09:13:04]StoreOFDPacket docnum=63774 [09:13:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0C 01 00 00 5F 22 04 01 71 35 5A 03 01 00 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 35 FF 03 08 00 03 6A 63 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 BB D4 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BB D4 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F6 4C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BB D4 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 20 89 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 1E F9 00 00 35 04 06 00 3B 9D E4 5A C0 DA 27 A5 76 8D 2E 0D 46 4F [09:13:04]CheckFolder [09:13:04]dirname=/storage/ofd_packets [09:13:04]CheckFolder done [09:13:04]ProducePacketName [09:13:04]name=ofd_packets/00063774 [09:13:04]NVStorageSaveData ofd_packets/00063774 [09:13:04]File name is /storage/ofd_packets/00063774 [09:13:04]Write 298 bytes [09:13:04]NVStorageSaveData done [09:13:04]OFDSenderStorePacket done [09:13:04]KKMCreateOFDPacket done [09:13:04]NVStorageSaveData kkm_last_timestamp [09:13:04]File name is /storage/kkm_last_timestamp [09:13:04]Write 4 bytes [09:13:04]NVStorageSaveData done [09:13:04]ExternCall_PrintAddStr [09:13:04]wPrintStart [09:13:04]Write to MH i2c: 01 00 00 B1 07 B8 [09:13:04]Write i2c OK [09:13:04]MH_I2C_Read... [09:13:04]Read from MH i2c: 01 [09:13:04]MH_I2C_Read... [09:13:04]Read from MH i2c: 01 07 00 [09:13:04]MH_I2C_Read... [09:13:04]Read from MH i2c: 01 07 00 B1 07 00 00 00 00 00 FF 0F CD [09:13:04]RasterBufferAndPrint [09:13:04]line Счет N : (1)543417 [09:13:04]line ИНН: 02508201610067 [09:13:04]line Контрольно-Кассовый Чек [09:13:04]line ПРОДАЖА [09:13:04]line ТРК (МРК, ГНК) : 31 [09:13:04]line Товар: 2710194210 [09:13:04]line ДТ-К-5 [09:13:04]line 25.450 * 72.90 [09:13:04]line = 1855.31 [09:13:04]line НДС 12% НСП 1% [09:13:04]line > о реализуемом товаре [09:13:04]line ИТОГО: 1855.31 [09:13:04]line НСП 1% : 16.42 [09:13:04]line НДС 12% : 197.02 [09:13:04]line Наличными: 0.00 [09:13:04]line Безнал.: 1855.31 [09:13:04]line Место: АЗС № 117 "Партнер Нефть" [09:13:04]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [09:13:04]line СНО: Общий режим [09:13:04]line Чек 32 03.06.2024 09:13 [09:13:04]line Смена: 373 ФФД: 1.0 [09:13:04]line ЗНМ: 0300000031 [09:13:04]line РНМ: 0000000000092737 [09:13:04]line Версия ККМ: 001 [09:13:04]line Платежная система: O! деньги [09:13:04]line ФМ: 0000000000875074 [09:13:04]line ФД: 63774 [09:13:04]line ФПД: 65549327057114 [09:13:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T091304&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63774&fm=65549327057114&tin=02508201610067®Number=0000000000092737&sum=185531 [09:13:04]OFD Sender: Processing packet 63774 [packets to send 14, broken 13] [09:13:04]ProducePacketName [09:13:04]name=ofd_packets/00063774 [09:13:04]OFD Sender: To server: pG, [09:13:04]CommunicateWithHost lk.salyk.kg:30040 [09:13:04]ConnectInit lk.salyk.kg [09:13:04]written 0, free lines is 4095 [09:13:05]Connected sock=10 [09:13:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0C 01 00 00 5F 22 04 01 71 35 5A 03 01 00 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 35 FF 03 08 00 03 6A 63 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 BB D4 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BB D4 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F6 4C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BB D4 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 20 89 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 1E F9 00 00 35 04 06 00 3B 9D E4 5A C0 DA 27 A5 76 8D 2E 0D 46 4F [09:13:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 69 A0 47 00 7A 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 35 30 37 34 10 04 04 00 1E F9 00 00 F4 03 04 00 F2 34 5D 66 B6 04 01 00 00 2C C7 8A 77 BF E4 AA 2D [09:13:05]CommunicateWithHost err = 0 [09:13:05]CheckOFDResponse [09:13:05]1017 (14) - 77093643461234 [09:13:05]1041 (16) - 0000000000875074 [09:13:05]1040 (4) - 63774 [09:13:05]1012 (4) - 03.06.2024 03:13 [09:13:05]1206 (1) - 0 [09:13:05]OFD Sender: Remove packet 63774 [09:13:05]ProducePacketName [09:13:05]name=ofd_packets/00063774 [09:13:05]NVStorageDeleteData [09:13:05]Write to MH i2c: 01 00 00 DB 07 E2 [09:13:05]Write i2c OK [09:13:05]MH_I2C_Read... [09:13:05]Read from MH i2c: 01 [09:13:05]MH_I2C_Read... [09:13:05]Read from MH i2c: 01 07 00 [09:13:05]MH_I2C_Read... [09:13:05]Read from MH i2c: 01 07 00 DB 07 00 00 00 00 00 DD 0C D2 [09:13:05]RasterBufferAndPrint [09:13:05]line [09:13:05]line [09:13:05]line [09:13:05]line [09:13:05]line [09:13:05]written 0, free lines is 3299 [09:13:05]MH_Cut [09:13:05]Write to MH i2c: D1 01 00 E2 07 01 BB [09:13:05]Write i2c OK [09:13:05]MH_I2C_Read... [09:13:05]Read from MH i2c: D1 [09:13:05]MH_I2C_Read... [09:13:05]Read from MH i2c: D1 01 00 [09:13:05]MH_I2C_Read... [09:13:05]Read from MH i2c: D1 01 00 E2 07 00 BA [09:13:05]Write to MH i2c: 01 00 00 E3 07 EA [09:13:05]Write i2c OK [09:13:05]MH_I2C_Read... [09:13:05]OFD Sender: No OFD packet to send [09:13:06]*** Cut start [09:13:06]*** Partial cut [09:13:06]*** CUTSNS_PIN = 1 [09:13:06]*** CUTSNS_PIN = 0 [09:13:06]*** Brake cut motor [09:13:06]Read from MH i2c: 01 [09:13:06]MH_I2C_Read... [09:13:06]*** Stop cut motor [09:13:06]*** Cut end [09:13:06]Read from MH i2c: 01 07 00 [09:13:06]MH_I2C_Read... [09:13:06]Read from MH i2c: 01 07 00 E3 07 00 00 00 00 00 FF 0F FF [09:13:06]process_action close_receipt done [09:13:06]requested_data is exist [09:13:06]produce_requested_data [09:13:06]requested_item fm.sn is exist - process it [09:13:06]wFMCommunicate request_size=4 [09:13:06]MH_SAM_APDU [09:13:06]CAPDU: 80 11 00 00 [09:13:06]Write to MH i2c: E2 08 00 E4 07 80 11 00 00 00 00 00 00 65 [09:13:06]Write i2c OK [09:13:06]MH_I2C_Read... [09:13:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:13:06]Read from MH i2c: E2 [09:13:06]MH_I2C_Read... [09:13:06]Read from MH i2c: E2 17 00 [09:13:06]MH_I2C_Read... [09:13:06]Read from MH i2c: E2 17 00 E4 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 B7 [09:13:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [09:13:06]wFMCommunicate OK [09:13:06]requested_item fd.num is exist - process it [09:13:06]SAM_PROTO_GetFieldsCounters [09:13:06]wFMCommunicate request_size=4 [09:13:06]MH_SAM_APDU [09:13:06]CAPDU: 80 13 00 00 [09:13:06]Write to MH i2c: E2 08 00 E5 07 80 13 00 00 00 00 00 00 68 [09:13:06]Write i2c OK [09:13:06]MH_I2C_Read... [09:13:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:13:07]Read from MH i2c: E2 [09:13:07]MH_I2C_Read... [09:13:07]Read from MH i2c: E2 62 00 [09:13:07]MH_I2C_Read... [09:13:07]Read from MH i2c: E2 62 00 E5 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 1E F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 78 [09:13: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 1E F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:13:07]wFMCommunicate OK [09:13:07]SAM_PROTO_GetFieldsCounters done [09:13:07]requested_item shift.num is exist - process it [09:13:07]requested_item shift.opened is exist - process it [09:13:07]req_shift_opened [09:13:07]FM_GetShiftState [09:13:07]SAM_PROTO_GetShiftState [09:13:07]wFMCommunicate request_size=4 [09:13:07]MH_SAM_APDU [09:13:07]CAPDU: 80 13 01 00 [09:13:07]Write to MH i2c: E2 08 00 E6 07 80 13 01 00 00 00 00 00 6A [09:13:07]Write i2c OK [09:13:07]MH_I2C_Read... [09:13:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:13:07]Read from MH i2c: E2 [09:13:07]MH_I2C_Read... [09:13:07]Read from MH i2c: E2 0E 00 [09:13:07]MH_I2C_Read... [09:13:07]Read from MH i2c: E2 0E 00 E6 07 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 36 [09:13:07]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [09:13:07]wFMCommunicate OK [09:13:07]SAM_PROTO_GetShiftState done [09:13:07]FM_GetShiftState done [09:13:07]req_shift_opened done [09:13:07]requested_item shift.open_date is exist - process it [09:13:07]req_shift_open_date [09:13:07]req_shift_open_date done [09:13:07]produce_requested_data done [09:13:07]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63774,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [09:13:07]process_action_free close_receipt [09:13:07]json_value_free [09:13:07]json_value_free done [09:13:07]process_json_proto returns [09:13:07]Send response to host [09:13:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63774,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [09:13:07]free response buf [09:13:07]execute_script done [09:13:07]execute_script returns [09:13:07]free content buf [09:13:07]Sock 7.Close socket [09:13:07]Sock 7.Thread stoped [09:13:10]OFD Sender: No OFD packet to send [09:13:15]OFD Sender: No OFD packet to send [09:13:20]OFD Sender: No OFD packet to send [09:13:25]OFD Sender: No OFD packet to send [09:13:30]OFD Sender: No OFD packet to send [09:13:35]OFD Sender: No OFD packet to send [09:13:40]OFD Sender: No OFD packet to send [09:13:45]OFD Sender: No OFD packet to send [09:13:50]OFD Sender: No OFD packet to send [09:13:55]OFD Sender: No OFD packet to send [09:14:00]OFD Sender: No OFD packet to send [09:14:05]OFD Sender: No OFD packet to send [09:14:10]OFD Sender: No OFD packet to send [09:14:15]OFD Sender: No OFD packet to send [09:14:20]OFD Sender: No OFD packet to send [09:14:25]OFD Sender: No OFD packet to send [09:14:30]OFD Sender: No OFD packet to send [09:14:35]OFD Sender: No OFD packet to send [09:14:40]OFD Sender: No OFD packet to send [09:14:45]OFD Sender: No OFD packet to send [09:14:50]OFD Sender: No OFD packet to send [09:14:55]OFD Sender: No OFD packet to send [09:15:00]OFD Sender: No OFD packet to send [09:15:05]OFD Sender: No OFD packet to send [09:15:10]OFD Sender: No OFD packet to send [09:15:15]OFD Sender: No OFD packet to send [09:15:20]OFD Sender: No OFD packet to send [09:15:25]OFD Sender: No OFD packet to send [09:15:30]OFD Sender: No OFD packet to send [09:15:35]OFD Sender: No OFD packet to send [09:15:40]OFD Sender: No OFD packet to send [09:15:45]OFD Sender: No OFD packet to send [09:15:50]OFD Sender: No OFD packet to send [09:15:55]accept exits with 9 [09:15:55]New connection [09:15:55]New thread 3067518308 created [09:15:55]Thread 3067374948 joined [09:15:55]Waiting for new connection... [09:15:55] Sock 9.Parse request [09:15:55]Sock 9.Check first char [09:15:55]Sock 9.First char is OK [09:15:55]request: POST /json_proto HTTP/1.0 [09:15:55]Method: POST [09:15:55]URL: /json_proto [09:15:55]Method is POST - this is cgi request [09:15:55]url: /json_proto [09:15:55]query_string will be loaded in cgi processing [09:15:55]execute_cgi json_proto POST (null) [09:15:55]execute_cgi path=json_proto method=POST [09:15:55]POST find Content-Length [09:15:55]Host: 172.17.60.69:8080 [09:15:55]Content-Length: 719 [09:15:55]Content-Type: application/json [09:15:55] [09:15:55]POST finish read [09:15:55]Found Content-Length = 719 [09:15:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73362", "tax_sys" : 0, "items" : [ { "code": "4700000481989", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u043A\u0438\u0432\u0438-\u043C\u0430\u043D\u0433\u043E\u0441\u0442\u0438\u043D 0,45 ", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:15:55]execute_script... [09:15:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73362", "tax_sys" : 0, "items" : [ { "code": "4700000481989", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u043A\u0438\u0432\u0438-\u043C\u0430\u043D\u0433\u043E\u0441\u0442\u0438\u043D 0,45 ", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:15:55]POST & json_proto [09:15:55]process_json_proto [09:15:55]json parsed OK: [09:15:55]protocol is kg_v1.0 [09:15:55]action value=close_receipt [09:15:55]process_action close_receipt [09:15:55]cmd_close_receipt [09:15:55]MH_GetDate [09:15:55]Write to MH i2c: F0 00 00 E7 07 DD [09:15:55]Write i2c OK [09:15:55]MH_I2C_Read... [09:15:55]Read from MH i2c: F0 [09:15:55]MH_I2C_Read... [09:15:55]Read from MH i2c: F0 09 00 [09:15:55]MH_I2C_Read... [09:15:55]Read from MH i2c: F0 09 00 E7 07 00 CD 89 5D 66 6A 96 4A 66 AF [09:15:55]GetLastDocTimeStamp 1717405984 [09:15:55]current date 1717406157 [09:15:55]FM_GetShiftState [09:15:55]SAM_PROTO_GetShiftState [09:15:55]wFMCommunicate request_size=4 [09:15:55]MH_SAM_APDU [09:15:55]CAPDU: 80 13 01 00 [09:15:55]Write to MH i2c: E2 08 00 E8 07 80 13 01 00 00 00 00 00 6C [09:15:55]Write i2c OK [09:15:55]MH_I2C_Read... [09:15:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:15:55]Read from MH i2c: E2 [09:15:55]MH_I2C_Read... [09:15:55]Read from MH i2c: E2 0E 00 [09:15:55]MH_I2C_Read... [09:15:55]Read from MH i2c: E2 0E 00 E8 07 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 38 [09:15:55]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [09:15:55]wFMCommunicate OK [09:15:55]SAM_PROTO_GetShiftState done [09:15:55]FM_GetShiftState done [09:15:55]opened in 1717373173 [09:15:55]opened+sec_in_day 1717459573 [09:15:55]quantity*price = 9500 [09:15:55]sum+1 = 9501 [09:15:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 95.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 33 03.06.2024 09:15 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63775 ФПД: 152654947771144 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T091557&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63775&fm=152654947771144&tin=02508201610067®Number=0000000000092737&sum=9500 0 [09:15:56]StoreToDocumentArchive [09:15:56]shift 373 fd 63775 [09:15:56]save to /storage/0373/doc_00063775 [09:15:56]save last doc name /storage/0373/doc_00063775 to /storage/kkm_last_doc_name [09:15:56]save OK [09:15:56]Clear old archive folders... [09:15:56]ProcessDocumentItem done err = 0, tmpTLVsize=307 [09:15:56]tlvbuf is 00D1F2C0 [09:15:56]SAM_PROTO_ClearQueue [09:15:56]wFMCommunicate request_size=4 [09:15:56]MH_SAM_APDU [09:15:56]CAPDU: 80 09 00 00 [09:15:56]Write to MH i2c: E2 08 00 F5 07 80 09 00 00 00 00 00 00 6E [09:15:56]Write i2c OK [09:15:56]MH_I2C_Read... [09:15:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:15:56]Read from MH i2c: E2 [09:15:56]MH_I2C_Read... [09:15:56]Read from MH i2c: E2 03 00 [09:15:56]MH_I2C_Read... [09:15:56]Read from MH i2c: E2 03 00 F5 07 00 90 00 70 [09:15:56]RAPDU: 90 00 [09:15:56]wFMCommunicate OK [09:15:56]SAM_PROTO_ClearQueue done [09:15:56]KKMCreateOFDPacket [09:15:56]OFDProtocolAddRootSTLVToBuf [09:15:56]FM_MakeSignedData [09:15:56]FM_MakeSignedData [09:15:56]SAM_PROTO_SignData [09:15:56]wFMCommunicate request_size=4 [09:15:56]MH_SAM_APDU [09:15:56]CAPDU: 80 0D 01 02 [09:15:56]Write to MH i2c: E2 08 00 F6 07 80 0D 01 02 00 00 00 00 76 [09:15:57]Write i2c OK [09:15:57]MH_I2C_Read... [09:15:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:15:57]Read from MH i2c: E2 [09:15:57]MH_I2C_Read... [09:15:57]Read from MH i2c: E2 03 00 [09:15:57]MH_I2C_Read... [09:15:57]Read from MH i2c: E2 03 00 F6 07 00 90 00 71 [09:15:57]RAPDU: 90 00 [09:15:57]wFMCommunicate OK [09:15:57]wFMCommunicate request_size=255 [09:15:57]MH_SAM_APDU [09:15:57]CAPDU: 80 0D 02 02 FA 03 00 33 01 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 39 38 39 06 04 41 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BA D0 B8 D0 B2 D0 B8 2D D0 BC D0 B0 D0 BD D0 B3 D0 BE D1 81 D1 82 D0 B8 D0 BD 20 30 2C 34 35 20 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 CD 89 5D 66 0E 04 04 00 75 01 00 00 B9 04 [09:15:57]Write to MH i2c: E2 02 01 F7 07 80 0D 02 02 FA 00 03 00 33 01 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 39 38 39 06 04 41 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BA D0 B8 D0 B2 D0 B8 2D D0 BC D0 B0 D0 BD D0 B3 D0 BE D1 81 D1 82 D0 B8 D0 BD 20 30 2C 34 35 20 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 CD 89 5D 66 0E 04 04 00 75 01 00 00 B9 04 00 00 3D [09:15:57]Write i2c OK [09:15:57]MH_I2C_Read... [09:15:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:15:57]Read from MH i2c: E2 [09:15:57]MH_I2C_Read... [09:15:57]Read from MH i2c: E2 03 00 [09:15:57]MH_I2C_Read... [09:15:57]Read from MH i2c: E2 03 00 F7 07 00 90 00 72 [09:15:57]RAPDU: 90 00 [09:15:57]wFMCommunicate OK [09:15:57]wFMCommunicate request_size=66 [09:15:57]MH_SAM_APDU [09:15:57]CAPDU: 80 0D 02 02 3D 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 1F F9 00 00 35 04 06 00 8A D6 BF EF 63 08 [09:15:57]Write to MH i2c: E2 45 00 F8 07 80 0D 02 02 3D 00 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 1F F9 00 00 35 04 06 00 8A D6 BF EF 63 08 00 00 5E [09:15:57]Write i2c OK [09:15:57]MH_I2C_Read... [09:15:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:15:57]Read from MH i2c: E2 [09:15:57]MH_I2C_Read... [09:15:57]Read from MH i2c: E2 03 00 [09:15:57]MH_I2C_Read... [09:15:57]Read from MH i2c: E2 03 00 F8 07 00 90 00 73 [09:15:57]RAPDU: 90 00 [09:15:57]wFMCommunicate OK [09:15:57]wFMCommunicate request_size=4 [09:15:57]MH_SAM_APDU [09:15:57]CAPDU: 80 0D 03 02 [09:15:57]Write to MH i2c: E2 08 00 F9 07 80 0D 03 02 00 00 00 00 7B [09:15:57]Write i2c OK [09:15:57]MH_I2C_Read... [09:15:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:15:57]Read from MH i2c: E2 [09:15:57]MH_I2C_Read... [09:15:57]Read from MH i2c: E2 0B 00 [09:15:57]MH_I2C_Read... [09:15:57]Read from MH i2c: E2 0B 00 F9 07 00 F6 37 B6 1A 87 00 36 A0 90 00 D6 [09:15:57]RAPDU: F6 37 B6 1A 87 00 36 A0 90 00 [09:15:57]wFMCommunicate OK [09:15:57]SAM_PROTO_SignData done [09:15:57]FM_MakeSignedData done [09:15:57]CreateOFDProtocolMessage [09:15:57]wFMCommunicate request_size=4 [09:15:57]MH_SAM_APDU [09:15:57]CAPDU: 80 11 00 00 [09:15:57]Write to MH i2c: E2 08 00 FA 07 80 11 00 00 00 00 00 00 7B [09:15:57]Write i2c OK [09:15:57]MH_I2C_Read... [09:15:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:15:57]Read from MH i2c: E2 [09:15:57]MH_I2C_Read... [09:15:57]Read from MH i2c: E2 17 00 [09:15:57]MH_I2C_Read... [09:15:57]Read from MH i2c: E2 17 00 FA 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 CD [09:15:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [09:15:57]wFMCommunicate OK [09:15:57]CreateOFDProtocolMessage done [09:15:57]OFDSenderStorePacket 63775 [09:15:57]StoreOFDPacket docnum=63775 [09:15:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 47 01 00 00 D0 D9 3F 01 07 12 5A 03 01 00 03 00 33 01 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 39 38 39 06 04 41 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BA D0 B8 D0 B2 D0 B8 2D D0 BC D0 B0 D0 BD D0 B3 D0 BE D1 81 D1 82 D0 B8 D0 BD 20 30 2C 34 35 20 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 CD 89 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 1F F9 00 00 35 04 06 00 8A D6 BF EF 63 08 F6 37 B6 1A 87 00 36 A0 [09:15:57]CheckFolder [09:15:57]dirname=/storage/ofd_packets [09:15:57]CheckFolder done [09:15:57]ProducePacketName [09:15:57]name=ofd_packets/00063775 [09:15:57]NVStorageSaveData ofd_packets/00063775 [09:15:57]File name is /storage/ofd_packets/00063775 [09:15:57]Write 357 bytes [09:15:57]NVStorageSaveData done [09:15:57]OFDSenderStorePacket done [09:15:57]KKMCreateOFDPacket done [09:15:57]NVStorageSaveData kkm_last_timestamp [09:15:57]File name is /storage/kkm_last_timestamp [09:15:57]Write 4 bytes [09:15:57]NVStorageSaveData done [09:15:57]ExternCall_PrintAddStr [09:15:57]wPrintStart [09:15:57]Write to MH i2c: 01 00 00 FB 07 02 [09:15:57]Write i2c OK [09:15:57]MH_I2C_Read... [09:15:57]Read from MH i2c: 01 [09:15:57]MH_I2C_Read... [09:15:57]Read from MH i2c: 01 07 00 [09:15:57]MH_I2C_Read... [09:15:57]Read from MH i2c: 01 07 00 FB 07 00 00 00 00 00 FF 0F 17 [09:15:57]RasterBufferAndPrint [09:15:57]line Счет N : (3)73362 [09:15:57]line ИНН: 02508201610067 [09:15:57]line Контрольно-Кассовый Чек [09:15:57]line ПРОДАЖА [09:15:57]line Товар: 4700000481989 [09:15:57]line Напиток энерг Nitro киви-мангостин 0,45 [09:15:57]line 1.000 * 95.00 [09:15:57]line = 95.00 [09:15:57]line НДС 12% НСП 1% [09:15:57]line > о реализуемом товаре [09:15:57]line ИТОГО: 95.00 [09:15:57]line НСП 1% : 0.84 [09:15:57]line НДС 12% : 10.09 [09:15:57]line Наличными: 95.00 [09:15:57]line Безнал.: 0.00 [09:15:57]line Место: АЗС № 117 "Партнер Нефть" [09:15:57]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [09:15:57]line СНО: Общий режим [09:15:57]line Чек 33 03.06.2024 09:15 [09:15:57]line Смена: 373 ФФД: 1.0 [09:15:57]line ЗНМ: 0300000031 [09:15:57]line РНМ: 0000000000092737 [09:15:57]line Версия ККМ: 001 [09:15:57]line ФМ: 0000000000875074 [09:15:57]line ФД: 63775 [09:15:57]line ФПД: 152654947771144 [09:15:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T091557&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63775&fm=152654947771144&tin=02508201610067®Number=0000000000092737&sum=9500 [09:15:57]OFD Sender: Processing packet 63775 [packets to send 14, broken 13] [09:15:57]ProducePacketName [09:15:57]name=ofd_packets/00063775 [09:15:57]OFD Sender: To server: pG, [09:15:57]CommunicateWithHost lk.salyk.kg:30040 [09:15:57]ConnectInit lk.salyk.kg [09:15:57]line 0 [09:15:57]written 0, free lines is 4095 [09:15:57]Connected sock=10 [09:15:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 47 01 00 00 D0 D9 3F 01 07 12 5A 03 01 00 03 00 33 01 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 39 38 39 06 04 41 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BA D0 B8 D0 B2 D0 B8 2D D0 BC D0 B0 D0 BD D0 B3 D0 BE D1 81 D1 82 D0 B8 D0 BD 20 30 2C 34 35 20 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 CD 89 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 1F F9 00 00 35 04 06 00 8A D6 BF EF 63 08 F6 37 B6 1A 87 00 36 A0 [09:15:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 02 DF 47 00 28 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 35 30 37 34 10 04 04 00 1F F9 00 00 F4 03 04 00 9F 35 5D 66 B6 04 01 00 00 58 BB 39 62 7A A4 EA B0 [09:15:58]CommunicateWithHost err = 0 [09:15:58]CheckOFDResponse [09:15:58]1017 (14) - 77093643461234 [09:15:58]1041 (16) - 0000000000875074 [09:15:58]1040 (4) - 63775 [09:15:58]1012 (4) - 03.06.2024 03:16 [09:15:58]1206 (1) - 0 [09:15:58]OFD Sender: Remove packet 63775 [09:15:58]ProducePacketName [09:15:58]name=ofd_packets/00063775 [09:15:58]NVStorageDeleteData [09:15:58]Write to MH i2c: 01 00 00 24 08 2C [09:15:58]Write i2c OK [09:15:58]MH_I2C_Read... [09:15:58]Read from MH i2c: 01 [09:15:58]MH_I2C_Read... [09:15:58]Read from MH i2c: 01 07 00 [09:15:58]MH_I2C_Read... [09:15:58]Read from MH i2c: 01 07 00 24 08 00 00 00 00 00 E2 0C 21 [09:15:58]RasterBufferAndPrint [09:15:58]line [09:15:58]line [09:15:58]line [09:15:58]line [09:15:58]line [09:15:58]written 0, free lines is 3304 [09:15:58]MH_Cut [09:15:58]Write to MH i2c: D1 01 00 2B 08 01 05 [09:15:58]Write i2c OK [09:15:58]MH_I2C_Read... [09:15:58]Read from MH i2c: D1 [09:15:58]MH_I2C_Read... [09:15:58]Read from MH i2c: D1 01 00 [09:15:58]MH_I2C_Read... [09:15:58]Read from MH i2c: D1 01 00 2B 08 00 04 [09:15:58]Write to MH i2c: 01 00 00 2C 08 34 [09:15:58]Write i2c OK [09:15:58]MH_I2C_Read... [09:15:58]OFD Sender: No OFD packet to send [09:15:59]*** Cut start [09:15:59]*** Partial cut [09:15:59]*** CUTSNS_PIN = 1 [09:15:59]*** CUTSNS_PIN = 0 [09:15:59]*** Brake cut motor [09:15:59]Read from MH i2c: 01 [09:15:59]MH_I2C_Read... [09:15:59]*** Stop cut motor [09:15:59]*** Cut end [09:15:59]Read from MH i2c: 01 07 00 [09:15:59]MH_I2C_Read... [09:15:59]Read from MH i2c: 01 07 00 2C 08 00 00 00 00 00 FF 0F 49 [09:15:59]process_action close_receipt done [09:15:59]requested_data is exist [09:15:59]produce_requested_data [09:15:59]requested_item fm.sn is exist - process it [09:15:59]wFMCommunicate request_size=4 [09:15:59]MH_SAM_APDU [09:15:59]CAPDU: 80 11 00 00 [09:15:59]Write to MH i2c: E2 08 00 2D 08 80 11 00 00 00 00 00 00 AF [09:15:59]Write i2c OK [09:15:59]MH_I2C_Read... [09:15:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:15:59]Read from MH i2c: E2 [09:15:59]MH_I2C_Read... [09:15:59]Read from MH i2c: E2 17 00 [09:15:59]MH_I2C_Read... [09:15:59]Read from MH i2c: E2 17 00 2D 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 01 [09:15:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [09:15:59]wFMCommunicate OK [09:15:59]requested_item fd.num is exist - process it [09:15:59]SAM_PROTO_GetFieldsCounters [09:15:59]wFMCommunicate request_size=4 [09:15:59]MH_SAM_APDU [09:15:59]CAPDU: 80 13 00 00 [09:15:59]Write to MH i2c: E2 08 00 2E 08 80 13 00 00 00 00 00 00 B2 [09:15:59]Write i2c OK [09:15:59]MH_I2C_Read... [09:15:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:15:59]Read from MH i2c: E2 [09:15:59]MH_I2C_Read... [09:15:59]Read from MH i2c: E2 62 00 [09:15:59]MH_I2C_Read... [09:15:59]Read from MH i2c: E2 62 00 2E 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 1F F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 C6 [09:15: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 1F F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:15:59]wFMCommunicate OK [09:15:59]SAM_PROTO_GetFieldsCounters done [09:15:59]requested_item shift.num is exist - process it [09:15:59]requested_item shift.opened is exist - process it [09:15:59]req_shift_opened [09:15:59]FM_GetShiftState [09:15:59]SAM_PROTO_GetShiftState [09:15:59]wFMCommunicate request_size=4 [09:15:59]MH_SAM_APDU [09:15:59]CAPDU: 80 13 01 00 [09:15:59]Write to MH i2c: E2 08 00 2F 08 80 13 01 00 00 00 00 00 B4 [09:15:59]Write i2c OK [09:15:59]MH_I2C_Read... [09:16:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:16:00]Read from MH i2c: E2 [09:16:00]MH_I2C_Read... [09:16:00]Read from MH i2c: E2 0E 00 [09:16:00]MH_I2C_Read... [09:16:00]Read from MH i2c: E2 0E 00 2F 08 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 80 [09:16:00]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [09:16:00]wFMCommunicate OK [09:16:00]SAM_PROTO_GetShiftState done [09:16:00]FM_GetShiftState done [09:16:00]req_shift_opened done [09:16:00]requested_item shift.open_date is exist - process it [09:16:00]req_shift_open_date [09:16:00]req_shift_open_date done [09:16:00]produce_requested_data done [09:16:00]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63775,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [09:16:00]process_action_free close_receipt [09:16:00]json_value_free [09:16:00]json_value_free done [09:16:00]process_json_proto returns [09:16:00]Send response to host [09:16:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63775,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [09:16:00]free response buf [09:16:00]execute_script done [09:16:00]execute_script returns [09:16:00]free content buf [09:16:00]Sock 9.Close socket [09:16:00]Sock 9.Thread stoped [09:16:03]OFD Sender: No OFD packet to send [09:16:08]OFD Sender: No OFD packet to send [09:16:13]OFD Sender: No OFD packet to send [09:16:18]OFD Sender: No OFD packet to send [09:16:23]OFD Sender: No OFD packet to send [09:16:28]OFD Sender: No OFD packet to send [09:16:33]OFD Sender: No OFD packet to send [09:16:38]OFD Sender: No OFD packet to send [09:16:43]OFD Sender: No OFD packet to send [09:16:48]OFD Sender: No OFD packet to send [09:16:53]OFD Sender: No OFD packet to send [09:16:58]OFD Sender: No OFD packet to send [09:17:03]OFD Sender: No OFD packet to send [09:17:08]OFD Sender: No OFD packet to send [09:17:13]OFD Sender: No OFD packet to send [09:17:14]accept exits with 7 [09:17:14]New connection [09:17:14]New thread 3067374948 created [09:17:14]Thread 3067518308 joined [09:17:14]Waiting for new connection... [09:17:14] Sock 7.Parse request [09:17:14]Sock 7.Check first char [09:17:14]Sock 7.First char is OK [09:17:14]request: POST /json_proto HTTP/1.0 [09:17:14]Method: POST [09:17:14]URL: /json_proto [09:17:14]Method is POST - this is cgi request [09:17:14]url: /json_proto [09:17:14]query_string will be loaded in cgi processing [09:17:14]execute_cgi json_proto POST (null) [09:17:14]execute_cgi path=json_proto method=POST [09:17:14]POST find Content-Length [09:17:14]Host: 172.17.60.69:8080 [09:17:14]Content-Length: 657 [09:17:14]Content-Type: application/json [09:17:14] [09:17:14]POST finish read [09:17:14]Found Content-Length = 657 [09:17:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73363", "tax_sys" : 0, "items" : [ { "code": "5449000054227", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1\u043B", "price" : 113.00, "quantity" : 1.000, "sum" : 113.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 113.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:17:14]execute_script... [09:17:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73363", "tax_sys" : 0, "items" : [ { "code": "5449000054227", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1\u043B", "price" : 113.00, "quantity" : 1.000, "sum" : 113.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 113.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:17:14]POST & json_proto [09:17:14]process_json_proto [09:17:14]json parsed OK: [09:17:14]protocol is kg_v1.0 [09:17:14]action value=close_receipt [09:17:14]process_action close_receipt [09:17:14]cmd_close_receipt [09:17:14]MH_GetDate [09:17:14]Write to MH i2c: F0 00 00 30 08 27 [09:17:14]Write i2c OK [09:17:14]MH_I2C_Read... [09:17:14]Read from MH i2c: F0 [09:17:14]MH_I2C_Read... [09:17:14]Read from MH i2c: F0 09 00 [09:17:14]MH_I2C_Read... [09:17:14]Read from MH i2c: F0 09 00 30 08 00 1C 8A 5D 66 6A 96 4A 66 49 [09:17:14]GetLastDocTimeStamp 1717406157 [09:17:14]current date 1717406236 [09:17:14]FM_GetShiftState [09:17:14]SAM_PROTO_GetShiftState [09:17:14]wFMCommunicate request_size=4 [09:17:14]MH_SAM_APDU [09:17:14]CAPDU: 80 13 01 00 [09:17:14]Write to MH i2c: E2 08 00 31 08 80 13 01 00 00 00 00 00 B6 [09:17:14]Write i2c OK [09:17:14]MH_I2C_Read... [09:17:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:17:14]Read from MH i2c: E2 [09:17:14]MH_I2C_Read... [09:17:14]Read from MH i2c: E2 0E 00 [09:17:14]MH_I2C_Read... [09:17:14]Read from MH i2c: E2 0E 00 31 08 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 82 [09:17:14]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [09:17:14]wFMCommunicate OK [09:17:14]SAM_PROTO_GetShiftState done [09:17:14]FM_GetShiftState done [09:17:14]opened in 1717373173 [09:17:14]opened+sec_in_day 1717459573 [09:17:14]quantity*price = 11300 [09:17:14]sum+1 = 11301 [09:17:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 113.00 НСП 1% : 1.00 НДС 12% : 12.00 Наличными: 113.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 34 03.06.2024 09:17 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63776 ФПД: 5526557668794 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T091716&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63776&fm=5526557668794&tin=02508201610067®Number=0000000000092737&sum=11300 0 [09:17:15]StoreToDocumentArchive [09:17:15]shift 373 fd 63776 [09:17:15]save to /storage/0373/doc_00063776 [09:17:15]save last doc name /storage/0373/doc_00063776 to /storage/kkm_last_doc_name [09:17:15]save OK [09:17:15]Clear old archive folders... [09:17:15]ProcessDocumentItem done err = 0, tmpTLVsize=278 [09:17:15]tlvbuf is 00D3C160 [09:17:15]SAM_PROTO_ClearQueue [09:17:15]wFMCommunicate request_size=4 [09:17:15]MH_SAM_APDU [09:17:15]CAPDU: 80 09 00 00 [09:17:15]Write to MH i2c: E2 08 00 3E 08 80 09 00 00 00 00 00 00 B8 [09:17:15]Write i2c OK [09:17:15]MH_I2C_Read... [09:17:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:17:15]Read from MH i2c: E2 [09:17:15]MH_I2C_Read... [09:17:15]Read from MH i2c: E2 03 00 [09:17:15]MH_I2C_Read... [09:17:15]Read from MH i2c: E2 03 00 3E 08 00 90 00 BA [09:17:15]RAPDU: 90 00 [09:17:15]wFMCommunicate OK [09:17:15]SAM_PROTO_ClearQueue done [09:17:15]KKMCreateOFDPacket [09:17:15]OFDProtocolAddRootSTLVToBuf [09:17:15]FM_MakeSignedData [09:17:15]FM_MakeSignedData [09:17:15]SAM_PROTO_SignData [09:17:15]wFMCommunicate request_size=4 [09:17:15]MH_SAM_APDU [09:17:15]CAPDU: 80 0D 01 02 [09:17:15]Write to MH i2c: E2 08 00 3F 08 80 0D 01 02 00 00 00 00 C0 [09:17:15]Write i2c OK [09:17:15]MH_I2C_Read... [09:17:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:17:15]Read from MH i2c: E2 [09:17:15]MH_I2C_Read... [09:17:15]Read from MH i2c: E2 03 00 [09:17:15]MH_I2C_Read... [09:17:15]Read from MH i2c: E2 03 00 3F 08 00 90 00 BB [09:17:15]RAPDU: 90 00 [09:17:15]wFMCommunicate OK [09:17:15]wFMCommunicate request_size=255 [09:17:15]MH_SAM_APDU [09:17:15]CAPDU: 80 0D 02 02 FA 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 64 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 04 00 00 00 00 07 04 06 00 24 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 1C 8A 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 [09:17:15]Write to MH i2c: E2 02 01 40 08 80 0D 02 02 FA 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 64 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 04 00 00 00 00 07 04 06 00 24 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 1C 8A 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 00 00 15 [09:17:16]Write i2c OK [09:17:16]MH_I2C_Read... [09:17:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:17:16]Read from MH i2c: E2 [09:17:16]MH_I2C_Read... [09:17:16]Read from MH i2c: E2 03 00 [09:17:16]MH_I2C_Read... [09:17:16]Read from MH i2c: E2 03 00 40 08 00 90 00 BC [09:17:16]RAPDU: 90 00 [09:17:16]wFMCommunicate OK [09:17:16]wFMCommunicate request_size=37 [09:17:16]MH_SAM_APDU [09:17:16]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 20 F9 00 00 35 04 06 00 05 06 C0 81 B5 BA [09:17:16]Write to MH i2c: E2 28 00 41 08 80 0D 02 02 20 00 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 20 F9 00 00 35 04 06 00 05 06 C0 81 B5 BA 00 00 ED [09:17:16]Write i2c OK [09:17:16]MH_I2C_Read... [09:17:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:17:16]Read from MH i2c: E2 [09:17:16]MH_I2C_Read... [09:17:16]Read from MH i2c: E2 03 00 [09:17:16]MH_I2C_Read... [09:17:16]Read from MH i2c: E2 03 00 41 08 00 90 00 BD [09:17:16]RAPDU: 90 00 [09:17:16]wFMCommunicate OK [09:17:16]wFMCommunicate request_size=4 [09:17:16]MH_SAM_APDU [09:17:16]CAPDU: 80 0D 03 02 [09:17:16]Write to MH i2c: E2 08 00 42 08 80 0D 03 02 00 00 00 00 C5 [09:17:16]Write i2c OK [09:17:16]MH_I2C_Read... [09:17:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:17:16]Read from MH i2c: E2 [09:17:16]MH_I2C_Read... [09:17:16]Read from MH i2c: E2 0B 00 [09:17:16]MH_I2C_Read... [09:17:16]Read from MH i2c: E2 0B 00 42 08 00 39 4B A4 82 B9 9C 24 CF 90 00 B8 [09:17:16]RAPDU: 39 4B A4 82 B9 9C 24 CF 90 00 [09:17:16]wFMCommunicate OK [09:17:16]SAM_PROTO_SignData done [09:17:16]FM_MakeSignedData done [09:17:16]CreateOFDProtocolMessage [09:17:16]wFMCommunicate request_size=4 [09:17:16]MH_SAM_APDU [09:17:16]CAPDU: 80 11 00 00 [09:17:16]Write to MH i2c: E2 08 00 43 08 80 11 00 00 00 00 00 00 C5 [09:17:16]Write i2c OK [09:17:16]MH_I2C_Read... [09:17:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:17:16]Read from MH i2c: E2 [09:17:16]MH_I2C_Read... [09:17:16]Read from MH i2c: E2 17 00 [09:17:16]MH_I2C_Read... [09:17:16]Read from MH i2c: E2 17 00 43 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 17 [09:17:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [09:17:16]wFMCommunicate OK [09:17:16]CreateOFDProtocolMessage done [09:17:16]OFDSenderStorePacket 63776 [09:17:16]StoreOFDPacket docnum=63776 [09:17:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 2A 01 00 00 52 1E 22 01 C3 CC 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 64 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 04 00 00 00 00 07 04 06 00 24 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 1C 8A 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 20 F9 00 00 35 04 06 00 05 06 C0 81 B5 BA 39 4B A4 82 B9 9C 24 CF [09:17:16]CheckFolder [09:17:16]dirname=/storage/ofd_packets [09:17:16]CheckFolder done [09:17:16]ProducePacketName [09:17:16]name=ofd_packets/00063776 [09:17:16]NVStorageSaveData ofd_packets/00063776 [09:17:16]File name is /storage/ofd_packets/00063776 [09:17:16]Write 328 bytes [09:17:16]NVStorageSaveData done [09:17:16]OFDSenderStorePacket done [09:17:16]KKMCreateOFDPacket done [09:17:16]NVStorageSaveData kkm_last_timestamp [09:17:16]File name is /storage/kkm_last_timestamp [09:17:16]Write 4 bytes [09:17:16]NVStorageSaveData done [09:17:16]ExternCall_PrintAddStr [09:17:16]wPrintStart [09:17:16]Write to MH i2c: 01 00 00 44 08 4C [09:17:16]Write i2c OK [09:17:16]MH_I2C_Read... [09:17:16]Read from MH i2c: 01 [09:17:16]MH_I2C_Read... [09:17:16]Read from MH i2c: 01 07 00 [09:17:16]MH_I2C_Read... [09:17:16]Read from MH i2c: 01 07 00 44 08 00 00 00 00 00 FF 0F 61 [09:17:16]RasterBufferAndPrint [09:17:16]line Счет N : (3)73363 [09:17:16]line ИНН: 02508201610067 [09:17:16]line Контрольно-Кассовый Чек [09:17:16]line ПРОДАЖА [09:17:16]line Товар: 5449000054227 [09:17:16]line Напиток Кока-Кола 1л [09:17:16]line 1.000 * 113.00 [09:17:16]line = 113.00 [09:17:16]line НДС 12% НСП 1% [09:17:16]line > о реализуемом товаре [09:17:16]line ИТОГО: 113.00 [09:17:16]line НСП 1% : 1.00 [09:17:16]line НДС 12% : 12.00 [09:17:16]line Наличными: 113.00 [09:17:16]line Безнал.: 0.00 [09:17:16]line Место: АЗС № 117 "Партнер Нефть" [09:17:16]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [09:17:16]line СНО: Общий режим [09:17:16]line Чек 34 03.06.2024 09:17 [09:17:16]line Смена: 373 ФФД: 1.0 [09:17:16]line ЗНМ: 0300000031 [09:17:16]line РНМ: 0000000000092737 [09:17:16]line Версия ККМ: 001 [09:17:16]line ФМ: 0000000000875074 [09:17:16]line ФД: 63776 [09:17:16]line ФПД: 5526557668794 [09:17:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T091716&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63776&fm=5526557668794&tin=02508201610067®Number=0000000000092737&sum=11300 [09:17:16]line 0 [09:17:16]OFD Sender: Processing packet 63776 [packets to send 14, broken 13] [09:17:16]ProducePacketName [09:17:16]name=ofd_packets/00063776 [09:17:16]OFD Sender: To server: pG, [09:17:16]CommunicateWithHost lk.salyk.kg:30040 [09:17:16]ConnectInit lk.salyk.kg [09:17:16]written 0, free lines is 4095 [09:17:16]Connected sock=11 [09:17:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 2A 01 00 00 52 1E 22 01 C3 CC 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 64 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 04 00 00 00 00 07 04 06 00 24 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 1C 8A 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 20 F9 00 00 35 04 06 00 05 06 C0 81 B5 BA 39 4B A4 82 B9 9C 24 CF [09:17:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 DD 93 47 00 5C 15 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 20 F9 00 00 F4 03 04 00 EE 35 5D 66 B6 04 01 00 00 12 AC F8 41 15 19 47 95 [09:17:17]CommunicateWithHost err = 0 [09:17:17]CheckOFDResponse [09:17:17]1017 (14) - 77093643461234 [09:17:17]1041 (16) - 0000000000875074 [09:17:17]1040 (4) - 63776 [09:17:17]1012 (4) - 03.06.2024 03:18 [09:17:17]1206 (1) - 0 [09:17:17]OFD Sender: Remove packet 63776 [09:17:17]ProducePacketName [09:17:17]name=ofd_packets/00063776 [09:17:17]NVStorageDeleteData [09:17:17]Write to MH i2c: 01 00 00 6C 08 74 [09:17:17]Write i2c OK [09:17:17]MH_I2C_Read... [09:17:17]Read from MH i2c: 01 [09:17:17]MH_I2C_Read... [09:17:17]Read from MH i2c: 01 07 00 [09:17:17]MH_I2C_Read... [09:17:17]Read from MH i2c: 01 07 00 6C 08 00 00 00 00 00 F6 0C 7D [09:17:17]RasterBufferAndPrint [09:17:17]line [09:17:17]line [09:17:17]line [09:17:17]line [09:17:17]line [09:17:17]written 0, free lines is 3323 [09:17:17]MH_Cut [09:17:17]Write to MH i2c: D1 01 00 73 08 01 4D [09:17:17]Write i2c OK [09:17:17]MH_I2C_Read... [09:17:17]Read from MH i2c: D1 [09:17:17]MH_I2C_Read... [09:17:17]Read from MH i2c: D1 01 00 [09:17:17]MH_I2C_Read... [09:17:17]Read from MH i2c: D1 01 00 73 08 00 4C [09:17:17]Write to MH i2c: 01 00 00 74 08 7C [09:17:17]Write i2c OK [09:17:17]MH_I2C_Read... [09:17:17]OFD Sender: No OFD packet to send [09:17:17]*** Cut start [09:17:17]*** Partial cut [09:17:17]*** CUTSNS_PIN = 1 [09:17:18]*** CUTSNS_PIN = 0 [09:17:18]*** Brake cut motor [09:17:18]Read from MH i2c: 01 [09:17:18]MH_I2C_Read... [09:17:18]*** Stop cut motor [09:17:18]*** Cut end [09:17:18]Read from MH i2c: 01 07 00 [09:17:18]MH_I2C_Read... [09:17:18]Read from MH i2c: 01 07 00 74 08 00 00 00 00 00 FF 0F 91 [09:17:18]process_action close_receipt done [09:17:18]requested_data is exist [09:17:18]produce_requested_data [09:17:18]requested_item fm.sn is exist - process it [09:17:18]wFMCommunicate request_size=4 [09:17:18]MH_SAM_APDU [09:17:18]CAPDU: 80 11 00 00 [09:17:18]Write to MH i2c: E2 08 00 75 08 80 11 00 00 00 00 00 00 F7 [09:17:18]Write i2c OK [09:17:18]MH_I2C_Read... [09:17:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:17:18]Read from MH i2c: E2 [09:17:18]MH_I2C_Read... [09:17:18]Read from MH i2c: E2 17 00 [09:17:18]MH_I2C_Read... [09:17:18]Read from MH i2c: E2 17 00 75 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 49 [09:17:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [09:17:18]wFMCommunicate OK [09:17:18]requested_item fd.num is exist - process it [09:17:18]SAM_PROTO_GetFieldsCounters [09:17:18]wFMCommunicate request_size=4 [09:17:18]MH_SAM_APDU [09:17:18]CAPDU: 80 13 00 00 [09:17:18]Write to MH i2c: E2 08 00 76 08 80 13 00 00 00 00 00 00 FA [09:17:18]Write i2c OK [09:17:18]MH_I2C_Read... [09:17:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:17:18]Read from MH i2c: E2 [09:17:18]MH_I2C_Read... [09:17:18]Read from MH i2c: E2 62 00 [09:17:18]MH_I2C_Read... [09:17:18]Read from MH i2c: E2 62 00 76 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 20 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 12 [09:17: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 20 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:17:18]wFMCommunicate OK [09:17:18]SAM_PROTO_GetFieldsCounters done [09:17:18]requested_item shift.num is exist - process it [09:17:18]requested_item shift.opened is exist - process it [09:17:18]req_shift_opened [09:17:18]FM_GetShiftState [09:17:18]SAM_PROTO_GetShiftState [09:17:18]wFMCommunicate request_size=4 [09:17:18]MH_SAM_APDU [09:17:18]CAPDU: 80 13 01 00 [09:17:18]Write to MH i2c: E2 08 00 77 08 80 13 01 00 00 00 00 00 FC [09:17:18]Write i2c OK [09:17:18]MH_I2C_Read... [09:17:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:17:18]Read from MH i2c: E2 [09:17:18]MH_I2C_Read... [09:17:18]Read from MH i2c: E2 0E 00 [09:17:18]MH_I2C_Read... [09:17:18]Read from MH i2c: E2 0E 00 77 08 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 C8 [09:17:18]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [09:17:18]wFMCommunicate OK [09:17:18]SAM_PROTO_GetShiftState done [09:17:18]FM_GetShiftState done [09:17:18]req_shift_opened done [09:17:18]requested_item shift.open_date is exist - process it [09:17:18]req_shift_open_date [09:17:18]req_shift_open_date done [09:17:18]produce_requested_data done [09:17:18]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63776,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [09:17:18]process_action_free close_receipt [09:17:18]json_value_free [09:17:18]json_value_free done [09:17:18]process_json_proto returns [09:17:18]Send response to host [09:17:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63776,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [09:17:18]free response buf [09:17:18]execute_script done [09:17:18]execute_script returns [09:17:18]free content buf [09:17:18]Sock 7.Close socket [09:17:18]Sock 7.Thread stoped [09:17:22]OFD Sender: No OFD packet to send [09:17:27]OFD Sender: No OFD packet to send [09:17:32]OFD Sender: No OFD packet to send [09:17:37]OFD Sender: No OFD packet to send [09:17:42]OFD Sender: No OFD packet to send [09:17:47]OFD Sender: No OFD packet to send [09:17:52]OFD Sender: No OFD packet to send [09:17:57]OFD Sender: No OFD packet to send [09:18:02]OFD Sender: No OFD packet to send [09:18:07]OFD Sender: No OFD packet to send [09:18:12]OFD Sender: No OFD packet to send [09:18:17]OFD Sender: No OFD packet to send [09:18:22]OFD Sender: No OFD packet to send [09:18:27]OFD Sender: No OFD packet to send [09:18:32]OFD Sender: No OFD packet to send [09:18:37]OFD Sender: No OFD packet to send [09:18:42]OFD Sender: No OFD packet to send [09:18:47]OFD Sender: No OFD packet to send [09:18:52]OFD Sender: No OFD packet to send [09:18:57]OFD Sender: No OFD packet to send [09:19:02]OFD Sender: No OFD packet to send [09:19:07]OFD Sender: No OFD packet to send [09:19:12]OFD Sender: No OFD packet to send [09:19:17]OFD Sender: No OFD packet to send [09:19:22]OFD Sender: No OFD packet to send [09:19:27]OFD Sender: No OFD packet to send [09:19:32]OFD Sender: No OFD packet to send [09:19:37]OFD Sender: No OFD packet to send [09:19:42]OFD Sender: No OFD packet to send [09:19:47]OFD Sender: No OFD packet to send [09:19:52]OFD Sender: No OFD packet to send [09:19:57]OFD Sender: No OFD packet to send [09:20:02]OFD Sender: No OFD packet to send [09:20:07]OFD Sender: No OFD packet to send [09:20:12]OFD Sender: No OFD packet to send [09:20:17]OFD Sender: No OFD packet to send [09:20:22]OFD Sender: No OFD packet to send [09:20:27]OFD Sender: No OFD packet to send [09:20:32]OFD Sender: No OFD packet to send [09:20:37]OFD Sender: No OFD packet to send [09:20:42]OFD Sender: No OFD packet to send [09:20:47]OFD Sender: No OFD packet to send [09:20:52]OFD Sender: No OFD packet to send [09:20:57]OFD Sender: No OFD packet to send [09:21:02]OFD Sender: No OFD packet to send [09:21:07]OFD Sender: No OFD packet to send [09:21:12]OFD Sender: No OFD packet to send [09:21:17]OFD Sender: No OFD packet to send [09:21:22]OFD Sender: No OFD packet to send [09:21:27]OFD Sender: No OFD packet to send [09:21:32]OFD Sender: No OFD packet to send [09:21:37]OFD Sender: No OFD packet to send [09:21:42]OFD Sender: No OFD packet to send [09:21:47]OFD Sender: No OFD packet to send [09:21:52]OFD Sender: No OFD packet to send [09:21:57]OFD Sender: No OFD packet to send [09:22:02]OFD Sender: No OFD packet to send [09:22:07]OFD Sender: No OFD packet to send [09:22:12]OFD Sender: No OFD packet to send [09:22:17]OFD Sender: No OFD packet to send [09:22:22]OFD Sender: No OFD packet to send [09:22:27]OFD Sender: No OFD packet to send [09:22:32]OFD Sender: No OFD packet to send [09:22:37]OFD Sender: No OFD packet to send [09:22:42]OFD Sender: No OFD packet to send [09:22:47]OFD Sender: No OFD packet to send [09:22:52]OFD Sender: No OFD packet to send [09:22:57]OFD Sender: No OFD packet to send [09:23:02]OFD Sender: No OFD packet to send [09:23:07]OFD Sender: No OFD packet to send [09:23:12]OFD Sender: No OFD packet to send [09:23:17]OFD Sender: No OFD packet to send [09:23:22]OFD Sender: No OFD packet to send [09:23:27]OFD Sender: No OFD packet to send [09:23:32]OFD Sender: No OFD packet to send [09:23:37]OFD Sender: No OFD packet to send [09:23:42]OFD Sender: No OFD packet to send [09:23:47]OFD Sender: No OFD packet to send [09:23:52]OFD Sender: No OFD packet to send [09:23:57]OFD Sender: No OFD packet to send [09:24:02]OFD Sender: No OFD packet to send [09:24:07]OFD Sender: No OFD packet to send [09:24:12]OFD Sender: No OFD packet to send [09:24:17]OFD Sender: No OFD packet to send [09:24:22]OFD Sender: No OFD packet to send [09:24:27]OFD Sender: No OFD packet to send [09:24:32]OFD Sender: No OFD packet to send [09:24:37]OFD Sender: No OFD packet to send [09:24:42]OFD Sender: No OFD packet to send [09:24:47]OFD Sender: No OFD packet to send [09:24:52]OFD Sender: No OFD packet to send [09:24:57]OFD Sender: No OFD packet to send [09:25:02]OFD Sender: No OFD packet to send [09:25:07]OFD Sender: No OFD packet to send [09:25:12]OFD Sender: No OFD packet to send [09:25:17]OFD Sender: No OFD packet to send [09:25:22]OFD Sender: No OFD packet to send [09:25:27]OFD Sender: No OFD packet to send [09:25:32]OFD Sender: No OFD packet to send [09:25:37]OFD Sender: No OFD packet to send [09:25:42]OFD Sender: No OFD packet to send [09:25:47]OFD Sender: No OFD packet to send [09:25:52]OFD Sender: No OFD packet to send [09:25:57]OFD Sender: No OFD packet to send [09:26:01]accept exits with 9 [09:26:01]New connection [09:26:01]New thread 3067518308 created [09:26:01]Thread 3067374948 joined [09:26:01]Waiting for new connection... [09:26:01] Sock 9.Parse request [09:26:01]Sock 9.Check first char [09:26:01]Sock 9.First char is OK [09:26:01]request: POST /json_proto HTTP/1.0 [09:26:01]Method: POST [09:26:01]URL: /json_proto [09:26:01]Method is POST - this is cgi request [09:26:01]url: /json_proto [09:26:01]query_string will be loaded in cgi processing [09:26:01]execute_cgi json_proto POST (null) [09:26:01]execute_cgi path=json_proto method=POST [09:26:01]POST find Content-Length [09:26:01]Host: 172.17.60.69:8080 [09:26:01]Content-Length: 620 [09:26:01]Content-Type: application/json [09:26:01] [09:26:01]POST finish read [09:26:01]Found Content-Length = 620 [09:26:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73364", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:26:01]execute_script... [09:26:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73364", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:26:01]POST & json_proto [09:26:01]process_json_proto [09:26:01]json parsed OK: [09:26:01]protocol is kg_v1.0 [09:26:01]action value=close_receipt [09:26:01]process_action close_receipt [09:26:01]cmd_close_receipt [09:26:01]MH_GetDate [09:26:01]Write to MH i2c: F0 00 00 78 08 6F [09:26:01]Write i2c OK [09:26:01]MH_I2C_Read... [09:26:01]Read from MH i2c: F0 [09:26:01]MH_I2C_Read... [09:26:01]Read from MH i2c: F0 09 00 [09:26:01]MH_I2C_Read... [09:26:01]Read from MH i2c: F0 09 00 78 08 00 2B 8C 5D 66 6A 96 4A 66 A2 [09:26:01]GetLastDocTimeStamp 1717406236 [09:26:01]current date 1717406763 [09:26:01]FM_GetShiftState [09:26:01]SAM_PROTO_GetShiftState [09:26:01]wFMCommunicate request_size=4 [09:26:01]MH_SAM_APDU [09:26:01]CAPDU: 80 13 01 00 [09:26:01]Write to MH i2c: E2 08 00 79 08 80 13 01 00 00 00 00 00 FE [09:26:01]Write i2c OK [09:26:01]MH_I2C_Read... [09:26:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:26:01]Read from MH i2c: E2 [09:26:01]MH_I2C_Read... [09:26:01]Read from MH i2c: E2 0E 00 [09:26:01]MH_I2C_Read... [09:26:01]Read from MH i2c: E2 0E 00 79 08 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 CA [09:26:01]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [09:26:01]wFMCommunicate OK [09:26:01]SAM_PROTO_GetShiftState done [09:26:01]FM_GetShiftState done [09:26:01]opened in 1717373173 [09:26:01]opened+sec_in_day 1717459573 [09:26:01]quantity*price = 14000 [09:26:01]sum+1 = 14001 [09:26:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 35 03.06.2024 09:26 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63777 ФПД: 258414481809265 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T092603&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63777&fm=258414481809265&tin=02508201610067®Number=0000000000092737&sum=14000 0 [09:26:02]StoreToDocumentArchive [09:26:02]shift 373 fd 63777 [09:26:02]save to /storage/0373/doc_00063777 [09:26:03]save last doc name /storage/0373/doc_00063777 to /storage/kkm_last_doc_name [09:26:03]save OK [09:26:03]Clear old archive folders... [09:26:03]ProcessDocumentItem done err = 0, tmpTLVsize=273 [09:26:03]tlvbuf is 00D2F7A0 [09:26:03]SAM_PROTO_ClearQueue [09:26:03]wFMCommunicate request_size=4 [09:26:03]MH_SAM_APDU [09:26:03]CAPDU: 80 09 00 00 [09:26:03]Write to MH i2c: E2 08 00 86 08 80 09 00 00 00 00 00 00 00 [09:26:03]Write i2c OK [09:26:03]MH_I2C_Read... [09:26:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:26:03]Read from MH i2c: E2 [09:26:03]MH_I2C_Read... [09:26:03]Read from MH i2c: E2 03 00 [09:26:03]MH_I2C_Read... [09:26:03]Read from MH i2c: E2 03 00 86 08 00 90 00 02 [09:26:03]RAPDU: 90 00 [09:26:03]wFMCommunicate OK [09:26:03]SAM_PROTO_ClearQueue done [09:26:03]KKMCreateOFDPacket [09:26:03]OFDProtocolAddRootSTLVToBuf [09:26:03]FM_MakeSignedData [09:26:03]FM_MakeSignedData [09:26:03]SAM_PROTO_SignData [09:26:03]wFMCommunicate request_size=4 [09:26:03]MH_SAM_APDU [09:26:03]CAPDU: 80 0D 01 02 [09:26:03]Write to MH i2c: E2 08 00 87 08 80 0D 01 02 00 00 00 00 08 [09:26:03]Write i2c OK [09:26:03]MH_I2C_Read... [09:26:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:26:03]Read from MH i2c: E2 [09:26:03]MH_I2C_Read... [09:26:03]Read from MH i2c: E2 03 00 [09:26:03]MH_I2C_Read... [09:26:03]Read from MH i2c: E2 03 00 87 08 00 90 00 03 [09:26:03]RAPDU: 90 00 [09:26:03]wFMCommunicate OK [09:26:03]wFMCommunicate request_size=255 [09:26:03]MH_SAM_APDU [09:26:03]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 2B 8C 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 [09:26:03]Write to MH i2c: E2 02 01 88 08 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 2B 8C 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 00 00 13 [09:26:03]Write i2c OK [09:26:03]MH_I2C_Read... [09:26:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:26:03]Read from MH i2c: E2 [09:26:03]MH_I2C_Read... [09:26:03]Read from MH i2c: E2 03 00 [09:26:03]MH_I2C_Read... [09:26:03]Read from MH i2c: E2 03 00 88 08 00 90 00 04 [09:26:03]RAPDU: 90 00 [09:26:03]wFMCommunicate OK [09:26:03]wFMCommunicate request_size=32 [09:26:03]MH_SAM_APDU [09:26:03]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 35 30 37 34 10 04 04 00 21 F9 00 00 35 04 06 00 EB 06 CF 64 9F 71 [09:26:03]Write to MH i2c: E2 23 00 89 08 80 0D 02 02 1B 00 30 30 30 38 37 35 30 37 34 10 04 04 00 21 F9 00 00 35 04 06 00 EB 06 CF 64 9F 71 00 00 B5 [09:26:03]Write i2c OK [09:26:03]MH_I2C_Read... [09:26:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:26:03]Read from MH i2c: E2 [09:26:03]MH_I2C_Read... [09:26:03]Read from MH i2c: E2 03 00 [09:26:03]MH_I2C_Read... [09:26:03]Read from MH i2c: E2 03 00 89 08 00 90 00 05 [09:26:03]RAPDU: 90 00 [09:26:03]wFMCommunicate OK [09:26:03]wFMCommunicate request_size=4 [09:26:03]MH_SAM_APDU [09:26:03]CAPDU: 80 0D 03 02 [09:26:03]Write to MH i2c: E2 08 00 8A 08 80 0D 03 02 00 00 00 00 0D [09:26:03]Write i2c OK [09:26:03]MH_I2C_Read... [09:26:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:26:03]Read from MH i2c: E2 [09:26:03]MH_I2C_Read... [09:26:03]Read from MH i2c: E2 0B 00 [09:26:03]MH_I2C_Read... [09:26:03]Read from MH i2c: E2 0B 00 8A 08 00 69 AD D7 48 07 88 82 5E 90 00 B2 [09:26:03]RAPDU: 69 AD D7 48 07 88 82 5E 90 00 [09:26:03]wFMCommunicate OK [09:26:03]SAM_PROTO_SignData done [09:26:03]FM_MakeSignedData done [09:26:03]CreateOFDProtocolMessage [09:26:03]wFMCommunicate request_size=4 [09:26:03]MH_SAM_APDU [09:26:03]CAPDU: 80 11 00 00 [09:26:03]Write to MH i2c: E2 08 00 8B 08 80 11 00 00 00 00 00 00 0D [09:26:03]Write i2c OK [09:26:03]MH_I2C_Read... [09:26:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:26:03]Read from MH i2c: E2 [09:26:03]MH_I2C_Read... [09:26:03]Read from MH i2c: E2 17 00 [09:26:03]MH_I2C_Read... [09:26:03]Read from MH i2c: E2 17 00 8B 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 5F [09:26:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [09:26:03]wFMCommunicate OK [09:26:03]CreateOFDProtocolMessage done [09:26:03]OFDSenderStorePacket 63777 [09:26:03]StoreOFDPacket docnum=63777 [09:26:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 25 01 00 00 46 FF 1D 01 90 52 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 2B 8C 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 21 F9 00 00 35 04 06 00 EB 06 CF 64 9F 71 69 AD D7 48 07 88 82 5E [09:26:03]CheckFolder [09:26:03]dirname=/storage/ofd_packets [09:26:03]CheckFolder done [09:26:03]ProducePacketName [09:26:03]name=ofd_packets/00063777 [09:26:03]NVStorageSaveData ofd_packets/00063777 [09:26:03]File name is /storage/ofd_packets/00063777 [09:26:03]Write 323 bytes [09:26:03]NVStorageSaveData done [09:26:03]OFDSenderStorePacket done [09:26:03]KKMCreateOFDPacket done [09:26:03]NVStorageSaveData kkm_last_timestamp [09:26:03]File name is /storage/kkm_last_timestamp [09:26:03]Write 4 bytes [09:26:03]NVStorageSaveData done [09:26:03]ExternCall_PrintAddStr [09:26:03]wPrintStart [09:26:03]Write to MH i2c: 01 00 00 8C 08 94 [09:26:03]Write i2c OK [09:26:03]MH_I2C_Read... [09:26:03]Read from MH i2c: 01 [09:26:03]MH_I2C_Read... [09:26:03]Read from MH i2c: 01 07 00 [09:26:03]MH_I2C_Read... [09:26:03]Read from MH i2c: 01 07 00 8C 08 00 00 00 00 00 FF 0F A9 [09:26:03]RasterBufferAndPrint [09:26:03]line Счет N : (3)73364 [09:26:03]line ИНН: 02508201610067 [09:26:03]line Контрольно-Кассовый Чек [09:26:03]line ПРОДАЖА [09:26:03]line Товар: 48743570 [09:26:03]line Сигареты Winston XStyle Blue [09:26:03]line 1.000 * 140.00 [09:26:03]line = 140.00 [09:26:03]line НДС 12% НСП 1% [09:26:03]line > о реализуемом товаре [09:26:03]line ИТОГО: 140.00 [09:26:03]line НСП 1% : 1.24 [09:26:03]line НДС 12% : 14.87 [09:26:03]line Наличными: 140.00 [09:26:03]line Безнал.: 0.00 [09:26:03]line Место: АЗС № 117 "Партнер Нефть" [09:26:03]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [09:26:03]line СНО: Общий режим [09:26:03]line Чек 35 03.06.2024 09:26 [09:26:03]line Смена: 373 ФФД: 1.0 [09:26:03]line ЗНМ: 0300000031 [09:26:03]line РНМ: 0000000000092737 [09:26:03]line Версия ККМ: 001 [09:26:03]line ФМ: 0000000000875074 [09:26:03]line ФД: 63777 [09:26:03]line ФПД: 258414481809265 [09:26:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T092603&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63777&fm=258414481809265&tin=02508201610067®Number=0000000000092737&sum=14000 [09:26:03]line 0 [09:26:03]OFD Sender: Processing packet 63777 [packets to send 14, broken 13] [09:26:03]ProducePacketName [09:26:03]name=ofd_packets/00063777 [09:26:03]OFD Sender: To server: pG, [09:26:03]CommunicateWithHost lk.salyk.kg:30040 [09:26:03]ConnectInit lk.salyk.kg [09:26:03]written 0, free lines is 4095 [09:26:03]Connected sock=10 [09:26:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 25 01 00 00 46 FF 1D 01 90 52 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 2B 8C 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 21 F9 00 00 35 04 06 00 EB 06 CF 64 9F 71 69 AD D7 48 07 88 82 5E [09:26:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 43 52 47 00 71 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 35 30 37 34 10 04 04 00 21 F9 00 00 F4 03 04 00 FD 37 5D 66 B6 04 01 00 00 35 4F 53 49 25 4B 3E 92 [09:26:04]CommunicateWithHost err = 0 [09:26:04]CheckOFDResponse [09:26:04]1017 (14) - 77093643461234 [09:26:04]1041 (16) - 0000000000875074 [09:26:04]1040 (4) - 63777 [09:26:04]1012 (4) - 03.06.2024 03:26 [09:26:04]1206 (1) - 0 [09:26:04]OFD Sender: Remove packet 63777 [09:26:04]ProducePacketName [09:26:04]name=ofd_packets/00063777 [09:26:04]NVStorageDeleteData [09:26:04]Write to MH i2c: 01 00 00 B4 08 BC [09:26:04]Write i2c OK [09:26:04]MH_I2C_Read... [09:26:04]Read from MH i2c: 01 [09:26:04]MH_I2C_Read... [09:26:04]Read from MH i2c: 01 07 00 [09:26:04]MH_I2C_Read... [09:26:04]Read from MH i2c: 01 07 00 B4 08 00 00 00 00 00 E3 0C B2 [09:26:04]RasterBufferAndPrint [09:26:04]line [09:26:04]line [09:26:04]line [09:26:04]line [09:26:04]line [09:26:04]written 0, free lines is 3305 [09:26:04]MH_Cut [09:26:04]Write to MH i2c: D1 01 00 BB 08 01 95 [09:26:04]Write i2c OK [09:26:04]MH_I2C_Read... [09:26:04]Read from MH i2c: D1 [09:26:04]MH_I2C_Read... [09:26:04]Read from MH i2c: D1 01 00 [09:26:04]MH_I2C_Read... [09:26:04]Read from MH i2c: D1 01 00 BB 08 00 94 [09:26:04]Write to MH i2c: 01 00 00 BC 08 C4 [09:26:04]Write i2c OK [09:26:04]MH_I2C_Read... [09:26:04]OFD Sender: No OFD packet to send [09:26:05]*** Cut start [09:26:05]*** Partial cut [09:26:05]*** CUTSNS_PIN = 1 [09:26:05]*** CUTSNS_PIN = 0 [09:26:05]*** Brake cut motor [09:26:05]Read from MH i2c: 01 [09:26:05]MH_I2C_Read... [09:26:05]*** Stop cut motor [09:26:05]*** Cut end [09:26:05]Read from MH i2c: 01 07 00 [09:26:05]MH_I2C_Read... [09:26:05]Read from MH i2c: 01 07 00 BC 08 00 00 00 00 00 FF 0F D9 [09:26:05]process_action close_receipt done [09:26:05]requested_data is exist [09:26:05]produce_requested_data [09:26:05]requested_item fm.sn is exist - process it [09:26:05]wFMCommunicate request_size=4 [09:26:05]MH_SAM_APDU [09:26:05]CAPDU: 80 11 00 00 [09:26:05]Write to MH i2c: E2 08 00 BD 08 80 11 00 00 00 00 00 00 3F [09:26:05]Write i2c OK [09:26:05]MH_I2C_Read... [09:26:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:26:05]Read from MH i2c: E2 [09:26:05]MH_I2C_Read... [09:26:05]Read from MH i2c: E2 17 00 [09:26:05]MH_I2C_Read... [09:26:05]Read from MH i2c: E2 17 00 BD 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 91 [09:26:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [09:26:05]wFMCommunicate OK [09:26:05]requested_item fd.num is exist - process it [09:26:05]SAM_PROTO_GetFieldsCounters [09:26:05]wFMCommunicate request_size=4 [09:26:05]MH_SAM_APDU [09:26:05]CAPDU: 80 13 00 00 [09:26:05]Write to MH i2c: E2 08 00 BE 08 80 13 00 00 00 00 00 00 42 [09:26:05]Write i2c OK [09:26:05]MH_I2C_Read... [09:26:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:26:05]Read from MH i2c: E2 [09:26:05]MH_I2C_Read... [09:26:05]Read from MH i2c: E2 62 00 [09:26:05]MH_I2C_Read... [09:26:05]Read from MH i2c: E2 62 00 BE 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 21 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 5E [09:26: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 21 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:26:05]wFMCommunicate OK [09:26:05]SAM_PROTO_GetFieldsCounters done [09:26:05]requested_item shift.num is exist - process it [09:26:05]requested_item shift.opened is exist - process it [09:26:05]req_shift_opened [09:26:05]FM_GetShiftState [09:26:05]SAM_PROTO_GetShiftState [09:26:05]wFMCommunicate request_size=4 [09:26:05]MH_SAM_APDU [09:26:05]CAPDU: 80 13 01 00 [09:26:05]Write to MH i2c: E2 08 00 BF 08 80 13 01 00 00 00 00 00 44 [09:26:05]Write i2c OK [09:26:05]MH_I2C_Read... [09:26:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:26:05]Read from MH i2c: E2 [09:26:05]MH_I2C_Read... [09:26:05]Read from MH i2c: E2 0E 00 [09:26:05]MH_I2C_Read... [09:26:05]Read from MH i2c: E2 0E 00 BF 08 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 10 [09:26:05]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [09:26:05]wFMCommunicate OK [09:26:05]SAM_PROTO_GetShiftState done [09:26:05]FM_GetShiftState done [09:26:05]req_shift_opened done [09:26:05]requested_item shift.open_date is exist - process it [09:26:05]req_shift_open_date [09:26:05]req_shift_open_date done [09:26:05]produce_requested_data done [09:26:05]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63777,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [09:26:05]process_action_free close_receipt [09:26:05]json_value_free [09:26:05]json_value_free done [09:26:05]process_json_proto returns [09:26:05]Send response to host [09:26:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63777,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [09:26:05]free response buf [09:26:05]execute_script done [09:26:05]execute_script returns [09:26:05]free content buf [09:26:05]Sock 9.Close socket [09:26:05]Sock 9.Thread stoped [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:34]OFD Sender: No OFD packet to send [09:26:39]OFD Sender: No OFD packet to send [09:26:44]OFD Sender: No OFD packet to send [09:26:49]OFD Sender: No OFD packet to send [09:26:54]OFD Sender: No OFD packet to send [09:26:59]OFD Sender: No OFD packet to send [09:27:04]OFD Sender: No OFD packet to send [09:27:09]OFD Sender: No OFD packet to send [09:27:14]OFD Sender: No OFD packet to send [09:27:19]OFD Sender: No OFD packet to send [09:27:24]OFD Sender: No OFD packet to send [09:27:29]OFD Sender: No OFD packet to send [09:27:34]OFD Sender: No OFD packet to send [09:27:39]OFD Sender: No OFD packet to send [09:27:44]OFD Sender: No OFD packet to send [09:27:49]OFD Sender: No OFD packet to send [09:27:54]OFD Sender: No OFD packet to send [09:27:59]OFD Sender: No OFD packet to send [09:28:04]OFD Sender: No OFD packet to send [09:28:09]OFD Sender: No OFD packet to send [09:28:14]OFD Sender: No OFD packet to send [09:28:19]OFD Sender: No OFD packet to send [09:28:24]OFD Sender: No OFD packet to send [09:28:29]OFD Sender: No OFD packet to send [09:28:34]OFD Sender: No OFD packet to send [09:28:39]OFD Sender: No OFD packet to send [09:28:44]OFD Sender: No OFD packet to send [09:28:49]OFD Sender: No OFD packet to send [09:28:54]OFD Sender: No OFD packet to send [09:28:59]OFD Sender: No OFD packet to send [09:29:04]OFD Sender: No OFD packet to send [09:29:09]OFD Sender: No OFD packet to send [09:29:14]OFD Sender: No OFD packet to send [09:29:19]OFD Sender: No OFD packet to send [09:29:24]OFD Sender: No OFD packet to send [09:29:29]OFD Sender: No OFD packet to send [09:29:34]OFD Sender: No OFD packet to send [09:29:39]OFD Sender: No OFD packet to send [09:29:44]OFD Sender: No OFD packet to send [09:29:49]OFD Sender: No OFD packet to send [09:29:54]OFD Sender: No OFD packet to send [09:29:59]OFD Sender: No OFD packet to send [09:30:04]OFD Sender: No OFD packet to send [09:30:09]OFD Sender: No OFD packet to send [09:30:14]OFD Sender: No OFD packet to send [09:30:19]OFD Sender: No OFD packet to send [09:30:24]OFD Sender: No OFD packet to send [09:30:29]OFD Sender: No OFD packet to send [09:30:34]OFD Sender: No OFD packet to send [09:30:39]OFD Sender: No OFD packet to send [09:30:44]OFD Sender: No OFD packet to send [09:30:49]OFD Sender: No OFD packet to send [09:30:54]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:35]OFD Sender: No OFD packet to send [09:32:40]OFD Sender: No OFD packet to send [09:32:45]OFD Sender: No OFD packet to send [09:32:50]OFD Sender: No OFD packet to send [09:32:55]OFD Sender: No OFD packet to send [09:33:00]OFD Sender: No OFD packet to send [09:33:05]OFD Sender: No OFD packet to send [09:33:10]OFD Sender: No OFD packet to send [09:33:15]OFD Sender: No OFD packet to send [09:33:20]OFD Sender: No OFD packet to send [09:33:25]OFD Sender: No OFD packet to send [09:33:30]OFD Sender: No OFD packet to send [09:33:35]OFD Sender: No OFD packet to send [09:33:40]OFD Sender: No OFD packet to send [09:33:45]OFD Sender: No OFD packet to send [09:33:50]OFD Sender: No OFD packet to send [09:33:55]OFD Sender: No OFD packet to send [09:34:00]OFD Sender: No OFD packet to send [09:34:05]OFD Sender: No OFD packet to send [09:34:10]OFD Sender: No OFD packet to send [09:34:15]OFD Sender: No OFD packet to send [09:34:20]OFD Sender: No OFD packet to send [09:34:25]OFD Sender: No OFD packet to send [09:34:30]OFD Sender: No OFD packet to send [09:34:35]OFD Sender: No OFD packet to send [09:34:40]OFD Sender: No OFD packet to send [09:34:45]OFD Sender: No OFD packet to send [09:34:50]OFD Sender: No OFD packet to send [09:34:55]OFD Sender: No OFD packet to send [09:35:00]OFD Sender: No OFD packet to send [09:35:05]OFD Sender: No OFD packet to send [09:35:10]OFD Sender: No OFD packet to send [09:35:15]OFD Sender: No OFD packet to send [09:35:20]OFD Sender: No OFD packet to send [09:35:25]OFD Sender: No OFD packet to send [09:35:30]OFD Sender: No OFD packet to send [09:35:35]OFD Sender: No OFD packet to send [09:35:40]OFD Sender: No OFD packet to send [09:35:45]OFD Sender: No OFD packet to send [09:35:50]OFD Sender: No OFD packet to send [09:35:55]OFD Sender: No OFD packet to send [09:36:00]OFD Sender: No OFD packet to send [09:36:05]OFD Sender: No OFD packet to send [09:36:10]OFD Sender: No OFD packet to send [09:36:15]OFD Sender: No OFD packet to send [09:36:20]OFD Sender: No OFD packet to send [09:36:25]OFD Sender: No OFD packet to send [09:36:30]OFD Sender: No OFD packet to send [09:36:35]OFD Sender: No OFD packet to send [09:36:40]OFD Sender: No OFD packet to send [09:36:45]OFD Sender: No OFD packet to send [09:36:50]OFD Sender: No OFD packet to send [09:36:55]OFD Sender: No OFD packet to send [09:37:00]OFD Sender: No OFD packet to send [09:37:05]OFD Sender: No OFD packet to send [09:37:10]OFD Sender: No OFD packet to send [09:37:15]OFD Sender: No OFD packet to send [09:37:20]OFD Sender: No OFD packet to send [09:37:25]OFD Sender: No OFD packet to send [09:37:30]OFD Sender: No OFD packet to send [09:37:35]OFD Sender: No OFD packet to send [09:37:40]OFD Sender: No OFD packet to send [09:37:45]OFD Sender: No OFD packet to send [09:37:50]OFD Sender: No OFD packet to send [09:37:55]OFD Sender: No OFD packet to send [09:38:00]OFD Sender: No OFD packet to send [09:38:05]OFD Sender: No OFD packet to send [09:38:10]OFD Sender: No OFD packet to send [09:38:15]OFD Sender: No OFD packet to send [09:38:20]OFD Sender: No OFD packet to send [09:38:25]OFD Sender: No OFD packet to send [09:38:30]OFD Sender: No OFD packet to send [09:38:35]OFD Sender: No OFD packet to send [09:38:40]OFD Sender: No OFD packet to send [09:38:45]OFD Sender: No OFD packet to send [09:38:50]OFD Sender: No OFD packet to send [09:38:55]OFD Sender: No OFD packet to send [09:39:00]OFD Sender: No OFD packet to send [09:39:05]OFD Sender: No OFD packet to send [09:39:10]OFD Sender: No OFD packet to send [09:39:15]OFD Sender: No OFD packet to send [09:39:20]OFD Sender: No OFD packet to send [09:39:25]OFD Sender: No OFD packet to send [09:39:30]OFD Sender: No OFD packet to send [09:39:35]OFD Sender: No OFD packet to send [09:39:40]OFD Sender: No OFD packet to send [09:39:45]OFD Sender: No OFD packet to send [09:39:50]OFD Sender: No OFD packet to send [09:39:55]OFD Sender: No OFD packet to send [09:40:00]OFD Sender: No OFD packet to send [09:40:05]OFD Sender: No OFD packet to send [09:40:10]OFD Sender: No OFD packet to send [09:40:15]OFD Sender: No OFD packet to send [09:40:20]OFD Sender: No OFD packet to send [09:40:25]OFD Sender: No OFD packet to send [09:40:30]OFD Sender: No OFD packet to send [09:40:35]OFD Sender: No OFD packet to send [09:40:40]OFD Sender: No OFD packet to send [09:40:45]OFD Sender: No OFD packet to send [09:40:50]OFD Sender: No OFD packet to send [09:40:55]OFD Sender: No OFD packet to send [09:41:00]OFD Sender: No OFD packet to send [09:41:05]OFD Sender: No OFD packet to send [09:41:10]OFD Sender: No OFD packet to send [09:41:15]OFD Sender: No OFD packet to send [09:41:20]OFD Sender: No OFD packet to send [09:41:25]OFD Sender: No OFD packet to send [09:41:30]OFD Sender: No OFD packet to send [09:41:35]OFD Sender: No OFD packet to send [09:41:40]OFD Sender: No OFD packet to send [09:41:45]OFD Sender: No OFD packet to send [09:41:50]OFD Sender: No OFD packet to send [09:41:55]OFD Sender: No OFD packet to send [09:42:00]OFD Sender: No OFD packet to send [09:42:05]OFD Sender: No OFD packet to send [09:42:10]OFD Sender: No OFD packet to send [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:45]OFD Sender: No OFD packet to send [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:30]OFD Sender: No OFD packet to send [09:44:35]OFD Sender: No OFD packet to send [09:44:40]OFD Sender: No OFD packet to send [09:44:45]OFD Sender: No OFD packet to send [09:44:50]OFD Sender: No OFD packet to send [09:44:55]OFD Sender: No OFD packet to send [09:45:00]OFD Sender: No OFD packet to send [09:45:05]OFD Sender: No OFD packet to send [09:45:10]OFD Sender: No OFD packet to send [09:45:15]OFD Sender: No OFD packet to send [09:45:20]OFD Sender: No OFD packet to send [09:45:25]OFD Sender: No OFD packet to send [09:45:30]OFD Sender: No OFD packet to send [09:45:35]OFD Sender: No OFD packet to send [09:45:40]OFD Sender: No OFD packet to send [09:45:45]OFD Sender: No OFD packet to send [09:45:50]OFD Sender: No OFD packet to send [09:45:55]OFD Sender: No OFD packet to send [09:46:00]OFD Sender: No OFD packet to send [09:46:05]OFD Sender: No OFD packet to send [09:46:10]OFD Sender: No OFD packet to send [09:46:15]OFD Sender: No OFD packet to send [09:46:20]OFD Sender: No OFD packet to send [09:46:25]OFD Sender: No OFD packet to send [09:46:30]OFD Sender: No OFD packet to send [09:46:35]OFD Sender: No OFD packet to send [09:46:40]OFD Sender: No OFD packet to send [09:46:45]OFD Sender: No OFD packet to send [09:46:50]OFD Sender: No OFD packet to send [09:46:55]OFD Sender: No OFD packet to send [09:47:00]OFD Sender: No OFD packet to send [09:47:05]OFD Sender: No OFD packet to send [09:47:10]OFD Sender: No OFD packet to send [09:47:15]OFD Sender: No OFD packet to send [09:47:20]OFD Sender: No OFD packet to send [09:47:25]OFD Sender: No OFD packet to send [09:47:30]OFD Sender: No OFD packet to send [09:47:35]OFD Sender: No OFD packet to send [09:47:40]OFD Sender: No OFD packet to send [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:10]OFD Sender: No OFD packet to send [09:52:15]OFD Sender: No OFD packet to send [09:52:20]OFD Sender: No OFD packet to send [09:52:25]OFD Sender: No OFD packet to send [09:52:30]OFD Sender: No OFD packet to send [09:52:35]OFD Sender: No OFD packet to send [09:52:40]OFD Sender: No OFD packet to send [09:52:45]OFD Sender: No OFD packet to send [09:52:50]OFD Sender: No OFD packet to send [09:52:55]OFD Sender: No OFD packet to send [09:53:00]OFD Sender: No OFD packet to send [09:53:05]OFD Sender: No OFD packet to send [09:53:10]OFD Sender: No OFD packet to send [09:53:15]OFD Sender: No OFD packet to send [09:53:20]OFD Sender: No OFD packet to send [09:53:25]OFD Sender: No OFD packet to send [09:53:31]OFD Sender: No OFD packet to send [09:53:36]OFD Sender: No OFD packet to send [09:53:41]OFD Sender: No OFD packet to send [09:53:46]OFD Sender: No OFD packet to send [09:53:51]OFD Sender: No OFD packet to send [09:53:55]accept exits with 7 [09:53:55]New connection [09:53:55]New thread 3067374948 created [09:53:55]Thread 3067518308 joined [09:53:55]Waiting for new connection... [09:53:55] Sock 7.Parse request [09:53:55]Sock 7.Check first char [09:53:55]Sock 7.First char is OK [09:53:55]request: POST /json_proto HTTP/1.0 [09:53:55]Method: POST [09:53:55]URL: /json_proto [09:53:55]Method is POST - this is cgi request [09:53:55]url: /json_proto [09:53:55]query_string will be loaded in cgi processing [09:53:55]execute_cgi json_proto POST (null) [09:53:55]execute_cgi path=json_proto method=POST [09:53:55]POST find Content-Length [09:53:55]Host: 172.17.60.69:8080 [09:53:55]Content-Length: 631 [09:53:55]Content-Type: application/json [09:53:55] [09:53:55]POST finish read [09:53:55]Found Content-Length = 631 [09:53:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73365", "tax_sys" : 0, "items" : [ { "code": "4700000160204", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1,5\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:53:55]execute_script... [09:53:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73365", "tax_sys" : 0, "items" : [ { "code": "4700000160204", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1,5\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:53:55]POST & json_proto [09:53:55]process_json_proto [09:53:55]json parsed OK: [09:53:55]protocol is kg_v1.0 [09:53:55]action value=close_receipt [09:53:55]process_action close_receipt [09:53:55]cmd_close_receipt [09:53:55]MH_GetDate [09:53:55]Write to MH i2c: F0 00 00 C0 08 B7 [09:53:55]Write i2c OK [09:53:55]MH_I2C_Read... [09:53:55]Read from MH i2c: F0 [09:53:55]MH_I2C_Read... [09:53:55]Read from MH i2c: F0 09 00 [09:53:55]MH_I2C_Read... [09:53:55]Read from MH i2c: F0 09 00 C0 08 00 B5 92 5D 66 6A 96 4A 66 7A [09:53:55]GetLastDocTimeStamp 1717406763 [09:53:55]current date 1717408437 [09:53:55]FM_GetShiftState [09:53:55]SAM_PROTO_GetShiftState [09:53:55]wFMCommunicate request_size=4 [09:53:55]MH_SAM_APDU [09:53:55]CAPDU: 80 13 01 00 [09:53:55]Write to MH i2c: E2 08 00 C1 08 80 13 01 00 00 00 00 00 46 [09:53:55]Write i2c OK [09:53:55]MH_I2C_Read... [09:53:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:53:55]Read from MH i2c: E2 [09:53:55]MH_I2C_Read... [09:53:55]Read from MH i2c: E2 0E 00 [09:53:55]MH_I2C_Read... [09:53:55]Read from MH i2c: E2 0E 00 C1 08 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 12 [09:53:55]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [09:53:55]wFMCommunicate OK [09:53:55]SAM_PROTO_GetShiftState done [09:53:55]FM_GetShiftState done [09:53:55]opened in 1717373173 [09:53:55]opened+sec_in_day 1717459573 [09:53:55]quantity*price = 6000 [09:53:55]sum+1 = 6001 [09:53:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 60.00 НСП 1% : 0.53 НДС 12% : 6.37 Наличными: 60.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 36 03.06.2024 09:53 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63778 ФПД: 52139994472343 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T095357&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63778&fm=52139994472343&tin=02508201610067®Number=0000000000092737&sum=6000 0 [09:53:56]StoreToDocumentArchive [09:53:56]shift 373 fd 63778 [09:53:56]save to /storage/0373/doc_00063778 [09:53:56]save last doc name /storage/0373/doc_00063778 to /storage/kkm_last_doc_name [09:53:56]save OK [09:53:56]Clear old archive folders... [09:53:56]ProcessDocumentItem done err = 0, tmpTLVsize=271 [09:53:56]tlvbuf is 00D3D630 [09:53:56]SAM_PROTO_ClearQueue [09:53:56]wFMCommunicate request_size=4 [09:53:56]MH_SAM_APDU [09:53:56]CAPDU: 80 09 00 00 [09:53:56]Write to MH i2c: E2 08 00 CE 08 80 09 00 00 00 00 00 00 48 [09:53:56]Write i2c OK [09:53:56]MH_I2C_Read... [09:53:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:53:56]Read from MH i2c: E2 [09:53:56]MH_I2C_Read... [09:53:56]Read from MH i2c: E2 03 00 [09:53:56]MH_I2C_Read... [09:53:56]Read from MH i2c: E2 03 00 CE 08 00 90 00 4A [09:53:56]RAPDU: 90 00 [09:53:56]wFMCommunicate OK [09:53:56]SAM_PROTO_ClearQueue done [09:53:56]KKMCreateOFDPacket [09:53:56]OFDProtocolAddRootSTLVToBuf [09:53:56]FM_MakeSignedData [09:53:56]FM_MakeSignedData [09:53:56]SAM_PROTO_SignData [09:53:56]wFMCommunicate request_size=4 [09:53:56]MH_SAM_APDU [09:53:56]CAPDU: 80 0D 01 02 [09:53:56]Write to MH i2c: E2 08 00 CF 08 80 0D 01 02 00 00 00 00 50 [09:53:56]Write i2c OK [09:53:56]MH_I2C_Read... [09:53:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:53:57]Read from MH i2c: E2 [09:53:57]MH_I2C_Read... [09:53:57]Read from MH i2c: E2 03 00 [09:53:57]MH_I2C_Read... [09:53:57]Read from MH i2c: E2 03 00 CF 08 00 90 00 4B [09:53:57]RAPDU: 90 00 [09:53:57]wFMCommunicate OK [09:53:57]wFMCommunicate request_size=255 [09:53:57]MH_SAM_APDU [09:53:57]CAPDU: 80 0D 02 02 FA 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 B5 92 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 [09:53:57]Write to MH i2c: E2 02 01 D0 08 80 0D 02 02 FA 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 B5 92 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 26 [09:53:57]Write i2c OK [09:53:57]MH_I2C_Read... [09:53:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:53:57]Read from MH i2c: E2 [09:53:57]MH_I2C_Read... [09:53:57]Read from MH i2c: E2 03 00 [09:53:57]MH_I2C_Read... [09:53:57]Read from MH i2c: E2 03 00 D0 08 00 90 00 4C [09:53:57]RAPDU: 90 00 [09:53:57]wFMCommunicate OK [09:53:57]wFMCommunicate request_size=30 [09:53:57]MH_SAM_APDU [09:53:57]CAPDU: 80 0D 02 02 19 30 38 37 35 30 37 34 10 04 04 00 22 F9 00 00 35 04 06 00 2F 6B C9 D9 5F 97 [09:53:57]Write to MH i2c: E2 21 00 D1 08 80 0D 02 02 19 00 30 38 37 35 30 37 34 10 04 04 00 22 F9 00 00 35 04 06 00 2F 6B C9 D9 5F 97 00 00 98 [09:53:57]Write i2c OK [09:53:57]MH_I2C_Read... [09:53:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:53:57]Read from MH i2c: E2 [09:53:57]MH_I2C_Read... [09:53:57]Read from MH i2c: E2 03 00 [09:53:57]MH_I2C_Read... [09:53:57]Read from MH i2c: E2 03 00 D1 08 00 90 00 4D [09:53:57]RAPDU: 90 00 [09:53:57]wFMCommunicate OK [09:53:57]wFMCommunicate request_size=4 [09:53:57]MH_SAM_APDU [09:53:57]CAPDU: 80 0D 03 02 [09:53:57]Write to MH i2c: E2 08 00 D2 08 80 0D 03 02 00 00 00 00 55 [09:53:57]Write i2c OK [09:53:57]MH_I2C_Read... [09:53:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:53:57]Read from MH i2c: E2 [09:53:57]MH_I2C_Read... [09:53:57]Read from MH i2c: E2 0B 00 [09:53:57]MH_I2C_Read... [09:53:57]Read from MH i2c: E2 0B 00 D2 08 00 CE DB FA AD 95 41 E9 3C 90 00 A1 [09:53:57]RAPDU: CE DB FA AD 95 41 E9 3C 90 00 [09:53:57]wFMCommunicate OK [09:53:57]SAM_PROTO_SignData done [09:53:57]FM_MakeSignedData done [09:53:57]CreateOFDProtocolMessage [09:53:57]wFMCommunicate request_size=4 [09:53:57]MH_SAM_APDU [09:53:57]CAPDU: 80 11 00 00 [09:53:57]Write to MH i2c: E2 08 00 D3 08 80 11 00 00 00 00 00 00 55 [09:53:57]Write i2c OK [09:53:57]MH_I2C_Read... [09:53:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:53:57]Read from MH i2c: E2 [09:53:57]MH_I2C_Read... [09:53:57]Read from MH i2c: E2 17 00 [09:53:57]MH_I2C_Read... [09:53:57]Read from MH i2c: E2 17 00 D3 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 A7 [09:53:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [09:53:57]wFMCommunicate OK [09:53:57]CreateOFDProtocolMessage done [09:53:57]OFDSenderStorePacket 63778 [09:53:57]StoreOFDPacket docnum=63778 [09:53:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 23 01 00 00 FB 74 1B 01 54 D5 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 B5 92 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 22 F9 00 00 35 04 06 00 2F 6B C9 D9 5F 97 CE DB FA AD 95 41 E9 3C [09:53:57]CheckFolder [09:53:57]dirname=/storage/ofd_packets [09:53:57]CheckFolder done [09:53:57]ProducePacketName [09:53:57]name=ofd_packets/00063778 [09:53:57]NVStorageSaveData ofd_packets/00063778 [09:53:57]File name is /storage/ofd_packets/00063778 [09:53:57]Write 321 bytes [09:53:57]NVStorageSaveData done [09:53:57]OFDSenderStorePacket done [09:53:57]KKMCreateOFDPacket done [09:53:57]NVStorageSaveData kkm_last_timestamp [09:53:57]File name is /storage/kkm_last_timestamp [09:53:57]Write 4 bytes [09:53:57]NVStorageSaveData done [09:53:57]ExternCall_PrintAddStr [09:53:57]wPrintStart [09:53:57]Write to MH i2c: 01 00 00 D4 08 DC [09:53:57]Write i2c OK [09:53:57]MH_I2C_Read... [09:53:57]Read from MH i2c: 01 [09:53:57]MH_I2C_Read... [09:53:57]Read from MH i2c: 01 07 00 [09:53:57]MH_I2C_Read... [09:53:57]Read from MH i2c: 01 07 00 D4 08 00 00 00 00 00 FF 0F F1 [09:53:57]RasterBufferAndPrint [09:53:57]line Счет N : (3)73365 [09:53:57]line ИНН: 02508201610067 [09:53:57]line Контрольно-Кассовый Чек [09:53:57]line ПРОДАЖА [09:53:57]line Товар: 4700000160204 [09:53:57]line Вода Легенда 1,5л [09:53:57]line 1.000 * 60.00 [09:53:57]line = 60.00 [09:53:57]line НДС 12% НСП 1% [09:53:57]line > о реализуемом товаре [09:53:57]line ИТОГО: 60.00 [09:53:57]line НСП 1% : 0.53 [09:53:57]line НДС 12% : 6.37 [09:53:57]line Наличными: 60.00 [09:53:57]line Безнал.: 0.00 [09:53:57]line Место: АЗС № 117 "Партнер Нефть" [09:53:57]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [09:53:57]line СНО: Общий режим [09:53:57]line Чек 36 03.06.2024 09:53 [09:53:57]line Смена: 373 ФФД: 1.0 [09:53:57]line ЗНМ: 0300000031 [09:53:57]line РНМ: 0000000000092737 [09:53:57]line Версия ККМ: 001 [09:53:57]line ФМ: 0000000000875074 [09:53:57]line ФД: 63778 [09:53:57]line ФПД: 52139994472343 [09:53:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T095357&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63778&fm=52139994472343&tin=02508201610067®Number=0000000000092737&sum=6000 [09:53:57]line 0 [09:53:57]OFD Sender: Processing packet 63778 [packets to send 14, broken 13] [09:53:57]ProducePacketName [09:53:57]name=ofd_packets/00063778 [09:53:57]OFD Sender: To server: pG, [09:53:57]CommunicateWithHost lk.salyk.kg:30040 [09:53:57]ConnectInit lk.salyk.kg [09:53:57]written 0, free lines is 4095 [09:53:57]Connected sock=10 [09:53:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 23 01 00 00 FB 74 1B 01 54 D5 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 B5 92 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 22 F9 00 00 35 04 06 00 2F 6B C9 D9 5F 97 CE DB FA AD 95 41 E9 3C [09:53:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 1E AF 47 00 F4 2C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 22 F9 00 00 F4 03 04 00 87 3E 5D 66 B6 04 01 00 00 01 7F 2A 29 F1 76 C0 42 [09:53:58]CommunicateWithHost err = 0 [09:53:58]CheckOFDResponse [09:53:58]1017 (14) - 77093643461234 [09:53:58]1041 (16) - 0000000000875074 [09:53:58]1040 (4) - 63778 [09:53:58]1012 (4) - 03.06.2024 03:54 [09:53:58]1206 (1) - 0 [09:53:58]OFD Sender: Remove packet 63778 [09:53:58]ProducePacketName [09:53:58]name=ofd_packets/00063778 [09:53:58]NVStorageDeleteData [09:53:58]Write to MH i2c: 01 00 00 FC 08 04 [09:53:58]Write i2c OK [09:53:58]MH_I2C_Read... [09:53:58]Read from MH i2c: 01 [09:53:58]MH_I2C_Read... [09:53:58]Read from MH i2c: 01 07 00 [09:53:58]MH_I2C_Read... [09:53:58]Read from MH i2c: 01 07 00 FC 08 00 00 00 00 00 F6 0C 0D [09:53:58]RasterBufferAndPrint [09:53:58]line [09:53:58]line [09:53:58]line [09:53:58]line [09:53:58]line [09:53:58]written 0, free lines is 3324 [09:53:58]MH_Cut [09:53:58]Write to MH i2c: D1 01 00 03 09 01 DE [09:53:58]Write i2c OK [09:53:58]MH_I2C_Read... [09:53:58]Read from MH i2c: D1 [09:53:58]MH_I2C_Read... [09:53:58]Read from MH i2c: D1 01 00 [09:53:58]MH_I2C_Read... [09:53:58]Read from MH i2c: D1 01 00 03 09 00 DD [09:53:58]Write to MH i2c: 01 00 00 04 09 0D [09:53:58]Write i2c OK [09:53:58]MH_I2C_Read... [09:53:58]OFD Sender: No OFD packet to send [09:53:58]*** Cut start [09:53:58]*** Partial cut [09:53:58]*** CUTSNS_PIN = 1 [09:53:59]*** CUTSNS_PIN = 0 [09:53:59]*** Brake cut motor [09:53:59]Read from MH i2c: 01 [09:53:59]MH_I2C_Read... [09:53:59]*** Stop cut motor [09:53:59]*** Cut end [09:53:59]Read from MH i2c: 01 07 00 [09:53:59]MH_I2C_Read... [09:53:59]Read from MH i2c: 01 07 00 04 09 00 00 00 00 00 FF 0F 22 [09:53:59]process_action close_receipt done [09:53:59]requested_data is exist [09:53:59]produce_requested_data [09:53:59]requested_item fm.sn is exist - process it [09:53:59]wFMCommunicate request_size=4 [09:53:59]MH_SAM_APDU [09:53:59]CAPDU: 80 11 00 00 [09:53:59]Write to MH i2c: E2 08 00 05 09 80 11 00 00 00 00 00 00 88 [09:53:59]Write i2c OK [09:53:59]MH_I2C_Read... [09:53:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:53:59]Read from MH i2c: E2 [09:53:59]MH_I2C_Read... [09:53:59]Read from MH i2c: E2 17 00 [09:53:59]MH_I2C_Read... [09:53:59]Read from MH i2c: E2 17 00 05 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 DA [09:53:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [09:53:59]wFMCommunicate OK [09:53:59]requested_item fd.num is exist - process it [09:53:59]SAM_PROTO_GetFieldsCounters [09:53:59]wFMCommunicate request_size=4 [09:53:59]MH_SAM_APDU [09:53:59]CAPDU: 80 13 00 00 [09:53:59]Write to MH i2c: E2 08 00 06 09 80 13 00 00 00 00 00 00 8B [09:53:59]Write i2c OK [09:53:59]MH_I2C_Read... [09:53:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:53:59]Read from MH i2c: E2 [09:53:59]MH_I2C_Read... [09:53:59]Read from MH i2c: E2 62 00 [09:53:59]MH_I2C_Read... [09:53:59]Read from MH i2c: E2 62 00 06 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 22 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 AB [09:53: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 22 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:53:59]wFMCommunicate OK [09:53:59]SAM_PROTO_GetFieldsCounters done [09:53:59]requested_item shift.num is exist - process it [09:53:59]requested_item shift.opened is exist - process it [09:53:59]req_shift_opened [09:53:59]FM_GetShiftState [09:53:59]SAM_PROTO_GetShiftState [09:53:59]wFMCommunicate request_size=4 [09:53:59]MH_SAM_APDU [09:53:59]CAPDU: 80 13 01 00 [09:53:59]Write to MH i2c: E2 08 00 07 09 80 13 01 00 00 00 00 00 8D [09:53:59]Write i2c OK [09:53:59]MH_I2C_Read... [09:53:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:53:59]Read from MH i2c: E2 [09:53:59]MH_I2C_Read... [09:53:59]Read from MH i2c: E2 0E 00 [09:53:59]MH_I2C_Read... [09:53:59]Read from MH i2c: E2 0E 00 07 09 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 59 [09:53:59]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [09:53:59]wFMCommunicate OK [09:53:59]SAM_PROTO_GetShiftState done [09:53:59]FM_GetShiftState done [09:53:59]req_shift_opened done [09:53:59]requested_item shift.open_date is exist - process it [09:53:59]req_shift_open_date [09:53:59]req_shift_open_date done [09:53:59]produce_requested_data done [09:53:59]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63778,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [09:53:59]process_action_free close_receipt [09:53:59]json_value_free [09:53:59]json_value_free done [09:53:59]process_json_proto returns [09:53:59]Send response to host [09:53:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63778,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [09:53:59]free response buf [09:53:59]execute_script done [09:53:59]execute_script returns [09:53:59]free content buf [09:53:59]Sock 7.Close socket [09:53:59]Sock 7.Thread stoped [09:54:03]OFD Sender: No OFD packet to send [09:54:08]OFD Sender: No OFD packet to send [09:54:13]OFD Sender: No OFD packet to send [09:54:18]OFD Sender: No OFD packet to send [09:54:23]OFD Sender: No OFD packet to send [09:54:28]OFD Sender: No OFD packet to send [09:54:33]OFD Sender: No OFD packet to send [09:54:38]OFD Sender: No OFD packet to send [09:54:43]OFD Sender: No OFD packet to send [09:54:48]OFD Sender: No OFD packet to send [09:54:53]OFD Sender: No OFD packet to send [09:54:58]OFD Sender: No OFD packet to send [09:55:03]OFD Sender: No OFD packet to send [09:55:08]OFD Sender: No OFD packet to send [09:55:13]OFD Sender: No OFD packet to send [09:55:18]OFD Sender: No OFD packet to send [09:55:23]OFD Sender: No OFD packet to send [09:55:28]OFD Sender: No OFD packet to send [09:55:33]OFD Sender: No OFD packet to send [09:55:38]OFD Sender: No OFD packet to send [09:55:43]OFD Sender: No OFD packet to send [09:55:48]OFD Sender: No OFD packet to send [09:55:53]OFD Sender: No OFD packet to send [09:55:58]OFD Sender: No OFD packet to send [09:56:03]OFD Sender: No OFD packet to send [09:56:08]OFD Sender: No OFD packet to send [09:56:13]OFD Sender: No OFD packet to send [09:56:18]OFD Sender: No OFD packet to send [09:56:23]OFD Sender: No OFD packet to send [09:56:28]OFD Sender: No OFD packet to send [09:56:33]OFD Sender: No OFD packet to send [09:56:38]OFD Sender: No OFD packet to send [09:56:43]OFD Sender: No OFD packet to send [09:56:48]OFD Sender: No OFD packet to send [09:56:53]OFD Sender: No OFD packet to send [09:56:58]OFD Sender: No OFD packet to send [09:57:03]OFD Sender: No OFD packet to send [09:57:08]OFD Sender: No OFD packet to send [09:57:13]OFD Sender: No OFD packet to send [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:48]OFD Sender: No OFD packet to send [09:59:53]OFD Sender: No OFD packet to send [09:59:58]OFD Sender: No OFD packet to send [10:00:03]OFD Sender: No OFD packet to send [10:00:08]OFD Sender: No OFD packet to send [10:00:13]OFD Sender: No OFD packet to send [10:00:18]OFD Sender: No OFD packet to send [10:00:23]OFD Sender: No OFD packet to send [10:00:28]OFD Sender: No OFD packet to send [10:00:33]OFD Sender: No OFD packet to send [10:00:38]OFD Sender: No OFD packet to send [10:00:43]OFD Sender: No OFD packet to send [10:00:48]OFD Sender: No OFD packet to send [10:00:53]OFD Sender: No OFD packet to send [10:00:58]OFD Sender: No OFD packet to send [10:01:03]OFD Sender: No OFD packet to send [10:01:08]OFD Sender: No OFD packet to send [10:01:13]OFD Sender: No OFD packet to send [10:01:18]OFD Sender: No OFD packet to send [10:01:23]OFD Sender: No OFD packet to send [10:01:28]OFD Sender: No OFD packet to send [10:01:33]OFD Sender: No OFD packet to send [10:01:38]OFD Sender: No OFD packet to send [10:01:43]OFD Sender: No OFD packet to send [10:01:48]OFD Sender: No OFD packet to send [10:01:53]OFD Sender: No OFD packet to send [10:01:58]OFD Sender: No OFD packet to send [10:02:03]OFD Sender: No OFD packet to send [10:02:08]OFD Sender: No OFD packet to send [10:02:13]OFD Sender: No OFD packet to send [10:02:18]OFD Sender: No OFD packet to send [10:02:23]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:54]accept exits with 9 [10:03:54]New connection [10:03:54]New thread 3067518308 created [10:03:54]Thread 3067374948 joined [10:03:54]Waiting for new connection... [10:03:54] Sock 9.Parse request [10:03:54]Sock 9.Check first char [10:03:54]Sock 9.First char is OK [10:03:54]request: POST /json_proto HTTP/1.0 [10:03:54]Method: POST [10:03:54]URL: /json_proto [10:03:54]Method is POST - this is cgi request [10:03:54]url: /json_proto [10:03:54]query_string will be loaded in cgi processing [10:03:54]execute_cgi json_proto POST (null) [10:03:54]execute_cgi path=json_proto method=POST [10:03:54]POST find Content-Length [10:03:54]Host: 172.17.60.69:8080 [10:03:54]Content-Length: 746 [10:03:54]Content-Type: application/json [10:03:54] [10:03:54]POST finish read [10:03:54]Found Content-Length = 746 [10:03:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73367", "tax_sys" : 0, "items" : [ { "code": "2000028410025", "name": "\u041E\u0447\u043A\u0438 \u0441\u043E\u043B\u043D\u0446\u0435\u0437\u0430\u0449\u0438\u0442\u043D\u044B\u0435 \u0432 \u0430\u0441\u0441\u043E\u0440\u0442\u0438\u043C\u0435\u043D\u0442\u0435", "price" : 502.00, "quantity" : 1.000, "sum" : 502.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 502.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:03:54]execute_script... [10:03:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73367", "tax_sys" : 0, "items" : [ { "code": "2000028410025", "name": "\u041E\u0447\u043A\u0438 \u0441\u043E\u043B\u043D\u0446\u0435\u0437\u0430\u0449\u0438\u0442\u043D\u044B\u0435 \u0432 \u0430\u0441\u0441\u043E\u0440\u0442\u0438\u043C\u0435\u043D\u0442\u0435", "price" : 502.00, "quantity" : 1.000, "sum" : 502.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 502.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:03:54]POST & json_proto [10:03:54]process_json_proto [10:03:54]json parsed OK: [10:03:54]protocol is kg_v1.0 [10:03:54]action value=close_receipt [10:03:54]process_action close_receipt [10:03:54]cmd_close_receipt [10:03:54]MH_GetDate [10:03:54]Write to MH i2c: F0 00 00 08 09 00 [10:03:54]Write i2c OK [10:03:54]MH_I2C_Read... [10:03:54]Read from MH i2c: F0 [10:03:54]MH_I2C_Read... [10:03:54]Read from MH i2c: F0 09 00 [10:03:54]MH_I2C_Read... [10:03:54]Read from MH i2c: F0 09 00 08 09 00 0C 95 5D 66 6A 96 4A 66 1D [10:03:54]GetLastDocTimeStamp 1717408437 [10:03:54]current date 1717409036 [10:03:54]FM_GetShiftState [10:03:54]SAM_PROTO_GetShiftState [10:03:54]wFMCommunicate request_size=4 [10:03:54]MH_SAM_APDU [10:03:54]CAPDU: 80 13 01 00 [10:03:54]Write to MH i2c: E2 08 00 09 09 80 13 01 00 00 00 00 00 8F [10:03:54]Write i2c OK [10:03:54]MH_I2C_Read... [10:03:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:03:54]Read from MH i2c: E2 [10:03:54]MH_I2C_Read... [10:03:54]Read from MH i2c: E2 0E 00 [10:03:54]MH_I2C_Read... [10:03:54]Read from MH i2c: E2 0E 00 09 09 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 5B [10:03:54]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [10:03:54]wFMCommunicate OK [10:03:54]SAM_PROTO_GetShiftState done [10:03:54]FM_GetShiftState done [10:03:54]opened in 1717373173 [10:03:54]opened+sec_in_day 1717459573 [10:03:54]quantity*price = 50200 [10:03:54]sum+1 = 50201 [10:03:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 502.00 НСП 1% : 4.44 НДС 12% : 53.31 Наличными: 502.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 37 03.06.2024 10:03 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63779 ФПД: 208887414341213 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T100356&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63779&fm=208887414341213&tin=02508201610067®Number=0000000000092737&sum=50200 0 [10:03:55]StoreToDocumentArchive [10:03:55]shift 373 fd 63779 [10:03:55]save to /storage/0373/doc_00063779 [10:03:55]save last doc name /storage/0373/doc_00063779 to /storage/kkm_last_doc_name [10:03:55]save OK [10:03:55]Clear old archive folders... [10:03:55]ProcessDocumentItem done err = 0, tmpTLVsize=307 [10:03:55]tlvbuf is 00CFFBB0 [10:03:55]SAM_PROTO_ClearQueue [10:03:55]wFMCommunicate request_size=4 [10:03:55]MH_SAM_APDU [10:03:55]CAPDU: 80 09 00 00 [10:03:55]Write to MH i2c: E2 08 00 16 09 80 09 00 00 00 00 00 00 91 [10:03:55]Write i2c OK [10:03:55]MH_I2C_Read... [10:03:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:03:55]Read from MH i2c: E2 [10:03:55]MH_I2C_Read... [10:03:55]Read from MH i2c: E2 03 00 [10:03:55]MH_I2C_Read... [10:03:55]Read from MH i2c: E2 03 00 16 09 00 90 00 93 [10:03:55]RAPDU: 90 00 [10:03:55]wFMCommunicate OK [10:03:55]SAM_PROTO_ClearQueue done [10:03:55]KKMCreateOFDPacket [10:03:55]OFDProtocolAddRootSTLVToBuf [10:03:55]FM_MakeSignedData [10:03:55]FM_MakeSignedData [10:03:55]SAM_PROTO_SignData [10:03:55]wFMCommunicate request_size=4 [10:03:55]MH_SAM_APDU [10:03:55]CAPDU: 80 0D 01 02 [10:03:55]Write to MH i2c: E2 08 00 17 09 80 0D 01 02 00 00 00 00 99 [10:03:55]Write i2c OK [10:03:55]MH_I2C_Read... [10:03:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:03:55]Read from MH i2c: E2 [10:03:55]MH_I2C_Read... [10:03:55]Read from MH i2c: E2 03 00 [10:03:55]MH_I2C_Read... [10:03:55]Read from MH i2c: E2 03 00 17 09 00 90 00 94 [10:03:55]RAPDU: 90 00 [10:03:55]wFMCommunicate OK [10:03:55]wFMCommunicate request_size=255 [10:03:55]MH_SAM_APDU [10:03:55]CAPDU: 80 0D 02 02 FA 03 00 33 01 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 32 30 30 30 30 32 38 34 31 30 30 32 35 06 04 41 00 D0 9E D1 87 D0 BA D0 B8 20 D1 81 D0 BE D0 BB D0 BD D1 86 D0 B5 D0 B7 D0 B0 D1 89 D0 B8 D1 82 D0 BD D1 8B D0 B5 20 D0 B2 20 D0 B0 D1 81 D1 81 D0 BE D1 80 D1 82 D0 B8 D0 BC D0 B5 D0 BD D1 82 D0 B5 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 18 C4 00 00 00 00 13 04 06 00 18 C4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 C4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BC 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 14 00 00 00 00 07 04 06 00 18 C4 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 0C 95 5D 66 0E 04 04 00 75 01 00 00 B9 04 [10:03:55]Write to MH i2c: E2 02 01 18 09 80 0D 02 02 FA 00 03 00 33 01 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 32 30 30 30 30 32 38 34 31 30 30 32 35 06 04 41 00 D0 9E D1 87 D0 BA D0 B8 20 D1 81 D0 BE D0 BB D0 BD D1 86 D0 B5 D0 B7 D0 B0 D1 89 D0 B8 D1 82 D0 BD D1 8B D0 B5 20 D0 B2 20 D0 B0 D1 81 D1 81 D0 BE D1 80 D1 82 D0 B8 D0 BC D0 B5 D0 BD D1 82 D0 B5 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 18 C4 00 00 00 00 13 04 06 00 18 C4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 C4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BC 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 14 00 00 00 00 07 04 06 00 18 C4 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 0C 95 5D 66 0E 04 04 00 75 01 00 00 B9 04 00 00 18 [10:03:55]Write i2c OK [10:03:55]MH_I2C_Read... [10:03:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:03:56]Read from MH i2c: E2 [10:03:56]MH_I2C_Read... [10:03:56]Read from MH i2c: E2 03 00 [10:03:56]MH_I2C_Read... [10:03:56]Read from MH i2c: E2 03 00 18 09 00 90 00 95 [10:03:56]RAPDU: 90 00 [10:03:56]wFMCommunicate OK [10:03:56]wFMCommunicate request_size=66 [10:03:56]MH_SAM_APDU [10:03:56]CAPDU: 80 0D 02 02 3D 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 23 F9 00 00 35 04 06 00 BD FB 64 21 3E 5D [10:03:56]Write to MH i2c: E2 45 00 19 09 80 0D 02 02 3D 00 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 23 F9 00 00 35 04 06 00 BD FB 64 21 3E 5D 00 00 E4 [10:03:56]Write i2c OK [10:03:56]MH_I2C_Read... [10:03:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:03:56]Read from MH i2c: E2 [10:03:56]MH_I2C_Read... [10:03:56]Read from MH i2c: E2 03 00 [10:03:56]MH_I2C_Read... [10:03:56]Read from MH i2c: E2 03 00 19 09 00 90 00 96 [10:03:56]RAPDU: 90 00 [10:03:56]wFMCommunicate OK [10:03:56]wFMCommunicate request_size=4 [10:03:56]MH_SAM_APDU [10:03:56]CAPDU: 80 0D 03 02 [10:03:56]Write to MH i2c: E2 08 00 1A 09 80 0D 03 02 00 00 00 00 9E [10:03:56]Write i2c OK [10:03:56]MH_I2C_Read... [10:03:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:03:56]Read from MH i2c: E2 [10:03:56]MH_I2C_Read... [10:03:56]Read from MH i2c: E2 0B 00 [10:03:56]MH_I2C_Read... [10:03:56]Read from MH i2c: E2 0B 00 1A 09 00 6D 24 BC D3 01 3F 53 ED 90 00 3F [10:03:56]RAPDU: 6D 24 BC D3 01 3F 53 ED 90 00 [10:03:56]wFMCommunicate OK [10:03:56]SAM_PROTO_SignData done [10:03:56]FM_MakeSignedData done [10:03:56]CreateOFDProtocolMessage [10:03:56]wFMCommunicate request_size=4 [10:03:56]MH_SAM_APDU [10:03:56]CAPDU: 80 11 00 00 [10:03:56]Write to MH i2c: E2 08 00 1B 09 80 11 00 00 00 00 00 00 9E [10:03:56]Write i2c OK [10:03:56]MH_I2C_Read... [10:03:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:03:56]Read from MH i2c: E2 [10:03:56]MH_I2C_Read... [10:03:56]Read from MH i2c: E2 17 00 [10:03:56]MH_I2C_Read... [10:03:56]Read from MH i2c: E2 17 00 1B 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 F0 [10:03:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [10:03:56]wFMCommunicate OK [10:03:56]CreateOFDProtocolMessage done [10:03:56]OFDSenderStorePacket 63779 [10:03:56]StoreOFDPacket docnum=63779 [10:03:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 47 01 00 00 94 BF 3F 01 D8 F6 5A 03 01 00 03 00 33 01 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 32 30 30 30 30 32 38 34 31 30 30 32 35 06 04 41 00 D0 9E D1 87 D0 BA D0 B8 20 D1 81 D0 BE D0 BB D0 BD D1 86 D0 B5 D0 B7 D0 B0 D1 89 D0 B8 D1 82 D0 BD D1 8B D0 B5 20 D0 B2 20 D0 B0 D1 81 D1 81 D0 BE D1 80 D1 82 D0 B8 D0 BC D0 B5 D0 BD D1 82 D0 B5 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 18 C4 00 00 00 00 13 04 06 00 18 C4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 C4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BC 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 14 00 00 00 00 07 04 06 00 18 C4 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 0C 95 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 23 F9 00 00 35 04 06 00 BD FB 64 21 3E 5D 6D 24 BC D3 01 3F 53 ED [10:03:56]CheckFolder [10:03:56]dirname=/storage/ofd_packets [10:03:56]CheckFolder done [10:03:56]ProducePacketName [10:03:56]name=ofd_packets/00063779 [10:03:56]NVStorageSaveData ofd_packets/00063779 [10:03:56]File name is /storage/ofd_packets/00063779 [10:03:56]Write 357 bytes [10:03:56]NVStorageSaveData done [10:03:56]OFDSenderStorePacket done [10:03:56]KKMCreateOFDPacket done [10:03:56]NVStorageSaveData kkm_last_timestamp [10:03:56]File name is /storage/kkm_last_timestamp [10:03:56]Write 4 bytes [10:03:56]NVStorageSaveData done [10:03:56]ExternCall_PrintAddStr [10:03:56]wPrintStart [10:03:56]Write to MH i2c: 01 00 00 1C 09 25 [10:03:56]OFD Sender: Processing packet 63779 [packets to send 14, broken 13] [10:03:56]ProducePacketName [10:03:56]name=ofd_packets/00063779 [10:03:56]OFD Sender: To server: pG, [10:03:56]CommunicateWithHost lk.salyk.kg:30040 [10:03:56]ConnectInit lk.salyk.kg [10:03:56]Write i2c OK [10:03:56]MH_I2C_Read... [10:03:56]Read from MH i2c: 01 [10:03:56]MH_I2C_Read... [10:03:56]Read from MH i2c: 01 07 00 [10:03:56]MH_I2C_Read... [10:03:56]Read from MH i2c: 01 07 00 1C 09 00 00 00 00 00 FF 0F 3A [10:03:56]RasterBufferAndPrint [10:03:56]line Счет N : (3)73367 [10:03:56]line ИНН: 02508201610067 [10:03:56]line Контрольно-Кассовый Чек [10:03:56]line ПРОДАЖА [10:03:56]line Товар: 2000028410025 [10:03:56]line Очки солнцезащитные в ассортименте [10:03:56]line 1.000 * 502.00 [10:03:56]line = 502.00 [10:03:56]line НДС 12% НСП 1% [10:03:56]line > о реализуемом товаре [10:03:56]line ИТОГО: 502.00 [10:03:56]line НСП 1% : 4.44 [10:03:56]line НДС 12% : 53.31 [10:03:56]line Наличными: 502.00 [10:03:56]line Безнал.: 0.00 [10:03:56]line Место: АЗС № 117 "Партнер Нефть" [10:03:56]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [10:03:56]line СНО: Общий режим [10:03:56]line Чек 37 03.06.2024 10:03 [10:03:56]line Смена: 373 ФФД: 1.0 [10:03:56]line ЗНМ: 0300000031 [10:03:56]line РНМ: 0000000000092737 [10:03:56]line Версия ККМ: 001 [10:03:56]line ФМ: 0000000000875074 [10:03:56]line ФД: 63779 [10:03:56]line ФПД: 208887414341213 [10:03:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T100356&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63779&fm=208887414341213&tin=02508201610067®Number=0000000000092737&sum=50200 [10:03:56]line 0 [10:03:56]Connected sock=10 [10:03:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 47 01 00 00 94 BF 3F 01 D8 F6 5A 03 01 00 03 00 33 01 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 32 30 30 30 30 32 38 34 31 30 30 32 35 06 04 41 00 D0 9E D1 87 D0 BA D0 B8 20 D1 81 D0 BE D0 BB D0 BD D1 86 D0 B5 D0 B7 D0 B0 D1 89 D0 B8 D1 82 D0 BD D1 8B D0 B5 20 D0 B2 20 D0 B0 D1 81 D1 81 D0 BE D1 80 D1 82 D0 B8 D0 BC D0 B5 D0 BD D1 82 D0 B5 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 18 C4 00 00 00 00 13 04 06 00 18 C4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 C4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BC 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 14 00 00 00 00 07 04 06 00 18 C4 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 0C 95 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 23 F9 00 00 35 04 06 00 BD FB 64 21 3E 5D 6D 24 BC D3 01 3F 53 ED [10:03:56]written 0, free lines is 4095 [10:03:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 53 BE 47 00 46 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 35 30 37 34 10 04 04 00 23 F9 00 00 F4 03 04 00 DE 40 5D 66 B6 04 01 00 00 B4 32 76 F5 67 29 4B B4 [10:03:56]CommunicateWithHost err = 0 [10:03:56]CheckOFDResponse [10:03:56]1017 (14) - 77093643461234 [10:03:56]1041 (16) - 0000000000875074 [10:03:56]1040 (4) - 63779 [10:03:56]1012 (4) - 03.06.2024 04:04 [10:03:56]1206 (1) - 0 [10:03:56]OFD Sender: Remove packet 63779 [10:03:56]ProducePacketName [10:03:56]name=ofd_packets/00063779 [10:03:56]NVStorageDeleteData [10:03:57]Write to MH i2c: 01 00 00 45 09 4E [10:03:57]Write i2c OK [10:03:57]MH_I2C_Read... [10:03:57]Read from MH i2c: 01 [10:03:57]MH_I2C_Read... [10:03:57]Read from MH i2c: 01 07 00 [10:03:57]MH_I2C_Read... [10:03:57]Read from MH i2c: 01 07 00 45 09 00 00 00 00 00 E0 0C 41 [10:03:57]RasterBufferAndPrint [10:03:57]line [10:03:57]line [10:03:57]line [10:03:57]line [10:03:57]line [10:03:57]written 0, free lines is 3305 [10:03:57]MH_Cut [10:03:57]Write to MH i2c: D1 01 00 4C 09 01 27 [10:03:57]Write i2c OK [10:03:57]MH_I2C_Read... [10:03:57]Read from MH i2c: D1 [10:03:57]MH_I2C_Read... [10:03:57]Read from MH i2c: D1 01 00 [10:03:57]MH_I2C_Read... [10:03:57]Read from MH i2c: D1 01 00 4C 09 00 26 [10:03:57]Write to MH i2c: 01 00 00 4D 09 56 [10:03:57]Write i2c OK [10:03:57]MH_I2C_Read... [10:03:57]OFD Sender: No OFD packet to send [10:03:58]*** Cut start [10:03:58]*** Partial cut [10:03:58]*** CUTSNS_PIN = 1 [10:03:58]*** CUTSNS_PIN = 0 [10:03:58]*** Brake cut motor [10:03:58]Read from MH i2c: 01 [10:03:58]MH_I2C_Read... [10:03:58]*** Stop cut motor [10:03:58]*** Cut end [10:03:58]Read from MH i2c: 01 07 00 [10:03:58]MH_I2C_Read... [10:03:58]Read from MH i2c: 01 07 00 4D 09 00 00 00 00 00 FF 0F 6B [10:03:58]process_action close_receipt done [10:03:58]requested_data is exist [10:03:58]produce_requested_data [10:03:58]requested_item fm.sn is exist - process it [10:03:58]wFMCommunicate request_size=4 [10:03:58]MH_SAM_APDU [10:03:58]CAPDU: 80 11 00 00 [10:03:58]Write to MH i2c: E2 08 00 4E 09 80 11 00 00 00 00 00 00 D1 [10:03:58]Write i2c OK [10:03:58]MH_I2C_Read... [10:03:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:03:58]Read from MH i2c: E2 [10:03:58]MH_I2C_Read... [10:03:58]Read from MH i2c: E2 17 00 [10:03:58]MH_I2C_Read... [10:03:58]Read from MH i2c: E2 17 00 4E 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 23 [10:03:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [10:03:58]wFMCommunicate OK [10:03:58]requested_item fd.num is exist - process it [10:03:58]SAM_PROTO_GetFieldsCounters [10:03:58]wFMCommunicate request_size=4 [10:03:58]MH_SAM_APDU [10:03:58]CAPDU: 80 13 00 00 [10:03:58]Write to MH i2c: E2 08 00 4F 09 80 13 00 00 00 00 00 00 D4 [10:03:58]Write i2c OK [10:03:58]MH_I2C_Read... [10:03:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:03:58]Read from MH i2c: E2 [10:03:58]MH_I2C_Read... [10:03:58]Read from MH i2c: E2 62 00 [10:03:58]MH_I2C_Read... [10:03:58]Read from MH i2c: E2 62 00 4F 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 23 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 F8 [10:03: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 23 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:03:58]wFMCommunicate OK [10:03:58]SAM_PROTO_GetFieldsCounters done [10:03:58]requested_item shift.num is exist - process it [10:03:58]requested_item shift.opened is exist - process it [10:03:58]req_shift_opened [10:03:58]FM_GetShiftState [10:03:58]SAM_PROTO_GetShiftState [10:03:58]wFMCommunicate request_size=4 [10:03:58]MH_SAM_APDU [10:03:58]CAPDU: 80 13 01 00 [10:03:58]Write to MH i2c: E2 08 00 50 09 80 13 01 00 00 00 00 00 D6 [10:03:58]Write i2c OK [10:03:58]MH_I2C_Read... [10:03:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:03:58]Read from MH i2c: E2 [10:03:58]MH_I2C_Read... [10:03:58]Read from MH i2c: E2 0E 00 [10:03:58]MH_I2C_Read... [10:03:58]Read from MH i2c: E2 0E 00 50 09 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 A2 [10:03:58]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [10:03:58]wFMCommunicate OK [10:03:58]SAM_PROTO_GetShiftState done [10:03:58]FM_GetShiftState done [10:03:58]req_shift_opened done [10:03:58]requested_item shift.open_date is exist - process it [10:03:58]req_shift_open_date [10:03:58]req_shift_open_date done [10:03:58]produce_requested_data done [10:03:58]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63779,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [10:03:58]process_action_free close_receipt [10:03:58]json_value_free [10:03:58]json_value_free done [10:03:58]process_json_proto returns [10:03:58]Send response to host [10:03:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63779,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [10:03:58]free response buf [10:03:58]execute_script done [10:03:58]execute_script returns [10:03:58]free content buf [10:03:58]Sock 9.Close socket [10:03:58]Sock 9.Thread stoped [10:04:02]OFD Sender: No OFD packet to send [10:04:07]OFD Sender: No OFD packet to send [10:04:12]OFD Sender: No OFD packet to send [10:04:17]OFD Sender: No OFD packet to send [10:04:22]OFD Sender: No OFD packet to send [10:04:27]OFD Sender: No OFD packet to send [10:04:32]OFD Sender: No OFD packet to send [10:04:37]OFD Sender: No OFD packet to send [10:04:42]OFD Sender: No OFD packet to send [10:04:47]OFD Sender: No OFD packet to send [10:04:52]OFD Sender: No OFD packet to send [10:04:57]OFD Sender: No OFD packet to send [10:05:02]OFD Sender: No OFD packet to send [10:05:07]OFD Sender: No OFD packet to send [10:05:12]OFD Sender: No OFD packet to send [10:05:17]OFD Sender: No OFD packet to send [10:05:22]OFD Sender: No OFD packet to send [10:05:27]OFD Sender: No OFD packet to send [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]OFD Sender: No OFD packet to send [10:06:47]OFD Sender: No OFD packet to send [10:06:52]OFD Sender: No OFD packet to send [10:06:57]OFD Sender: No OFD packet to send [10:07:02]OFD Sender: No OFD packet to send [10:07:07]OFD Sender: No OFD packet to send [10:07:12]OFD Sender: No OFD packet to send [10:07:17]OFD Sender: No OFD packet to send [10:07:22]OFD Sender: No OFD packet to send [10:07:27]OFD Sender: No OFD packet to send [10:07:32]OFD Sender: No OFD packet to send [10:07:37]OFD Sender: No OFD packet to send [10:07:42]OFD Sender: No OFD packet to send [10:07:47]OFD Sender: No OFD packet to send [10:07:52]OFD Sender: No OFD packet to send [10:07:57]OFD Sender: No OFD packet to send [10:08:02]OFD Sender: No OFD packet to send [10:08:07]OFD Sender: No OFD packet to send [10:08:12]OFD Sender: No OFD packet to send [10:08:17]OFD Sender: No OFD packet to send [10:08:22]OFD Sender: No OFD packet to send [10:08:27]OFD Sender: No OFD packet to send [10:08:32]OFD Sender: No OFD packet to send [10:08:37]OFD Sender: No OFD packet to send [10:08:42]OFD Sender: No OFD packet to send [10:08:47]OFD Sender: No OFD packet to send [10:08:52]OFD Sender: No OFD packet to send [10:08:57]OFD Sender: No OFD packet to send [10:09:02]OFD Sender: No OFD packet to send [10:09:07]OFD Sender: No OFD packet to send [10:09:12]OFD Sender: No OFD packet to send [10:09:17]OFD Sender: No OFD packet to send [10:09:22]OFD Sender: No OFD packet to send [10:09:24]accept exits with 7 [10:09:24]New connection [10:09:24]New thread 3067374948 created [10:09:24]Thread 3067518308 joined [10:09:24]Waiting for new connection... [10:09:24] Sock 7.Parse request [10:09:24]Sock 7.Check first char [10:09:24]Sock 7.First char is OK [10:09:24]request: POST /json_proto HTTP/1.0 [10:09:24]Method: POST [10:09:24]URL: /json_proto [10:09:24]Method is POST - this is cgi request [10:09:24]url: /json_proto [10:09:24]query_string will be loaded in cgi processing [10:09:24]execute_cgi json_proto POST (null) [10:09:24]execute_cgi path=json_proto method=POST [10:09:24]POST find Content-Length [10:09:24]Host: 172.17.60.69:8080 [10:09:24]Content-Length: 645 [10:09:24]Content-Type: application/json [10:09:24] [10:09:24]POST finish read [10:09:24]Found Content-Length = 645 [10:09:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73368", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:09:24]execute_script... [10:09:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73368", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:09:24]POST & json_proto [10:09:24]process_json_proto [10:09:24]json parsed OK: [10:09:24]protocol is kg_v1.0 [10:09:24]action value=close_receipt [10:09:24]process_action close_receipt [10:09:24]cmd_close_receipt [10:09:24]MH_GetDate [10:09:24]Write to MH i2c: F0 00 00 51 09 49 [10:09:24]Write i2c OK [10:09:24]MH_I2C_Read... [10:09:24]Read from MH i2c: F0 [10:09:24]MH_I2C_Read... [10:09:24]Read from MH i2c: F0 09 00 [10:09:24]MH_I2C_Read... [10:09:24]Read from MH i2c: F0 09 00 51 09 00 56 96 5D 66 6A 96 4A 66 B1 [10:09:24]GetLastDocTimeStamp 1717409036 [10:09:24]current date 1717409366 [10:09:24]FM_GetShiftState [10:09:24]SAM_PROTO_GetShiftState [10:09:24]wFMCommunicate request_size=4 [10:09:24]MH_SAM_APDU [10:09:24]CAPDU: 80 13 01 00 [10:09:24]Write to MH i2c: E2 08 00 52 09 80 13 01 00 00 00 00 00 D8 [10:09:24]Write i2c OK [10:09:24]MH_I2C_Read... [10:09:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:09:24]Read from MH i2c: E2 [10:09:24]MH_I2C_Read... [10:09:24]Read from MH i2c: E2 0E 00 [10:09:24]MH_I2C_Read... [10:09:24]Read from MH i2c: E2 0E 00 52 09 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 A4 [10:09:24]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [10:09:24]wFMCommunicate OK [10:09:24]SAM_PROTO_GetShiftState done [10:09:24]FM_GetShiftState done [10:09:24]opened in 1717373173 [10:09:24]opened+sec_in_day 1717459573 [10:09:24]quantity*price = 12500 [10:09:24]sum+1 = 12501 [10:09:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 125.00 НСП 1% : 1.11 НДС 12% : 13.27 Наличными: 125.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 38 03.06.2024 10:09 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63780 ФПД: 218729099963494 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T100926&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63780&fm=218729099963494&tin=02508201610067®Number=0000000000092737&sum=12500 0 [10:09:25]StoreToDocumentArchive [10:09:25]shift 373 fd 63780 [10:09:25]save to /storage/0373/doc_00063780 [10:09:25]save last doc name /storage/0373/doc_00063780 to /storage/kkm_last_doc_name [10:09:25]save OK [10:09:25]Clear old archive folders... [10:09:25]ProcessDocumentItem done err = 0, tmpTLVsize=282 [10:09:25]tlvbuf is 00D70320 [10:09:25]SAM_PROTO_ClearQueue [10:09:25]wFMCommunicate request_size=4 [10:09:25]MH_SAM_APDU [10:09:25]CAPDU: 80 09 00 00 [10:09:25]Write to MH i2c: E2 08 00 5F 09 80 09 00 00 00 00 00 00 DA [10:09:25]Write i2c OK [10:09:25]MH_I2C_Read... [10:09:25]Read from MH i2c: E2 [10:09:25]MH_I2C_Read... [10:09:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:09:25]Read from MH i2c: E2 03 00 [10:09:25]MH_I2C_Read... [10:09:25]Read from MH i2c: E2 03 00 5F 09 00 90 00 DC [10:09:25]RAPDU: 90 00 [10:09:25]wFMCommunicate OK [10:09:25]SAM_PROTO_ClearQueue done [10:09:25]KKMCreateOFDPacket [10:09:25]OFDProtocolAddRootSTLVToBuf [10:09:25]FM_MakeSignedData [10:09:25]FM_MakeSignedData [10:09:25]SAM_PROTO_SignData [10:09:25]wFMCommunicate request_size=4 [10:09:25]MH_SAM_APDU [10:09:25]CAPDU: 80 0D 01 02 [10:09:25]Write to MH i2c: E2 08 00 60 09 80 0D 01 02 00 00 00 00 E2 [10:09:25]Write i2c OK [10:09:25]MH_I2C_Read... [10:09:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:09:26]Read from MH i2c: E2 [10:09:26]MH_I2C_Read... [10:09:26]Read from MH i2c: E2 03 00 [10:09:26]MH_I2C_Read... [10:09:26]Read from MH i2c: E2 03 00 60 09 00 90 00 DD [10:09:26]RAPDU: 90 00 [10:09:26]wFMCommunicate OK [10:09:26]wFMCommunicate request_size=255 [10:09:26]MH_SAM_APDU [10:09:26]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 56 96 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 [10:09:26]Write to MH i2c: E2 02 01 61 09 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 56 96 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 00 00 2E [10:09:26]Write i2c OK [10:09:26]MH_I2C_Read... [10:09:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:09:26]Read from MH i2c: E2 [10:09:26]MH_I2C_Read... [10:09:26]Read from MH i2c: E2 03 00 [10:09:26]MH_I2C_Read... [10:09:26]Read from MH i2c: E2 03 00 61 09 00 90 00 DE [10:09:26]RAPDU: 90 00 [10:09:26]wFMCommunicate OK [10:09:26]wFMCommunicate request_size=41 [10:09:26]MH_SAM_APDU [10:09:26]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 24 F9 00 00 35 04 06 00 C6 EE D6 4E 2C 66 [10:09:26]Write to MH i2c: E2 2C 00 62 09 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 24 F9 00 00 35 04 06 00 C6 EE D6 4E 2C 66 00 00 3A [10:09:26]Write i2c OK [10:09:26]MH_I2C_Read... [10:09:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:09:26]Read from MH i2c: E2 [10:09:26]MH_I2C_Read... [10:09:26]Read from MH i2c: E2 03 00 [10:09:26]MH_I2C_Read... [10:09:26]Read from MH i2c: E2 03 00 62 09 00 90 00 DF [10:09:26]RAPDU: 90 00 [10:09:26]wFMCommunicate OK [10:09:26]wFMCommunicate request_size=4 [10:09:26]MH_SAM_APDU [10:09:26]CAPDU: 80 0D 03 02 [10:09:26]Write to MH i2c: E2 08 00 63 09 80 0D 03 02 00 00 00 00 E7 [10:09:26]Write i2c OK [10:09:26]MH_I2C_Read... [10:09:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:09:26]Read from MH i2c: E2 [10:09:26]MH_I2C_Read... [10:09:26]Read from MH i2c: E2 0B 00 [10:09:26]MH_I2C_Read... [10:09:26]Read from MH i2c: E2 0B 00 63 09 00 D6 E5 F9 43 08 F9 04 2F 90 00 13 [10:09:26]RAPDU: D6 E5 F9 43 08 F9 04 2F 90 00 [10:09:26]wFMCommunicate OK [10:09:26]SAM_PROTO_SignData done [10:09:26]FM_MakeSignedData done [10:09:26]CreateOFDProtocolMessage [10:09:26]wFMCommunicate request_size=4 [10:09:26]MH_SAM_APDU [10:09:26]CAPDU: 80 11 00 00 [10:09:26]Write to MH i2c: E2 08 00 64 09 80 11 00 00 00 00 00 00 E7 [10:09:26]Write i2c OK [10:09:26]MH_I2C_Read... [10:09:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:09:26]Read from MH i2c: E2 [10:09:26]MH_I2C_Read... [10:09:26]Read from MH i2c: E2 17 00 [10:09:26]MH_I2C_Read... [10:09:26]Read from MH i2c: E2 17 00 64 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 39 [10:09:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [10:09:26]wFMCommunicate OK [10:09:26]CreateOFDProtocolMessage done [10:09:26]OFDSenderStorePacket 63780 [10:09:26]StoreOFDPacket docnum=63780 [10:09:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 2E 01 00 00 21 CA 26 01 56 D2 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 56 96 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 24 F9 00 00 35 04 06 00 C6 EE D6 4E 2C 66 D6 E5 F9 43 08 F9 04 2F [10:09:26]CheckFolder [10:09:26]dirname=/storage/ofd_packets [10:09:26]CheckFolder done [10:09:26]ProducePacketName [10:09:26]name=ofd_packets/00063780 [10:09:26]NVStorageSaveData ofd_packets/00063780 [10:09:26]File name is /storage/ofd_packets/00063780 [10:09:26]Write 332 bytes [10:09:26]NVStorageSaveData done [10:09:26]OFDSenderStorePacket done [10:09:26]KKMCreateOFDPacket done [10:09:26]NVStorageSaveData kkm_last_timestamp [10:09:26]File name is /storage/kkm_last_timestamp [10:09:26]Write 4 bytes [10:09:26]NVStorageSaveData done [10:09:26]ExternCall_PrintAddStr [10:09:26]wPrintStart [10:09:26]Write to MH i2c: 01 00 00 65 09 6E [10:09:26]Write i2c OK [10:09:26]MH_I2C_Read... [10:09:26]Read from MH i2c: 01 [10:09:26]MH_I2C_Read... [10:09:26]Read from MH i2c: 01 07 00 [10:09:26]MH_I2C_Read... [10:09:26]Read from MH i2c: 01 07 00 65 09 00 00 00 00 00 FF 0F 83 [10:09:26]RasterBufferAndPrint [10:09:26]line Счет N : (3)73368 [10:09:26]line ИНН: 02508201610067 [10:09:26]line Контрольно-Кассовый Чек [10:09:26]line ПРОДАЖА [10:09:26]line Товар: 2000036220012 [10:09:26]line Кофе Капучино XL(GABB TRADE) [10:09:26]line 1.000 * 125.00 [10:09:26]line = 125.00 [10:09:26]line НДС 12% НСП 1% [10:09:26]line > о реализуемом товаре [10:09:26]line ИТОГО: 125.00 [10:09:26]line НСП 1% : 1.11 [10:09:26]line НДС 12% : 13.27 [10:09:26]line Наличными: 125.00 [10:09:26]line Безнал.: 0.00 [10:09:26]line Место: АЗС № 117 "Партнер Нефть" [10:09:26]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [10:09:26]line СНО: Общий режим [10:09:26]line Чек 38 03.06.2024 10:09 [10:09:26]line Смена: 373 ФФД: 1.0 [10:09:26]line ЗНМ: 0300000031 [10:09:26]line РНМ: 0000000000092737 [10:09:26]line Версия ККМ: 001 [10:09:26]line ФМ: 0000000000875074 [10:09:26]line ФД: 63780 [10:09:26]line ФПД: 218729099963494 [10:09:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T100926&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63780&fm=218729099963494&tin=02508201610067®Number=0000000000092737&sum=12500 [10:09:26]line 0 [10:09:26]OFD Sender: Processing packet 63780 [packets to send 14, broken 13] [10:09:26]ProducePacketName [10:09:26]name=ofd_packets/00063780 [10:09:26]OFD Sender: To server: pG, [10:09:26]CommunicateWithHost lk.salyk.kg:30040 [10:09:26]ConnectInit lk.salyk.kg [10:09:26]written 0, free lines is 4095 [10:09:26]Connected sock=10 [10:09:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 2E 01 00 00 21 CA 26 01 56 D2 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 56 96 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 24 F9 00 00 35 04 06 00 C6 EE D6 4E 2C 66 D6 E5 F9 43 08 F9 04 2F [10:09:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 22 C3 47 00 F8 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 35 30 37 34 10 04 04 00 24 F9 00 00 F4 03 04 00 28 42 5D 66 B6 04 01 00 00 AF D0 2B BF AE 5D A4 1A [10:09:27]CommunicateWithHost err = 0 [10:09:27]CheckOFDResponse [10:09:27]1017 (14) - 77093643461234 [10:09:27]1041 (16) - 0000000000875074 [10:09:27]1040 (4) - 63780 [10:09:27]1012 (4) - 03.06.2024 04:10 [10:09:27]1206 (1) - 0 [10:09:27]OFD Sender: Remove packet 63780 [10:09:27]ProducePacketName [10:09:27]name=ofd_packets/00063780 [10:09:27]NVStorageDeleteData [10:09:27]Write to MH i2c: 01 00 00 8E 09 97 [10:09:27]Write i2c OK [10:09:27]MH_I2C_Read... [10:09:27]Read from MH i2c: 01 [10:09:27]MH_I2C_Read... [10:09:27]Read from MH i2c: 01 07 00 [10:09:27]MH_I2C_Read... [10:09:27]Read from MH i2c: 01 07 00 8E 09 00 00 00 00 00 EE 0C 98 [10:09:27]RasterBufferAndPrint [10:09:27]line [10:09:27]line [10:09:27]line [10:09:27]line [10:09:27]line [10:09:27]written 0, free lines is 3319 [10:09:27]MH_Cut [10:09:27]Write to MH i2c: D1 01 00 95 09 01 70 [10:09:27]Write i2c OK [10:09:27]MH_I2C_Read... [10:09:27]Read from MH i2c: D1 [10:09:27]MH_I2C_Read... [10:09:27]Read from MH i2c: D1 01 00 [10:09:27]MH_I2C_Read... [10:09:27]Read from MH i2c: D1 01 00 95 09 00 6F [10:09:27]Write to MH i2c: 01 00 00 96 09 9F [10:09:27]Write i2c OK [10:09:27]MH_I2C_Read... [10:09:27]OFD Sender: No OFD packet to send [10:09:28]*** Cut start [10:09:28]*** Partial cut [10:09:28]*** CUTSNS_PIN = 1 [10:09:28]*** CUTSNS_PIN = 0 [10:09:28]*** Brake cut motor [10:09:28]Read from MH i2c: 01 [10:09:28]MH_I2C_Read... [10:09:28]*** Stop cut motor [10:09:28]*** Cut end [10:09:28]Read from MH i2c: 01 07 00 [10:09:28]MH_I2C_Read... [10:09:28]Read from MH i2c: 01 07 00 96 09 00 00 00 00 00 FF 0F B4 [10:09:28]process_action close_receipt done [10:09:28]requested_data is exist [10:09:28]produce_requested_data [10:09:28]requested_item fm.sn is exist - process it [10:09:28]wFMCommunicate request_size=4 [10:09:28]MH_SAM_APDU [10:09:28]CAPDU: 80 11 00 00 [10:09:28]Write to MH i2c: E2 08 00 97 09 80 11 00 00 00 00 00 00 1A [10:09:28]Write i2c OK [10:09:28]MH_I2C_Read... [10:09:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:09:28]Read from MH i2c: E2 [10:09:28]MH_I2C_Read... [10:09:28]Read from MH i2c: E2 17 00 [10:09:28]MH_I2C_Read... [10:09:28]Read from MH i2c: E2 17 00 97 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 6C [10:09:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [10:09:28]wFMCommunicate OK [10:09:28]requested_item fd.num is exist - process it [10:09:28]SAM_PROTO_GetFieldsCounters [10:09:28]wFMCommunicate request_size=4 [10:09:28]MH_SAM_APDU [10:09:28]CAPDU: 80 13 00 00 [10:09:28]Write to MH i2c: E2 08 00 98 09 80 13 00 00 00 00 00 00 1D [10:09:28]Write i2c OK [10:09:28]MH_I2C_Read... [10:09:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:09:28]Read from MH i2c: E2 [10:09:28]MH_I2C_Read... [10:09:28]Read from MH i2c: E2 62 00 [10:09:28]MH_I2C_Read... [10:09:28]Read from MH i2c: E2 62 00 98 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 24 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 45 [10:09: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 24 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:09:28]wFMCommunicate OK [10:09:28]SAM_PROTO_GetFieldsCounters done [10:09:28]requested_item shift.num is exist - process it [10:09:28]requested_item shift.opened is exist - process it [10:09:28]req_shift_opened [10:09:28]FM_GetShiftState [10:09:28]SAM_PROTO_GetShiftState [10:09:28]wFMCommunicate request_size=4 [10:09:28]MH_SAM_APDU [10:09:28]CAPDU: 80 13 01 00 [10:09:28]Write to MH i2c: E2 08 00 99 09 80 13 01 00 00 00 00 00 1F [10:09:28]Write i2c OK [10:09:28]MH_I2C_Read... [10:09:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:09:28]Read from MH i2c: E2 [10:09:28]MH_I2C_Read... [10:09:28]Read from MH i2c: E2 0E 00 [10:09:28]MH_I2C_Read... [10:09:28]Read from MH i2c: E2 0E 00 99 09 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 EB [10:09:28]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [10:09:28]wFMCommunicate OK [10:09:28]SAM_PROTO_GetShiftState done [10:09:28]FM_GetShiftState done [10:09:28]req_shift_opened done [10:09:28]requested_item shift.open_date is exist - process it [10:09:28]req_shift_open_date [10:09:28]req_shift_open_date done [10:09:28]produce_requested_data done [10:09:28]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63780,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [10:09:28]process_action_free close_receipt [10:09:28]json_value_free [10:09:28]json_value_free done [10:09:28]process_json_proto returns [10:09:28]Send response to host [10:09:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63780,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [10:09:28]free response buf [10:09:28]execute_script done [10:09:28]execute_script returns [10:09:28]free content buf [10:09:28]Sock 7.Close socket [10:09:28]Sock 7.Thread stoped [10:09:32]OFD Sender: No OFD packet to send [10:09:37]OFD Sender: No OFD packet to send [10:09:42]OFD Sender: No OFD packet to send [10:09:47]OFD Sender: No OFD packet to send [10:09:52]OFD Sender: No OFD packet to send [10:09:57]OFD Sender: No OFD packet to send [10:10:02]OFD Sender: No OFD packet to send [10:10:07]OFD Sender: No OFD packet to send [10:10:12]OFD Sender: No OFD packet to send [10:10:17]OFD Sender: No OFD packet to send [10:10:22]OFD Sender: No OFD packet to send [10:10:27]OFD Sender: No OFD packet to send [10:10:32]OFD Sender: No OFD packet to send [10:10:37]OFD Sender: No OFD packet to send [10:10:42]OFD Sender: No OFD packet to send [10:10:47]OFD Sender: No OFD packet to send [10:10:52]OFD Sender: No OFD packet to send [10:10:57]OFD Sender: No OFD packet to send [10:11:02]OFD Sender: No OFD packet to send [10:11:07]OFD Sender: No OFD packet to send [10:11:12]OFD Sender: No OFD packet to send [10:11:17]OFD Sender: No OFD packet to send [10:11:22]OFD Sender: No OFD packet to send [10:11:27]OFD Sender: No OFD packet to send [10:11:32]OFD Sender: No OFD packet to send [10:11:37]OFD Sender: No OFD packet to send [10:11:42]OFD Sender: No OFD packet to send [10:11:47]OFD Sender: No OFD packet to send [10:11:52]OFD Sender: No OFD packet to send [10:11:57]OFD Sender: No OFD packet to send [10:12:02]OFD Sender: No OFD packet to send [10:12:07]OFD Sender: No OFD packet to send [10:12:12]OFD Sender: No OFD packet to send [10:12:17]OFD Sender: No OFD packet to send [10:12:22]OFD Sender: No OFD packet to send [10:12:27]OFD Sender: No OFD packet to send [10:12:32]OFD Sender: No OFD packet to send [10:12:37]OFD Sender: No OFD packet to send [10:12:42]OFD Sender: No OFD packet to send [10:12:47]OFD Sender: No OFD packet to send [10:12:52]OFD Sender: No OFD packet to send [10:12:57]OFD Sender: No OFD packet to send [10:13:02]OFD Sender: No OFD packet to send [10:13:07]OFD Sender: No OFD packet to send [10:13:12]OFD Sender: No OFD packet to send [10:13:17]OFD Sender: No OFD packet to send [10:13:22]OFD Sender: No OFD packet to send [10:13:27]OFD Sender: No OFD packet to send [10:13:32]OFD Sender: No OFD packet to send [10:13:37]OFD Sender: No OFD packet to send [10:13:42]OFD Sender: No OFD packet to send [10:13:47]OFD Sender: No OFD packet to send [10:13:52]OFD Sender: No OFD packet to send [10:13:57]OFD Sender: No OFD packet to send [10:14:02]OFD Sender: No OFD packet to send [10:14:07]OFD Sender: No OFD packet to send [10:14:12]OFD Sender: No OFD packet to send [10:14:17]OFD Sender: No OFD packet to send [10:14:22]OFD Sender: No OFD packet to send [10:14:27]OFD Sender: No OFD packet to send [10:14:32]OFD Sender: No OFD packet to send [10:14:37]OFD Sender: No OFD packet to send [10:14:42]OFD Sender: No OFD packet to send [10:14:47]OFD Sender: No OFD packet to send [10:14:52]OFD Sender: No OFD packet to send [10:14:57]OFD Sender: No OFD packet to send [10:15:02]OFD Sender: No OFD packet to send [10:15:07]OFD Sender: No OFD packet to send [10:15:12]OFD Sender: No OFD packet to send [10:15:17]OFD Sender: No OFD packet to send [10:15:22]OFD Sender: No OFD packet to send [10:15:27]OFD Sender: No OFD packet to send [10:15:32]OFD Sender: No OFD packet to send [10:15:37]OFD Sender: No OFD packet to send [10:15:42]OFD Sender: No OFD packet to send [10:15:47]OFD Sender: No OFD packet to send [10:15:52]OFD Sender: No OFD packet to send [10:15:57]OFD Sender: No OFD packet to send [10:16:02]OFD Sender: No OFD packet to send [10:16:07]OFD Sender: No OFD packet to send [10:16:12]OFD Sender: No OFD packet to send [10:16:17]OFD Sender: No OFD packet to send [10:16:22]OFD Sender: No OFD packet to send [10:16:27]OFD Sender: No OFD packet to send [10:16:32]OFD Sender: No OFD packet to send [10:16:37]OFD Sender: No OFD packet to send [10:16:42]OFD Sender: No OFD packet to send [10:16:47]OFD Sender: No OFD packet to send [10:16:52]OFD Sender: No OFD packet to send [10:16:58]OFD Sender: No OFD packet to send [10:17:03]OFD Sender: No OFD packet to send [10:17:08]OFD Sender: No OFD packet to send [10:17:13]OFD Sender: No OFD packet to send [10:17:18]OFD Sender: No OFD packet to send [10:17:23]OFD Sender: No OFD packet to send [10:17:28]OFD Sender: No OFD packet to send [10:17:33]OFD Sender: No OFD packet to send [10:17:38]OFD Sender: No OFD packet to send [10:17:43]OFD Sender: No OFD packet to send [10:17:48]OFD Sender: No OFD packet to send [10:17:53]OFD Sender: No OFD packet to send [10:17:58]OFD Sender: No OFD packet to send [10:18:03]OFD Sender: No OFD packet to send [10:18:08]OFD Sender: No OFD packet to send [10:18:13]OFD Sender: No OFD packet to send [10:18:18]OFD Sender: No OFD packet to send [10:18:23]OFD Sender: No OFD packet to send [10:18:28]OFD Sender: No OFD packet to send [10:18:33]OFD Sender: No OFD packet to send [10:18:38]OFD Sender: No OFD packet to send [10:18:43]OFD Sender: No OFD packet to send [10:18:48]OFD Sender: No OFD packet to send [10:18:53]OFD Sender: No OFD packet to send [10:18:58]OFD Sender: No OFD packet to send [10:19:03]OFD Sender: No OFD packet to send [10:19:08]OFD Sender: No OFD packet to send [10:19:13]OFD Sender: No OFD packet to send [10:19:18]OFD Sender: No OFD packet to send [10:19:23]OFD Sender: No OFD packet to send [10:19:28]OFD Sender: No OFD packet to send [10:19:33]OFD Sender: No OFD packet to send [10:19:38]OFD Sender: No OFD packet to send [10:19:43]OFD Sender: No OFD packet to send [10:19:48]OFD Sender: No OFD packet to send [10:19:53]OFD Sender: No OFD packet to send [10:19:58]OFD Sender: No OFD packet to send [10:20:03]OFD Sender: No OFD packet to send [10:20:08]OFD Sender: No OFD packet to send [10:20:13]OFD Sender: No OFD packet to send [10:20:18]OFD Sender: No OFD packet to send [10:20:23]OFD Sender: No OFD packet to send [10:20:28]OFD Sender: No OFD packet to send [10:20:33]OFD Sender: No OFD packet to send [10:20:38]OFD Sender: No OFD packet to send [10:20:43]OFD Sender: No OFD packet to send [10:20:48]OFD Sender: No OFD packet to send [10:20:53]OFD Sender: No OFD packet to send [10:20:58]OFD Sender: No OFD packet to send [10:21:03]OFD Sender: No OFD packet to send [10:21:08]OFD Sender: No OFD packet to send [10:21:13]OFD Sender: No OFD packet to send [10:21:18]OFD Sender: No OFD packet to send [10:21:23]OFD Sender: No OFD packet to send [10:21:28]OFD Sender: No OFD packet to send [10:21:33]OFD Sender: No OFD packet to send [10:21:38]OFD Sender: No OFD packet to send [10:21:43]OFD Sender: No OFD packet to send [10:21:48]OFD Sender: No OFD packet to send [10:21:53]OFD Sender: No OFD packet to send [10:21:58]OFD Sender: No OFD packet to send [10:22:03]OFD Sender: No OFD packet to send [10:22:08]OFD Sender: No OFD packet to send [10:22:13]OFD Sender: No OFD packet to send [10:22:18]OFD Sender: No OFD packet to send [10:22:23]OFD Sender: No OFD packet to send [10:22:28]OFD Sender: No OFD packet to send [10:22:33]OFD Sender: No OFD packet to send [10:22:38]OFD Sender: No OFD packet to send [10:22:43]OFD Sender: No OFD packet to send [10:22:48]OFD Sender: No OFD packet to send [10:22:53]OFD Sender: No OFD packet to send [10:22:58]OFD Sender: No OFD packet to send [10:23:03]OFD Sender: No OFD packet to send [10:23:08]OFD Sender: No OFD packet to send [10:23:13]OFD Sender: No OFD packet to send [10:23:18]OFD Sender: No OFD packet to send [10:23:23]OFD Sender: No OFD packet to send [10:23:28]OFD Sender: No OFD packet to send [10:23:33]OFD Sender: No OFD packet to send [10:23:38]OFD Sender: No OFD packet to send [10:23:43]OFD Sender: No OFD packet to send [10:23:48]OFD Sender: No OFD packet to send [10:23:53]OFD Sender: No OFD packet to send [10:23:58]OFD Sender: No OFD packet to send [10:24:03]OFD Sender: No OFD packet to send [10:24:08]OFD Sender: No OFD packet to send [10:24:13]OFD Sender: No OFD packet to send [10:24:18]OFD Sender: No OFD packet to send [10:24:23]OFD Sender: No OFD packet to send [10:24:28]OFD Sender: No OFD packet to send [10:24:33]OFD Sender: No OFD packet to send [10:24:38]OFD Sender: No OFD packet to send [10:24:43]OFD Sender: No OFD packet to send [10:24:48]OFD Sender: No OFD packet to send [10:24:53]OFD Sender: No OFD packet to send [10:24:58]OFD Sender: No OFD packet to send [10:25:03]OFD Sender: No OFD packet to send [10:25:08]OFD Sender: No OFD packet to send [10:25:13]OFD Sender: No OFD packet to send [10:25:18]OFD Sender: No OFD packet to send [10:25:23]OFD Sender: No OFD packet to send [10:25:28]OFD Sender: No OFD packet to send [10:25:33]OFD Sender: No OFD packet to send [10:25:38]OFD Sender: No OFD packet to send [10:25:43]OFD Sender: No OFD packet to send [10:25:48]OFD Sender: No OFD packet to send [10:25:53]OFD Sender: No OFD packet to send [10:25:58]OFD Sender: No OFD packet to send [10:26:03]OFD Sender: No OFD packet to send [10:26:08]OFD Sender: No OFD packet to send [10:26:13]OFD Sender: No OFD packet to send [10:26:18]OFD Sender: No OFD packet to send [10:26:23]OFD Sender: No OFD packet to send [10:26:28]OFD Sender: No OFD packet to send [10:26:33]OFD Sender: No OFD packet to send [10:26:38]OFD Sender: No OFD packet to send [10:26:43]OFD Sender: No OFD packet to send [10:26:48]OFD Sender: No OFD packet to send [10:26:53]OFD Sender: No OFD packet to send [10:26:58]OFD Sender: No OFD packet to send [10:27:03]OFD Sender: No OFD packet to send [10:27:08]OFD Sender: No OFD packet to send [10:27:13]OFD Sender: No OFD packet to send [10:27:18]OFD Sender: No OFD packet to send [10:27:23]OFD Sender: No OFD packet to send [10:27:28]OFD Sender: No OFD packet to send [10:27:33]OFD Sender: No OFD packet to send [10:27:38]OFD Sender: No OFD packet to send [10:27:43]OFD Sender: No OFD packet to send [10:27:48]OFD Sender: No OFD packet to send [10:27:53]OFD Sender: No OFD packet to send [10:27:58]OFD Sender: No OFD packet to send [10:28:03]OFD Sender: No OFD packet to send [10:28:08]OFD Sender: No OFD packet to send [10:28:13]OFD Sender: No OFD packet to send [10:28:18]OFD Sender: No OFD packet to send [10:28:23]OFD Sender: No OFD packet to send [10:28:28]OFD Sender: No OFD packet to send [10:28:33]OFD Sender: No OFD packet to send [10:28:38]OFD Sender: No OFD packet to send [10:28:43]OFD Sender: No OFD packet to send [10:28:48]OFD Sender: No OFD packet to send [10:28:53]OFD Sender: No OFD packet to send [10:28:58]OFD Sender: No OFD packet to send [10:29:03]OFD Sender: No OFD packet to send [10:29:08]OFD Sender: No OFD packet to send [10:29:13]OFD Sender: No OFD packet to send [10:29:18]OFD Sender: No OFD packet to send [10:29:23]OFD Sender: No OFD packet to send [10:29:24]accept exits with 9 [10:29:24]New connection [10:29:24]New thread 3067518308 created [10:29:24]Thread 3067374948 joined [10:29:24]Waiting for new connection... [10:29:24] Sock 9.Parse request [10:29:24]Sock 9.Check first char [10:29:24]Sock 9.First char is OK [10:29:24]request: POST /json_proto HTTP/1.0 [10:29:24]Method: POST [10:29:24]URL: /json_proto [10:29:24]Method is POST - this is cgi request [10:29:24]url: /json_proto [10:29:24]query_string will be loaded in cgi processing [10:29:24]execute_cgi json_proto POST (null) [10:29:24]execute_cgi path=json_proto method=POST [10:29:24]POST find Content-Length [10:29:24]Host: 172.17.60.69:8080 [10:29:24]Content-Length: 1140 [10:29:24]Content-Type: application/json [10:29:24] [10:29:24]POST finish read [10:29:24]Found Content-Length = 1140 [10:29:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73369", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 2.000, "sum" : 230.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870112002782", "name": "\u041F\u0435\u0447\u0435\u043D\u044C\u0435 Ulker Biskrem \u043A\u0430\u043A\u0430\u043E-\u043A\u0440\u0435\u043C 180\u0433", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 340.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:29:24]execute_script... [10:29:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73369", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 2.000, "sum" : 230.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870112002782", "name": "\u041F\u0435\u0447\u0435\u043D\u044C\u0435 Ulker Biskrem \u043A\u0430\u043A\u0430\u043E-\u043A\u0440\u0435\u043C 180\u0433", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 340.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:29:24]POST & json_proto [10:29:24]process_json_proto [10:29:24]json parsed OK: [10:29:24]protocol is kg_v1.0 [10:29:24]action value=close_receipt [10:29:24]process_action close_receipt [10:29:24]cmd_close_receipt [10:29:24]MH_GetDate [10:29:24]Write to MH i2c: F0 00 00 9A 09 92 [10:29:24]Write i2c OK [10:29:24]MH_I2C_Read... [10:29:24]Read from MH i2c: F0 [10:29:24]MH_I2C_Read... [10:29:24]Read from MH i2c: F0 09 00 [10:29:24]MH_I2C_Read... [10:29:24]Read from MH i2c: F0 09 00 9A 09 00 06 9B 5D 66 6A 96 4A 66 AF [10:29:24]GetLastDocTimeStamp 1717409366 [10:29:24]current date 1717410566 [10:29:24]FM_GetShiftState [10:29:24]SAM_PROTO_GetShiftState [10:29:24]wFMCommunicate request_size=4 [10:29:24]MH_SAM_APDU [10:29:24]CAPDU: 80 13 01 00 [10:29:24]Write to MH i2c: E2 08 00 9B 09 80 13 01 00 00 00 00 00 21 [10:29:24]Write i2c OK [10:29:24]MH_I2C_Read... [10:29:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:29:24]Read from MH i2c: E2 [10:29:24]MH_I2C_Read... [10:29:24]Read from MH i2c: E2 0E 00 [10:29:24]MH_I2C_Read... [10:29:24]Read from MH i2c: E2 0E 00 9B 09 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 ED [10:29:24]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [10:29:24]wFMCommunicate OK [10:29:24]SAM_PROTO_GetShiftState done [10:29:24]FM_GetShiftState done [10:29:24]opened in 1717373173 [10:29:24]opened+sec_in_day 1717459573 [10:29:24]quantity*price = 23000 [10:29:24]sum+1 = 23001 [10:29:24]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870112002782 Печенье Ulker Biskrem какао-крем 180г 1.000 * 110.00 = 110.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 340.00 НСП 1% : 3.00 НДС 12% : 36.10 Наличными: 0.00 Безнал.: 340.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 39 03.06.2024 10:29 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000875074 ФД: 63781 ФПД: 9013730105421 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T102926&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63781&fm=9013730105421&tin=02508201610067®Number=0000000000092737&sum=34000 0 [10:29:26]StoreToDocumentArchive [10:29:26]shift 373 fd 63781 [10:29:26]save to /storage/0373/doc_00063781 [10:29:26]save last doc name /storage/0373/doc_00063781 to /storage/kkm_last_doc_name [10:29:26]save OK [10:29:26]Clear old archive folders... [10:29:26]ProcessDocumentItem done err = 0, tmpTLVsize=406 [10:29:26]tlvbuf is 00D3CCE0 [10:29:26]SAM_PROTO_ClearQueue [10:29:26]wFMCommunicate request_size=4 [10:29:26]MH_SAM_APDU [10:29:26]CAPDU: 80 09 00 00 [10:29:26]Write to MH i2c: E2 08 00 A8 09 80 09 00 00 00 00 00 00 23 [10:29:26]Write i2c OK [10:29:26]MH_I2C_Read... [10:29:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:29:26]Read from MH i2c: E2 [10:29:26]MH_I2C_Read... [10:29:26]Read from MH i2c: E2 03 00 [10:29:26]MH_I2C_Read... [10:29:26]Read from MH i2c: E2 03 00 A8 09 00 90 00 25 [10:29:26]RAPDU: 90 00 [10:29:26]wFMCommunicate OK [10:29:26]SAM_PROTO_ClearQueue done [10:29:26]KKMCreateOFDPacket [10:29:26]OFDProtocolAddRootSTLVToBuf [10:29:26]FM_MakeSignedData [10:29:26]FM_MakeSignedData [10:29:26]SAM_PROTO_SignData [10:29:26]wFMCommunicate request_size=4 [10:29:26]MH_SAM_APDU [10:29:26]CAPDU: 80 0D 01 02 [10:29:26]Write to MH i2c: E2 08 00 A9 09 80 0D 01 02 00 00 00 00 2B [10:29:26]Write i2c OK [10:29:26]MH_I2C_Read... [10:29:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:29:26]Read from MH i2c: E2 [10:29:26]MH_I2C_Read... [10:29:26]Read from MH i2c: E2 03 00 [10:29:26]MH_I2C_Read... [10:29:26]Read from MH i2c: E2 03 00 A9 09 00 90 00 26 [10:29:26]RAPDU: 90 00 [10:29:26]wFMCommunicate OK [10:29:26]wFMCommunicate request_size=255 [10:29:26]MH_SAM_APDU [10:29:26]CAPDU: 80 0D 02 02 FA 03 00 96 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 32 37 38 32 06 04 36 00 D0 9F D0 B5 D1 87 D0 B5 D0 BD D1 8C D0 B5 20 55 6C 6B 65 72 20 42 69 73 6B 72 65 6D 20 D0 BA D0 B0 D0 BA D0 B0 D0 BE 2D D0 BA D1 80 D0 B5 D0 BC 20 31 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 [10:29:26]Write to MH i2c: E2 02 01 AA 09 80 0D 02 02 FA 00 03 00 96 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 32 37 38 32 06 04 36 00 D0 9F D0 B5 D1 87 D0 B5 D0 BD D1 8C D0 B5 20 55 6C 6B 65 72 20 42 69 73 6B 72 65 6D 20 D0 BA D0 B0 D0 BA D0 B0 D0 BE 2D D0 BA D1 80 D0 B5 D0 BC 20 31 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 00 00 64 [10:29:26]Write i2c OK [10:29:26]MH_I2C_Read... [10:29:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:29:26]Read from MH i2c: E2 [10:29:26]MH_I2C_Read... [10:29:26]Read from MH i2c: E2 03 00 [10:29:26]MH_I2C_Read... [10:29:26]Read from MH i2c: E2 03 00 AA 09 00 90 00 27 [10:29:26]RAPDU: 90 00 [10:29:26]wFMCommunicate OK [10:29:26]wFMCommunicate request_size=165 [10:29:26]MH_SAM_APDU [10:29:26]CAPDU: 80 0D 02 02 A0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1A 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D0 84 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 06 9B 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 25 F9 00 00 35 04 06 00 08 32 AC 2E 58 4D [10:29:26]Write to MH i2c: E2 A8 00 AB 09 80 0D 02 02 A0 00 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1A 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D0 84 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 06 9B 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 25 F9 00 00 35 04 06 00 08 32 AC 2E 58 4D 00 00 B2 [10:29:26]Write i2c OK [10:29:26]MH_I2C_Read... [10:29:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:29:26]Read from MH i2c: E2 [10:29:26]MH_I2C_Read... [10:29:26]Read from MH i2c: E2 03 00 [10:29:26]MH_I2C_Read... [10:29:26]Read from MH i2c: E2 03 00 AB 09 00 90 00 28 [10:29:26]RAPDU: 90 00 [10:29:26]wFMCommunicate OK [10:29:26]wFMCommunicate request_size=4 [10:29:26]MH_SAM_APDU [10:29:26]CAPDU: 80 0D 03 02 [10:29:26]Write to MH i2c: E2 08 00 AC 09 80 0D 03 02 00 00 00 00 30 [10:29:26]Write i2c OK [10:29:26]MH_I2C_Read... [10:29:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:29:26]Read from MH i2c: E2 [10:29:26]MH_I2C_Read... [10:29:26]Read from MH i2c: E2 0B 00 [10:29:26]MH_I2C_Read... [10:29:26]Read from MH i2c: E2 0B 00 AC 09 00 52 73 DB BB 1F 0C 57 A9 90 00 B7 [10:29:26]RAPDU: 52 73 DB BB 1F 0C 57 A9 90 00 [10:29:26]wFMCommunicate OK [10:29:26]SAM_PROTO_SignData done [10:29:26]FM_MakeSignedData done [10:29:26]CreateOFDProtocolMessage [10:29:26]wFMCommunicate request_size=4 [10:29:26]MH_SAM_APDU [10:29:26]CAPDU: 80 11 00 00 [10:29:26]Write to MH i2c: E2 08 00 AD 09 80 11 00 00 00 00 00 00 30 [10:29:26]Write i2c OK [10:29:26]MH_I2C_Read... [10:29:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:29:26]Read from MH i2c: E2 [10:29:26]MH_I2C_Read... [10:29:26]Read from MH i2c: E2 17 00 [10:29:26]MH_I2C_Read... [10:29:26]Read from MH i2c: E2 17 00 AD 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 82 [10:29:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [10:29:26]wFMCommunicate OK [10:29:26]CreateOFDProtocolMessage done [10:29:26]OFDSenderStorePacket 63781 [10:29:26]StoreOFDPacket docnum=63781 [10:29:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 AA 01 00 00 CA 27 A2 01 5D 10 5A 03 01 00 03 00 96 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 32 37 38 32 06 04 36 00 D0 9F D0 B5 D1 87 D0 B5 D0 BD D1 8C D0 B5 20 55 6C 6B 65 72 20 42 69 73 6B 72 65 6D 20 D0 BA D0 B0 D0 BA D0 B0 D0 BE 2D D0 BA D1 80 D0 B5 D0 BC 20 31 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1A 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D0 84 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 06 9B 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 25 F9 00 00 35 04 06 00 08 32 AC 2E 58 4D 52 73 DB BB 1F 0C 57 A9 [10:29:26]CheckFolder [10:29:26]dirname=/storage/ofd_packets [10:29:26]CheckFolder done [10:29:26]ProducePacketName [10:29:26]name=ofd_packets/00063781 [10:29:26]NVStorageSaveData ofd_packets/00063781 [10:29:27]File name is /storage/ofd_packets/00063781 [10:29:27]Write 456 bytes [10:29:27]NVStorageSaveData done [10:29:27]OFDSenderStorePacket done [10:29:27]KKMCreateOFDPacket done [10:29:27]NVStorageSaveData kkm_last_timestamp [10:29:27]File name is /storage/kkm_last_timestamp [10:29:27]Write 4 bytes [10:29:27]NVStorageSaveData done [10:29:27]ExternCall_PrintAddStr [10:29:27]wPrintStart [10:29:27]Write to MH i2c: 01 00 00 AE 09 B7 [10:29:27]Write i2c OK [10:29:27]MH_I2C_Read... [10:29:27]Read from MH i2c: 01 [10:29:27]MH_I2C_Read... [10:29:27]Read from MH i2c: 01 07 00 [10:29:27]MH_I2C_Read... [10:29:27]Read from MH i2c: 01 07 00 AE 09 00 00 00 00 00 FF 0F CC [10:29:27]RasterBufferAndPrint [10:29:27]line Счет N : (3)73369 [10:29:27]line ИНН: 02508201610067 [10:29:27]line Контрольно-Кассовый Чек [10:29:27]line ПРОДАЖА [10:29:27]line Товар: 2000036210013 [10:29:27]line Кофе Капучино (GABB TRADE) [10:29:27]line 2.000 * 115.00 [10:29:27]line = 230.00 [10:29:27]line НДС 12% НСП 1% [10:29:27]line > о реализуемом товаре [10:29:27]line Товар: 4870112002782 [10:29:27]line Печенье Ulker Biskrem какао-крем 180г [10:29:27]line 1.000 * 110.00 [10:29:27]line = 110.00 [10:29:27]line НДС 12% НСП 1% [10:29:27]line > о реализуемом товаре [10:29:27]line ИТОГО: 340.00 [10:29:27]line НСП 1% : 3.00 [10:29:27]line НДС 12% : 36.10 [10:29:27]line Наличными: 0.00 [10:29:27]line Безнал.: 340.00 [10:29:27]line Место: АЗС № 117 "Партнер Нефть" [10:29:27]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [10:29:27]line СНО: Общий режим [10:29:27]line Чек 39 03.06.2024 10:29 [10:29:27]line Смена: 373 ФФД: 1.0 [10:29:27]line ЗНМ: 0300000031 [10:29:27]line РНМ: 0000000000092737 [10:29:27]line Версия ККМ: 001 [10:29:27]line Платежная система: АКБ Кыргызстан [10:29:27]line ФМ: 0000000000875074 [10:29:27]line ФД: 63781 [10:29:27]line ФПД: 9013730105421 [10:29:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T102926&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63781&fm=9013730105421&tin=02508201610067®Number=0000000000092737&sum=34000 [10:29:27]line 0 [10:29:27]written 0, free lines is 4095 [10:29:27]OFD Sender: Processing packet 63781 [packets to send 14, broken 13] [10:29:27]ProducePacketName [10:29:27]name=ofd_packets/00063781 [10:29:27]OFD Sender: To server: pG, [10:29:27]CommunicateWithHost lk.salyk.kg:30040 [10:29:27]ConnectInit lk.salyk.kg [10:29:27]Connected sock=10 [10:29:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 AA 01 00 00 CA 27 A2 01 5D 10 5A 03 01 00 03 00 96 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 32 37 38 32 06 04 36 00 D0 9F D0 B5 D1 87 D0 B5 D0 BD D1 8C D0 B5 20 55 6C 6B 65 72 20 42 69 73 6B 72 65 6D 20 D0 BA D0 B0 D0 BA D0 B0 D0 BE 2D D0 BA D1 80 D0 B5 D0 BC 20 31 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1A 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D0 84 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 06 9B 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 25 F9 00 00 35 04 06 00 08 32 AC 2E 58 4D 52 73 DB BB 1F 0C 57 A9 [10:29:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 AA BB 47 00 67 6E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 25 F9 00 00 F4 03 04 00 D8 46 5D 66 B6 04 01 00 00 53 AE 95 90 23 77 E9 9C [10:29:27]CommunicateWithHost err = 0 [10:29:27]CheckOFDResponse [10:29:27]1017 (14) - 77093643461234 [10:29:27]1041 (16) - 0000000000875074 [10:29:27]1040 (4) - 63781 [10:29:27]1012 (4) - 03.06.2024 04:30 [10:29:27]1206 (1) - 0 [10:29:27]OFD Sender: Remove packet 63781 [10:29:27]ProducePacketName [10:29:27]name=ofd_packets/00063781 [10:29:27]NVStorageDeleteData [10:29:27]Write to MH i2c: 01 00 00 DF 09 E8 [10:29:27]Write i2c OK [10:29:27]MH_I2C_Read... [10:29:27]Read from MH i2c: 01 [10:29:27]MH_I2C_Read... [10:29:27]Read from MH i2c: 01 07 00 [10:29:27]MH_I2C_Read... [10:29:27]Read from MH i2c: 01 07 00 DF 09 00 00 00 00 00 63 0C 5E [10:29:27]RasterBufferAndPrint [10:29:27]line [10:29:27]line [10:29:27]line [10:29:27]line [10:29:27]line [10:29:27]written 0, free lines is 3178 [10:29:27]MH_Cut [10:29:27]Write to MH i2c: D1 01 00 E6 09 01 C1 [10:29:27]Write i2c OK [10:29:27]MH_I2C_Read... [10:29:27]Read from MH i2c: D1 [10:29:27]MH_I2C_Read... [10:29:27]Read from MH i2c: D1 01 00 [10:29:27]MH_I2C_Read... [10:29:27]Read from MH i2c: D1 01 00 E6 09 00 C0 [10:29:27]Write to MH i2c: 01 00 00 E7 09 F0 [10:29:27]Write i2c OK [10:29:27]MH_I2C_Read... [10:29:27]OFD Sender: No OFD packet to send [10:29:28]*** Cut start [10:29:28]*** Partial cut [10:29:28]*** CUTSNS_PIN = 1 [10:29:28]*** CUTSNS_PIN = 0 [10:29:28]*** Brake cut motor [10:29:29]Read from MH i2c: 01 [10:29:29]MH_I2C_Read... [10:29:29]*** Stop cut motor [10:29:29]*** Cut end [10:29:29]Read from MH i2c: 01 07 00 [10:29:29]MH_I2C_Read... [10:29:29]Read from MH i2c: 01 07 00 E7 09 00 00 00 00 00 FF 0F 05 [10:29:29]process_action close_receipt done [10:29:29]requested_data is exist [10:29:29]produce_requested_data [10:29:29]requested_item fm.sn is exist - process it [10:29:29]wFMCommunicate request_size=4 [10:29:29]MH_SAM_APDU [10:29:29]CAPDU: 80 11 00 00 [10:29:29]Write to MH i2c: E2 08 00 E8 09 80 11 00 00 00 00 00 00 6B [10:29:29]Write i2c OK [10:29:29]MH_I2C_Read... [10:29:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:29:29]Read from MH i2c: E2 [10:29:29]MH_I2C_Read... [10:29:29]Read from MH i2c: E2 17 00 [10:29:29]MH_I2C_Read... [10:29:29]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 35 30 37 34 90 00 BD [10:29:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [10:29:29]wFMCommunicate OK [10:29:29]requested_item fd.num is exist - process it [10:29:29]SAM_PROTO_GetFieldsCounters [10:29:29]wFMCommunicate request_size=4 [10:29:29]MH_SAM_APDU [10:29:29]CAPDU: 80 13 00 00 [10:29:29]Write to MH i2c: E2 08 00 E9 09 80 13 00 00 00 00 00 00 6E [10:29:29]Write i2c OK [10:29:29]MH_I2C_Read... [10:29:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:29:29]Read from MH i2c: E2 [10:29:29]MH_I2C_Read... [10:29:29]Read from MH i2c: E2 62 00 [10:29:29]MH_I2C_Read... [10:29:29]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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 25 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 9A [10:29: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 25 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:29:29]wFMCommunicate OK [10:29:29]SAM_PROTO_GetFieldsCounters done [10:29:29]requested_item shift.num is exist - process it [10:29:29]requested_item shift.opened is exist - process it [10:29:29]req_shift_opened [10:29:29]FM_GetShiftState [10:29:29]SAM_PROTO_GetShiftState [10:29:29]wFMCommunicate request_size=4 [10:29:29]MH_SAM_APDU [10:29:29]CAPDU: 80 13 01 00 [10:29:29]Write to MH i2c: E2 08 00 EA 09 80 13 01 00 00 00 00 00 70 [10:29:29]Write i2c OK [10:29:29]MH_I2C_Read... [10:29:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:29:29]Read from MH i2c: E2 [10:29:29]MH_I2C_Read... [10:29:29]Read from MH i2c: E2 0E 00 [10:29:29]MH_I2C_Read... [10:29:29]Read from MH i2c: E2 0E 00 EA 09 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 3C [10:29:29]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [10:29:29]wFMCommunicate OK [10:29:29]SAM_PROTO_GetShiftState done [10:29:29]FM_GetShiftState done [10:29:29]req_shift_opened done [10:29:29]requested_item shift.open_date is exist - process it [10:29:29]req_shift_open_date [10:29:29]req_shift_open_date done [10:29:29]produce_requested_data done [10:29:29]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63781,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [10:29:29]process_action_free close_receipt [10:29:29]json_value_free [10:29:29]json_value_free done [10:29:29]process_json_proto returns [10:29:29]Send response to host [10:29:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63781,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [10:29:29]free response buf [10:29:29]execute_script done [10:29:29]execute_script returns [10:29:29]free content buf [10:29:29]Sock 9.Close socket [10:29:29]Sock 9.Thread stoped [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:28]OFD Sender: No OFD packet to send [10:30:33]OFD Sender: No OFD packet to send [10:30:38]OFD Sender: No OFD packet to send [10:30:43]OFD Sender: No OFD packet to send [10:30:48]OFD Sender: No OFD packet to send [10:30:53]OFD Sender: No OFD packet to send [10:30:58]OFD Sender: No OFD packet to send [10:31:03]OFD Sender: No OFD packet to send [10:31:08]OFD Sender: No OFD packet to send [10:31:13]OFD Sender: No OFD packet to send [10:31:18]OFD Sender: No OFD packet to send [10:31:23]OFD Sender: No OFD packet to send [10:31:28]OFD Sender: No OFD packet to send [10:31:33]OFD Sender: No OFD packet to send [10:31:38]OFD Sender: No OFD packet to send [10:31:38]accept exits with 7 [10:31:38]New connection [10:31:38]New thread 3067374948 created [10:31:38]Thread 3067518308 joined [10:31:38]Waiting for new connection... [10:31:38] Sock 7.Parse request [10:31:38]Sock 7.Check first char [10:31:38]Sock 7.First char is OK [10:31:38]request: POST /json_proto HTTP/1.0 [10:31:38]Method: POST [10:31:38]URL: /json_proto [10:31:38]Method is POST - this is cgi request [10:31:38]url: /json_proto [10:31:38]query_string will be loaded in cgi processing [10:31:38]execute_cgi json_proto POST (null) [10:31:38]execute_cgi path=json_proto method=POST [10:31:38]POST find Content-Length [10:31:38]Host: 172.17.60.69:8080 [10:31:38]Content-Length: 621 [10:31:38]Content-Type: application/json [10:31:38] [10:31:38]POST finish read [10:31:38]Found Content-Length = 621 [10:31:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73370", "tax_sys" : 0, "items" : [ { "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 151.00, "quantity" : 1.000, "sum" : 151.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 151.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:31:38]execute_script... [10:31:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73370", "tax_sys" : 0, "items" : [ { "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 151.00, "quantity" : 1.000, "sum" : 151.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 151.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:31:38]POST & json_proto [10:31:38]process_json_proto [10:31:38]json parsed OK: [10:31:38]protocol is kg_v1.0 [10:31:38]action value=close_receipt [10:31:38]process_action close_receipt [10:31:38]cmd_close_receipt [10:31:38]MH_GetDate [10:31:38]Write to MH i2c: F0 00 00 EB 09 E3 [10:31:38]Write i2c OK [10:31:38]MH_I2C_Read... [10:31:38]Read from MH i2c: F0 [10:31:38]MH_I2C_Read... [10:31:38]Read from MH i2c: F0 09 00 [10:31:38]MH_I2C_Read... [10:31:38]Read from MH i2c: F0 09 00 EB 09 00 8B 9B 5D 66 6A 96 4A 66 85 [10:31:38]GetLastDocTimeStamp 1717410566 [10:31:38]current date 1717410699 [10:31:38]FM_GetShiftState [10:31:38]SAM_PROTO_GetShiftState [10:31:38]wFMCommunicate request_size=4 [10:31:38]MH_SAM_APDU [10:31:38]CAPDU: 80 13 01 00 [10:31:38]Write to MH i2c: E2 08 00 EC 09 80 13 01 00 00 00 00 00 72 [10:31:38]Write i2c OK [10:31:38]MH_I2C_Read... [10:31:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:31:38]Read from MH i2c: E2 [10:31:38]MH_I2C_Read... [10:31:38]Read from MH i2c: E2 0E 00 [10:31:38]MH_I2C_Read... [10:31:38]Read from MH i2c: E2 0E 00 EC 09 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 3E [10:31:38]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [10:31:38]wFMCommunicate OK [10:31:38]SAM_PROTO_GetShiftState done [10:31:38]FM_GetShiftState done [10:31:38]opened in 1717373173 [10:31:38]opened+sec_in_day 1717459573 [10:31:38]quantity*price = 15100 [10:31:38]sum+1 = 15101 [10:31:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 151.00 НСП 1% : 1.34 НДС 12% : 16.03 Наличными: 151.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 40 03.06.2024 10:31 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63782 ФПД: 231488130654076 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T103140&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63782&fm=231488130654076&tin=02508201610067®Number=0000000000092737&sum=15100 0 [10:31:39]StoreToDocumentArchive [10:31:39]shift 373 fd 63782 [10:31:39]save to /storage/0373/doc_00063782 [10:31:39]save last doc name /storage/0373/doc_00063782 to /storage/kkm_last_doc_name [10:31:39]save OK [10:31:39]Clear old archive folders... [10:31:39]ProcessDocumentItem done err = 0, tmpTLVsize=274 [10:31:39]tlvbuf is 00CFE900 [10:31:39]SAM_PROTO_ClearQueue [10:31:39]wFMCommunicate request_size=4 [10:31:39]MH_SAM_APDU [10:31:39]CAPDU: 80 09 00 00 [10:31:39]Write to MH i2c: E2 08 00 F9 09 80 09 00 00 00 00 00 00 74 [10:31:39]Write i2c OK [10:31:39]MH_I2C_Read... [10:31:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:31:39]Read from MH i2c: E2 [10:31:39]MH_I2C_Read... [10:31:39]Read from MH i2c: E2 03 00 [10:31:39]MH_I2C_Read... [10:31:39]Read from MH i2c: E2 03 00 F9 09 00 90 00 76 [10:31:39]RAPDU: 90 00 [10:31:39]wFMCommunicate OK [10:31:39]SAM_PROTO_ClearQueue done [10:31:39]KKMCreateOFDPacket [10:31:39]OFDProtocolAddRootSTLVToBuf [10:31:39]FM_MakeSignedData [10:31:39]FM_MakeSignedData [10:31:39]SAM_PROTO_SignData [10:31:39]wFMCommunicate request_size=4 [10:31:39]MH_SAM_APDU [10:31:39]CAPDU: 80 0D 01 02 [10:31:39]Write to MH i2c: E2 08 00 FA 09 80 0D 01 02 00 00 00 00 7C [10:31:39]Write i2c OK [10:31:39]MH_I2C_Read... [10:31:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:31:39]Read from MH i2c: E2 [10:31:39]MH_I2C_Read... [10:31:39]Read from MH i2c: E2 03 00 [10:31:39]MH_I2C_Read... [10:31:39]Read from MH i2c: E2 03 00 FA 09 00 90 00 77 [10:31:39]RAPDU: 90 00 [10:31:39]wFMCommunicate OK [10:31:39]wFMCommunicate request_size=255 [10:31:39]MH_SAM_APDU [10:31:39]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 8C 9B 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 [10:31:39]Write to MH i2c: E2 02 01 FB 09 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 8C 9B 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 00 00 D0 [10:31:39]Write i2c OK [10:31:39]MH_I2C_Read... [10:31:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:31:39]Read from MH i2c: E2 [10:31:39]MH_I2C_Read... [10:31:39]Read from MH i2c: E2 03 00 [10:31:39]MH_I2C_Read... [10:31:39]Read from MH i2c: E2 03 00 FB 09 00 90 00 78 [10:31:39]RAPDU: 90 00 [10:31:39]wFMCommunicate OK [10:31:39]wFMCommunicate request_size=33 [10:31:39]MH_SAM_APDU [10:31:39]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 35 30 37 34 10 04 04 00 26 F9 00 00 35 04 06 00 D2 89 87 CC 1F 7C [10:31:39]Write to MH i2c: E2 24 00 FC 09 80 0D 02 02 1C 00 30 30 30 30 38 37 35 30 37 34 10 04 04 00 26 F9 00 00 35 04 06 00 D2 89 87 CC 1F 7C 00 00 75 [10:31:39]Write i2c OK [10:31:39]MH_I2C_Read... [10:31:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:31:39]Read from MH i2c: E2 [10:31:39]MH_I2C_Read... [10:31:39]Read from MH i2c: E2 03 00 [10:31:39]MH_I2C_Read... [10:31:39]Read from MH i2c: E2 03 00 FC 09 00 90 00 79 [10:31:39]RAPDU: 90 00 [10:31:39]wFMCommunicate OK [10:31:39]wFMCommunicate request_size=4 [10:31:39]MH_SAM_APDU [10:31:39]CAPDU: 80 0D 03 02 [10:31:39]Write to MH i2c: E2 08 00 FD 09 80 0D 03 02 00 00 00 00 81 [10:31:39]Write i2c OK [10:31:39]MH_I2C_Read... [10:31:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:31:39]Read from MH i2c: E2 [10:31:39]MH_I2C_Read... [10:31:39]Read from MH i2c: E2 0B 00 [10:31:39]MH_I2C_Read... [10:31:39]Read from MH i2c: E2 0B 00 FD 09 00 CE 9A BD A9 50 5C 07 CA 90 00 CD [10:31:39]RAPDU: CE 9A BD A9 50 5C 07 CA 90 00 [10:31:39]wFMCommunicate OK [10:31:39]SAM_PROTO_SignData done [10:31:39]FM_MakeSignedData done [10:31:39]CreateOFDProtocolMessage [10:31:39]wFMCommunicate request_size=4 [10:31:39]MH_SAM_APDU [10:31:39]CAPDU: 80 11 00 00 [10:31:39]Write to MH i2c: E2 08 00 FE 09 80 11 00 00 00 00 00 00 81 [10:31:39]Write i2c OK [10:31:39]MH_I2C_Read... [10:31:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:31:39]Read from MH i2c: E2 [10:31:39]MH_I2C_Read... [10:31:39]Read from MH i2c: E2 17 00 [10:31:39]MH_I2C_Read... [10:31:39]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 35 30 37 34 90 00 D3 [10:31:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [10:31:39]wFMCommunicate OK [10:31:39]CreateOFDProtocolMessage done [10:31:39]OFDSenderStorePacket 63782 [10:31:39]StoreOFDPacket docnum=63782 [10:31:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 26 01 00 00 1A 06 1E 01 A6 CD 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 8C 9B 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 26 F9 00 00 35 04 06 00 D2 89 87 CC 1F 7C CE 9A BD A9 50 5C 07 CA [10:31:39]CheckFolder [10:31:39]dirname=/storage/ofd_packets [10:31:39]CheckFolder done [10:31:39]ProducePacketName [10:31:39]name=ofd_packets/00063782 [10:31:39]NVStorageSaveData ofd_packets/00063782 [10:31:39]File name is /storage/ofd_packets/00063782 [10:31:39]Write 324 bytes [10:31:39]NVStorageSaveData done [10:31:39]OFDSenderStorePacket done [10:31:39]KKMCreateOFDPacket done [10:31:39]NVStorageSaveData kkm_last_timestamp [10:31:39]File name is /storage/kkm_last_timestamp [10:31:39]Write 4 bytes [10:31:39]NVStorageSaveData done [10:31:39]ExternCall_PrintAddStr [10:31:39]wPrintStart [10:31:39]Write to MH i2c: 01 00 00 FF 09 08 [10:31:39]Write i2c OK [10:31:39]MH_I2C_Read... [10:31:39]Read from MH i2c: 01 [10:31:39]MH_I2C_Read... [10:31:39]Read from MH i2c: 01 07 00 [10:31:39]MH_I2C_Read... [10:31:39]Read from MH i2c: 01 07 00 FF 09 00 00 00 00 00 FF 0F 1D [10:31:39]RasterBufferAndPrint [10:31:39]line Счет N : (3)73370 [10:31:39]line ИНН: 02508201610067 [10:31:39]line Контрольно-Кассовый Чек [10:31:39]line ПРОДАЖА [10:31:39]line Товар: 48741958 [10:31:39]line Сигареты Parliament Aqua Blue [10:31:39]line 1.000 * 151.00 [10:31:39]line = 151.00 [10:31:39]line НДС 12% НСП 1% [10:31:39]line > о реализуемом товаре [10:31:39]line ИТОГО: 151.00 [10:31:39]line НСП 1% : 1.34 [10:31:39]line НДС 12% : 16.03 [10:31:39]line Наличными: 151.00 [10:31:39]line Безнал.: 0.00 [10:31:39]line Место: АЗС № 117 "Партнер Нефть" [10:31:39]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [10:31:39]line СНО: Общий режим [10:31:39]line Чек 40 03.06.2024 10:31 [10:31:39]line Смена: 373 ФФД: 1.0 [10:31:39]line ЗНМ: 0300000031 [10:31:39]line РНМ: 0000000000092737 [10:31:39]line Версия ККМ: 001 [10:31:39]line ФМ: 0000000000875074 [10:31:39]line ФД: 63782 [10:31:39]line ФПД: 231488130654076 [10:31:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T103140&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63782&fm=231488130654076&tin=02508201610067®Number=0000000000092737&sum=15100 [10:31:40]line 0 [10:31:40]OFD Sender: Processing packet 63782 [packets to send 14, broken 13] [10:31:40]ProducePacketName [10:31:40]name=ofd_packets/00063782 [10:31:40]OFD Sender: To server: pG, [10:31:40]CommunicateWithHost lk.salyk.kg:30040 [10:31:40]ConnectInit lk.salyk.kg [10:31:40]written 0, free lines is 4095 [10:31:40]Connected sock=10 [10:31:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 26 01 00 00 1A 06 1E 01 A6 CD 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 8C 9B 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 26 F9 00 00 35 04 06 00 D2 89 87 CC 1F 7C CE 9A BD A9 50 5C 07 CA [10:31:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 39 0A 47 00 21 90 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 26 F9 00 00 F4 03 04 00 5D 47 5D 66 B6 04 01 00 00 C5 3F 58 5B B1 BB E3 28 [10:31:40]CommunicateWithHost err = 0 [10:31:40]CheckOFDResponse [10:31:40]1017 (14) - 77093643461234 [10:31:40]1041 (16) - 0000000000875074 [10:31:40]1040 (4) - 63782 [10:31:40]1012 (4) - 03.06.2024 04:32 [10:31:40]1206 (1) - 0 [10:31:40]OFD Sender: Remove packet 63782 [10:31:40]ProducePacketName [10:31:40]name=ofd_packets/00063782 [10:31:40]NVStorageDeleteData [10:31:40]Write to MH i2c: 01 00 00 28 0A 32 [10:31:40]Write i2c OK [10:31:40]MH_I2C_Read... [10:31:40]Read from MH i2c: 01 [10:31:40]MH_I2C_Read... [10:31:40]Read from MH i2c: 01 07 00 [10:31:40]MH_I2C_Read... [10:31:40]Read from MH i2c: 01 07 00 28 0A 00 00 00 00 00 D5 0C 1A [10:31:40]RasterBufferAndPrint [10:31:40]line [10:31:40]line [10:31:40]line [10:31:40]line [10:31:40]line [10:31:40]written 0, free lines is 3294 [10:31:40]MH_Cut [10:31:40]Write to MH i2c: D1 01 00 2F 0A 01 0B [10:31:40]Write i2c OK [10:31:40]MH_I2C_Read... [10:31:40]Read from MH i2c: D1 [10:31:40]MH_I2C_Read... [10:31:40]Read from MH i2c: D1 01 00 [10:31:40]MH_I2C_Read... [10:31:40]Read from MH i2c: D1 01 00 2F 0A 00 0A [10:31:40]Write to MH i2c: 01 00 00 30 0A 3A [10:31:40]Write i2c OK [10:31:40]MH_I2C_Read... [10:31:41]OFD Sender: No OFD packet to send [10:31:41]*** Cut start [10:31:41]*** Partial cut [10:31:41]*** CUTSNS_PIN = 1 [10:31:41]*** CUTSNS_PIN = 0 [10:31:41]*** Brake cut motor [10:31:42]Read from MH i2c: 01 [10:31:42]MH_I2C_Read... [10:31:42]*** Stop cut motor [10:31:42]*** Cut end [10:31:42]Read from MH i2c: 01 07 00 [10:31:42]MH_I2C_Read... [10:31:42]Read from MH i2c: 01 07 00 30 0A 00 00 00 00 00 FF 0F 4F [10:31:42]process_action close_receipt done [10:31:42]requested_data is exist [10:31:42]produce_requested_data [10:31:42]requested_item fm.sn is exist - process it [10:31:42]wFMCommunicate request_size=4 [10:31:42]MH_SAM_APDU [10:31:42]CAPDU: 80 11 00 00 [10:31:42]Write to MH i2c: E2 08 00 31 0A 80 11 00 00 00 00 00 00 B5 [10:31:42]Write i2c OK [10:31:42]MH_I2C_Read... [10:31:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:31:42]Read from MH i2c: E2 [10:31:42]MH_I2C_Read... [10:31:42]Read from MH i2c: E2 17 00 [10:31:42]MH_I2C_Read... [10:31:42]Read from MH i2c: E2 17 00 31 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 07 [10:31:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [10:31:42]wFMCommunicate OK [10:31:42]requested_item fd.num is exist - process it [10:31:42]SAM_PROTO_GetFieldsCounters [10:31:42]wFMCommunicate request_size=4 [10:31:42]MH_SAM_APDU [10:31:42]CAPDU: 80 13 00 00 [10:31:42]Write to MH i2c: E2 08 00 32 0A 80 13 00 00 00 00 00 00 B8 [10:31:42]Write i2c OK [10:31:42]MH_I2C_Read... [10:31:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:31:42]Read from MH i2c: E2 [10:31:42]MH_I2C_Read... [10:31:42]Read from MH i2c: E2 62 00 [10:31:42]MH_I2C_Read... [10:31:42]Read from MH i2c: E2 62 00 32 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 26 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 E8 [10:31: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 26 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:31:42]wFMCommunicate OK [10:31:42]SAM_PROTO_GetFieldsCounters done [10:31:42]requested_item shift.num is exist - process it [10:31:42]requested_item shift.opened is exist - process it [10:31:42]req_shift_opened [10:31:42]FM_GetShiftState [10:31:42]SAM_PROTO_GetShiftState [10:31:42]wFMCommunicate request_size=4 [10:31:42]MH_SAM_APDU [10:31:42]CAPDU: 80 13 01 00 [10:31:42]Write to MH i2c: E2 08 00 33 0A 80 13 01 00 00 00 00 00 BA [10:31:42]Write i2c OK [10:31:42]MH_I2C_Read... [10:31:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:31:42]Read from MH i2c: E2 [10:31:42]MH_I2C_Read... [10:31:42]Read from MH i2c: E2 0E 00 [10:31:42]MH_I2C_Read... [10:31:42]Read from MH i2c: E2 0E 00 33 0A 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 86 [10:31:42]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [10:31:42]wFMCommunicate OK [10:31:42]SAM_PROTO_GetShiftState done [10:31:42]FM_GetShiftState done [10:31:42]req_shift_opened done [10:31:42]requested_item shift.open_date is exist - process it [10:31:42]req_shift_open_date [10:31:42]req_shift_open_date done [10:31:42]produce_requested_data done [10:31:42]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63782,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [10:31:42]process_action_free close_receipt [10:31:42]json_value_free [10:31:42]json_value_free done [10:31:42]process_json_proto returns [10:31:42]Send response to host [10:31:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63782,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [10:31:42]free response buf [10:31:42]execute_script done [10:31:42]execute_script returns [10:31:42]free content buf [10:31:42]Sock 7.Close socket [10:31:42]Sock 7.Thread stoped [10:31:46]OFD Sender: No OFD packet to send [10:31:51]OFD Sender: No OFD packet to send [10:31:56]OFD Sender: No OFD packet to send [10:32:01]OFD Sender: No OFD packet to send [10:32:06]OFD Sender: No OFD packet to send [10:32:11]OFD Sender: No OFD packet to send [10:32:16]OFD Sender: No OFD packet to send [10:32:21]OFD Sender: No OFD packet to send [10:32:26]OFD Sender: No OFD packet to send [10:32:31]OFD Sender: No OFD packet to send [10:32:36]OFD Sender: No OFD packet to send [10:32:41]OFD Sender: No OFD packet to send [10:32:46]OFD Sender: No OFD packet to send [10:32:51]OFD Sender: No OFD packet to send [10:32:56]OFD Sender: No OFD packet to send [10:33:01]OFD Sender: No OFD packet to send [10:33:06]OFD Sender: No OFD packet to send [10:33:11]OFD Sender: No OFD packet to send [10:33:16]OFD Sender: No OFD packet to send [10:33:21]OFD Sender: No OFD packet to send [10:33:26]OFD Sender: No OFD packet to send [10:33:31]OFD Sender: No OFD packet to send [10:33:36]OFD Sender: No OFD packet to send [10:33:41]OFD Sender: No OFD packet to send [10:33:46]OFD Sender: No OFD packet to send [10:33:51]OFD Sender: No OFD packet to send [10:33:56]OFD Sender: No OFD packet to send [10:34:01]OFD Sender: No OFD packet to send [10:34:06]OFD Sender: No OFD packet to send [10:34:11]OFD Sender: No OFD packet to send [10:34:16]OFD Sender: No OFD packet to send [10:34:21]OFD Sender: No OFD packet to send [10:34:26]OFD Sender: No OFD packet to send [10:34:31]OFD Sender: No OFD packet to send [10:34:36]OFD Sender: No OFD packet to send [10:34:41]OFD Sender: No OFD packet to send [10:34:46]OFD Sender: No OFD packet to send [10:34:51]OFD Sender: No OFD packet to send [10:34:56]OFD Sender: No OFD packet to send [10:35:01]OFD Sender: No OFD packet to send [10:35:06]OFD Sender: No OFD packet to send [10:35:11]OFD Sender: No OFD packet to send [10:35:16]OFD Sender: No OFD packet to send [10:35:21]OFD Sender: No OFD packet to send [10:35:26]OFD Sender: No OFD packet to send [10:35:31]OFD Sender: No OFD packet to send [10:35:36]OFD Sender: No OFD packet to send [10:35:41]OFD Sender: No OFD packet to send [10:35:46]OFD Sender: No OFD packet to send [10:35:51]OFD Sender: No OFD packet to send [10:35:56]OFD Sender: No OFD packet to send [10:36:01]OFD Sender: No OFD packet to send [10:36:06]OFD Sender: No OFD packet to send [10:36:11]OFD Sender: No OFD packet to send [10:36:16]OFD Sender: No OFD packet to send [10:36:21]OFD Sender: No OFD packet to send [10:36:26]OFD Sender: No OFD packet to send [10:36:31]OFD Sender: No OFD packet to send [10:36:36]OFD Sender: No OFD packet to send [10:36:41]OFD Sender: No OFD packet to send [10:36:46]OFD Sender: No OFD packet to send [10:36:51]OFD Sender: No OFD packet to send [10:36:56]OFD Sender: No OFD packet to send [10:37:01]OFD Sender: No OFD packet to send [10:37:06]OFD Sender: No OFD packet to send [10:37:11]OFD Sender: No OFD packet to send [10:37:16]OFD Sender: No OFD packet to send [10:37:21]OFD Sender: No OFD packet to send [10:37:26]OFD Sender: No OFD packet to send [10:37:31]OFD Sender: No OFD packet to send [10:37:36]OFD Sender: No OFD packet to send [10:37:41]OFD Sender: No OFD packet to send [10:37:46]OFD Sender: No OFD packet to send [10:37:51]OFD Sender: No OFD packet to send [10:37:56]OFD Sender: No OFD packet to send [10:38:01]OFD Sender: No OFD packet to send [10:38:06]OFD Sender: No OFD packet to send [10:38:11]OFD Sender: No OFD packet to send [10:38:16]OFD Sender: No OFD packet to send [10:38:21]OFD Sender: No OFD packet to send [10:38:26]OFD Sender: No OFD packet to send [10:38:31]OFD Sender: No OFD packet to send [10:38:36]OFD Sender: No OFD packet to send [10:38:41]OFD Sender: No OFD packet to send [10:38:46]OFD Sender: No OFD packet to send [10:38:51]OFD Sender: No OFD packet to send [10:38:56]OFD Sender: No OFD packet to send [10:39:01]OFD Sender: No OFD packet to send [10:39:06]OFD Sender: No OFD packet to send [10:39:11]OFD Sender: No OFD packet to send [10:39:16]OFD Sender: No OFD packet to send [10:39:21]OFD Sender: No OFD packet to send [10:39:26]OFD Sender: No OFD packet to send [10:39:31]OFD Sender: No OFD packet to send [10:39:36]OFD Sender: No OFD packet to send [10:39:41]OFD Sender: No OFD packet to send [10:39:46]OFD Sender: No OFD packet to send [10:39:51]OFD Sender: No OFD packet to send [10:39:56]OFD Sender: No OFD packet to send [10:40:01]OFD Sender: No OFD packet to send [10:40:06]OFD Sender: No OFD packet to send [10:40:11]OFD Sender: No OFD packet to send [10:40:16]OFD Sender: No OFD packet to send [10:40:21]OFD Sender: No OFD packet to send [10:40:26]OFD Sender: No OFD packet to send [10:40:31]OFD Sender: No OFD packet to send [10:40:36]OFD Sender: No OFD packet to send [10:40:41]OFD Sender: No OFD packet to send [10:40:46]OFD Sender: No OFD packet to send [10:40:51]OFD Sender: No OFD packet to send [10:40:56]OFD Sender: No OFD packet to send [10:41:01]OFD Sender: No OFD packet to send [10:41:06]OFD Sender: No OFD packet to send [10:41:11]OFD Sender: No OFD packet to send [10:41:16]OFD Sender: No OFD packet to send [10:41:21]OFD Sender: No OFD packet to send [10:41:26]OFD Sender: No OFD packet to send [10:41:31]OFD Sender: No OFD packet to send [10:41:36]OFD Sender: No OFD packet to send [10:41:41]OFD Sender: No OFD packet to send [10:41:46]OFD Sender: No OFD packet to send [10:41:51]OFD Sender: No OFD packet to send [10:41:56]OFD Sender: No OFD packet to send [10:42:01]OFD Sender: No OFD packet to send [10:42:06]OFD Sender: No OFD packet to send [10:42:11]OFD Sender: No OFD packet to send [10:42:16]OFD Sender: No OFD packet to send [10:42:21]OFD Sender: No OFD packet to send [10:42:26]OFD Sender: No OFD packet to send [10:42:31]OFD Sender: No OFD packet to send [10:42:36]OFD Sender: No OFD packet to send [10:42:41]OFD Sender: No OFD packet to send [10:42:46]OFD Sender: No OFD packet to send [10:42:51]OFD Sender: No OFD packet to send [10:42:56]OFD Sender: No OFD packet to send [10:43:01]OFD Sender: No OFD packet to send [10:43:06]OFD Sender: No OFD packet to send [10:43:11]OFD Sender: No OFD packet to send [10:43:16]OFD Sender: No OFD packet to send [10:43:21]OFD Sender: No OFD packet to send [10:43:26]OFD Sender: No OFD packet to send [10:43:31]OFD Sender: No OFD packet to send [10:43:36]OFD Sender: No OFD packet to send [10:43:41]OFD Sender: No OFD packet to send [10:43:46]OFD Sender: No OFD packet to send [10:43:51]OFD Sender: No OFD packet to send [10:43:56]OFD Sender: No OFD packet to send [10:44:01]OFD Sender: No OFD packet to send [10:44:06]OFD Sender: No OFD packet to send [10:44:11]OFD Sender: No OFD packet to send [10:44:16]OFD Sender: No OFD packet to send [10:44:21]OFD Sender: No OFD packet to send [10:44:26]OFD Sender: No OFD packet to send [10:44:31]OFD Sender: No OFD packet to send [10:44:36]OFD Sender: No OFD packet to send [10:44:41]OFD Sender: No OFD packet to send [10:44:46]OFD Sender: No OFD packet to send [10:44:51]OFD Sender: No OFD packet to send [10:44:56]OFD Sender: No OFD packet to send [10:45:01]OFD Sender: No OFD packet to send [10:45:06]OFD Sender: No OFD packet to send [10:45:11]OFD Sender: No OFD packet to send [10:45:16]OFD Sender: No OFD packet to send [10:45:21]OFD Sender: No OFD packet to send [10:45:26]OFD Sender: No OFD packet to send [10:45:31]OFD Sender: No OFD packet to send [10:45:36]OFD Sender: No OFD packet to send [10:45:41]OFD Sender: No OFD packet to send [10:45:46]OFD Sender: No OFD packet to send [10:45:51]OFD Sender: No OFD packet to send [10:45:56]OFD Sender: No OFD packet to send [10:46:01]OFD Sender: No OFD packet to send [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:41]OFD Sender: No OFD packet to send [10:46:46]OFD Sender: No OFD packet to send [10:46:51]OFD Sender: No OFD packet to send [10:46:56]OFD Sender: No OFD packet to send [10:47:01]OFD Sender: No OFD packet to send [10:47:06]OFD Sender: No OFD packet to send [10:47:11]OFD Sender: No OFD packet to send [10:47:16]OFD Sender: No OFD packet to send [10:47:21]OFD Sender: No OFD packet to send [10:47:26]OFD Sender: No OFD packet to send [10:47:31]OFD Sender: No OFD packet to send [10:47:36]OFD Sender: No OFD packet to send [10:47:41]OFD Sender: No OFD packet to send [10:47:46]OFD Sender: No OFD packet to send [10:47:51]OFD Sender: No OFD packet to send [10:47:56]OFD Sender: No OFD packet to send [10:48:01]OFD Sender: No OFD packet to send [10:48:06]OFD Sender: No OFD packet to send [10:48:11]OFD Sender: No OFD packet to send [10:48:16]OFD Sender: No OFD packet to send [10:48:21]OFD Sender: No OFD packet to send [10:48:26]OFD Sender: No OFD packet to send [10:48:31]OFD Sender: No OFD packet to send [10:48:36]OFD Sender: No OFD packet to send [10:48:41]OFD Sender: No OFD packet to send [10:48:46]OFD Sender: No OFD packet to send [10:48:51]OFD Sender: No OFD packet to send [10:48:56]OFD Sender: No OFD packet to send [10:49:01]OFD Sender: No OFD packet to send [10:49:06]OFD Sender: No OFD packet to send [10:49:11]OFD Sender: No OFD packet to send [10:49:16]OFD Sender: No OFD packet to send [10:49:21]OFD Sender: No OFD packet to send [10:49:26]OFD Sender: No OFD packet to send [10:49:31]OFD Sender: No OFD packet to send [10:49:36]OFD Sender: No OFD packet to send [10:49:41]OFD Sender: No OFD packet to send [10:49:46]OFD Sender: No OFD packet to send [10:49:51]OFD Sender: No OFD packet to send [10:49:56]OFD Sender: No OFD packet to send [10:50:01]OFD Sender: No OFD packet to send [10:50:06]OFD Sender: No OFD packet to send [10:50:11]OFD Sender: No OFD packet to send [10:50:16]OFD Sender: No OFD packet to send [10:50:21]OFD Sender: No OFD packet to send [10:50:26]OFD Sender: No OFD packet to send [10:50:31]OFD Sender: No OFD packet to send [10:50:36]OFD Sender: No OFD packet to send [10:50:41]OFD Sender: No OFD packet to send [10:50:46]OFD Sender: No OFD packet to send [10:50:47]accept exits with 9 [10:50:47]New connection [10:50:47]New thread 3067518308 created [10:50:47]Thread 3067374948 joined [10:50:47]Waiting for new connection... [10:50:47] Sock 9.Parse request [10:50:47]Sock 9.Check first char [10:50:47]Sock 9.First char is OK [10:50:47]request: POST /json_proto HTTP/1.0 [10:50:47]Method: POST [10:50:47]URL: /json_proto [10:50:47]Method is POST - this is cgi request [10:50:47]url: /json_proto [10:50:47]query_string will be loaded in cgi processing [10:50:47]execute_cgi json_proto POST (null) [10:50:47]execute_cgi path=json_proto method=POST [10:50:47]POST find Content-Length [10:50:47]Host: 172.17.60.69:8080 [10:50:47]Content-Length: 621 [10:50:47]Content-Type: application/json [10:50:47] [10:50:47]POST finish read [10:50:47]Found Content-Length = 621 [10:50:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73371", "tax_sys" : 0, "items" : [ { "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 151.00, "quantity" : 1.000, "sum" : 151.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 151.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:50:47]execute_script... [10:50:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73371", "tax_sys" : 0, "items" : [ { "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 151.00, "quantity" : 1.000, "sum" : 151.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 151.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:50:47]POST & json_proto [10:50:47]process_json_proto [10:50:47]json parsed OK: [10:50:47]protocol is kg_v1.0 [10:50:47]action value=close_receipt [10:50:47]process_action close_receipt [10:50:47]cmd_close_receipt [10:50:47]MH_GetDate [10:50:47]Write to MH i2c: F0 00 00 34 0A 2D [10:50:47]Write i2c OK [10:50:47]MH_I2C_Read... [10:50:47]Read from MH i2c: F0 [10:50:47]MH_I2C_Read... [10:50:47]Read from MH i2c: F0 09 00 [10:50:47]MH_I2C_Read... [10:50:47]Read from MH i2c: F0 09 00 34 0A 00 09 A0 5D 66 6A 96 4A 66 52 [10:50:47]GetLastDocTimeStamp 1717410700 [10:50:47]current date 1717411849 [10:50:47]FM_GetShiftState [10:50:47]SAM_PROTO_GetShiftState [10:50:47]wFMCommunicate request_size=4 [10:50:47]MH_SAM_APDU [10:50:47]CAPDU: 80 13 01 00 [10:50:47]Write to MH i2c: E2 08 00 35 0A 80 13 01 00 00 00 00 00 BC [10:50:47]Write i2c OK [10:50:47]MH_I2C_Read... [10:50:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:50:47]Read from MH i2c: E2 [10:50:47]MH_I2C_Read... [10:50:47]Read from MH i2c: E2 0E 00 [10:50:47]MH_I2C_Read... [10:50:47]Read from MH i2c: E2 0E 00 35 0A 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 88 [10:50:47]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [10:50:47]wFMCommunicate OK [10:50:47]SAM_PROTO_GetShiftState done [10:50:47]FM_GetShiftState done [10:50:47]opened in 1717373173 [10:50:47]opened+sec_in_day 1717459573 [10:50:47]quantity*price = 15100 [10:50:47]sum+1 = 15101 [10:50:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 151.00 НСП 1% : 1.34 НДС 12% : 16.03 Наличными: 151.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 41 03.06.2024 10:50 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63783 ФПД: 104817437135432 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T105049&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63783&fm=104817437135432&tin=02508201610067®Number=0000000000092737&sum=15100 0 [10:50:48]StoreToDocumentArchive [10:50:48]shift 373 fd 63783 [10:50:48]save to /storage/0373/doc_00063783 [10:50:48]save last doc name /storage/0373/doc_00063783 to /storage/kkm_last_doc_name [10:50:48]save OK [10:50:48]Clear old archive folders... [10:50:48]ProcessDocumentItem done err = 0, tmpTLVsize=274 [10:50:48]tlvbuf is 00D53EA0 [10:50:48]SAM_PROTO_ClearQueue [10:50:48]wFMCommunicate request_size=4 [10:50:48]MH_SAM_APDU [10:50:48]CAPDU: 80 09 00 00 [10:50:48]Write to MH i2c: E2 08 00 42 0A 80 09 00 00 00 00 00 00 BE [10:50:48]Write i2c OK [10:50:48]MH_I2C_Read... [10:50:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:50:48]Read from MH i2c: E2 [10:50:48]MH_I2C_Read... [10:50:48]Read from MH i2c: E2 03 00 [10:50:48]MH_I2C_Read... [10:50:48]Read from MH i2c: E2 03 00 42 0A 00 90 00 C0 [10:50:48]RAPDU: 90 00 [10:50:48]wFMCommunicate OK [10:50:48]SAM_PROTO_ClearQueue done [10:50:48]KKMCreateOFDPacket [10:50:48]OFDProtocolAddRootSTLVToBuf [10:50:48]FM_MakeSignedData [10:50:48]FM_MakeSignedData [10:50:48]SAM_PROTO_SignData [10:50:48]wFMCommunicate request_size=4 [10:50:48]MH_SAM_APDU [10:50:48]CAPDU: 80 0D 01 02 [10:50:48]Write to MH i2c: E2 08 00 43 0A 80 0D 01 02 00 00 00 00 C6 [10:50:48]Write i2c OK [10:50:48]MH_I2C_Read... [10:50:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:50:49]Read from MH i2c: E2 [10:50:49]MH_I2C_Read... [10:50:49]Read from MH i2c: E2 03 00 [10:50:49]MH_I2C_Read... [10:50:49]Read from MH i2c: E2 03 00 43 0A 00 90 00 C1 [10:50:49]RAPDU: 90 00 [10:50:49]wFMCommunicate OK [10:50:49]wFMCommunicate request_size=255 [10:50:49]MH_SAM_APDU [10:50:49]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 09 A0 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 [10:50:49]Write to MH i2c: E2 02 01 44 0A 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 09 A0 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 00 00 9D [10:50:49]Write i2c OK [10:50:49]MH_I2C_Read... [10:50:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:50:49]Read from MH i2c: E2 [10:50:49]MH_I2C_Read... [10:50:49]Read from MH i2c: E2 03 00 [10:50:49]MH_I2C_Read... [10:50:49]Read from MH i2c: E2 03 00 44 0A 00 90 00 C2 [10:50:49]RAPDU: 90 00 [10:50:49]wFMCommunicate OK [10:50:49]wFMCommunicate request_size=33 [10:50:49]MH_SAM_APDU [10:50:49]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 35 30 37 34 10 04 04 00 27 F9 00 00 35 04 06 00 5F 54 B6 1B 52 48 [10:50:49]Write to MH i2c: E2 24 00 45 0A 80 0D 02 02 1C 00 30 30 30 30 38 37 35 30 37 34 10 04 04 00 27 F9 00 00 35 04 06 00 5F 54 B6 1B 52 48 00 00 95 [10:50:49]Write i2c OK [10:50:49]MH_I2C_Read... [10:50:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:50:49]Read from MH i2c: E2 [10:50:49]MH_I2C_Read... [10:50:49]Read from MH i2c: E2 03 00 [10:50:49]MH_I2C_Read... [10:50:49]Read from MH i2c: E2 03 00 45 0A 00 90 00 C3 [10:50:49]RAPDU: 90 00 [10:50:49]wFMCommunicate OK [10:50:49]wFMCommunicate request_size=4 [10:50:49]MH_SAM_APDU [10:50:49]CAPDU: 80 0D 03 02 [10:50:49]Write to MH i2c: E2 08 00 46 0A 80 0D 03 02 00 00 00 00 CB [10:50:49]Write i2c OK [10:50:49]MH_I2C_Read... [10:50:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:50:49]Read from MH i2c: E2 [10:50:49]MH_I2C_Read... [10:50:49]Read from MH i2c: E2 0B 00 [10:50:49]MH_I2C_Read... [10:50:49]Read from MH i2c: E2 0B 00 46 0A 00 02 12 47 92 E1 5E 9A 8F 90 00 21 [10:50:49]RAPDU: 02 12 47 92 E1 5E 9A 8F 90 00 [10:50:49]wFMCommunicate OK [10:50:49]SAM_PROTO_SignData done [10:50:49]FM_MakeSignedData done [10:50:49]CreateOFDProtocolMessage [10:50:49]wFMCommunicate request_size=4 [10:50:49]MH_SAM_APDU [10:50:49]CAPDU: 80 11 00 00 [10:50:49]Write to MH i2c: E2 08 00 47 0A 80 11 00 00 00 00 00 00 CB [10:50:49]Write i2c OK [10:50:49]MH_I2C_Read... [10:50:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:50:49]Read from MH i2c: E2 [10:50:49]MH_I2C_Read... [10:50:49]Read from MH i2c: E2 17 00 [10:50:49]MH_I2C_Read... [10:50:49]Read from MH i2c: E2 17 00 47 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 1D [10:50:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [10:50:49]wFMCommunicate OK [10:50:49]CreateOFDProtocolMessage done [10:50:49]OFDSenderStorePacket 63783 [10:50:49]StoreOFDPacket docnum=63783 [10:50:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 26 01 00 00 72 45 1E 01 2C 48 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 09 A0 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 27 F9 00 00 35 04 06 00 5F 54 B6 1B 52 48 02 12 47 92 E1 5E 9A 8F [10:50:49]CheckFolder [10:50:49]dirname=/storage/ofd_packets [10:50:49]CheckFolder done [10:50:49]ProducePacketName [10:50:49]name=ofd_packets/00063783 [10:50:49]NVStorageSaveData ofd_packets/00063783 [10:50:49]File name is /storage/ofd_packets/00063783 [10:50:49]Write 324 bytes [10:50:49]NVStorageSaveData done [10:50:49]OFDSenderStorePacket done [10:50:49]KKMCreateOFDPacket done [10:50:49]NVStorageSaveData kkm_last_timestamp [10:50:49]File name is /storage/kkm_last_timestamp [10:50:49]Write 4 bytes [10:50:49]NVStorageSaveData done [10:50:49]ExternCall_PrintAddStr [10:50:49]wPrintStart [10:50:49]Write to MH i2c: 01 00 00 48 0A 52 [10:50:49]Write i2c OK [10:50:49]MH_I2C_Read... [10:50:49]Read from MH i2c: 01 [10:50:49]MH_I2C_Read... [10:50:49]Read from MH i2c: 01 07 00 [10:50:49]MH_I2C_Read... [10:50:49]Read from MH i2c: 01 07 00 48 0A 00 00 00 00 00 FF 0F 67 [10:50:49]RasterBufferAndPrint [10:50:49]line Счет N : (3)73371 [10:50:49]line ИНН: 02508201610067 [10:50:49]line Контрольно-Кассовый Чек [10:50:49]line ПРОДАЖА [10:50:49]line Товар: 48741958 [10:50:49]line Сигареты Parliament Aqua Blue [10:50:49]line 1.000 * 151.00 [10:50:49]line = 151.00 [10:50:49]line НДС 12% НСП 1% [10:50:49]line > о реализуемом товаре [10:50:49]line ИТОГО: 151.00 [10:50:49]line НСП 1% : 1.34 [10:50:49]line НДС 12% : 16.03 [10:50:49]line Наличными: 151.00 [10:50:49]line Безнал.: 0.00 [10:50:49]line Место: АЗС № 117 "Партнер Нефть" [10:50:49]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [10:50:49]line СНО: Общий режим [10:50:49]line Чек 41 03.06.2024 10:50 [10:50:49]line Смена: 373 ФФД: 1.0 [10:50:49]line ЗНМ: 0300000031 [10:50:49]line РНМ: 0000000000092737 [10:50:49]line Версия ККМ: 001 [10:50:49]line ФМ: 0000000000875074 [10:50:49]line ФД: 63783 [10:50:49]line ФПД: 104817437135432 [10:50:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T105049&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63783&fm=104817437135432&tin=02508201610067®Number=0000000000092737&sum=15100 [10:50:49]line 0 [10:50:49]OFD Sender: Processing packet 63783 [packets to send 14, broken 13] [10:50:49]ProducePacketName [10:50:49]name=ofd_packets/00063783 [10:50:49]OFD Sender: To server: pG, [10:50:49]CommunicateWithHost lk.salyk.kg:30040 [10:50:49]ConnectInit lk.salyk.kg [10:50:49]written 0, free lines is 4095 [10:50:49]Connected sock=10 [10:50:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 26 01 00 00 72 45 1E 01 2C 48 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 09 A0 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 27 F9 00 00 35 04 06 00 5F 54 B6 1B 52 48 02 12 47 92 E1 5E 9A 8F [10:50:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 2F 26 47 00 CD 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 35 30 37 34 10 04 04 00 27 F9 00 00 F4 03 04 00 DB 4B 5D 66 B6 04 01 00 00 09 62 38 EA FF 4D C7 5E [10:50:50]CommunicateWithHost err = 0 [10:50:50]CheckOFDResponse [10:50:50]1017 (14) - 77093643461234 [10:50:50]1041 (16) - 0000000000875074 [10:50:50]1040 (4) - 63783 [10:50:50]1012 (4) - 03.06.2024 04:51 [10:50:50]1206 (1) - 0 [10:50:50]OFD Sender: Remove packet 63783 [10:50:50]ProducePacketName [10:50:50]name=ofd_packets/00063783 [10:50:50]NVStorageDeleteData [10:50:50]Write to MH i2c: 01 00 00 71 0A 7B [10:50:50]Write i2c OK [10:50:50]MH_I2C_Read... [10:50:50]Read from MH i2c: 01 [10:50:50]MH_I2C_Read... [10:50:50]Read from MH i2c: 01 07 00 [10:50:50]MH_I2C_Read... [10:50:50]Read from MH i2c: 01 07 00 71 0A 00 00 00 00 00 D0 0C 5E [10:50:50]RasterBufferAndPrint [10:50:50]line [10:50:50]line [10:50:50]line [10:50:50]line [10:50:50]line [10:50:50]written 0, free lines is 3284 [10:50:50]MH_Cut [10:50:50]Write to MH i2c: D1 01 00 78 0A 01 54 [10:50:50]Write i2c OK [10:50:50]MH_I2C_Read... [10:50:50]Read from MH i2c: D1 [10:50:50]MH_I2C_Read... [10:50:50]Read from MH i2c: D1 01 00 [10:50:50]MH_I2C_Read... [10:50:50]Read from MH i2c: D1 01 00 78 0A 00 53 [10:50:50]Write to MH i2c: 01 00 00 79 0A 83 [10:50:50]Write i2c OK [10:50:50]MH_I2C_Read... [10:50:50]OFD Sender: No OFD packet to send [10:50:51]*** Cut start [10:50:51]*** Partial cut [10:50:51]*** CUTSNS_PIN = 1 [10:50:51]*** CUTSNS_PIN = 0 [10:50:51]*** Brake cut motor [10:50:51]Read from MH i2c: 01 [10:50:51]MH_I2C_Read... [10:50:51]*** Stop cut motor [10:50:51]*** Cut end [10:50:51]Read from MH i2c: 01 07 00 [10:50:51]MH_I2C_Read... [10:50:51]Read from MH i2c: 01 07 00 79 0A 00 00 00 00 00 FF 0F 98 [10:50:51]process_action close_receipt done [10:50:51]requested_data is exist [10:50:51]produce_requested_data [10:50:51]requested_item fm.sn is exist - process it [10:50:51]wFMCommunicate request_size=4 [10:50:51]MH_SAM_APDU [10:50:51]CAPDU: 80 11 00 00 [10:50:51]Write to MH i2c: E2 08 00 7A 0A 80 11 00 00 00 00 00 00 FE [10:50:51]Write i2c OK [10:50:51]MH_I2C_Read... [10:50:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:50:51]Read from MH i2c: E2 [10:50:51]MH_I2C_Read... [10:50:51]Read from MH i2c: E2 17 00 [10:50:51]MH_I2C_Read... [10:50:51]Read from MH i2c: E2 17 00 7A 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 50 [10:50:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [10:50:51]wFMCommunicate OK [10:50:51]requested_item fd.num is exist - process it [10:50:51]SAM_PROTO_GetFieldsCounters [10:50:51]wFMCommunicate request_size=4 [10:50:51]MH_SAM_APDU [10:50:51]CAPDU: 80 13 00 00 [10:50:51]Write to MH i2c: E2 08 00 7B 0A 80 13 00 00 00 00 00 00 01 [10:50:51]Write i2c OK [10:50:51]MH_I2C_Read... [10:50:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:50:51]Read from MH i2c: E2 [10:50:51]MH_I2C_Read... [10:50:51]Read from MH i2c: E2 62 00 [10:50:51]MH_I2C_Read... [10:50:51]Read from MH i2c: E2 62 00 7B 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 27 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 35 [10:50: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 27 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:50:51]wFMCommunicate OK [10:50:51]SAM_PROTO_GetFieldsCounters done [10:50:51]requested_item shift.num is exist - process it [10:50:51]requested_item shift.opened is exist - process it [10:50:51]req_shift_opened [10:50:51]FM_GetShiftState [10:50:51]SAM_PROTO_GetShiftState [10:50:51]wFMCommunicate request_size=4 [10:50:51]MH_SAM_APDU [10:50:51]CAPDU: 80 13 01 00 [10:50:51]Write to MH i2c: E2 08 00 7C 0A 80 13 01 00 00 00 00 00 03 [10:50:51]Write i2c OK [10:50:51]MH_I2C_Read... [10:50:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:50:51]Read from MH i2c: E2 [10:50:51]MH_I2C_Read... [10:50:51]Read from MH i2c: E2 0E 00 [10:50:51]MH_I2C_Read... [10:50:51]Read from MH i2c: E2 0E 00 7C 0A 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 CF [10:50:51]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [10:50:51]wFMCommunicate OK [10:50:51]SAM_PROTO_GetShiftState done [10:50:51]FM_GetShiftState done [10:50:51]req_shift_opened done [10:50:51]requested_item shift.open_date is exist - process it [10:50:51]req_shift_open_date [10:50:51]req_shift_open_date done [10:50:51]produce_requested_data done [10:50:51]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63783,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [10:50:51]process_action_free close_receipt [10:50:51]json_value_free [10:50:51]json_value_free done [10:50:51]process_json_proto returns [10:50:51]Send response to host [10:50:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63783,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [10:50:51]free response buf [10:50:51]execute_script done [10:50:51]execute_script returns [10:50:51]free content buf [10:50:51]Sock 9.Close socket [10:50:51]Sock 9.Thread stoped [10:50:55]OFD Sender: No OFD packet to send [10:51:00]OFD Sender: No OFD packet to send [10:51:05]OFD Sender: No OFD packet to send [10:51:10]OFD Sender: No OFD packet to send [10:51:15]OFD Sender: No OFD packet to send [10:51:20]OFD Sender: No OFD packet to send [10:51:25]OFD Sender: No OFD packet to send [10:51:30]OFD Sender: No OFD packet to send [10:51:35]OFD Sender: No OFD packet to send [10:51:40]OFD Sender: No OFD packet to send [10:51:45]OFD Sender: No OFD packet to send [10:51:50]OFD Sender: No OFD packet to send [10:51:55]OFD Sender: No OFD packet to send [10:52:00]OFD Sender: No OFD packet to send [10:52:05]OFD Sender: No OFD packet to send [10:52:10]OFD Sender: No OFD packet to send [10:52:15]OFD Sender: No OFD packet to send [10:52:20]OFD Sender: No OFD packet to send [10:52:25]OFD Sender: No OFD packet to send [10:52:30]OFD Sender: No OFD packet to send [10:52:35]OFD Sender: No OFD packet to send [10:52:40]OFD Sender: No OFD packet to send [10:52:45]OFD Sender: No OFD packet to send [10:52:50]OFD Sender: No OFD packet to send [10:52:55]OFD Sender: No OFD packet to send [10:53:00]OFD Sender: No OFD packet to send [10:53:05]OFD Sender: No OFD packet to send [10:53:10]OFD Sender: No OFD packet to send [10:53:15]OFD Sender: No OFD packet to send [10:53:20]OFD Sender: No OFD packet to send [10:53:25]OFD Sender: No OFD packet to send [10:53:30]OFD Sender: No OFD packet to send [10:53:35]OFD Sender: No OFD packet to send [10:53:40]OFD Sender: No OFD packet to send [10:53:45]OFD Sender: No OFD packet to send [10:53:50]OFD Sender: No OFD packet to send [10:53:55]OFD Sender: No OFD packet to send [10:54:00]OFD Sender: No OFD packet to send [10:54:05]OFD Sender: No OFD packet to send [10:54:10]OFD Sender: No OFD packet to send [10:54:15]OFD Sender: No OFD packet to send [10:54:20]OFD Sender: No OFD packet to send [10:54:25]OFD Sender: No OFD packet to send [10:54:30]OFD Sender: No OFD packet to send [10:54:35]OFD Sender: No OFD packet to send [10:54:40]OFD Sender: No OFD packet to send [10:54:45]OFD Sender: No OFD packet to send [10:54:50]OFD Sender: No OFD packet to send [10:54:55]OFD Sender: No OFD packet to send [10:55:00]OFD Sender: No OFD packet to send [10:55:05]OFD Sender: No OFD packet to send [10:55:10]OFD Sender: No OFD packet to send [10:55:15]OFD Sender: No OFD packet to send [10:55:20]OFD Sender: No OFD packet to send [10:55:25]OFD Sender: No OFD packet to send [10:55:30]OFD Sender: No OFD packet to send [10:55:35]OFD Sender: No OFD packet to send [10:55:40]OFD Sender: No OFD packet to send [10:55:45]OFD Sender: No OFD packet to send [10:55:50]OFD Sender: No OFD packet to send [10:55:55]OFD Sender: No OFD packet to send [10:56:00]OFD Sender: No OFD packet to send [10:56:05]OFD Sender: No OFD packet to send [10:56:10]OFD Sender: No OFD packet to send [10:56:15]OFD Sender: No OFD packet to send [10:56:20]OFD Sender: No OFD packet to send [10:56:25]OFD Sender: No OFD packet to send [10:56:30]OFD Sender: No OFD packet to send [10:56:35]OFD Sender: No OFD packet to send [10:56:40]OFD Sender: No OFD packet to send [10:56:45]OFD Sender: No OFD packet to send [10:56:50]OFD Sender: No OFD packet to send [10:56:55]OFD Sender: No OFD packet to send [10:57:00]OFD Sender: No OFD packet to send [10:57:05]OFD Sender: No OFD packet to send [10:57:10]OFD Sender: No OFD packet to send [10:57:15]OFD Sender: No OFD packet to send [10:57:20]OFD Sender: No OFD packet to send [10:57:25]OFD Sender: No OFD packet to send [10:57:30]OFD Sender: No OFD packet to send [10:57:35]OFD Sender: No OFD packet to send [10:57:40]OFD Sender: No OFD packet to send [10:57:45]OFD Sender: No OFD packet to send [10:57:50]OFD Sender: No OFD packet to send [10:57:55]OFD Sender: No OFD packet to send [10:58:00]OFD Sender: No OFD packet to send [10:58:05]OFD Sender: No OFD packet to send [10:58:10]OFD Sender: No OFD packet to send [10:58:15]OFD Sender: No OFD packet to send [10:58:20]OFD Sender: No OFD packet to send [10:58:25]OFD Sender: No OFD packet to send [10:58:30]OFD Sender: No OFD packet to send [10:58:35]OFD Sender: No OFD packet to send [10:58:40]OFD Sender: No OFD packet to send [10:58:45]OFD Sender: No OFD packet to send [10:58:50]OFD Sender: No OFD packet to send [10:58:55]OFD Sender: No OFD packet to send [10:59:00]OFD Sender: No OFD packet to send [10:59:05]OFD Sender: No OFD packet to send [10:59:10]OFD Sender: No OFD packet to send [10:59:11]accept exits with 7 [10:59:11]New connection [10:59:11]New thread 3067374948 created [10:59:11]Thread 3067518308 joined [10:59:11]Waiting for new connection... [10:59:11] Sock 7.Parse request [10:59:11]Sock 7.Check first char [10:59:11]Sock 7.First char is OK [10:59:11]request: POST /json_proto HTTP/1.0 [10:59:11]Method: POST [10:59:11]URL: /json_proto [10:59:11]Method is POST - this is cgi request [10:59:11]url: /json_proto [10:59:11]query_string will be loaded in cgi processing [10:59:11]execute_cgi json_proto POST (null) [10:59:11]execute_cgi path=json_proto method=POST [10:59:11]POST find Content-Length [10:59:11]Host: 172.17.60.69:8080 [10:59:11]Content-Length: 612 [10:59:11]Content-Type: application/json [10:59:11] [10:59:11]POST finish read [10:59:11]Found Content-Length = 612 [10:59:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73372", "tax_sys" : 0, "items" : [ { "code": "4870001570057", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 0,5\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 80.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:59:11]execute_script... [10:59:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73372", "tax_sys" : 0, "items" : [ { "code": "4870001570057", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 0,5\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 80.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:59:11]POST & json_proto [10:59:11]process_json_proto [10:59:11]json parsed OK: [10:59:11]protocol is kg_v1.0 [10:59:11]action value=close_receipt [10:59:11]process_action close_receipt [10:59:11]cmd_close_receipt [10:59:11]MH_GetDate [10:59:11]Write to MH i2c: F0 00 00 7D 0A 76 [10:59:11]Write i2c OK [10:59:11]MH_I2C_Read... [10:59:11]Read from MH i2c: F0 [10:59:11]MH_I2C_Read... [10:59:11]Read from MH i2c: F0 09 00 [10:59:11]MH_I2C_Read... [10:59:11]Read from MH i2c: F0 09 00 7D 0A 00 01 A2 5D 66 6A 96 4A 66 95 [10:59:11]GetLastDocTimeStamp 1717411849 [10:59:11]current date 1717412353 [10:59:11]FM_GetShiftState [10:59:11]SAM_PROTO_GetShiftState [10:59:11]wFMCommunicate request_size=4 [10:59:11]MH_SAM_APDU [10:59:11]CAPDU: 80 13 01 00 [10:59:11]Write to MH i2c: E2 08 00 7E 0A 80 13 01 00 00 00 00 00 05 [10:59:11]Write i2c OK [10:59:11]MH_I2C_Read... [10:59:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:59:11]Read from MH i2c: E2 [10:59:11]MH_I2C_Read... [10:59:11]Read from MH i2c: E2 0E 00 [10:59:11]MH_I2C_Read... [10:59:11]Read from MH i2c: E2 0E 00 7E 0A 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 D1 [10:59:11]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [10:59:11]wFMCommunicate OK [10:59:11]SAM_PROTO_GetShiftState done [10:59:11]FM_GetShiftState done [10:59:11]opened in 1717373173 [10:59:11]opened+sec_in_day 1717459573 [10:59:11]quantity*price = 8000 [10:59:11]sum+1 = 8001 [10:59:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 80.00 НСП 1% : 0.71 НДС 12% : 8.50 Наличными: 80.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 42 03.06.2024 10:59 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63784 ФПД: 247962098749421 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T105913&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63784&fm=247962098749421&tin=02508201610067®Number=0000000000092737&sum=8000 0 [10:59:13]StoreToDocumentArchive [10:59:13]shift 373 fd 63784 [10:59:13]save to /storage/0373/doc_00063784 [10:59:13]save last doc name /storage/0373/doc_00063784 to /storage/kkm_last_doc_name [10:59:13]save OK [10:59:13]Clear old archive folders... [10:59:13]ProcessDocumentItem done err = 0, tmpTLVsize=268 [10:59:13]tlvbuf is 00D47940 [10:59:13]SAM_PROTO_ClearQueue [10:59:13]wFMCommunicate request_size=4 [10:59:13]MH_SAM_APDU [10:59:13]CAPDU: 80 09 00 00 [10:59:13]Write to MH i2c: E2 08 00 8B 0A 80 09 00 00 00 00 00 00 07 [10:59:13]Write i2c OK [10:59:13]MH_I2C_Read... [10:59:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:59:13]Read from MH i2c: E2 [10:59:13]MH_I2C_Read... [10:59:13]Read from MH i2c: E2 03 00 [10:59:13]MH_I2C_Read... [10:59:13]Read from MH i2c: E2 03 00 8B 0A 00 90 00 09 [10:59:13]RAPDU: 90 00 [10:59:13]wFMCommunicate OK [10:59:13]SAM_PROTO_ClearQueue done [10:59:13]KKMCreateOFDPacket [10:59:13]OFDProtocolAddRootSTLVToBuf [10:59:13]FM_MakeSignedData [10:59:13]FM_MakeSignedData [10:59:13]SAM_PROTO_SignData [10:59:13]wFMCommunicate request_size=4 [10:59:13]MH_SAM_APDU [10:59:13]CAPDU: 80 0D 01 02 [10:59:13]Write to MH i2c: E2 08 00 8C 0A 80 0D 01 02 00 00 00 00 0F [10:59:13]Write i2c OK [10:59:13]MH_I2C_Read... [10:59:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:59:13]Read from MH i2c: E2 [10:59:13]MH_I2C_Read... [10:59:13]Read from MH i2c: E2 03 00 [10:59:13]MH_I2C_Read... [10:59:13]Read from MH i2c: E2 03 00 8C 0A 00 90 00 0A [10:59:13]RAPDU: 90 00 [10:59:13]wFMCommunicate OK [10:59:13]wFMCommunicate request_size=255 [10:59:13]MH_SAM_APDU [10:59:13]CAPDU: 80 0D 02 02 FA 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 01 A2 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 [10:59:13]Write to MH i2c: E2 02 01 8D 0A 80 0D 02 02 FA 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 01 A2 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 00 00 2B [10:59:13]Write i2c OK [10:59:13]MH_I2C_Read... [10:59:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:59:13]Read from MH i2c: E2 [10:59:13]MH_I2C_Read... [10:59:13]Read from MH i2c: E2 03 00 [10:59:13]MH_I2C_Read... [10:59:13]Read from MH i2c: E2 03 00 8D 0A 00 90 00 0B [10:59:13]RAPDU: 90 00 [10:59:13]wFMCommunicate OK [10:59:13]wFMCommunicate request_size=27 [10:59:13]MH_SAM_APDU [10:59:13]CAPDU: 80 0D 02 02 16 35 30 37 34 10 04 04 00 28 F9 00 00 35 04 06 00 E1 85 2C D0 4F ED [10:59:13]Write to MH i2c: E2 1E 00 8E 0A 80 0D 02 02 16 00 35 30 37 34 10 04 04 00 28 F9 00 00 35 04 06 00 E1 85 2C D0 4F ED 00 00 24 [10:59:13]Write i2c OK [10:59:13]MH_I2C_Read... [10:59:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:59:13]Read from MH i2c: E2 [10:59:13]MH_I2C_Read... [10:59:13]Read from MH i2c: E2 03 00 [10:59:13]MH_I2C_Read... [10:59:13]Read from MH i2c: E2 03 00 8E 0A 00 90 00 0C [10:59:13]RAPDU: 90 00 [10:59:13]wFMCommunicate OK [10:59:13]wFMCommunicate request_size=4 [10:59:13]MH_SAM_APDU [10:59:13]CAPDU: 80 0D 03 02 [10:59:13]Write to MH i2c: E2 08 00 8F 0A 80 0D 03 02 00 00 00 00 14 [10:59:13]Write i2c OK [10:59:13]MH_I2C_Read... [10:59:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:59:13]Read from MH i2c: E2 [10:59:13]MH_I2C_Read... [10:59:13]Read from MH i2c: E2 0B 00 [10:59:13]MH_I2C_Read... [10:59:13]Read from MH i2c: E2 0B 00 8F 0A 00 D6 0B 6A 49 B6 1E E5 81 90 00 E3 [10:59:13]RAPDU: D6 0B 6A 49 B6 1E E5 81 90 00 [10:59:13]wFMCommunicate OK [10:59:13]SAM_PROTO_SignData done [10:59:13]FM_MakeSignedData done [10:59:13]CreateOFDProtocolMessage [10:59:13]wFMCommunicate request_size=4 [10:59:13]MH_SAM_APDU [10:59:13]CAPDU: 80 11 00 00 [10:59:13]Write to MH i2c: E2 08 00 90 0A 80 11 00 00 00 00 00 00 14 [10:59:13]Write i2c OK [10:59:13]MH_I2C_Read... [10:59:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:59:13]Read from MH i2c: E2 [10:59:13]MH_I2C_Read... [10:59:13]Read from MH i2c: E2 17 00 [10:59:13]MH_I2C_Read... [10:59:13]Read from MH i2c: E2 17 00 90 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 66 [10:59:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [10:59:13]wFMCommunicate OK [10:59:13]CreateOFDProtocolMessage done [10:59:13]OFDSenderStorePacket 63784 [10:59:13]StoreOFDPacket docnum=63784 [10:59:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 20 01 00 00 ED 37 18 01 07 97 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 01 A2 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 28 F9 00 00 35 04 06 00 E1 85 2C D0 4F ED D6 0B 6A 49 B6 1E E5 81 [10:59:13]CheckFolder [10:59:13]dirname=/storage/ofd_packets [10:59:13]CheckFolder done [10:59:13]ProducePacketName [10:59:13]name=ofd_packets/00063784 [10:59:13]NVStorageSaveData ofd_packets/00063784 [10:59:13]File name is /storage/ofd_packets/00063784 [10:59:13]Write 318 bytes [10:59:13]NVStorageSaveData done [10:59:13]OFDSenderStorePacket done [10:59:13]KKMCreateOFDPacket done [10:59:13]NVStorageSaveData kkm_last_timestamp [10:59:13]File name is /storage/kkm_last_timestamp [10:59:13]Write 4 bytes [10:59:13]NVStorageSaveData done [10:59:13]ExternCall_PrintAddStr [10:59:13]wPrintStart [10:59:13]Write to MH i2c: 01 00 00 91 0A 9B [10:59:13]Write i2c OK [10:59:13]MH_I2C_Read... [10:59:13]Read from MH i2c: 01 [10:59:13]MH_I2C_Read... [10:59:13]Read from MH i2c: 01 07 00 [10:59:13]MH_I2C_Read... [10:59:13]Read from MH i2c: 01 07 00 91 0A 00 00 00 00 00 FF 0F B0 [10:59:13]RasterBufferAndPrint [10:59:13]line Счет N : (3)73372 [10:59:13]line ИНН: 02508201610067 [10:59:13]line Контрольно-Кассовый Чек [10:59:13]line ПРОДАЖА [10:59:13]line Товар: 4870001570057 [10:59:13]line Напиток Pepsi 0,5л [10:59:13]line 1.000 * 80.00 [10:59:13]line = 80.00 [10:59:13]line НДС 12% НСП 1% [10:59:13]line > о реализуемом товаре [10:59:13]line ИТОГО: 80.00 [10:59:13]line НСП 1% : 0.71 [10:59:13]line НДС 12% : 8.50 [10:59:13]line Наличными: 80.00 [10:59:13]line Безнал.: 0.00 [10:59:13]line Место: АЗС № 117 "Партнер Нефть" [10:59:13]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [10:59:13]line СНО: Общий режим [10:59:13]line Чек 42 03.06.2024 10:59 [10:59:13]line Смена: 373 ФФД: 1.0 [10:59:13]line ЗНМ: 0300000031 [10:59:13]line РНМ: 0000000000092737 [10:59:13]line Версия ККМ: 001 [10:59:13]line ФМ: 0000000000875074 [10:59:13]line ФД: 63784 [10:59:13]line ФПД: 247962098749421 [10:59:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T105913&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63784&fm=247962098749421&tin=02508201610067®Number=0000000000092737&sum=8000 [10:59:13]line 0 [10:59:13]OFD Sender: Processing packet 63784 [packets to send 14, broken 13] [10:59:13]ProducePacketName [10:59:13]name=ofd_packets/00063784 [10:59:13]OFD Sender: To server: pG, [10:59:13]CommunicateWithHost lk.salyk.kg:30040 [10:59:13]ConnectInit lk.salyk.kg [10:59:13]written 0, free lines is 4095 [10:59:14]Connected sock=10 [10:59:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 20 01 00 00 ED 37 18 01 07 97 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 01 A2 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 28 F9 00 00 35 04 06 00 E1 85 2C D0 4F ED D6 0B 6A 49 B6 1E E5 81 [10:59:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 9B F7 47 00 F2 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 35 30 37 34 10 04 04 00 28 F9 00 00 F4 03 04 00 D3 4D 5D 66 B6 04 01 00 00 B8 87 B5 1E 60 38 EC 84 [10:59:14]CommunicateWithHost err = 0 [10:59:14]CheckOFDResponse [10:59:14]1017 (14) - 77093643461234 [10:59:14]1041 (16) - 0000000000875074 [10:59:14]1040 (4) - 63784 [10:59:14]1012 (4) - 03.06.2024 05:00 [10:59:14]1206 (1) - 0 [10:59:14]OFD Sender: Remove packet 63784 [10:59:14]ProducePacketName [10:59:14]name=ofd_packets/00063784 [10:59:14]NVStorageDeleteData [10:59:14]Write to MH i2c: 01 00 00 B9 0A C3 [10:59:14]Write i2c OK [10:59:14]MH_I2C_Read... [10:59:14]Read from MH i2c: 01 [10:59:14]MH_I2C_Read... [10:59:14]Read from MH i2c: 01 07 00 [10:59:14]MH_I2C_Read... [10:59:14]Read from MH i2c: 01 07 00 B9 0A 00 00 00 00 00 15 0D EC [10:59:14]RasterBufferAndPrint [10:59:14]line [10:59:14]line [10:59:14]line [10:59:14]line [10:59:14]line [10:59:14]written 0, free lines is 3357 [10:59:14]MH_Cut [10:59:14]Write to MH i2c: D1 01 00 C0 0A 01 9C [10:59:14]Write i2c OK [10:59:14]MH_I2C_Read... [10:59:14]Read from MH i2c: D1 [10:59:14]MH_I2C_Read... [10:59:14]Read from MH i2c: D1 01 00 [10:59:14]MH_I2C_Read... [10:59:14]Read from MH i2c: D1 01 00 C0 0A 00 9B [10:59:14]Write to MH i2c: 01 00 00 C1 0A CB [10:59:14]Write i2c OK [10:59:14]MH_I2C_Read... [10:59:14]OFD Sender: No OFD packet to send [10:59:15]*** Cut start [10:59:15]*** Partial cut [10:59:15]*** CUTSNS_PIN = 1 [10:59:15]*** CUTSNS_PIN = 0 [10:59:15]*** Brake cut motor [10:59:15]Read from MH i2c: 01 [10:59:15]MH_I2C_Read... [10:59:15]*** Stop cut motor [10:59:15]*** Cut end [10:59:15]Read from MH i2c: 01 07 00 [10:59:15]MH_I2C_Read... [10:59:15]Read from MH i2c: 01 07 00 C1 0A 00 00 00 00 00 FF 0F E0 [10:59:15]process_action close_receipt done [10:59:15]requested_data is exist [10:59:15]produce_requested_data [10:59:15]requested_item fm.sn is exist - process it [10:59:15]wFMCommunicate request_size=4 [10:59:15]MH_SAM_APDU [10:59:15]CAPDU: 80 11 00 00 [10:59:15]Write to MH i2c: E2 08 00 C2 0A 80 11 00 00 00 00 00 00 46 [10:59:15]Write i2c OK [10:59:15]MH_I2C_Read... [10:59:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:59:15]Read from MH i2c: E2 [10:59:15]MH_I2C_Read... [10:59:15]Read from MH i2c: E2 17 00 [10:59:15]MH_I2C_Read... [10:59:15]Read from MH i2c: E2 17 00 C2 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 98 [10:59:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [10:59:15]wFMCommunicate OK [10:59:15]requested_item fd.num is exist - process it [10:59:15]SAM_PROTO_GetFieldsCounters [10:59:15]wFMCommunicate request_size=4 [10:59:15]MH_SAM_APDU [10:59:15]CAPDU: 80 13 00 00 [10:59:15]Write to MH i2c: E2 08 00 C3 0A 80 13 00 00 00 00 00 00 49 [10:59:15]Write i2c OK [10:59:15]MH_I2C_Read... [10:59:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:59:15]Read from MH i2c: E2 [10:59:15]MH_I2C_Read... [10:59:15]Read from MH i2c: E2 62 00 [10:59:15]MH_I2C_Read... [10:59:15]Read from MH i2c: E2 62 00 C3 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 28 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 81 [10:59: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 28 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:59:15]wFMCommunicate OK [10:59:15]SAM_PROTO_GetFieldsCounters done [10:59:15]requested_item shift.num is exist - process it [10:59:15]requested_item shift.opened is exist - process it [10:59:15]req_shift_opened [10:59:15]FM_GetShiftState [10:59:15]SAM_PROTO_GetShiftState [10:59:15]wFMCommunicate request_size=4 [10:59:15]MH_SAM_APDU [10:59:15]CAPDU: 80 13 01 00 [10:59:15]Write to MH i2c: E2 08 00 C4 0A 80 13 01 00 00 00 00 00 4B [10:59:15]Write i2c OK [10:59:15]MH_I2C_Read... [10:59:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:59:16]Read from MH i2c: E2 [10:59:16]MH_I2C_Read... [10:59:16]Read from MH i2c: E2 0E 00 [10:59:16]MH_I2C_Read... [10:59:16]Read from MH i2c: E2 0E 00 C4 0A 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 17 [10:59:16]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [10:59:16]wFMCommunicate OK [10:59:16]SAM_PROTO_GetShiftState done [10:59:16]FM_GetShiftState done [10:59:16]req_shift_opened done [10:59:16]requested_item shift.open_date is exist - process it [10:59:16]req_shift_open_date [10:59:16]req_shift_open_date done [10:59:16]produce_requested_data done [10:59:16]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63784,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [10:59:16]process_action_free close_receipt [10:59:16]json_value_free [10:59:16]json_value_free done [10:59:16]process_json_proto returns [10:59:16]Send response to host [10:59:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63784,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [10:59:16]free response buf [10:59:16]execute_script done [10:59:16]execute_script returns [10:59:16]free content buf [10:59:16]Sock 7.Close socket [10:59:16]Sock 7.Thread stoped [10:59:19]OFD Sender: No OFD packet to send [10:59:24]OFD Sender: No OFD packet to send [10:59:29]OFD Sender: No OFD packet to send [10:59:34]OFD Sender: No OFD packet to send [10:59:39]accept exits with 9 [10:59:39]New connection [10:59:39]New thread 3067518308 created [10:59:39]Thread 3067374948 joined [10:59:39]Waiting for new connection... [10:59:39] Sock 9.Parse request [10:59:39]Sock 9.Check first char [10:59:39]Sock 9.First char is OK [10:59:39]request: POST /json_proto HTTP/1.0 [10:59:39]Method: POST [10:59:39]URL: /json_proto [10:59:39]Method is POST - this is cgi request [10:59:39]url: /json_proto [10:59:39]query_string will be loaded in cgi processing [10:59:39]execute_cgi json_proto POST (null) [10:59:39]execute_cgi path=json_proto method=POST [10:59:39]POST find Content-Length [10:59:39]Host: 172.17.60.69:8080 [10:59:39]Content-Length: 620 [10:59:39]Content-Type: application/json [10:59:39] [10:59:39]POST finish read [10:59:39]Found Content-Length = 620 [10:59:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73373", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:59:39]execute_script... [10:59:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73373", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:59:39]POST & json_proto [10:59:39]process_json_proto [10:59:39]json parsed OK: [10:59:39]protocol is kg_v1.0 [10:59:39]action value=close_receipt [10:59:39]process_action close_receipt [10:59:39]cmd_close_receipt [10:59:39]MH_GetDate [10:59:39]Write to MH i2c: F0 00 00 C5 0A BE [10:59:39]Write i2c OK [10:59:39]MH_I2C_Read... [10:59:39]Read from MH i2c: F0 [10:59:39]MH_I2C_Read... [10:59:39]Read from MH i2c: F0 09 00 [10:59:39]MH_I2C_Read... [10:59:39]Read from MH i2c: F0 09 00 C5 0A 00 1D A2 5D 66 6A 96 4A 66 F9 [10:59:39]GetLastDocTimeStamp 1717412353 [10:59:39]current date 1717412381 [10:59:39]FM_GetShiftState [10:59:39]SAM_PROTO_GetShiftState [10:59:39]wFMCommunicate request_size=4 [10:59:39]MH_SAM_APDU [10:59:39]CAPDU: 80 13 01 00 [10:59:39]Write to MH i2c: E2 08 00 C6 0A 80 13 01 00 00 00 00 00 4D [10:59:39]Write i2c OK [10:59:39]MH_I2C_Read... [10:59:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:59:39]Read from MH i2c: E2 [10:59:39]MH_I2C_Read... [10:59:39]Read from MH i2c: E2 0E 00 [10:59:39]MH_I2C_Read... [10:59:39]Read from MH i2c: E2 0E 00 C6 0A 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 19 [10:59:39]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [10:59:39]wFMCommunicate OK [10:59:39]SAM_PROTO_GetShiftState done [10:59:39]FM_GetShiftState done [10:59:39]opened in 1717373173 [10:59:39]opened+sec_in_day 1717459573 [10:59:39]quantity*price = 14000 [10:59:39]sum+1 = 14001 [10:59:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 43 03.06.2024 10:59 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63785 ФПД: 74402612610911 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T105941&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63785&fm=74402612610911&tin=02508201610067®Number=0000000000092737&sum=14000 0 [10:59:40]StoreToDocumentArchive [10:59:40]shift 373 fd 63785 [10:59:40]save to /storage/0373/doc_00063785 [10:59:40]save last doc name /storage/0373/doc_00063785 to /storage/kkm_last_doc_name [10:59:40]save OK [10:59:40]Clear old archive folders... [10:59:40]ProcessDocumentItem done err = 0, tmpTLVsize=273 [10:59:40]tlvbuf is 00D5A010 [10:59:40]SAM_PROTO_ClearQueue [10:59:40]wFMCommunicate request_size=4 [10:59:40]MH_SAM_APDU [10:59:40]CAPDU: 80 09 00 00 [10:59:40]Write to MH i2c: E2 08 00 D3 0A 80 09 00 00 00 00 00 00 4F [10:59:40]Write i2c OK [10:59:40]MH_I2C_Read... [10:59:40]Read from MH i2c: E2 [10:59:40]MH_I2C_Read... [10:59:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:59:40]Read from MH i2c: E2 03 00 [10:59:40]MH_I2C_Read... [10:59:40]Read from MH i2c: E2 03 00 D3 0A 00 90 00 51 [10:59:40]RAPDU: 90 00 [10:59:40]wFMCommunicate OK [10:59:40]SAM_PROTO_ClearQueue done [10:59:40]KKMCreateOFDPacket [10:59:40]OFDProtocolAddRootSTLVToBuf [10:59:40]FM_MakeSignedData [10:59:40]FM_MakeSignedData [10:59:40]SAM_PROTO_SignData [10:59:40]wFMCommunicate request_size=4 [10:59:40]MH_SAM_APDU [10:59:40]CAPDU: 80 0D 01 02 [10:59:40]Write to MH i2c: E2 08 00 D4 0A 80 0D 01 02 00 00 00 00 57 [10:59:40]Write i2c OK [10:59:40]MH_I2C_Read... [10:59:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:59:40]Read from MH i2c: E2 [10:59:40]MH_I2C_Read... [10:59:40]Read from MH i2c: E2 03 00 [10:59:40]MH_I2C_Read... [10:59:40]Read from MH i2c: E2 03 00 D4 0A 00 90 00 52 [10:59:40]RAPDU: 90 00 [10:59:40]wFMCommunicate OK [10:59:40]wFMCommunicate request_size=255 [10:59:40]MH_SAM_APDU [10:59:40]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 1D A2 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 [10:59:40]Write to MH i2c: E2 02 01 D5 0A 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 1D A2 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 00 00 72 [10:59:40]Write i2c OK [10:59:40]MH_I2C_Read... [10:59:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:59:41]Read from MH i2c: E2 [10:59:41]MH_I2C_Read... [10:59:41]Read from MH i2c: E2 03 00 [10:59:41]MH_I2C_Read... [10:59:41]Read from MH i2c: E2 03 00 D5 0A 00 90 00 53 [10:59:41]RAPDU: 90 00 [10:59:41]wFMCommunicate OK [10:59:41]wFMCommunicate request_size=32 [10:59:41]MH_SAM_APDU [10:59:41]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 35 30 37 34 10 04 04 00 29 F9 00 00 35 04 06 00 43 AB 35 4B 87 5F [10:59:41]Write to MH i2c: E2 23 00 D6 0A 80 0D 02 02 1B 00 30 30 30 38 37 35 30 37 34 10 04 04 00 29 F9 00 00 35 04 06 00 43 AB 35 4B 87 5F 00 00 2C [10:59:41]Write i2c OK [10:59:41]MH_I2C_Read... [10:59:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:59:41]Read from MH i2c: E2 [10:59:41]MH_I2C_Read... [10:59:41]Read from MH i2c: E2 03 00 [10:59:41]MH_I2C_Read... [10:59:41]Read from MH i2c: E2 03 00 D6 0A 00 90 00 54 [10:59:41]RAPDU: 90 00 [10:59:41]wFMCommunicate OK [10:59:41]wFMCommunicate request_size=4 [10:59:41]MH_SAM_APDU [10:59:41]CAPDU: 80 0D 03 02 [10:59:41]Write to MH i2c: E2 08 00 D7 0A 80 0D 03 02 00 00 00 00 5C [10:59:41]Write i2c OK [10:59:41]MH_I2C_Read... [10:59:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:59:41]Read from MH i2c: E2 [10:59:41]MH_I2C_Read... [10:59:41]Read from MH i2c: E2 0B 00 [10:59:41]MH_I2C_Read... [10:59:41]Read from MH i2c: E2 0B 00 D7 0A 00 10 07 A1 24 82 60 33 E7 90 00 35 [10:59:41]RAPDU: 10 07 A1 24 82 60 33 E7 90 00 [10:59:41]wFMCommunicate OK [10:59:41]SAM_PROTO_SignData done [10:59:41]FM_MakeSignedData done [10:59:41]CreateOFDProtocolMessage [10:59:41]wFMCommunicate request_size=4 [10:59:41]MH_SAM_APDU [10:59:41]CAPDU: 80 11 00 00 [10:59:41]Write to MH i2c: E2 08 00 D8 0A 80 11 00 00 00 00 00 00 5C [10:59:41]Write i2c OK [10:59:41]MH_I2C_Read... [10:59:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:59:41]Read from MH i2c: E2 [10:59:41]MH_I2C_Read... [10:59:41]Read from MH i2c: E2 17 00 [10:59:41]MH_I2C_Read... [10:59:41]Read from MH i2c: E2 17 00 D8 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 AE [10:59:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [10:59:41]wFMCommunicate OK [10:59:41]CreateOFDProtocolMessage done [10:59:41]OFDSenderStorePacket 63785 [10:59:41]StoreOFDPacket docnum=63785 [10:59:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 25 01 00 00 B6 93 1D 01 35 9F 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 1D A2 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 29 F9 00 00 35 04 06 00 43 AB 35 4B 87 5F 10 07 A1 24 82 60 33 E7 [10:59:41]CheckFolder [10:59:41]dirname=/storage/ofd_packets [10:59:41]CheckFolder done [10:59:41]ProducePacketName [10:59:41]name=ofd_packets/00063785 [10:59:41]NVStorageSaveData ofd_packets/00063785 [10:59:41]File name is /storage/ofd_packets/00063785 [10:59:41]Write 323 bytes [10:59:41]NVStorageSaveData done [10:59:41]OFDSenderStorePacket done [10:59:41]KKMCreateOFDPacket done [10:59:41]NVStorageSaveData kkm_last_timestamp [10:59:41]File name is /storage/kkm_last_timestamp [10:59:41]Write 4 bytes [10:59:41]NVStorageSaveData done [10:59:41]ExternCall_PrintAddStr [10:59:41]wPrintStart [10:59:41]Write to MH i2c: 01 00 00 D9 0A E3 [10:59:41]Write i2c OK [10:59:41]MH_I2C_Read... [10:59:41]Read from MH i2c: 01 [10:59:41]MH_I2C_Read... [10:59:41]Read from MH i2c: 01 07 00 [10:59:41]MH_I2C_Read... [10:59:41]Read from MH i2c: 01 07 00 D9 0A 00 00 00 00 00 FF 0F F8 [10:59:41]RasterBufferAndPrint [10:59:41]line Счет N : (3)73373 [10:59:41]line ИНН: 02508201610067 [10:59:41]line Контрольно-Кассовый Чек [10:59:41]line ПРОДАЖА [10:59:41]line Товар: 48743570 [10:59:41]line Сигареты Winston XStyle Blue [10:59:41]line 1.000 * 140.00 [10:59:41]line = 140.00 [10:59:41]line НДС 12% НСП 1% [10:59:41]line > о реализуемом товаре [10:59:41]line ИТОГО: 140.00 [10:59:41]line НСП 1% : 1.24 [10:59:41]line НДС 12% : 14.87 [10:59:41]line Наличными: 140.00 [10:59:41]line Безнал.: 0.00 [10:59:41]line Место: АЗС № 117 "Партнер Нефть" [10:59:41]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [10:59:41]line СНО: Общий режим [10:59:41]line Чек 43 03.06.2024 10:59 [10:59:41]line Смена: 373 ФФД: 1.0 [10:59:41]line ЗНМ: 0300000031 [10:59:41]line РНМ: 0000000000092737 [10:59:41]line Версия ККМ: 001 [10:59:41]line ФМ: 0000000000875074 [10:59:41]line ФД: 63785 [10:59:41]line ФПД: 74402612610911 [10:59:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T105941&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63785&fm=74402612610911&tin=02508201610067®Number=0000000000092737&sum=14000 [10:59:41]line 0 [10:59:41]OFD Sender: Processing packet 63785 [packets to send 14, broken 13] [10:59:41]ProducePacketName [10:59:41]name=ofd_packets/00063785 [10:59:41]OFD Sender: To server: pG, [10:59:41]CommunicateWithHost lk.salyk.kg:30040 [10:59:41]ConnectInit lk.salyk.kg [10:59:41]written 0, free lines is 4095 [10:59:41]Connected sock=10 [10:59:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 25 01 00 00 B6 93 1D 01 35 9F 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 1D A2 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 29 F9 00 00 35 04 06 00 43 AB 35 4B 87 5F 10 07 A1 24 82 60 33 E7 [10:59:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 7C 75 47 00 8C C5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 29 F9 00 00 F4 03 04 00 EF 4D 5D 66 B6 04 01 00 00 35 26 62 A3 8C AD 31 A7 [10:59:42]CommunicateWithHost err = 0 [10:59:42]CheckOFDResponse [10:59:42]1017 (14) - 77093643461234 [10:59:42]1041 (16) - 0000000000875074 [10:59:42]1040 (4) - 63785 [10:59:42]1012 (4) - 03.06.2024 05:00 [10:59:42]1206 (1) - 0 [10:59:42]OFD Sender: Remove packet 63785 [10:59:42]ProducePacketName [10:59:42]name=ofd_packets/00063785 [10:59:42]NVStorageDeleteData [10:59:42]Write to MH i2c: 01 00 00 01 0B 0C [10:59:42]Write i2c OK [10:59:42]MH_I2C_Read... [10:59:42]Read from MH i2c: 01 [10:59:42]MH_I2C_Read... [10:59:42]Read from MH i2c: 01 07 00 [10:59:42]MH_I2C_Read... [10:59:42]Read from MH i2c: 01 07 00 01 0B 00 00 00 00 00 F3 0C 12 [10:59:42]RasterBufferAndPrint [10:59:42]line [10:59:42]line [10:59:42]line [10:59:42]line [10:59:42]line [10:59:42]written 0, free lines is 3322 [10:59:42]MH_Cut [10:59:42]Write to MH i2c: D1 01 00 08 0B 01 E5 [10:59:42]Write i2c OK [10:59:42]MH_I2C_Read... [10:59:42]Read from MH i2c: D1 [10:59:42]MH_I2C_Read... [10:59:42]Read from MH i2c: D1 01 00 [10:59:42]MH_I2C_Read... [10:59:42]Read from MH i2c: D1 01 00 08 0B 00 E4 [10:59:42]Write to MH i2c: 01 00 00 09 0B 14 [10:59:42]Write i2c OK [10:59:42]MH_I2C_Read... [10:59:42]OFD Sender: No OFD packet to send [10:59:42]*** Cut start [10:59:42]*** Partial cut [10:59:42]*** CUTSNS_PIN = 1 [10:59:42]*** CUTSNS_PIN = 0 [10:59:43]*** Brake cut motor [10:59:43]Read from MH i2c: 01 [10:59:43]MH_I2C_Read... [10:59:43]*** Stop cut motor [10:59:43]*** Cut end [10:59:43]Read from MH i2c: 01 07 00 [10:59:43]MH_I2C_Read... [10:59:43]Read from MH i2c: 01 07 00 09 0B 00 00 00 00 00 FF 0F 29 [10:59:43]process_action close_receipt done [10:59:43]requested_data is exist [10:59:43]produce_requested_data [10:59:43]requested_item fm.sn is exist - process it [10:59:43]wFMCommunicate request_size=4 [10:59:43]MH_SAM_APDU [10:59:43]CAPDU: 80 11 00 00 [10:59:43]Write to MH i2c: E2 08 00 0A 0B 80 11 00 00 00 00 00 00 8F [10:59:43]Write i2c OK [10:59:43]MH_I2C_Read... [10:59:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:59:43]Read from MH i2c: E2 [10:59:43]MH_I2C_Read... [10:59:43]Read from MH i2c: E2 17 00 [10:59:43]MH_I2C_Read... [10:59:43]Read from MH i2c: E2 17 00 0A 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 E1 [10:59:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [10:59:43]wFMCommunicate OK [10:59:43]requested_item fd.num is exist - process it [10:59:43]SAM_PROTO_GetFieldsCounters [10:59:43]wFMCommunicate request_size=4 [10:59:43]MH_SAM_APDU [10:59:43]CAPDU: 80 13 00 00 [10:59:43]Write to MH i2c: E2 08 00 0B 0B 80 13 00 00 00 00 00 00 92 [10:59:43]Write i2c OK [10:59:43]MH_I2C_Read... [10:59:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:59:43]Read from MH i2c: E2 [10:59:43]MH_I2C_Read... [10:59:43]Read from MH i2c: E2 62 00 [10:59:43]MH_I2C_Read... [10:59:43]Read from MH i2c: E2 62 00 0B 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 29 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 CE [10: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 29 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:59:43]wFMCommunicate OK [10:59:43]SAM_PROTO_GetFieldsCounters done [10:59:43]requested_item shift.num is exist - process it [10:59:43]requested_item shift.opened is exist - process it [10:59:43]req_shift_opened [10:59:43]FM_GetShiftState [10:59:43]SAM_PROTO_GetShiftState [10:59:43]wFMCommunicate request_size=4 [10:59:43]MH_SAM_APDU [10:59:43]CAPDU: 80 13 01 00 [10:59:43]Write to MH i2c: E2 08 00 0C 0B 80 13 01 00 00 00 00 00 94 [10:59:43]Write i2c OK [10:59:43]MH_I2C_Read... [10:59:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:59:43]Read from MH i2c: E2 [10:59:43]MH_I2C_Read... [10:59:43]Read from MH i2c: E2 0E 00 [10:59:43]MH_I2C_Read... [10:59:43]Read from MH i2c: E2 0E 00 0C 0B 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 60 [10:59:43]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [10:59:43]wFMCommunicate OK [10:59:43]SAM_PROTO_GetShiftState done [10:59:43]FM_GetShiftState done [10:59:43]req_shift_opened done [10:59:43]requested_item shift.open_date is exist - process it [10:59:43]req_shift_open_date [10:59:43]req_shift_open_date done [10:59:43]produce_requested_data done [10:59:43]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63785,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [10:59:43]process_action_free close_receipt [10:59:43]json_value_free [10:59:43]json_value_free done [10:59:43]process_json_proto returns [10:59:43]Send response to host [10:59:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63785,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [10:59:43]free response buf [10:59:43]execute_script done [10:59:43]execute_script returns [10:59:43]free content buf [10:59:43]Sock 9.Close socket [10:59:43]Sock 9.Thread stoped [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]OFD Sender: No OFD packet to send [11:00:37]OFD Sender: No OFD packet to send [11:00:42]OFD Sender: No OFD packet to send [11:00:47]OFD Sender: No OFD packet to send [11:00:52]OFD Sender: No OFD packet to send [11:00:57]OFD Sender: No OFD packet to send [11:01:02]OFD Sender: No OFD packet to send [11:01:06]accept exits with 7 [11:01:06]New connection [11:01:06]New thread 3067374948 created [11:01:06]Thread 3067518308 joined [11:01:06]Waiting for new connection... [11:01:06] Sock 7.Parse request [11:01:06]Sock 7.Check first char [11:01:06]Sock 7.First char is OK [11:01:06]request: POST /json_proto HTTP/1.0 [11:01:06]Method: POST [11:01:06]URL: /json_proto [11:01:06]Method is POST - this is cgi request [11:01:06]url: /json_proto [11:01:06]query_string will be loaded in cgi processing [11:01:06]execute_cgi json_proto POST (null) [11:01:06]execute_cgi path=json_proto method=POST [11:01:06]POST find Content-Length [11:01:06]Host: 172.17.60.69:8080 [11:01:06]Content-Length: 1207 [11:01:06]Content-Type: application/json [11:01:06] [11:01:06]POST finish read [11:01:06]Found Content-Length = 1207 [11:01:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 117\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u043B\u044B\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)543537\u000A03.06.2024 10:55\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 50.000 x 66.90\u000A\u0418\u0422\u041E\u0413: 3345.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A43402\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:01:06]execute_script... [11:01:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 117\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u043B\u044B\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)543537\u000A03.06.2024 10:55\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 50.000 x 66.90\u000A\u0418\u0422\u041E\u0413: 3345.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A43402\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:01:06]POST & json_proto [11:01:06]process_json_proto [11:01:06]json parsed OK: [11:01:06]protocol is kg_v1.0 [11:01:06]action value=print_text [11:01:06]process_action print_text [11:01:06]cmd_print_text [11:01:06]ExternCall_PrintAddStr [11:01:06]wPrintStart [11:01:06]Write to MH i2c: 01 00 00 0D 0B 18 [11:01:06]Write i2c OK [11:01:06]MH_I2C_Read... [11:01:06]Read from MH i2c: 01 [11:01:06]MH_I2C_Read... [11:01:06]Read from MH i2c: 01 07 00 [11:01:06]MH_I2C_Read... [11:01:06]Read from MH i2c: 01 07 00 0D 0B 00 00 00 00 00 FF 0F 2D [11:01:06]RasterBufferAndPrint [11:01:06]line *****ТОВАРНЫЙ ЧЕК***** [11:01:06]line АЗС 117 [11:01:06]line Партнер нефть [11:01:06]line 02508201610067 [11:01:06]line Кассир : Калыгулова Н. [11:01:06]line Счет N : (1)543537 [11:01:06]line 03.06.2024 10:55 [11:01:06]line ПРОДАЖА [11:01:06]line ТРК (МРК, ГНК): 42 [11:01:06]line Вид ГСМ : 2710124130 [11:01:06]line Аи-92-К-5 [11:01:06]line 50.000 x 66.90 [11:01:06]line ИТОГ: 3345.00 [11:01:06]line Тип оплаты: Талоны: Топливная Карта [11:01:06]line 43402 [11:01:06]line ______________________ [11:01:06]line (подпись) [11:01:06]written 0, free lines is 4095 [11:01:06]Write to MH i2c: 01 00 00 21 0B 2C [11:01:06]Write i2c OK [11:01:06]MH_I2C_Read... [11:01:06]Read from MH i2c: 01 [11:01:06]MH_I2C_Read... [11:01:06]Read from MH i2c: 01 07 00 [11:01:06]MH_I2C_Read... [11:01:06]Read from MH i2c: 01 07 00 21 0B 00 00 00 00 00 12 0E 53 [11:01:06]RasterBufferAndPrint [11:01:06]line [11:01:06]line [11:01:06]line [11:01:06]line [11:01:06]line [11:01:06]written 0, free lines is 3604 [11:01:06]MH_Cut [11:01:06]Write to MH i2c: D1 01 00 28 0B 01 05 [11:01:06]Write i2c OK [11:01:06]MH_I2C_Read... [11:01:06]Read from MH i2c: D1 [11:01:06]MH_I2C_Read... [11:01:06]Read from MH i2c: D1 01 00 [11:01:06]MH_I2C_Read... [11:01:06]Read from MH i2c: D1 01 00 28 0B 00 04 [11:01:06]Write to MH i2c: 01 00 00 29 0B 34 [11:01:06]Write i2c OK [11:01:06]MH_I2C_Read... [11:01:07]*** Cut start [11:01:07]*** Partial cut [11:01:07]*** CUTSNS_PIN = 1 [11:01:07]*** CUTSNS_PIN = 0 [11:01:07]OFD Sender: No OFD packet to send [11:01:07]*** Brake cut motor [11:01:08]Read from MH i2c: 01 [11:01:08]MH_I2C_Read... [11:01:08]*** Stop cut motor [11:01:08]*** Cut end [11:01:08]Read from MH i2c: 01 07 00 [11:01:08]MH_I2C_Read... [11:01:08]Read from MH i2c: 01 07 00 29 0B 00 00 00 00 00 FF 0F 49 [11:01:08]process_action print_text done [11:01:08]requested_data is exist [11:01:08]produce_requested_data [11:01:08]requested_item fm.sn is exist - process it [11:01:08]wFMCommunicate request_size=4 [11:01:08]MH_SAM_APDU [11:01:08]CAPDU: 80 11 00 00 [11:01:08]Write to MH i2c: E2 08 00 2A 0B 80 11 00 00 00 00 00 00 AF [11:01:08]Write i2c OK [11:01:08]MH_I2C_Read... [11:01:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:01:08]Read from MH i2c: E2 [11:01:08]MH_I2C_Read... [11:01:08]Read from MH i2c: E2 17 00 [11:01:08]MH_I2C_Read... [11:01:08]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 35 30 37 34 90 00 01 [11:01:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [11:01:08]wFMCommunicate OK [11:01:08]requested_item fd.num is exist - process it [11:01:08]SAM_PROTO_GetFieldsCounters [11:01:08]wFMCommunicate request_size=4 [11:01:08]MH_SAM_APDU [11:01:08]CAPDU: 80 13 00 00 [11:01:08]Write to MH i2c: E2 08 00 2B 0B 80 13 00 00 00 00 00 00 B2 [11:01:08]Write i2c OK [11:01:08]MH_I2C_Read... [11:01:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:01:08]Read from MH i2c: E2 [11:01:08]MH_I2C_Read... [11:01:08]Read from MH i2c: E2 62 00 [11:01:08]MH_I2C_Read... [11:01:08]Read from MH i2c: E2 62 00 2B 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 29 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 EE [11:01: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 29 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:01:08]wFMCommunicate OK [11:01:08]SAM_PROTO_GetFieldsCounters done [11:01:08]requested_item shift.num is exist - process it [11:01:08]requested_item shift.opened is exist - process it [11:01:08]req_shift_opened [11:01:08]FM_GetShiftState [11:01:08]SAM_PROTO_GetShiftState [11:01:08]wFMCommunicate request_size=4 [11:01:08]MH_SAM_APDU [11:01:08]CAPDU: 80 13 01 00 [11:01:08]Write to MH i2c: E2 08 00 2C 0B 80 13 01 00 00 00 00 00 B4 [11:01:08]Write i2c OK [11:01:08]MH_I2C_Read... [11:01:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:01:08]Read from MH i2c: E2 [11:01:08]MH_I2C_Read... [11:01:08]Read from MH i2c: E2 0E 00 [11:01:08]MH_I2C_Read... [11:01:08]Read from MH i2c: E2 0E 00 2C 0B 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 80 [11:01:08]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [11:01:08]wFMCommunicate OK [11:01:08]SAM_PROTO_GetShiftState done [11:01:08]FM_GetShiftState done [11:01:08]req_shift_opened done [11:01:08]requested_item shift.open_date is exist - process it [11:01:08]req_shift_open_date [11:01:08]req_shift_open_date done [11:01:08]produce_requested_data done [11:01:08]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63785,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [11:01:08]process_action_free print_text [11:01:08]json_value_free [11:01:08]json_value_free done [11:01:08]process_json_proto returns [11:01:08]Send response to host [11:01:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63785,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [11:01:08]free response buf [11:01:08]execute_script done [11:01:08]execute_script returns [11:01:08]free content buf [11:01:08]Sock 7.Close socket [11:01:08]Sock 7.Thread stoped [11:01:12]OFD Sender: No OFD packet to send [11:01:17]OFD Sender: No OFD packet to send [11:01:22]OFD Sender: No OFD packet to send [11:01:27]OFD Sender: No OFD packet to send [11:01:32]OFD Sender: No OFD packet to send [11:01:37]OFD Sender: No OFD packet to send [11:01:42]OFD Sender: No OFD packet to send [11:01:47]OFD Sender: No OFD packet to send [11:01:52]OFD Sender: No OFD packet to send [11:01:57]OFD Sender: No OFD packet to send [11:02:02]OFD Sender: No OFD packet to send [11:02:07]OFD Sender: No OFD packet to send [11:02:12]OFD Sender: No OFD packet to send [11:02:17]OFD Sender: No OFD packet to send [11:02:22]OFD Sender: No OFD packet to send [11:02:27]OFD Sender: No OFD packet to send [11:02:32]OFD Sender: No OFD packet to send [11:02:37]OFD Sender: No OFD packet to send [11:02:42]OFD Sender: No OFD packet to send [11:02:47]OFD Sender: No OFD packet to send [11:02:52]OFD Sender: No OFD packet to send [11:02:57]OFD Sender: No OFD packet to send [11:03:02]OFD Sender: No OFD packet to send [11:03:07]OFD Sender: No OFD packet to send [11:03:12]OFD Sender: No OFD packet to send [11:03:17]OFD Sender: No OFD packet to send [11:03:22]OFD Sender: No OFD packet to send [11:03:27]OFD Sender: No OFD packet to send [11:03:32]OFD Sender: No OFD packet to send [11:03:37]OFD Sender: No OFD packet to send [11:03:42]OFD Sender: No OFD packet to send [11:03:47]OFD Sender: No OFD packet to send [11:03:52]OFD Sender: No OFD packet to send [11:03:57]OFD Sender: No OFD packet to send [11:04:02]OFD Sender: No OFD packet to send [11:04:07]OFD Sender: No OFD packet to send [11:04:12]OFD Sender: No OFD packet to send [11:04:17]OFD Sender: No OFD packet to send [11:04:22]OFD Sender: No OFD packet to send [11:04:27]OFD Sender: No OFD packet to send [11:04:32]OFD Sender: No OFD packet to send [11:04:37]OFD Sender: No OFD packet to send [11:04:42]OFD Sender: No OFD packet to send [11:04:47]OFD Sender: No OFD packet to send [11:04:52]OFD Sender: No OFD packet to send [11:04:57]OFD Sender: No OFD packet to send [11:05:02]OFD Sender: No OFD packet to send [11:05:07]OFD Sender: No OFD packet to send [11:05:12]OFD Sender: No OFD packet to send [11:05:17]OFD Sender: No OFD packet to send [11:05:22]OFD Sender: No OFD packet to send [11:05:27]OFD Sender: No OFD packet to send [11:05:32]OFD Sender: No OFD packet to send [11:05:37]OFD Sender: No OFD packet to send [11:05:42]OFD Sender: No OFD packet to send [11:05:47]OFD Sender: No OFD packet to send [11:05:52]OFD Sender: No OFD packet to send [11:05:57]OFD Sender: No OFD packet to send [11:06:02]OFD Sender: No OFD packet to send [11:06:07]OFD Sender: No OFD packet to send [11:06:12]OFD Sender: No OFD packet to send [11:06:17]OFD Sender: No OFD packet to send [11:06:22]OFD Sender: No OFD packet to send [11:06:27]OFD Sender: No OFD packet to send [11:06:32]OFD Sender: No OFD packet to send [11:06:37]OFD Sender: No OFD packet to send [11:06:42]OFD Sender: No OFD packet to send [11:06:47]OFD Sender: No OFD packet to send [11:06:52]OFD Sender: No OFD packet to send [11:06:57]OFD Sender: No OFD packet to send [11:07:02]OFD Sender: No OFD packet to send [11:07:07]OFD Sender: No OFD packet to send [11:07:12]OFD Sender: No OFD packet to send [11:07:17]OFD Sender: No OFD packet to send [11:07:22]OFD Sender: No OFD packet to send [11:07:27]OFD Sender: No OFD packet to send [11:07:32]OFD Sender: No OFD packet to send [11:07:37]OFD Sender: No OFD packet to send [11:07:42]OFD Sender: No OFD packet to send [11:07:47]OFD Sender: No OFD packet to send [11:07:52]OFD Sender: No OFD packet to send [11:07:57]OFD Sender: No OFD packet to send [11:08:02]OFD Sender: No OFD packet to send [11:08:07]OFD Sender: No OFD packet to send [11:08:12]OFD Sender: No OFD packet to send [11:08:17]OFD Sender: No OFD packet to send [11:08:22]OFD Sender: No OFD packet to send [11:08:27]OFD Sender: No OFD packet to send [11:08:32]OFD Sender: No OFD packet to send [11:08:37]OFD Sender: No OFD packet to send [11:08:42]OFD Sender: No OFD packet to send [11:08:47]OFD Sender: No OFD packet to send [11:08:52]OFD Sender: No OFD packet to send [11:08:57]OFD Sender: No OFD packet to send [11:09:02]OFD Sender: No OFD packet to send [11:09:07]OFD Sender: No OFD packet to send [11:09:12]OFD Sender: No OFD packet to send [11:09:17]OFD Sender: No OFD packet to send [11:09:22]OFD Sender: No OFD packet to send [11:09:28]OFD Sender: No OFD packet to send [11:09:33]OFD Sender: No OFD packet to send [11:09:38]OFD Sender: No OFD packet to send [11:09:43]OFD Sender: No OFD packet to send [11:09:48]OFD Sender: No OFD packet to send [11:09:53]OFD Sender: No OFD packet to send [11:09:58]OFD Sender: No OFD packet to send [11:10:03]OFD Sender: No OFD packet to send [11:10:08]OFD Sender: No OFD packet to send [11:10:13]OFD Sender: No OFD packet to send [11:10:18]OFD Sender: No OFD packet to send [11:10:23]OFD Sender: No OFD packet to send [11:10:28]OFD Sender: No OFD packet to send [11:10:33]OFD Sender: No OFD packet to send [11:10:38]OFD Sender: No OFD packet to send [11:10:43]OFD Sender: No OFD packet to send [11:10:48]OFD Sender: No OFD packet to send [11:10:53]OFD Sender: No OFD packet to send [11:10:58]OFD Sender: No OFD packet to send [11:11:03]OFD Sender: No OFD packet to send [11:11:08]OFD Sender: No OFD packet to send [11:11:13]OFD Sender: No OFD packet to send [11:11:18]OFD Sender: No OFD packet to send [11:11:23]OFD Sender: No OFD packet to send [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:27]accept exits with 9 [11:12:27]New connection [11:12:27]New thread 3067518308 created [11:12:27]Thread 3067374948 joined [11:12:27]Waiting for new connection... [11:12:27] Sock 9.Parse request [11:12:27]Sock 9.Check first char [11:12:27]Sock 9.First char is OK [11:12:27]request: POST /json_proto HTTP/1.0 [11:12:27]Method: POST [11:12:27]URL: /json_proto [11:12:27]Method is POST - this is cgi request [11:12:27]url: /json_proto [11:12:27]query_string will be loaded in cgi processing [11:12:27]execute_cgi json_proto POST (null) [11:12:27]execute_cgi path=json_proto method=POST [11:12:27]POST find Content-Length [11:12:27]Host: 172.17.60.69:8080 [11:12:27]Content-Length: 902 [11:12:27]Content-Type: application/json [11:12:27] [11:12:27]POST finish read [11:12:27]Found Content-Length = 902 [11:12:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73374", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000032710015", "name": "\u0421\u043E\u0447\u043D\u0438\u043A DC \u0442\u0432\u043E\u0440\u043E\u0433 75\u0433", "price" : 35.00, "quantity" : 2.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 195.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:12:27]execute_script... [11:12:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73374", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000032710015", "name": "\u0421\u043E\u0447\u043D\u0438\u043A DC \u0442\u0432\u043E\u0440\u043E\u0433 75\u0433", "price" : 35.00, "quantity" : 2.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 195.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:12:27]POST & json_proto [11:12:27]process_json_proto [11:12:27]json parsed OK: [11:12:27]protocol is kg_v1.0 [11:12:27]action value=close_receipt [11:12:27]process_action close_receipt [11:12:27]cmd_close_receipt [11:12:27]MH_GetDate [11:12:27]Write to MH i2c: F0 00 00 2D 0B 27 [11:12:27]Write i2c OK [11:12:27]MH_I2C_Read... [11:12:27]Read from MH i2c: F0 [11:12:27]MH_I2C_Read... [11:12:27]Read from MH i2c: F0 09 00 [11:12:27]MH_I2C_Read... [11:12:27]Read from MH i2c: F0 09 00 2D 0B 00 1D A5 5D 66 6A 96 4A 66 65 [11:12:27]GetLastDocTimeStamp 1717412381 [11:12:27]current date 1717413149 [11:12:27]FM_GetShiftState [11:12:27]SAM_PROTO_GetShiftState [11:12:27]wFMCommunicate request_size=4 [11:12:27]MH_SAM_APDU [11:12:27]CAPDU: 80 13 01 00 [11:12:27]Write to MH i2c: E2 08 00 2E 0B 80 13 01 00 00 00 00 00 B6 [11:12:27]Write i2c OK [11:12:27]MH_I2C_Read... [11:12:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:12:27]Read from MH i2c: E2 [11:12:27]MH_I2C_Read... [11:12:27]Read from MH i2c: E2 0E 00 [11:12:27]MH_I2C_Read... [11:12:27]Read from MH i2c: E2 0E 00 2E 0B 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 82 [11:12:27]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [11:12:27]wFMCommunicate OK [11:12:27]SAM_PROTO_GetShiftState done [11:12:27]FM_GetShiftState done [11:12:27]opened in 1717373173 [11:12:27]opened+sec_in_day 1717459573 [11:12:27]quantity*price = 12500 [11:12:27]sum+1 = 12501 [11:12:27]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000032710015 Сочник DC творог 75г 2.000 * 35.00 = 70.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 195.00 НСП 1% : 1.73 НДС 12% : 20.70 Наличными: 195.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 44 03.06.2024 11:12 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63786 ФПД: 56167984909372 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T111229&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63786&fm=56167984909372&tin=02508201610067®Number=0000000000092737&sum=19500 0 [11:12:28]StoreToDocumentArchive [11:12:28]shift 373 fd 63786 [11:12:28]save to /storage/0373/doc_00063786 [11:12:28]save last doc name /storage/0373/doc_00063786 to /storage/kkm_last_doc_name [11:12:28]save OK [11:12:28]Clear old archive folders... [11:12:28]ProcessDocumentItem done err = 0, tmpTLVsize=387 [11:12:28]tlvbuf is 00D53A90 [11:12:28]SAM_PROTO_ClearQueue [11:12:28]wFMCommunicate request_size=4 [11:12:28]MH_SAM_APDU [11:12:28]CAPDU: 80 09 00 00 [11:12:28]Write to MH i2c: E2 08 00 3B 0B 80 09 00 00 00 00 00 00 B8 [11:12:28]Write i2c OK [11:12:28]MH_I2C_Read... [11:12:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:12:28]Read from MH i2c: E2 [11:12:28]MH_I2C_Read... [11:12:28]Read from MH i2c: E2 03 00 [11:12:28]MH_I2C_Read... [11:12:28]Read from MH i2c: E2 03 00 3B 0B 00 90 00 BA [11:12:28]RAPDU: 90 00 [11:12:28]wFMCommunicate OK [11:12:28]SAM_PROTO_ClearQueue done [11:12:28]KKMCreateOFDPacket [11:12:28]OFDProtocolAddRootSTLVToBuf [11:12:28]FM_MakeSignedData [11:12:28]FM_MakeSignedData [11:12:28]SAM_PROTO_SignData [11:12:28]wFMCommunicate request_size=4 [11:12:28]MH_SAM_APDU [11:12:28]CAPDU: 80 0D 01 02 [11:12:28]Write to MH i2c: E2 08 00 3C 0B 80 0D 01 02 00 00 00 00 C0 [11:12:28]Write i2c OK [11:12:28]MH_I2C_Read... [11:12:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:12:28]Read from MH i2c: E2 [11:12:28]MH_I2C_Read... [11:12:28]Read from MH i2c: E2 03 00 [11:12:28]MH_I2C_Read... [11:12:28]Read from MH i2c: E2 03 00 3C 0B 00 90 00 BB [11:12:28]RAPDU: 90 00 [11:12:28]wFMCommunicate OK [11:12:28]wFMCommunicate request_size=255 [11:12:28]MH_SAM_APDU [11:12:28]CAPDU: 80 0D 02 02 FA 03 00 83 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 32 30 30 30 30 33 32 37 31 30 30 31 35 06 04 21 00 D0 A1 D0 BE D1 87 D0 BD D0 B8 D0 BA 20 44 43 20 D1 82 D0 B2 D0 BE D1 80 D0 BE D0 B3 20 37 35 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 4C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 [11:12:28]Write to MH i2c: E2 02 01 3D 0B 80 0D 02 02 FA 00 03 00 83 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 32 30 30 30 30 33 32 37 31 30 30 31 35 06 04 21 00 D0 A1 D0 BE D1 87 D0 BD D0 B8 D0 BA 20 44 43 20 D1 82 D0 B2 D0 BE D1 80 D0 BE D0 B3 20 37 35 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 4C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 00 00 CF [11:12:28]Write i2c OK [11:12:28]MH_I2C_Read... [11:12:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:12:28]Read from MH i2c: E2 [11:12:28]MH_I2C_Read... [11:12:28]Read from MH i2c: E2 03 00 [11:12:28]MH_I2C_Read... [11:12:28]Read from MH i2c: E2 03 00 3D 0B 00 90 00 BC [11:12:28]RAPDU: 90 00 [11:12:28]wFMCommunicate OK [11:12:28]wFMCommunicate request_size=146 [11:12:28]MH_SAM_APDU [11:12:28]CAPDU: 80 0D 02 02 8D 03 06 00 AD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 08 00 00 00 00 07 04 06 00 2C 4C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 1D A5 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 2A F9 00 00 35 04 06 00 33 15 A0 C9 CC 3C [11:12:28]Write to MH i2c: E2 95 00 3E 0B 80 0D 02 02 8D 00 03 06 00 AD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 08 00 00 00 00 07 04 06 00 2C 4C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 1D A5 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 2A F9 00 00 35 04 06 00 33 15 A0 C9 CC 3C 00 00 5B [11:12:28]Write i2c OK [11:12:28]MH_I2C_Read... [11:12:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:12:28]Read from MH i2c: E2 [11:12:28]MH_I2C_Read... [11:12:28]Read from MH i2c: E2 03 00 [11:12:28]MH_I2C_Read... [11:12:28]Read from MH i2c: E2 03 00 3E 0B 00 90 00 BD [11:12:28]RAPDU: 90 00 [11:12:28]wFMCommunicate OK [11:12:28]wFMCommunicate request_size=4 [11:12:28]MH_SAM_APDU [11:12:28]CAPDU: 80 0D 03 02 [11:12:28]Write to MH i2c: E2 08 00 3F 0B 80 0D 03 02 00 00 00 00 C5 [11:12:28]Write i2c OK [11:12:28]MH_I2C_Read... [11:12:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:12:28]Read from MH i2c: E2 [11:12:28]MH_I2C_Read... [11:12:28]Read from MH i2c: E2 0B 00 [11:12:28]MH_I2C_Read... [11:12:28]Read from MH i2c: E2 0B 00 3F 0B 00 40 E3 11 1B 6F 24 47 FE 90 00 ED [11:12:28]RAPDU: 40 E3 11 1B 6F 24 47 FE 90 00 [11:12:28]wFMCommunicate OK [11:12:28]SAM_PROTO_SignData done [11:12:28]FM_MakeSignedData done [11:12:28]CreateOFDProtocolMessage [11:12:28]wFMCommunicate request_size=4 [11:12:28]MH_SAM_APDU [11:12:28]CAPDU: 80 11 00 00 [11:12:28]Write to MH i2c: E2 08 00 40 0B 80 11 00 00 00 00 00 00 C5 [11:12:28]Write i2c OK [11:12:28]MH_I2C_Read... [11:12:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:12:28]Read from MH i2c: E2 [11:12:28]MH_I2C_Read... [11:12:28]Read from MH i2c: E2 17 00 [11:12:28]MH_I2C_Read... [11:12:28]Read from MH i2c: E2 17 00 40 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 17 [11:12:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [11:12:28]wFMCommunicate OK [11:12:28]CreateOFDProtocolMessage done [11:12:28]OFDSenderStorePacket 63786 [11:12:28]StoreOFDPacket docnum=63786 [11:12:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 97 01 00 00 92 93 8F 01 B6 9D 5A 03 01 00 03 00 83 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 32 30 30 30 30 33 32 37 31 30 30 31 35 06 04 21 00 D0 A1 D0 BE D1 87 D0 BD D0 B8 D0 BA 20 44 43 20 D1 82 D0 B2 D0 BE D1 80 D0 BE D0 B3 20 37 35 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 4C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 08 00 00 00 00 07 04 06 00 2C 4C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 1D A5 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 2A F9 00 00 35 04 06 00 33 15 A0 C9 CC 3C 40 E3 11 1B 6F 24 47 FE [11:12:28]CheckFolder [11:12:28]dirname=/storage/ofd_packets [11:12:28]CheckFolder done [11:12:28]ProducePacketName [11:12:28]name=ofd_packets/00063786 [11:12:28]NVStorageSaveData ofd_packets/00063786 [11:12:28]File name is /storage/ofd_packets/00063786 [11:12:28]Write 437 bytes [11:12:28]NVStorageSaveData done [11:12:28]OFDSenderStorePacket done [11:12:28]KKMCreateOFDPacket done [11:12:28]NVStorageSaveData kkm_last_timestamp [11:12:28]File name is /storage/kkm_last_timestamp [11:12:28]Write 4 bytes [11:12:28]NVStorageSaveData done [11:12:28]ExternCall_PrintAddStr [11:12:28]wPrintStart [11:12:28]Write to MH i2c: 01 00 00 41 0B 4C [11:12:28]Write i2c OK [11:12:28]MH_I2C_Read... [11:12:28]Read from MH i2c: 01 [11:12:28]MH_I2C_Read... [11:12:28]Read from MH i2c: 01 07 00 [11:12:28]MH_I2C_Read... [11:12:28]Read from MH i2c: 01 07 00 41 0B 00 00 00 00 00 FF 0F 61 [11:12:28]RasterBufferAndPrint [11:12:28]line Счет N : (3)73374 [11:12:28]line ИНН: 02508201610067 [11:12:29]line Контрольно-Кассовый Чек [11:12:29]line ПРОДАЖА [11:12:29]line Товар: 2000036220012 [11:12:29]line Кофе Капучино XL(GABB TRADE) [11:12:29]line 1.000 * 125.00 [11:12:29]line = 125.00 [11:12:29]line НДС 12% НСП 1% [11:12:29]line > о реализуемом товаре [11:12:29]line Товар: 2000032710015 [11:12:29]line Сочник DC творог 75г [11:12:29]line 2.000 * 35.00 [11:12:29]line = 70.00 [11:12:29]line НДС 12% НСП 1% [11:12:29]line > о реализуемом товаре [11:12:29]line ИТОГО: 195.00 [11:12:29]line НСП 1% : 1.73 [11:12:29]line НДС 12% : 20.70 [11:12:29]line Наличными: 195.00 [11:12:29]line Безнал.: 0.00 [11:12:29]line Место: АЗС № 117 "Партнер Нефть" [11:12:29]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [11:12:29]line СНО: Общий режим [11:12:29]line Чек 44 03.06.2024 11:12 [11:12:29]line Смена: 373 ФФД: 1.0 [11:12:29]line ЗНМ: 0300000031 [11:12:29]line РНМ: 0000000000092737 [11:12:29]line Версия ККМ: 001 [11:12:29]line ФМ: 0000000000875074 [11:12:29]line ФД: 63786 [11:12:29]line ФПД: 56167984909372 [11:12:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T111229&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63786&fm=56167984909372&tin=02508201610067®Number=0000000000092737&sum=19500 [11:12:29]line 0 [11:12:29]OFD Sender: Processing packet 63786 [packets to send 14, broken 13] [11:12:29]ProducePacketName [11:12:29]name=ofd_packets/00063786 [11:12:29]OFD Sender: To server: pG, [11:12:29]CommunicateWithHost lk.salyk.kg:30040 [11:12:29]ConnectInit lk.salyk.kg [11:12:29]written 0, free lines is 4095 [11:12:29]Connected sock=10 [11:12:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 97 01 00 00 92 93 8F 01 B6 9D 5A 03 01 00 03 00 83 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 32 30 30 30 30 33 32 37 31 30 30 31 35 06 04 21 00 D0 A1 D0 BE D1 87 D0 BD D0 B8 D0 BA 20 44 43 20 D1 82 D0 B2 D0 BE D1 80 D0 BE D0 B3 20 37 35 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 4C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 08 00 00 00 00 07 04 06 00 2C 4C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 1D A5 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 2A F9 00 00 35 04 06 00 33 15 A0 C9 CC 3C 40 E3 11 1B 6F 24 47 FE [11:12:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 55 59 47 00 28 A3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 2A F9 00 00 F4 03 04 00 EE 50 5D 66 B6 04 01 00 00 8C 9C 82 E0 28 BA 57 B1 [11:12:29]CommunicateWithHost err = 0 [11:12:29]CheckOFDResponse [11:12:29]1017 (14) - 77093643461234 [11:12:29]1041 (16) - 0000000000875074 [11:12:29]1040 (4) - 63786 [11:12:29]1012 (4) - 03.06.2024 05:13 [11:12:29]1206 (1) - 0 [11:12:29]OFD Sender: Remove packet 63786 [11:12:29]ProducePacketName [11:12:29]name=ofd_packets/00063786 [11:12:29]NVStorageDeleteData [11:12:29]Write to MH i2c: 01 00 00 70 0B 7B [11:12:29]Write i2c OK [11:12:29]MH_I2C_Read... [11:12:29]Read from MH i2c: 01 [11:12:29]MH_I2C_Read... [11:12:29]Read from MH i2c: 01 07 00 [11:12:29]MH_I2C_Read... [11:12:29]Read from MH i2c: 01 07 00 70 0B 00 00 00 00 00 98 0C 26 [11:12:29]RasterBufferAndPrint [11:12:29]line [11:12:29]line [11:12:29]line [11:12:29]line [11:12:29]line [11:12:29]written 0, free lines is 3230 [11:12:29]MH_Cut [11:12:29]Write to MH i2c: D1 01 00 77 0B 01 54 [11:12:29]Write i2c OK [11:12:29]MH_I2C_Read... [11:12:29]Read from MH i2c: D1 [11:12:29]MH_I2C_Read... [11:12:29]Read from MH i2c: D1 01 00 [11:12:29]MH_I2C_Read... [11:12:29]Read from MH i2c: D1 01 00 77 0B 00 53 [11:12:29]Write to MH i2c: 01 00 00 78 0B 83 [11:12:29]Write i2c OK [11:12:29]MH_I2C_Read... [11:12:30]OFD Sender: No OFD packet to send [11:12:30]*** Cut start [11:12:30]*** Partial cut [11:12:30]*** CUTSNS_PIN = 1 [11:12:30]*** CUTSNS_PIN = 0 [11:12:30]*** Brake cut motor [11:12:31]Read from MH i2c: 01 [11:12:31]MH_I2C_Read... [11:12:31]*** Stop cut motor [11:12:31]*** Cut end [11:12:31]Read from MH i2c: 01 07 00 [11:12:31]MH_I2C_Read... [11:12:31]Read from MH i2c: 01 07 00 78 0B 00 00 00 00 00 FF 0F 98 [11:12:31]process_action close_receipt done [11:12:31]requested_data is exist [11:12:31]produce_requested_data [11:12:31]requested_item fm.sn is exist - process it [11:12:31]wFMCommunicate request_size=4 [11:12:31]MH_SAM_APDU [11:12:31]CAPDU: 80 11 00 00 [11:12:31]Write to MH i2c: E2 08 00 79 0B 80 11 00 00 00 00 00 00 FE [11:12:31]Write i2c OK [11:12:31]MH_I2C_Read... [11:12:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:12:31]Read from MH i2c: E2 [11:12:31]MH_I2C_Read... [11:12:31]Read from MH i2c: E2 17 00 [11:12:31]MH_I2C_Read... [11:12:31]Read from MH i2c: E2 17 00 79 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 50 [11:12:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [11:12:31]wFMCommunicate OK [11:12:31]requested_item fd.num is exist - process it [11:12:31]SAM_PROTO_GetFieldsCounters [11:12:31]wFMCommunicate request_size=4 [11:12:31]MH_SAM_APDU [11:12:31]CAPDU: 80 13 00 00 [11:12:31]Write to MH i2c: E2 08 00 7A 0B 80 13 00 00 00 00 00 00 01 [11:12:31]Write i2c OK [11:12:31]MH_I2C_Read... [11:12:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:12:31]Read from MH i2c: E2 [11:12:31]MH_I2C_Read... [11:12:31]Read from MH i2c: E2 62 00 [11:12:31]MH_I2C_Read... [11:12:31]Read from MH i2c: E2 62 00 7A 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 2A F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 41 [11:12: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 2A F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:12:31]wFMCommunicate OK [11:12:31]SAM_PROTO_GetFieldsCounters done [11:12:31]requested_item shift.num is exist - process it [11:12:31]requested_item shift.opened is exist - process it [11:12:31]req_shift_opened [11:12:31]FM_GetShiftState [11:12:31]SAM_PROTO_GetShiftState [11:12:31]wFMCommunicate request_size=4 [11:12:31]MH_SAM_APDU [11:12:31]CAPDU: 80 13 01 00 [11:12:31]Write to MH i2c: E2 08 00 7B 0B 80 13 01 00 00 00 00 00 03 [11:12:31]Write i2c OK [11:12:31]MH_I2C_Read... [11:12:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:12:31]Read from MH i2c: E2 [11:12:31]MH_I2C_Read... [11:12:31]Read from MH i2c: E2 0E 00 [11:12:31]MH_I2C_Read... [11:12:31]Read from MH i2c: E2 0E 00 7B 0B 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 CF [11:12:31]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [11:12:31]wFMCommunicate OK [11:12:31]SAM_PROTO_GetShiftState done [11:12:31]FM_GetShiftState done [11:12:31]req_shift_opened done [11:12:31]requested_item shift.open_date is exist - process it [11:12:31]req_shift_open_date [11:12:31]req_shift_open_date done [11:12:31]produce_requested_data done [11:12:31]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63786,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [11:12:31]process_action_free close_receipt [11:12:31]json_value_free [11:12:31]json_value_free done [11:12:31]process_json_proto returns [11:12:31]Send response to host [11:12:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63786,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [11:12:31]free response buf [11:12:31]execute_script done [11:12:31]execute_script returns [11:12:31]free content buf [11:12:31]Sock 9.Close socket [11:12:31]Sock 9.Thread stoped [11:12:35]OFD Sender: No OFD packet to send [11:12:39]accept exits with 7 [11:12:39]New connection [11:12:39]New thread 3067374948 created [11:12:39]Thread 3067518308 joined [11:12:39]Waiting for new connection... [11:12:39] Sock 7.Parse request [11:12:39]Sock 7.Check first char [11:12:39]Sock 7.First char is OK [11:12:39]request: POST /json_proto HTTP/1.0 [11:12:39]Method: POST [11:12:39]URL: /json_proto [11:12:39]Method is POST - this is cgi request [11:12:39]url: /json_proto [11:12:39]query_string will be loaded in cgi processing [11:12:39]execute_cgi json_proto POST (null) [11:12:39]execute_cgi path=json_proto method=POST [11:12:39]POST find Content-Length [11:12:39]Host: 172.17.60.69:8080 [11:12:39]Content-Length: 643 [11:12:39]Content-Type: application/json [11:12:39] [11:12:39]POST finish read [11:12:39]Found Content-Length = 643 [11:12:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73375", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 115.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:12:39]execute_script... [11: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 : (3)73375", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 115.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:12:39]POST & json_proto [11:12:39]process_json_proto [11:12:39]json parsed OK: [11:12:39]protocol is kg_v1.0 [11:12:39]action value=close_receipt [11:12:39]process_action close_receipt [11:12:39]cmd_close_receipt [11:12:39]MH_GetDate [11:12:39]Write to MH i2c: F0 00 00 7C 0B 76 [11:12:39]Write i2c OK [11:12:39]MH_I2C_Read... [11:12:39]Read from MH i2c: F0 [11:12:39]MH_I2C_Read... [11:12:39]Read from MH i2c: F0 09 00 [11:12:39]MH_I2C_Read... [11:12:39]Read from MH i2c: F0 09 00 7C 0B 00 29 A5 5D 66 6A 96 4A 66 C0 [11:12:39]GetLastDocTimeStamp 1717413149 [11:12:39]current date 1717413161 [11:12:39]FM_GetShiftState [11:12:39]SAM_PROTO_GetShiftState [11:12:39]wFMCommunicate request_size=4 [11:12:39]MH_SAM_APDU [11:12:39]CAPDU: 80 13 01 00 [11:12:39]Write to MH i2c: E2 08 00 7D 0B 80 13 01 00 00 00 00 00 05 [11:12:39]Write i2c OK [11:12:39]MH_I2C_Read... [11:12:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:12:39]Read from MH i2c: E2 [11:12:39]MH_I2C_Read... [11:12:39]Read from MH i2c: E2 0E 00 [11:12:39]MH_I2C_Read... [11:12:39]Read from MH i2c: E2 0E 00 7D 0B 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 D1 [11:12:39]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [11:12:39]wFMCommunicate OK [11:12:39]SAM_PROTO_GetShiftState done [11:12:39]FM_GetShiftState done [11:12:39]opened in 1717373173 [11:12:39]opened+sec_in_day 1717459573 [11:12:39]quantity*price = 11500 [11:12:39]sum+1 = 11501 [11:12:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 115.00 НСП 1% : 1.02 НДС 12% : 12.21 Наличными: 115.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 45 03.06.2024 11:12 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63787 ФПД: 120120742720620 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T111241&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63787&fm=120120742720620&tin=02508201610067®Number=0000000000092737&sum=11500 0 [11:12:41]StoreToDocumentArchive [11:12:41]shift 373 fd 63787 [11:12:41]save to /storage/0373/doc_00063787 [11:12:41]save last doc name /storage/0373/doc_00063787 to /storage/kkm_last_doc_name [11:12:41]save OK [11:12:41]Clear old archive folders... [11:12:41]ProcessDocumentItem done err = 0, tmpTLVsize=280 [11:12:41]tlvbuf is 00D20090 [11:12:41]SAM_PROTO_ClearQueue [11:12:41]wFMCommunicate request_size=4 [11:12:41]MH_SAM_APDU [11:12:41]CAPDU: 80 09 00 00 [11:12:41]Write to MH i2c: E2 08 00 8A 0B 80 09 00 00 00 00 00 00 07 [11:12:41]Write i2c OK [11:12:41]MH_I2C_Read... [11:12:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:12:41]Read from MH i2c: E2 [11:12:41]MH_I2C_Read... [11:12:41]Read from MH i2c: E2 03 00 [11:12:41]MH_I2C_Read... [11:12:41]Read from MH i2c: E2 03 00 8A 0B 00 90 00 09 [11:12:41]RAPDU: 90 00 [11:12:41]wFMCommunicate OK [11:12:41]SAM_PROTO_ClearQueue done [11:12:41]KKMCreateOFDPacket [11:12:41]OFDProtocolAddRootSTLVToBuf [11:12:41]FM_MakeSignedData [11:12:41]FM_MakeSignedData [11:12:41]SAM_PROTO_SignData [11:12:41]wFMCommunicate request_size=4 [11:12:41]MH_SAM_APDU [11:12:41]CAPDU: 80 0D 01 02 [11:12:41]Write to MH i2c: E2 08 00 8B 0B 80 0D 01 02 00 00 00 00 0F [11:12:41]Write i2c OK [11:12:41]MH_I2C_Read... [11:12:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:12:41]Read from MH i2c: E2 [11:12:41]MH_I2C_Read... [11:12:41]Read from MH i2c: E2 03 00 [11:12:41]MH_I2C_Read... [11:12:41]Read from MH i2c: E2 03 00 8B 0B 00 90 00 0A [11:12:41]RAPDU: 90 00 [11:12:41]wFMCommunicate OK [11:12:41]wFMCommunicate request_size=255 [11:12:41]MH_SAM_APDU [11:12:41]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 29 A5 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 [11:12:41]Write to MH i2c: E2 02 01 8C 0B 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 29 A5 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 00 00 86 [11:12:41]Write i2c OK [11:12:41]MH_I2C_Read... [11:12:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:12:41]Read from MH i2c: E2 [11:12:41]MH_I2C_Read... [11:12:41]Read from MH i2c: E2 03 00 [11:12:41]MH_I2C_Read... [11:12:41]Read from MH i2c: E2 03 00 8C 0B 00 90 00 0B [11:12:41]RAPDU: 90 00 [11:12:41]wFMCommunicate OK [11:12:41]wFMCommunicate request_size=39 [11:12:41]MH_SAM_APDU [11:12:41]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 2B F9 00 00 35 04 06 00 6D 3F CA 33 34 6C [11:12:41]Write to MH i2c: E2 2A 00 8D 0B 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 2B F9 00 00 35 04 06 00 6D 3F CA 33 34 6C 00 00 39 [11:12:41]Write i2c OK [11:12:41]MH_I2C_Read... [11:12:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:12:41]Read from MH i2c: E2 [11:12:41]MH_I2C_Read... [11:12:41]Read from MH i2c: E2 03 00 [11:12:41]MH_I2C_Read... [11:12:41]Read from MH i2c: E2 03 00 8D 0B 00 90 00 0C [11:12:41]RAPDU: 90 00 [11:12:41]wFMCommunicate OK [11:12:41]wFMCommunicate request_size=4 [11:12:41]MH_SAM_APDU [11:12:41]CAPDU: 80 0D 03 02 [11:12:41]Write to MH i2c: E2 08 00 8E 0B 80 0D 03 02 00 00 00 00 14 [11:12:41]Write i2c OK [11:12:41]MH_I2C_Read... [11:12:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:12:41]Read from MH i2c: E2 [11:12:41]MH_I2C_Read... [11:12:41]Read from MH i2c: E2 0B 00 [11:12:41]MH_I2C_Read... [11:12:41]Read from MH i2c: E2 0B 00 8E 0B 00 FC 54 5E 44 0C 68 DE 78 90 00 D1 [11:12:41]RAPDU: FC 54 5E 44 0C 68 DE 78 90 00 [11:12:41]wFMCommunicate OK [11:12:41]SAM_PROTO_SignData done [11:12:41]FM_MakeSignedData done [11:12:41]CreateOFDProtocolMessage [11:12:41]wFMCommunicate request_size=4 [11:12:41]MH_SAM_APDU [11:12:41]CAPDU: 80 11 00 00 [11:12:41]Write to MH i2c: E2 08 00 8F 0B 80 11 00 00 00 00 00 00 14 [11:12:41]Write i2c OK [11:12:41]MH_I2C_Read... [11:12:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:12:41]Read from MH i2c: E2 [11:12:41]MH_I2C_Read... [11:12:41]Read from MH i2c: E2 17 00 [11:12:41]MH_I2C_Read... [11:12:41]Read from MH i2c: E2 17 00 8F 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 66 [11:12:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [11:12:41]wFMCommunicate OK [11:12:41]CreateOFDProtocolMessage done [11:12:41]OFDSenderStorePacket 63787 [11:12:41]StoreOFDPacket docnum=63787 [11:12:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 2C 01 00 00 E4 E3 24 01 86 00 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 29 A5 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 2B F9 00 00 35 04 06 00 6D 3F CA 33 34 6C FC 54 5E 44 0C 68 DE 78 [11:12:41]CheckFolder [11:12:41]dirname=/storage/ofd_packets [11:12:41]CheckFolder done [11:12:41]ProducePacketName [11:12:41]name=ofd_packets/00063787 [11:12:41]NVStorageSaveData ofd_packets/00063787 [11:12:41]File name is /storage/ofd_packets/00063787 [11:12:41]Write 330 bytes [11:12:41]NVStorageSaveData done [11:12:41]OFDSenderStorePacket done [11:12:41]KKMCreateOFDPacket done [11:12:41]NVStorageSaveData kkm_last_timestamp [11:12:41]File name is /storage/kkm_last_timestamp [11:12:41]Write 4 bytes [11:12:41]NVStorageSaveData done [11:12:41]ExternCall_PrintAddStr [11:12:41]wPrintStart [11:12:41]Write to MH i2c: 01 00 00 90 0B 9B [11:12:41]Write i2c OK [11:12:41]MH_I2C_Read... [11:12:41]Read from MH i2c: 01 [11:12:41]MH_I2C_Read... [11:12:41]Read from MH i2c: 01 07 00 [11:12:41]MH_I2C_Read... [11:12:41]Read from MH i2c: 01 07 00 90 0B 00 00 00 00 00 FF 0F B0 [11:12:41]RasterBufferAndPrint [11:12:41]line Счет N : (3)73375 [11:12:41]line ИНН: 02508201610067 [11:12:41]line Контрольно-Кассовый Чек [11:12:41]line ПРОДАЖА [11:12:41]line Товар: 2000036210013 [11:12:41]line Кофе Капучино (GABB TRADE) [11:12:41]line 1.000 * 115.00 [11:12:41]line = 115.00 [11:12:41]line НДС 12% НСП 1% [11:12:41]line > о реализуемом товаре [11:12:41]line ИТОГО: 115.00 [11:12:41]line НСП 1% : 1.02 [11:12:41]line НДС 12% : 12.21 [11:12:41]line Наличными: 115.00 [11:12:41]line Безнал.: 0.00 [11:12:41]line Место: АЗС № 117 "Партнер Нефть" [11:12:41]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [11:12:41]line СНО: Общий режим [11:12:41]line Чек 45 03.06.2024 11:12 [11:12:41]line Смена: 373 ФФД: 1.0 [11:12:41]line ЗНМ: 0300000031 [11:12:41]line РНМ: 0000000000092737 [11:12:41]line Версия ККМ: 001 [11:12:41]line ФМ: 0000000000875074 [11:12:41]line ФД: 63787 [11:12:41]line ФПД: 120120742720620 [11:12:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T111241&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63787&fm=120120742720620&tin=02508201610067®Number=0000000000092737&sum=11500 [11:12:41]OFD Sender: Processing packet 63787 [packets to send 14, broken 13] [11:12:41]ProducePacketName [11:12:41]name=ofd_packets/00063787 [11:12:41]OFD Sender: To server: pG, [11:12:41]CommunicateWithHost lk.salyk.kg:30040 [11:12:41]ConnectInit lk.salyk.kg [11:12:41]line 0 [11:12:41]written 0, free lines is 4095 [11:12:42]Connected sock=10 [11:12:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 2C 01 00 00 E4 E3 24 01 86 00 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 29 A5 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 2B F9 00 00 35 04 06 00 6D 3F CA 33 34 6C FC 54 5E 44 0C 68 DE 78 [11:12:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 13 7A 47 00 8E 9D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 2B F9 00 00 F4 03 04 00 FB 50 5D 66 B6 04 01 00 00 C1 78 38 8B 80 B5 5B BD [11:12:42]CommunicateWithHost err = 0 [11:12:42]CheckOFDResponse [11:12:42]1017 (14) - 77093643461234 [11:12:42]1041 (16) - 0000000000875074 [11:12:42]1040 (4) - 63787 [11:12:42]1012 (4) - 03.06.2024 05:13 [11:12:42]1206 (1) - 0 [11:12:42]OFD Sender: Remove packet 63787 [11:12:42]ProducePacketName [11:12:42]name=ofd_packets/00063787 [11:12:42]NVStorageDeleteData [11:12:42]Write to MH i2c: 01 00 00 B8 0B C3 [11:12:42]Write i2c OK [11:12:42]MH_I2C_Read... [11:12:42]Read from MH i2c: 01 [11:12:42]MH_I2C_Read... [11:12:42]Read from MH i2c: 01 07 00 [11:12:42]MH_I2C_Read... [11:12:42]Read from MH i2c: 01 07 00 B8 0B 00 00 00 00 00 12 0D E9 [11:12:42]RasterBufferAndPrint [11:12:42]line [11:12:42]line [11:12:42]line [11:12:42]line [11:12:42]line [11:12:42]written 0, free lines is 3357 [11:12:42]MH_Cut [11:12:42]Write to MH i2c: D1 01 00 BF 0B 01 9C [11:12:42]Write i2c OK [11:12:42]MH_I2C_Read... [11:12:42]Read from MH i2c: D1 [11:12:42]MH_I2C_Read... [11:12:42]Read from MH i2c: D1 01 00 [11:12:42]MH_I2C_Read... [11:12:42]Read from MH i2c: D1 01 00 BF 0B 00 9B [11:12:42]Write to MH i2c: 01 00 00 C0 0B CB [11:12:42]Write i2c OK [11:12:42]MH_I2C_Read... [11:12:42]OFD Sender: No OFD packet to send [11:12:43]*** Cut start [11:12:43]*** Partial cut [11:12:43]*** CUTSNS_PIN = 1 [11:12:43]*** CUTSNS_PIN = 0 [11:12:43]*** Brake cut motor [11:12:43]Read from MH i2c: 01 [11:12:43]MH_I2C_Read... [11:12:43]*** Stop cut motor [11:12:43]*** Cut end [11:12:43]Read from MH i2c: 01 07 00 [11:12:43]MH_I2C_Read... [11:12:43]Read from MH i2c: 01 07 00 C0 0B 00 00 00 00 00 FF 0F E0 [11:12:43]process_action close_receipt done [11:12:43]requested_data is exist [11:12:43]produce_requested_data [11:12:43]requested_item fm.sn is exist - process it [11:12:43]wFMCommunicate request_size=4 [11:12:43]MH_SAM_APDU [11:12:43]CAPDU: 80 11 00 00 [11:12:43]Write to MH i2c: E2 08 00 C1 0B 80 11 00 00 00 00 00 00 46 [11:12:43]Write i2c OK [11:12:43]MH_I2C_Read... [11:12:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:12:43]Read from MH i2c: E2 [11:12:43]MH_I2C_Read... [11:12:43]Read from MH i2c: E2 17 00 [11:12:43]MH_I2C_Read... [11:12:43]Read from MH i2c: E2 17 00 C1 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 98 [11:12:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [11:12:43]wFMCommunicate OK [11:12:43]requested_item fd.num is exist - process it [11:12:43]SAM_PROTO_GetFieldsCounters [11:12:43]wFMCommunicate request_size=4 [11:12:43]MH_SAM_APDU [11:12:43]CAPDU: 80 13 00 00 [11:12:43]Write to MH i2c: E2 08 00 C2 0B 80 13 00 00 00 00 00 00 49 [11:12:43]Write i2c OK [11:12:43]MH_I2C_Read... [11:12:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:12:43]Read from MH i2c: E2 [11:12:43]MH_I2C_Read... [11:12:43]Read from MH i2c: E2 62 00 [11:12:43]MH_I2C_Read... [11:12:43]Read from MH i2c: E2 62 00 C2 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 2B F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 8D [11: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 2B F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:12:43]wFMCommunicate OK [11:12:43]SAM_PROTO_GetFieldsCounters done [11:12:43]requested_item shift.num is exist - process it [11:12:43]requested_item shift.opened is exist - process it [11:12:43]req_shift_opened [11:12:43]FM_GetShiftState [11:12:43]SAM_PROTO_GetShiftState [11:12:43]wFMCommunicate request_size=4 [11:12:43]MH_SAM_APDU [11:12:43]CAPDU: 80 13 01 00 [11:12:43]Write to MH i2c: E2 08 00 C3 0B 80 13 01 00 00 00 00 00 4B [11:12:43]Write i2c OK [11:12:43]MH_I2C_Read... [11:12:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:12:44]Read from MH i2c: E2 [11:12:44]MH_I2C_Read... [11:12:44]Read from MH i2c: E2 0E 00 [11:12:44]MH_I2C_Read... [11:12:44]Read from MH i2c: E2 0E 00 C3 0B 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 17 [11:12:44]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [11:12:44]wFMCommunicate OK [11:12:44]SAM_PROTO_GetShiftState done [11:12:44]FM_GetShiftState done [11:12:44]req_shift_opened done [11:12:44]requested_item shift.open_date is exist - process it [11:12:44]req_shift_open_date [11:12:44]req_shift_open_date done [11:12:44]produce_requested_data done [11:12:44]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63787,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [11:12:44]process_action_free close_receipt [11:12:44]json_value_free [11:12:44]json_value_free done [11:12:44]process_json_proto returns [11:12:44]Send response to host [11:12:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63787,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [11:12:44]free response buf [11:12:44]execute_script done [11:12:44]execute_script returns [11:12:44]free content buf [11:12:44]Sock 7.Close socket [11:12:44]Sock 7.Thread stoped [11:12:47]OFD Sender: No OFD packet to send [11:12:48]accept exits with 9 [11:12:48]New connection [11:12:48]New thread 3067518308 created [11:12:48]Thread 3067374948 joined [11:12:48]Waiting for new connection... [11:12:48] Sock 9.Parse request [11:12:48]Sock 9.Check first char [11:12:48]Sock 9.First char is OK [11:12:48]request: POST /json_proto HTTP/1.0 [11:12:48]Method: POST [11:12:48]URL: /json_proto [11:12:48]Method is POST - this is cgi request [11:12:48]url: /json_proto [11:12:48]query_string will be loaded in cgi processing [11:12:48]execute_cgi json_proto POST (null) [11:12:48]execute_cgi path=json_proto method=POST [11:12:48]POST find Content-Length [11:12:48]Host: 172.17.60.69:8080 [11:12:48]Content-Length: 645 [11:12:48]Content-Type: application/json [11:12:48] [11:12:48]POST finish read [11:12:48]Found Content-Length = 645 [11:12:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73376", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:12:48]execute_script... [11:12:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73376", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:12:48]POST & json_proto [11:12:48]process_json_proto [11:12:48]json parsed OK: [11:12:48]protocol is kg_v1.0 [11:12:48]action value=close_receipt [11:12:48]process_action close_receipt [11:12:48]cmd_close_receipt [11:12:48]MH_GetDate [11:12:48]Write to MH i2c: F0 00 00 C4 0B BE [11:12:48]Write i2c OK [11:12:48]MH_I2C_Read... [11:12:48]Read from MH i2c: F0 [11:12:48]MH_I2C_Read... [11:12:48]Read from MH i2c: F0 09 00 [11:12:48]MH_I2C_Read... [11:12:48]Read from MH i2c: F0 09 00 C4 0B 00 32 A5 5D 66 6A 96 4A 66 11 [11:12:48]GetLastDocTimeStamp 1717413161 [11:12:48]current date 1717413170 [11:12:48]FM_GetShiftState [11:12:48]SAM_PROTO_GetShiftState [11:12:48]wFMCommunicate request_size=4 [11:12:48]MH_SAM_APDU [11:12:48]CAPDU: 80 13 01 00 [11:12:48]Write to MH i2c: E2 08 00 C5 0B 80 13 01 00 00 00 00 00 4D [11:12:48]Write i2c OK [11:12:48]MH_I2C_Read... [11:12:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:12:48]Read from MH i2c: E2 [11:12:48]MH_I2C_Read... [11:12:48]Read from MH i2c: E2 0E 00 [11:12:48]MH_I2C_Read... [11:12:48]Read from MH i2c: E2 0E 00 C5 0B 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 19 [11:12:48]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [11:12:48]wFMCommunicate OK [11:12:48]SAM_PROTO_GetShiftState done [11:12:48]FM_GetShiftState done [11:12:48]opened in 1717373173 [11:12:48]opened+sec_in_day 1717459573 [11:12:48]quantity*price = 12500 [11:12:48]sum+1 = 12501 [11:12:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 125.00 НСП 1% : 1.11 НДС 12% : 13.27 Наличными: 125.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 46 03.06.2024 11:12 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63788 ФПД: 22730166700641 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T111250&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63788&fm=22730166700641&tin=02508201610067®Number=0000000000092737&sum=12500 0 [11:12:49]StoreToDocumentArchive [11:12:49]shift 373 fd 63788 [11:12:49]save to /storage/0373/doc_00063788 [11:12:49]save last doc name /storage/0373/doc_00063788 to /storage/kkm_last_doc_name [11:12:49]save OK [11:12:49]Clear old archive folders... [11:12:49]ProcessDocumentItem done err = 0, tmpTLVsize=282 [11:12:49]tlvbuf is 00D6EF50 [11:12:49]SAM_PROTO_ClearQueue [11:12:49]wFMCommunicate request_size=4 [11:12:49]MH_SAM_APDU [11:12:49]CAPDU: 80 09 00 00 [11:12:49]Write to MH i2c: E2 08 00 D2 0B 80 09 00 00 00 00 00 00 4F [11:12:49]Write i2c OK [11:12:49]MH_I2C_Read... [11:12:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:12:49]Read from MH i2c: E2 [11:12:49]MH_I2C_Read... [11:12:49]Read from MH i2c: E2 03 00 [11:12:49]MH_I2C_Read... [11:12:49]Read from MH i2c: E2 03 00 D2 0B 00 90 00 51 [11:12:49]RAPDU: 90 00 [11:12:49]wFMCommunicate OK [11:12:49]SAM_PROTO_ClearQueue done [11:12:49]KKMCreateOFDPacket [11:12:49]OFDProtocolAddRootSTLVToBuf [11:12:49]FM_MakeSignedData [11:12:49]FM_MakeSignedData [11:12:49]SAM_PROTO_SignData [11:12:49]wFMCommunicate request_size=4 [11:12:49]MH_SAM_APDU [11:12:49]CAPDU: 80 0D 01 02 [11:12:49]Write to MH i2c: E2 08 00 D3 0B 80 0D 01 02 00 00 00 00 57 [11:12:49]Write i2c OK [11:12:49]MH_I2C_Read... [11:12:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:12:49]Read from MH i2c: E2 [11:12:49]MH_I2C_Read... [11:12:49]Read from MH i2c: E2 03 00 [11:12:49]MH_I2C_Read... [11:12:49]Read from MH i2c: E2 03 00 D3 0B 00 90 00 52 [11:12:49]RAPDU: 90 00 [11:12:49]wFMCommunicate OK [11:12:49]wFMCommunicate request_size=255 [11:12:49]MH_SAM_APDU [11:12:49]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 32 A5 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 [11:12:49]Write to MH i2c: E2 02 01 D4 0B 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 32 A5 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 00 00 96 [11:12:50]Write i2c OK [11:12:50]MH_I2C_Read... [11:12:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:12:50]Read from MH i2c: E2 [11:12:50]MH_I2C_Read... [11:12:50]Read from MH i2c: E2 03 00 [11:12:50]MH_I2C_Read... [11:12:50]Read from MH i2c: E2 03 00 D4 0B 00 90 00 53 [11:12:50]RAPDU: 90 00 [11:12:50]wFMCommunicate OK [11:12:50]wFMCommunicate request_size=41 [11:12:50]MH_SAM_APDU [11:12:50]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 2C F9 00 00 35 04 06 00 14 AC 47 83 0A 61 [11:12:50]Write to MH i2c: E2 2C 00 D5 0B 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 2C F9 00 00 35 04 06 00 14 AC 47 83 0A 61 00 00 42 [11:12:50]Write i2c OK [11:12:50]MH_I2C_Read... [11:12:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:12:50]Read from MH i2c: E2 [11:12:50]MH_I2C_Read... [11:12:50]Read from MH i2c: E2 03 00 [11:12:50]MH_I2C_Read... [11:12:50]Read from MH i2c: E2 03 00 D5 0B 00 90 00 54 [11:12:50]RAPDU: 90 00 [11:12:50]wFMCommunicate OK [11:12:50]wFMCommunicate request_size=4 [11:12:50]MH_SAM_APDU [11:12:50]CAPDU: 80 0D 03 02 [11:12:50]Write to MH i2c: E2 08 00 D6 0B 80 0D 03 02 00 00 00 00 5C [11:12:50]Write i2c OK [11:12:50]MH_I2C_Read... [11:12:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:12:50]Read from MH i2c: E2 [11:12:50]MH_I2C_Read... [11:12:50]Read from MH i2c: E2 0B 00 [11:12:50]MH_I2C_Read... [11:12:50]Read from MH i2c: E2 0B 00 D6 0B 00 02 40 A1 C7 B4 6C 74 15 90 00 B0 [11:12:50]RAPDU: 02 40 A1 C7 B4 6C 74 15 90 00 [11:12:50]wFMCommunicate OK [11:12:50]SAM_PROTO_SignData done [11:12:50]FM_MakeSignedData done [11:12:50]CreateOFDProtocolMessage [11:12:50]wFMCommunicate request_size=4 [11:12:50]MH_SAM_APDU [11:12:50]CAPDU: 80 11 00 00 [11:12:50]Write to MH i2c: E2 08 00 D7 0B 80 11 00 00 00 00 00 00 5C [11:12:50]Write i2c OK [11:12:50]MH_I2C_Read... [11:12:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:12:50]Read from MH i2c: E2 [11:12:50]MH_I2C_Read... [11:12:50]Read from MH i2c: E2 17 00 [11:12:50]MH_I2C_Read... [11:12:50]Read from MH i2c: E2 17 00 D7 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 AE [11:12:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [11:12:50]wFMCommunicate OK [11:12:50]CreateOFDProtocolMessage done [11:12:50]OFDSenderStorePacket 63788 [11:12:50]StoreOFDPacket docnum=63788 [11:12:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 2E 01 00 00 DB 11 26 01 7C 1C 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 32 A5 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 2C F9 00 00 35 04 06 00 14 AC 47 83 0A 61 02 40 A1 C7 B4 6C 74 15 [11:12:50]CheckFolder [11:12:50]dirname=/storage/ofd_packets [11:12:50]CheckFolder done [11:12:50]ProducePacketName [11:12:50]name=ofd_packets/00063788 [11:12:50]NVStorageSaveData ofd_packets/00063788 [11:12:50]File name is /storage/ofd_packets/00063788 [11:12:50]Write 332 bytes [11:12:50]NVStorageSaveData done [11:12:50]OFDSenderStorePacket done [11:12:50]KKMCreateOFDPacket done [11:12:50]NVStorageSaveData kkm_last_timestamp [11:12:50]File name is /storage/kkm_last_timestamp [11:12:50]Write 4 bytes [11:12:50]NVStorageSaveData done [11:12:50]ExternCall_PrintAddStr [11:12:50]wPrintStart [11:12:50]Write to MH i2c: 01 00 00 D8 0B E3 [11:12:50]Write i2c OK [11:12:50]MH_I2C_Read... [11:12:50]Read from MH i2c: 01 [11:12:50]MH_I2C_Read... [11:12:50]Read from MH i2c: 01 07 00 [11:12:50]MH_I2C_Read... [11:12:50]Read from MH i2c: 01 07 00 D8 0B 00 00 00 00 00 FF 0F F8 [11:12:50]RasterBufferAndPrint [11:12:50]line Счет N : (3)73376 [11:12:50]line ИНН: 02508201610067 [11:12:50]line Контрольно-Кассовый Чек [11:12:50]line ПРОДАЖА [11:12:50]line Товар: 2000036220012 [11:12:50]line Кофе Капучино XL(GABB TRADE) [11:12:50]line 1.000 * 125.00 [11:12:50]line = 125.00 [11:12:50]line НДС 12% НСП 1% [11:12:50]line > о реализуемом товаре [11:12:50]line ИТОГО: 125.00 [11:12:50]line НСП 1% : 1.11 [11:12:50]line НДС 12% : 13.27 [11:12:50]line Наличными: 125.00 [11:12:50]line Безнал.: 0.00 [11:12:50]line Место: АЗС № 117 "Партнер Нефть" [11:12:50]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [11:12:50]line СНО: Общий режим [11:12:50]line Чек 46 03.06.2024 11:12 [11:12:50]line Смена: 373 ФФД: 1.0 [11:12:50]line ЗНМ: 0300000031 [11:12:50]line РНМ: 0000000000092737 [11:12:50]line Версия ККМ: 001 [11:12:50]line ФМ: 0000000000875074 [11:12:50]line ФД: 63788 [11:12:50]line ФПД: 22730166700641 [11:12:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T111250&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63788&fm=22730166700641&tin=02508201610067®Number=0000000000092737&sum=12500 [11:12:50]line 0 [11:12:50]written 0, free lines is 4095 [11:12:50]OFD Sender: Processing packet 63788 [packets to send 14, broken 13] [11:12:50]ProducePacketName [11:12:50]name=ofd_packets/00063788 [11:12:50]OFD Sender: To server: pG, [11:12:50]CommunicateWithHost lk.salyk.kg:30040 [11:12:50]ConnectInit lk.salyk.kg [11:12:50]Connected sock=7 [11:12:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 2E 01 00 00 DB 11 26 01 7C 1C 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 32 A5 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 2C F9 00 00 35 04 06 00 14 AC 47 83 0A 61 02 40 A1 C7 B4 6C 74 15 [11:12:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 9F 35 47 00 6A 98 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 2C F9 00 00 F4 03 04 00 04 51 5D 66 B6 04 01 00 00 CE ED 9F 97 2E CF 3A 4F [11:12:50]CommunicateWithHost err = 0 [11:12:50]CheckOFDResponse [11:12:50]1017 (14) - 77093643461234 [11:12:50]1041 (16) - 0000000000875074 [11:12:50]1040 (4) - 63788 [11:12:50]1012 (4) - 03.06.2024 05:13 [11:12:50]1206 (1) - 0 [11:12:50]OFD Sender: Remove packet 63788 [11:12:50]ProducePacketName [11:12:50]name=ofd_packets/00063788 [11:12:50]NVStorageDeleteData [11:12:50]Write to MH i2c: 01 00 00 01 0C 0D [11:12:50]Write i2c OK [11:12:50]MH_I2C_Read... [11:12:50]Read from MH i2c: 01 [11:12:50]MH_I2C_Read... [11:12:50]Read from MH i2c: 01 07 00 [11:12:50]MH_I2C_Read... [11:12:50]Read from MH i2c: 01 07 00 01 0C 00 00 00 00 00 0E 0D 2F [11:12:50]RasterBufferAndPrint [11:12:50]line [11:12:50]line [11:12:50]line [11:12:50]line [11:12:50]line [11:12:50]written 0, free lines is 3354 [11:12:50]MH_Cut [11:12:50]Write to MH i2c: D1 01 00 08 0C 01 E6 [11:12:50]Write i2c OK [11:12:50]MH_I2C_Read... [11:12:50]Read from MH i2c: D1 [11:12:50]MH_I2C_Read... [11:12:50]Read from MH i2c: D1 01 00 [11:12:50]MH_I2C_Read... [11:12:50]Read from MH i2c: D1 01 00 08 0C 00 E5 [11:12:50]Write to MH i2c: 01 00 00 09 0C 15 [11:12:50]Write i2c OK [11:12:50]MH_I2C_Read... [11:12:51]OFD Sender: No OFD packet to send [11:12:51]*** Cut start [11:12:51]*** Partial cut [11:12:51]*** CUTSNS_PIN = 1 [11:12:51]*** CUTSNS_PIN = 0 [11:12:52]*** Brake cut motor [11:12:52]Read from MH i2c: 01 [11:12:52]MH_I2C_Read... [11:12:52]*** Stop cut motor [11:12:52]*** Cut end [11:12:52]Read from MH i2c: 01 07 00 [11:12:52]MH_I2C_Read... [11:12:52]Read from MH i2c: 01 07 00 09 0C 00 00 00 00 00 FF 0F 2A [11:12:52]process_action close_receipt done [11:12:52]requested_data is exist [11:12:52]produce_requested_data [11:12:52]requested_item fm.sn is exist - process it [11:12:52]wFMCommunicate request_size=4 [11:12:52]MH_SAM_APDU [11:12:52]CAPDU: 80 11 00 00 [11:12:52]Write to MH i2c: E2 08 00 0A 0C 80 11 00 00 00 00 00 00 90 [11:12:52]Write i2c OK [11:12:52]MH_I2C_Read... [11:12:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:12:52]Read from MH i2c: E2 [11:12:52]MH_I2C_Read... [11:12:52]Read from MH i2c: E2 17 00 [11:12:52]MH_I2C_Read... [11:12:52]Read from MH i2c: E2 17 00 0A 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 E2 [11:12:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [11:12:52]wFMCommunicate OK [11:12:52]requested_item fd.num is exist - process it [11:12:52]SAM_PROTO_GetFieldsCounters [11:12:52]wFMCommunicate request_size=4 [11:12:52]MH_SAM_APDU [11:12:52]CAPDU: 80 13 00 00 [11:12:52]Write to MH i2c: E2 08 00 0B 0C 80 13 00 00 00 00 00 00 93 [11:12:52]Write i2c OK [11:12:52]MH_I2C_Read... [11:12:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:12:52]Read from MH i2c: E2 [11:12:52]MH_I2C_Read... [11:12:52]Read from MH i2c: E2 62 00 [11:12:52]MH_I2C_Read... [11:12:52]Read from MH i2c: E2 62 00 0B 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 2C F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 DB [11:12: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 2C F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:12:52]wFMCommunicate OK [11:12:52]SAM_PROTO_GetFieldsCounters done [11:12:52]requested_item shift.num is exist - process it [11:12:52]requested_item shift.opened is exist - process it [11:12:52]req_shift_opened [11:12:52]FM_GetShiftState [11:12:52]SAM_PROTO_GetShiftState [11:12:52]wFMCommunicate request_size=4 [11:12:52]MH_SAM_APDU [11:12:52]CAPDU: 80 13 01 00 [11:12:52]Write to MH i2c: E2 08 00 0C 0C 80 13 01 00 00 00 00 00 95 [11:12:52]Write i2c OK [11:12:52]MH_I2C_Read... [11:12:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:12:52]Read from MH i2c: E2 [11:12:52]MH_I2C_Read... [11:12:52]Read from MH i2c: E2 0E 00 [11:12:52]MH_I2C_Read... [11:12:52]Read from MH i2c: E2 0E 00 0C 0C 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 61 [11:12:52]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [11:12:52]wFMCommunicate OK [11:12:52]SAM_PROTO_GetShiftState done [11:12:52]FM_GetShiftState done [11:12:52]req_shift_opened done [11:12:52]requested_item shift.open_date is exist - process it [11:12:52]req_shift_open_date [11:12:52]req_shift_open_date done [11:12:52]produce_requested_data done [11:12:52]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63788,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [11:12:52]process_action_free close_receipt [11:12:52]json_value_free [11:12:52]json_value_free done [11:12:52]process_json_proto returns [11:12:52]Send response to host [11:12:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63788,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [11:12:52]free response buf [11:12:52]execute_script done [11:12:52]execute_script returns [11:12:52]free content buf [11:12:52]Sock 9.Close socket [11:12:52]Sock 9.Thread stoped [11:12:56]OFD Sender: No OFD packet to send [11:13:01]OFD Sender: No OFD packet to send [11:13:06]OFD Sender: No OFD packet to send [11:13:11]OFD Sender: No OFD packet to send [11:13:16]OFD Sender: No OFD packet to send [11:13:21]OFD Sender: No OFD packet to send [11:13:26]OFD Sender: No OFD packet to send [11:13:31]OFD Sender: No OFD packet to send [11:13:36]OFD Sender: No OFD packet to send [11:13:41]OFD Sender: No OFD packet to send [11:13:46]OFD Sender: No OFD packet to send [11:13:51]OFD Sender: No OFD packet to send [11:13:56]OFD Sender: No OFD packet to send [11:14:01]OFD Sender: No OFD packet to send [11:14:06]OFD Sender: No OFD packet to send [11:14:11]OFD Sender: No OFD packet to send [11:14:16]OFD Sender: No OFD packet to send [11:14:21]OFD Sender: No OFD packet to send [11:14:26]OFD Sender: No OFD packet to send [11:14:31]OFD Sender: No OFD packet to send [11:14:36]OFD Sender: No OFD packet to send [11:14:41]OFD Sender: No OFD packet to send [11:14:46]OFD Sender: No OFD packet to send [11:14:51]OFD Sender: No OFD packet to send [11:14:56]OFD Sender: No OFD packet to send [11:15:01]OFD Sender: No OFD packet to send [11:15:06]OFD Sender: No OFD packet to send [11:15:11]OFD Sender: No OFD packet to send [11:15:16]OFD Sender: No OFD packet to send [11:15:21]OFD Sender: No OFD packet to send [11:15:26]OFD Sender: No OFD packet to send [11:15:31]OFD Sender: No OFD packet to send [11:15:36]OFD Sender: No OFD packet to send [11:15:41]OFD Sender: No OFD packet to send [11:15:46]OFD Sender: No OFD packet to send [11:15:51]OFD Sender: No OFD packet to send [11:15:56]OFD Sender: No OFD packet to send [11:16:01]OFD Sender: No OFD packet to send [11:16:06]OFD Sender: No OFD packet to send [11:16:11]OFD Sender: No OFD packet to send [11:16:16]OFD Sender: No OFD packet to send [11:16:21]OFD Sender: No OFD packet to send [11:16:26]OFD Sender: No OFD packet to send [11:16:31]OFD Sender: No OFD packet to send [11:16:36]OFD Sender: No OFD packet to send [11:16:41]OFD Sender: No OFD packet to send [11:16:46]OFD Sender: No OFD packet to send [11:16:51]OFD Sender: No OFD packet to send [11:16:56]OFD Sender: No OFD packet to send [11:17:01]OFD Sender: No OFD packet to send [11:17:06]OFD Sender: No OFD packet to send [11:17:11]OFD Sender: No OFD packet to send [11:17:16]OFD Sender: No OFD packet to send [11:17:21]OFD Sender: No OFD packet to send [11:17:26]OFD Sender: No OFD packet to send [11:17:31]OFD Sender: No OFD packet to send [11:17:36]OFD Sender: No OFD packet to send [11:17:41]OFD Sender: No OFD packet to send [11:17:46]OFD Sender: No OFD packet to send [11:17:51]OFD Sender: No OFD packet to send [11:17:56]OFD Sender: No OFD packet to send [11:18:01]OFD Sender: No OFD packet to send [11:18:06]OFD Sender: No OFD packet to send [11:18:11]OFD Sender: No OFD packet to send [11:18:16]OFD Sender: No OFD packet to send [11:18:21]OFD Sender: No OFD packet to send [11:18:26]OFD Sender: No OFD packet to send [11:18:31]OFD Sender: No OFD packet to send [11:18:36]OFD Sender: No OFD packet to send [11:18:41]OFD Sender: No OFD packet to send [11:18:46]OFD Sender: No OFD packet to send [11:18:51]OFD Sender: No OFD packet to send [11:18:56]OFD Sender: No OFD packet to send [11:19:01]OFD Sender: No OFD packet to send [11:19:06]OFD Sender: No OFD packet to send [11:19:11]OFD Sender: No OFD packet to send [11:19:16]OFD Sender: No OFD packet to send [11:19:21]OFD Sender: No OFD packet to send [11:19:26]OFD Sender: No OFD packet to send [11:19:31]OFD Sender: No OFD packet to send [11:19:36]OFD Sender: No OFD packet to send [11:19:41]OFD Sender: No OFD packet to send [11:19:46]OFD Sender: No OFD packet to send [11:19:51]OFD Sender: No OFD packet to send [11:19:56]OFD Sender: No OFD packet to send [11:20:01]OFD Sender: No OFD packet to send [11:20:06]OFD Sender: No OFD packet to send [11:20:11]OFD Sender: No OFD packet to send [11:20:16]OFD Sender: No OFD packet to send [11:20:21]OFD Sender: No OFD packet to send [11:20:26]OFD Sender: No OFD packet to send [11:20:31]OFD Sender: No OFD packet to send [11:20:36]OFD Sender: No OFD packet to send [11:20:41]OFD Sender: No OFD packet to send [11:20:46]OFD Sender: No OFD packet to send [11:20:51]OFD Sender: No OFD packet to send [11:20:56]OFD Sender: No OFD packet to send [11:21:01]OFD Sender: No OFD packet to send [11:21:06]OFD Sender: No OFD packet to send [11:21:11]OFD Sender: No OFD packet to send [11:21:16]OFD Sender: No OFD packet to send [11:21:21]OFD Sender: No OFD packet to send [11:21:26]OFD Sender: No OFD packet to send [11:21:31]OFD Sender: No OFD packet to send [11:21:36]OFD Sender: No OFD packet to send [11:21:41]OFD Sender: No OFD packet to send [11:21:46]OFD Sender: No OFD packet to send [11:21:51]OFD Sender: No OFD packet to send [11:21:56]OFD Sender: No OFD packet to send [11:22:01]OFD Sender: No OFD packet to send [11:22:06]OFD Sender: No OFD packet to send [11:22:11]OFD Sender: No OFD packet to send [11:22:16]OFD Sender: No OFD packet to send [11:22:21]OFD Sender: No OFD packet to send [11:22:26]OFD Sender: No OFD packet to send [11:22:31]OFD Sender: No OFD packet to send [11:22:36]OFD Sender: No OFD packet to send [11:22:41]OFD Sender: No OFD packet to send [11:22:46]OFD Sender: No OFD packet to send [11:22:51]OFD Sender: No OFD packet to send [11:22:56]OFD Sender: No OFD packet to send [11:23:01]OFD Sender: No OFD packet to send [11:23:06]OFD Sender: No OFD packet to send [11:23:11]OFD Sender: No OFD packet to send [11:23:16]OFD Sender: No OFD packet to send [11:23:21]OFD Sender: No OFD packet to send [11:23:26]OFD Sender: No OFD packet to send [11:23:31]OFD Sender: No OFD packet to send [11:23:36]OFD Sender: No OFD packet to send [11:23:41]OFD Sender: No OFD packet to send [11:23:46]OFD Sender: No OFD packet to send [11:23:51]OFD Sender: No OFD packet to send [11:23:56]OFD Sender: No OFD packet to send [11:24:01]OFD Sender: No OFD packet to send [11:24:06]OFD Sender: No OFD packet to send [11:24:11]OFD Sender: No OFD packet to send [11:24:16]OFD Sender: No OFD packet to send [11:24:21]OFD Sender: No OFD packet to send [11:24:26]OFD Sender: No OFD packet to send [11:24:31]OFD Sender: No OFD packet to send [11:24:36]OFD Sender: No OFD packet to send [11:24:41]OFD Sender: No OFD packet to send [11:24:46]OFD Sender: No OFD packet to send [11:24:51]OFD Sender: No OFD packet to send [11:24:56]OFD Sender: No OFD packet to send [11:25:01]OFD Sender: No OFD packet to send [11:25:06]OFD Sender: No OFD packet to send [11:25:11]OFD Sender: No OFD packet to send [11:25:16]OFD Sender: No OFD packet to send [11:25:21]OFD Sender: No OFD packet to send [11:25:26]OFD Sender: No OFD packet to send [11:25:31]OFD Sender: No OFD packet to send [11:25:36]OFD Sender: No OFD packet to send [11:25: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:27]OFD Sender: No OFD packet to send [11:26:32]OFD Sender: No OFD packet to send [11:26:37]OFD Sender: No OFD packet to send [11:26:42]OFD Sender: No OFD packet to send [11:26:47]OFD Sender: No OFD packet to send [11:26:52]OFD Sender: No OFD packet to send [11:26:57]OFD Sender: No OFD packet to send [11:27:02]OFD Sender: No OFD packet to send [11:27:07]OFD Sender: No OFD packet to send [11:27:12]OFD Sender: No OFD packet to send [11:27:17]OFD Sender: No OFD packet to send [11:27:22]OFD Sender: No OFD packet to send [11:27:27]OFD Sender: No OFD packet to send [11:27:32]OFD Sender: No OFD packet to send [11:27:37]OFD Sender: No OFD packet to send [11:27:42]OFD Sender: No OFD packet to send [11:27:47]OFD Sender: No OFD packet to send [11:27:52]OFD Sender: No OFD packet to send [11:27:57]OFD Sender: No OFD packet to send [11:28:02]OFD Sender: No OFD packet to send [11:28:07]OFD Sender: No OFD packet to send [11:28:12]OFD Sender: No OFD packet to send [11:28:17]OFD Sender: No OFD packet to send [11:28:22]OFD Sender: No OFD packet to send [11:28:27]OFD Sender: No OFD packet to send [11:28:32]OFD Sender: No OFD packet to send [11:28:37]OFD Sender: No OFD packet to send [11:28:42]OFD Sender: No OFD packet to send [11:28:47]OFD Sender: No OFD packet to send [11:28:52]OFD Sender: No OFD packet to send [11:28:57]OFD Sender: No OFD packet to send [11:29:02]OFD Sender: No OFD packet to send [11:29:07]OFD Sender: No OFD packet to send [11:29:12]OFD Sender: No OFD packet to send [11:29:17]OFD Sender: No OFD packet to send [11:29:22]OFD Sender: No OFD packet to send [11:29:27]OFD Sender: No OFD packet to send [11:29:32]OFD Sender: No OFD packet to send [11:29:37]OFD Sender: No OFD packet to send [11:29:42]OFD Sender: No OFD packet to send [11:29:47]OFD Sender: No OFD packet to send [11:29:52]OFD Sender: No OFD packet to send [11:29:57]OFD Sender: No OFD packet to send [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:27]OFD Sender: No OFD packet to send [11:32:32]OFD Sender: No OFD packet to send [11:32:37]OFD Sender: No OFD packet to send [11:32:42]OFD Sender: No OFD packet to send [11:32:47]OFD Sender: No OFD packet to send [11:32:52]OFD Sender: No OFD packet to send [11:32:57]OFD Sender: No OFD packet to send [11:33:02]OFD Sender: No OFD packet to send [11:33:07]OFD Sender: No OFD packet to send [11:33:12]OFD Sender: No OFD packet to send [11:33:17]OFD Sender: No OFD packet to send [11:33:22]OFD Sender: No OFD packet to send [11:33:27]OFD Sender: No OFD packet to send [11:33:32]OFD Sender: No OFD packet to send [11:33:37]OFD Sender: No OFD packet to send [11:33:42]OFD Sender: No OFD packet to send [11:33:47]OFD Sender: No OFD packet to send [11:33:52]OFD Sender: No OFD packet to send [11:33:57]OFD Sender: No OFD packet to send [11:34:02]OFD Sender: No OFD packet to send [11:34:07]OFD Sender: No OFD packet to send [11:34:12]OFD Sender: No OFD packet to send [11:34:17]OFD Sender: No OFD packet to send [11:34:22]OFD Sender: No OFD packet to send [11:34:27]OFD Sender: No OFD packet to send [11:34:32]OFD Sender: No OFD packet to send [11:34:37]OFD Sender: No OFD packet to send [11:34:42]OFD Sender: No OFD packet to send [11:34:47]OFD Sender: No OFD packet to send [11:34:52]OFD Sender: No OFD packet to send [11:34:57]OFD Sender: No OFD packet to send [11:35:02]OFD Sender: No OFD packet to send [11:35:07]OFD Sender: No OFD packet to send [11:35:12]OFD Sender: No OFD packet to send [11:35:17]OFD Sender: No OFD packet to send [11:35:22]OFD Sender: No OFD packet to send [11:35:27]OFD Sender: No OFD packet to send [11:35:32]OFD Sender: No OFD packet to send [11:35:37]OFD Sender: No OFD packet to send [11:35:42]OFD Sender: No OFD packet to send [11:35:47]OFD Sender: No OFD packet to send [11:35:52]OFD Sender: No OFD packet to send [11:35:54]accept exits with 10 [11:35:54]New connection [11:35:54]New thread 3067374948 created [11:35:54]Thread 3067518308 joined [11:35:54]Waiting for new connection... [11:35:54] Sock 10.Parse request [11:35:54]Sock 10.Check first char [11:35:54]Sock 10.First char is OK [11:35:54]request: POST /json_proto HTTP/1.0 [11:35:54]Method: POST [11:35:54]URL: /json_proto [11:35:54]Method is POST - this is cgi request [11:35:54]url: /json_proto [11:35:54]query_string will be loaded in cgi processing [11:35:54]execute_cgi json_proto POST (null) [11:35:54]execute_cgi path=json_proto method=POST [11:35:54]POST find Content-Length [11:35:54]Host: 172.17.60.69:8080 [11:35:54]Content-Length: 898 [11:35:54]Content-Type: application/json [11:35:54] [11:35:54]POST finish read [11:35:54]Found Content-Length = 898 [11:35:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73377", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 2.000, "sum" : 280.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "8710732217097", "name": "\u0417\u0430\u0436\u0438\u0433\u0430\u043B\u043A\u0430 Cricket \u041F\u041D \u043F\u044C\u0435\u0437\u043E", "price" : 67.00, "quantity" : 1.000, "sum" : 67.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 347.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:35:54]execute_script... [11:35:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73377", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 2.000, "sum" : 280.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "8710732217097", "name": "\u0417\u0430\u0436\u0438\u0433\u0430\u043B\u043A\u0430 Cricket \u041F\u041D \u043F\u044C\u0435\u0437\u043E", "price" : 67.00, "quantity" : 1.000, "sum" : 67.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 347.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:35:54]POST & json_proto [11:35:54]process_json_proto [11:35:54]json parsed OK: [11:35:54]protocol is kg_v1.0 [11:35:54]action value=close_receipt [11:35:54]process_action close_receipt [11:35:54]cmd_close_receipt [11:35:54]MH_GetDate [11:35:54]Write to MH i2c: F0 00 00 0D 0C 08 [11:35:54]Write i2c OK [11:35:54]MH_I2C_Read... [11:35:54]Read from MH i2c: F0 [11:35:54]MH_I2C_Read... [11:35:54]Read from MH i2c: F0 09 00 [11:35:54]MH_I2C_Read... [11:35:54]Read from MH i2c: F0 09 00 0D 0C 00 9C AA 5D 66 6A 96 4A 66 CA [11:35:54]GetLastDocTimeStamp 1717413170 [11:35:54]current date 1717414556 [11:35:54]FM_GetShiftState [11:35:54]SAM_PROTO_GetShiftState [11:35:54]wFMCommunicate request_size=4 [11:35:54]MH_SAM_APDU [11:35:54]CAPDU: 80 13 01 00 [11:35:54]Write to MH i2c: E2 08 00 0E 0C 80 13 01 00 00 00 00 00 97 [11:35:54]Write i2c OK [11:35:54]MH_I2C_Read... [11:35:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:35:54]Read from MH i2c: E2 [11:35:54]MH_I2C_Read... [11:35:54]Read from MH i2c: E2 0E 00 [11:35:54]MH_I2C_Read... [11:35:54]Read from MH i2c: E2 0E 00 0E 0C 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 63 [11:35:54]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [11:35:54]wFMCommunicate OK [11:35:54]SAM_PROTO_GetShiftState done [11:35:54]FM_GetShiftState done [11:35:54]opened in 1717373173 [11:35:54]opened+sec_in_day 1717459573 [11:35:54]quantity*price = 28000 [11:35:54]sum+1 = 28001 [11:35:54]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 8710732217097 Зажигалка Cricket ПН пьезо 1.000 * 67.00 = 67.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 347.00 НСП 1% : 3.07 НДС 12% : 36.84 Наличными: 347.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 47 03.06.2024 11:35 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63789 ФПД: 51290232695742 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T113556&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63789&fm=51290232695742&tin=02508201610067®Number=0000000000092737&sum=34700 0 [11:35:55]StoreToDocumentArchive [11:35:55]shift 373 fd 63789 [11:35:55]save to /storage/0373/doc_00063789 [11:35:55]save last doc name /storage/0373/doc_00063789 to /storage/kkm_last_doc_name [11:35:55]save OK [11:35:55]Clear old archive folders... [11:35:55]ProcessDocumentItem done err = 0, tmpTLVsize=387 [11:35:55]tlvbuf is 00D1FA00 [11:35:55]SAM_PROTO_ClearQueue [11:35:55]wFMCommunicate request_size=4 [11:35:55]MH_SAM_APDU [11:35:55]CAPDU: 80 09 00 00 [11:35:55]Write to MH i2c: E2 08 00 1B 0C 80 09 00 00 00 00 00 00 99 [11:35:55]Write i2c OK [11:35:55]MH_I2C_Read... [11:35:55]Read from MH i2c: E2 [11:35:55]MH_I2C_Read... [11:35:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:35:55]Read from MH i2c: E2 03 00 [11:35:55]MH_I2C_Read... [11:35:55]Read from MH i2c: E2 03 00 1B 0C 00 90 00 9B [11:35:55]RAPDU: 90 00 [11:35:55]wFMCommunicate OK [11:35:55]SAM_PROTO_ClearQueue done [11:35:55]KKMCreateOFDPacket [11:35:55]OFDProtocolAddRootSTLVToBuf [11:35:55]FM_MakeSignedData [11:35:55]FM_MakeSignedData [11:35:55]SAM_PROTO_SignData [11:35:55]wFMCommunicate request_size=4 [11:35:55]MH_SAM_APDU [11:35:55]CAPDU: 80 0D 01 02 [11:35:55]Write to MH i2c: E2 08 00 1C 0C 80 0D 01 02 00 00 00 00 A1 [11:35:55]Write i2c OK [11:35:55]MH_I2C_Read... [11:35:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:35:55]Read from MH i2c: E2 [11:35:55]MH_I2C_Read... [11:35:55]Read from MH i2c: E2 03 00 [11:35:55]MH_I2C_Read... [11:35:55]Read from MH i2c: E2 03 00 1C 0C 00 90 00 9C [11:35:55]RAPDU: 90 00 [11:35:55]wFMCommunicate OK [11:35:55]wFMCommunicate request_size=255 [11:35:55]MH_SAM_APDU [11:35:55]CAPDU: 80 0D 02 02 FA 03 00 83 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 60 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 38 37 31 30 37 33 32 32 31 37 30 39 37 06 04 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 2C 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 87 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 [11:35:55]Write to MH i2c: E2 02 01 1D 0C 80 0D 02 02 FA 00 03 00 83 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 60 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 38 37 31 30 37 33 32 32 31 37 30 39 37 06 04 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 2C 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 87 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 00 00 77 [11:35:55]Write i2c OK [11:35:55]MH_I2C_Read... [11:35:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:35:55]Read from MH i2c: E2 [11:35:55]MH_I2C_Read... [11:35:55]Read from MH i2c: E2 03 00 [11:35:55]MH_I2C_Read... [11:35:55]Read from MH i2c: E2 03 00 1D 0C 00 90 00 9D [11:35:55]RAPDU: 90 00 [11:35:55]wFMCommunicate OK [11:35:55]wFMCommunicate request_size=146 [11:35:55]MH_SAM_APDU [11:35:55]CAPDU: 80 0D 02 02 8D 03 06 00 33 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 0E 00 00 00 00 07 04 06 00 8C 87 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 9C AA 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 2D F9 00 00 35 04 06 00 2E A5 F0 19 AB BE [11:35:55]Write to MH i2c: E2 95 00 1E 0C 80 0D 02 02 8D 00 03 06 00 33 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 0E 00 00 00 00 07 04 06 00 8C 87 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 9C AA 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 2D F9 00 00 35 04 06 00 2E A5 F0 19 AB BE 00 00 C8 [11:35:55]Write i2c OK [11:35:55]MH_I2C_Read... [11:35:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:35:55]Read from MH i2c: E2 [11:35:55]MH_I2C_Read... [11:35:55]Read from MH i2c: E2 03 00 [11:35:55]MH_I2C_Read... [11:35:55]Read from MH i2c: E2 03 00 1E 0C 00 90 00 9E [11:35:55]RAPDU: 90 00 [11:35:55]wFMCommunicate OK [11:35:55]wFMCommunicate request_size=4 [11:35:55]MH_SAM_APDU [11:35:55]CAPDU: 80 0D 03 02 [11:35:55]Write to MH i2c: E2 08 00 1F 0C 80 0D 03 02 00 00 00 00 A6 [11:35:55]Write i2c OK [11:35:55]MH_I2C_Read... [11:35:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:35:55]Read from MH i2c: E2 [11:35:55]MH_I2C_Read... [11:35:55]Read from MH i2c: E2 0B 00 [11:35:55]MH_I2C_Read... [11:35:55]Read from MH i2c: E2 0B 00 1F 0C 00 4D 74 B9 91 A1 36 F4 3B 90 00 B8 [11:35:55]RAPDU: 4D 74 B9 91 A1 36 F4 3B 90 00 [11:35:55]wFMCommunicate OK [11:35:55]SAM_PROTO_SignData done [11:35:55]FM_MakeSignedData done [11:35:55]CreateOFDProtocolMessage [11:35:55]wFMCommunicate request_size=4 [11:35:55]MH_SAM_APDU [11:35:55]CAPDU: 80 11 00 00 [11:35:55]Write to MH i2c: E2 08 00 20 0C 80 11 00 00 00 00 00 00 A6 [11:35:55]Write i2c OK [11:35:55]MH_I2C_Read... [11:35:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:35:55]Read from MH i2c: E2 [11:35:55]MH_I2C_Read... [11:35:55]Read from MH i2c: E2 17 00 [11:35:55]MH_I2C_Read... [11:35:55]Read from MH i2c: E2 17 00 20 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 F8 [11:35:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [11:35:55]wFMCommunicate OK [11:35:55]CreateOFDProtocolMessage done [11:35:55]OFDSenderStorePacket 63789 [11:35:55]StoreOFDPacket docnum=63789 [11:35:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 97 01 00 00 71 A8 8F 01 CC 6D 5A 03 01 00 03 00 83 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 60 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 38 37 31 30 37 33 32 32 31 37 30 39 37 06 04 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 2C 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 87 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 33 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 0E 00 00 00 00 07 04 06 00 8C 87 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 9C AA 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 2D F9 00 00 35 04 06 00 2E A5 F0 19 AB BE 4D 74 B9 91 A1 36 F4 3B [11:35:55]CheckFolder [11:35:55]dirname=/storage/ofd_packets [11:35:55]CheckFolder done [11:35:55]ProducePacketName [11:35:55]name=ofd_packets/00063789 [11:35:55]NVStorageSaveData ofd_packets/00063789 [11:35:55]File name is /storage/ofd_packets/00063789 [11:35:55]Write 437 bytes [11:35:55]NVStorageSaveData done [11:35:55]OFDSenderStorePacket done [11:35:55]KKMCreateOFDPacket done [11:35:55]NVStorageSaveData kkm_last_timestamp [11:35:55]File name is /storage/kkm_last_timestamp [11:35:55]Write 4 bytes [11:35:55]NVStorageSaveData done [11:35:55]ExternCall_PrintAddStr [11:35:55]wPrintStart [11:35:55]Write to MH i2c: 01 00 00 21 0C 2D [11:35:55]Write i2c OK [11:35:55]MH_I2C_Read... [11:35:55]Read from MH i2c: 01 [11:35:55]MH_I2C_Read... [11:35:55]Read from MH i2c: 01 07 00 [11:35:55]MH_I2C_Read... [11:35:55]Read from MH i2c: 01 07 00 21 0C 00 00 00 00 00 FF 0F 42 [11:35:55]RasterBufferAndPrint [11:35:56]line Счет N : (3)73377 [11:35:56]line ИНН: 02508201610067 [11:35:56]line Контрольно-Кассовый Чек [11:35:56]line ПРОДАЖА [11:35:56]line Товар: 48743570 [11:35:56]line Сигареты Winston XStyle Blue [11:35:56]line 2.000 * 140.00 [11:35:56]line = 280.00 [11:35:56]line НДС 12% НСП 1% [11:35:56]line > о реализуемом товаре [11:35:56]line Товар: 8710732217097 [11:35:56]line Зажигалка Cricket ПН пьезо [11:35:56]line 1.000 * 67.00 [11:35:56]line = 67.00 [11:35:56]line НДС 12% НСП 1% [11:35:56]line > о реализуемом товаре [11:35:56]line ИТОГО: 347.00 [11:35:56]line НСП 1% : 3.07 [11:35:56]line НДС 12% : 36.84 [11:35:56]line Наличными: 347.00 [11:35:56]line Безнал.: 0.00 [11:35:56]line Место: АЗС № 117 "Партнер Нефть" [11:35:56]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [11:35:56]line СНО: Общий режим [11:35:56]line Чек 47 03.06.2024 11:35 [11:35:56]line Смена: 373 ФФД: 1.0 [11:35:56]line ЗНМ: 0300000031 [11:35:56]line РНМ: 0000000000092737 [11:35:56]line Версия ККМ: 001 [11:35:56]line ФМ: 0000000000875074 [11:35:56]line ФД: 63789 [11:35:56]line ФПД: 51290232695742 [11:35:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T113556&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63789&fm=51290232695742&tin=02508201610067®Number=0000000000092737&sum=34700 [11:35:56]line 0 [11:35:56]OFD Sender: Processing packet 63789 [packets to send 14, broken 13] [11:35:56]ProducePacketName [11:35:56]name=ofd_packets/00063789 [11:35:56]OFD Sender: To server: pG, [11:35:56]CommunicateWithHost lk.salyk.kg:30040 [11:35:56]ConnectInit lk.salyk.kg [11:35:56]written 0, free lines is 4095 [11:35:56]Connected sock=9 [11:35:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 97 01 00 00 71 A8 8F 01 CC 6D 5A 03 01 00 03 00 83 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 60 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 38 37 31 30 37 33 32 32 31 37 30 39 37 06 04 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 2C 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 87 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 33 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 0E 00 00 00 00 07 04 06 00 8C 87 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 9C AA 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 2D F9 00 00 35 04 06 00 2E A5 F0 19 AB BE 4D 74 B9 91 A1 36 F4 3B [11:35:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 6B C1 47 00 53 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 35 30 37 34 10 04 04 00 2D F9 00 00 F4 03 04 00 6D 56 5D 66 B6 04 01 00 00 06 16 92 4F 62 2C 19 E9 [11:35:56]CommunicateWithHost err = 0 [11:35:56]CheckOFDResponse [11:35:56]1017 (14) - 77093643461234 [11:35:56]1041 (16) - 0000000000875074 [11:35:56]1040 (4) - 63789 [11:35:56]1012 (4) - 03.06.2024 05:36 [11:35:56]1206 (1) - 0 [11:35:56]OFD Sender: Remove packet 63789 [11:35:56]ProducePacketName [11:35:56]name=ofd_packets/00063789 [11:35:56]NVStorageDeleteData [11:35:56]Write to MH i2c: 01 00 00 4F 0C 5B [11:35:56]Write i2c OK [11:35:56]MH_I2C_Read... [11:35:56]Read from MH i2c: 01 [11:35:56]MH_I2C_Read... [11:35:56]Read from MH i2c: 01 07 00 [11:35:56]MH_I2C_Read... [11:35:56]Read from MH i2c: 01 07 00 4F 0C 00 00 00 00 00 8D 0C FB [11:35:56]RasterBufferAndPrint [11:35:56]line [11:35:56]line [11:35:56]line [11:35:56]line [11:35:56]line [11:35:56]written 0, free lines is 3219 [11:35:56]MH_Cut [11:35:56]Write to MH i2c: D1 01 00 56 0C 01 34 [11:35:56]Write i2c OK [11:35:56]MH_I2C_Read... [11:35:56]Read from MH i2c: D1 [11:35:56]MH_I2C_Read... [11:35:56]Read from MH i2c: D1 01 00 [11:35:56]MH_I2C_Read... [11:35:56]Read from MH i2c: D1 01 00 56 0C 00 33 [11:35:56]Write to MH i2c: 01 00 00 57 0C 63 [11:35:56]Write i2c OK [11:35:56]MH_I2C_Read... [11:35:56]OFD Sender: No OFD packet to send [11:35:57]*** Cut start [11:35:57]*** Partial cut [11:35:57]*** CUTSNS_PIN = 1 [11:35:57]*** CUTSNS_PIN = 0 [11:35:57]*** Brake cut motor [11:35:58]Read from MH i2c: 01 [11:35:58]MH_I2C_Read... [11:35:58]*** Stop cut motor [11:35:58]*** Cut end [11:35:58]Read from MH i2c: 01 07 00 [11:35:58]MH_I2C_Read... [11:35:58]Read from MH i2c: 01 07 00 57 0C 00 00 00 00 00 FF 0F 78 [11:35:58]process_action close_receipt done [11:35:58]requested_data is exist [11:35:58]produce_requested_data [11:35:58]requested_item fm.sn is exist - process it [11:35:58]wFMCommunicate request_size=4 [11:35:58]MH_SAM_APDU [11:35:58]CAPDU: 80 11 00 00 [11:35:58]Write to MH i2c: E2 08 00 58 0C 80 11 00 00 00 00 00 00 DE [11:35:58]Write i2c OK [11:35:58]MH_I2C_Read... [11:35:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:35:58]Read from MH i2c: E2 [11:35:58]MH_I2C_Read... [11:35:58]Read from MH i2c: E2 17 00 [11:35:58]MH_I2C_Read... [11:35:58]Read from MH i2c: E2 17 00 58 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 30 [11:35:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [11:35:58]wFMCommunicate OK [11:35:58]requested_item fd.num is exist - process it [11:35:58]SAM_PROTO_GetFieldsCounters [11:35:58]wFMCommunicate request_size=4 [11:35:58]MH_SAM_APDU [11:35:58]CAPDU: 80 13 00 00 [11:35:58]Write to MH i2c: E2 08 00 59 0C 80 13 00 00 00 00 00 00 E1 [11:35:58]Write i2c OK [11:35:58]MH_I2C_Read... [11:35:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:35:58]Read from MH i2c: E2 [11:35:58]MH_I2C_Read... [11:35:58]Read from MH i2c: E2 62 00 [11:35:58]MH_I2C_Read... [11:35:58]Read from MH i2c: E2 62 00 59 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 2D F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 2D [11:35: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 2D F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:35:58]wFMCommunicate OK [11:35:58]SAM_PROTO_GetFieldsCounters done [11:35:58]requested_item shift.num is exist - process it [11:35:58]requested_item shift.opened is exist - process it [11:35:58]req_shift_opened [11:35:58]FM_GetShiftState [11:35:58]SAM_PROTO_GetShiftState [11:35:58]wFMCommunicate request_size=4 [11:35:58]MH_SAM_APDU [11:35:58]CAPDU: 80 13 01 00 [11:35:58]Write to MH i2c: E2 08 00 5A 0C 80 13 01 00 00 00 00 00 E3 [11:35:58]Write i2c OK [11:35:58]MH_I2C_Read... [11:35:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:35:58]Read from MH i2c: E2 [11:35:58]MH_I2C_Read... [11:35:58]Read from MH i2c: E2 0E 00 [11:35:58]MH_I2C_Read... [11:35:58]Read from MH i2c: E2 0E 00 5A 0C 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 AF [11:35:58]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [11:35:58]wFMCommunicate OK [11:35:58]SAM_PROTO_GetShiftState done [11:35:58]FM_GetShiftState done [11:35:58]req_shift_opened done [11:35:58]requested_item shift.open_date is exist - process it [11:35:58]req_shift_open_date [11:35:58]req_shift_open_date done [11:35:58]produce_requested_data done [11:35:58]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63789,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [11:35:58]process_action_free close_receipt [11:35:58]json_value_free [11:35:58]json_value_free done [11:35:58]process_json_proto returns [11:35:58]Send response to host [11:35:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63789,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [11:35:58]free response buf [11:35:58]execute_script done [11:35:58]execute_script returns [11:35:58]free content buf [11:35:58]Sock 10.Close socket [11:35:58]Sock 10.Thread stoped [11:36:01]OFD Sender: No OFD packet to send [11:36:06]OFD Sender: No OFD packet to send [11:36:11]OFD Sender: No OFD packet to send [11:36:16]OFD Sender: No OFD packet to send [11:36:21]OFD Sender: No OFD packet to send [11:36:26]OFD Sender: No OFD packet to send [11:36:31]OFD Sender: No OFD packet to send [11:36:36]OFD Sender: No OFD packet to send [11:36: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:40:02]OFD Sender: No OFD packet to send [11:40:07]OFD Sender: No OFD packet to send [11:40:12]OFD Sender: No OFD packet to send [11:40:17]OFD Sender: No OFD packet to send [11:40:22]OFD Sender: No OFD packet to send [11:40:27]OFD Sender: No OFD packet to send [11:40:32]OFD Sender: No OFD packet to send [11:40:37]OFD Sender: No OFD packet to send [11:40:42]OFD Sender: No OFD packet to send [11:40:47]OFD Sender: No OFD packet to send [11:40:52]OFD Sender: No OFD packet to send [11:40:57]OFD Sender: No OFD packet to send [11:41:02]OFD Sender: No OFD packet to send [11:41:07]OFD Sender: No OFD packet to send [11:41:12]OFD Sender: No OFD packet to send [11:41:17]OFD Sender: No OFD packet to send [11:41:22]OFD Sender: No OFD packet to send [11:41:27]OFD Sender: No OFD packet to send [11:41:32]OFD Sender: No OFD packet to send [11:41:37]OFD Sender: No OFD packet to send [11:41:42]OFD Sender: No OFD packet to send [11:41:47]OFD Sender: No OFD packet to send [11:41:52]OFD Sender: No OFD packet to send [11:41:57]OFD Sender: No OFD packet to send [11:42:02]OFD Sender: No OFD packet to send [11:42:07]OFD Sender: No OFD packet to send [11:42:12]OFD Sender: No OFD packet to send [11:42:17]OFD Sender: No OFD packet to send [11:42:22]OFD Sender: No OFD packet to send [11:42:27]OFD Sender: No OFD packet to send [11:42:32]OFD Sender: No OFD packet to send [11:42:37]OFD Sender: No OFD packet to send [11:42:42]OFD Sender: No OFD packet to send [11:42:47]OFD Sender: No OFD packet to send [11:42:52]OFD Sender: No OFD packet to send [11:42:57]OFD Sender: No OFD packet to send [11:43:02]OFD Sender: No OFD packet to send [11:43:07]OFD Sender: No OFD packet to send [11:43:12]OFD Sender: No OFD packet to send [11:43:17]OFD Sender: No OFD packet to send [11:43:22]OFD Sender: No OFD packet to send [11:43:27]OFD Sender: No OFD packet to send [11:43:32]OFD Sender: No OFD packet to send [11:43:37]OFD Sender: No OFD packet to send [11:43:42]OFD Sender: No OFD packet to send [11:43:47]OFD Sender: No OFD packet to send [11:43:52]OFD Sender: No OFD packet to send [11:43:57]OFD Sender: No OFD packet to send [11:44:02]OFD Sender: No OFD packet to send [11:44:07]OFD Sender: No OFD packet to send [11:44:12]OFD Sender: No OFD packet to send [11:44:17]OFD Sender: No OFD packet to send [11:44:22]OFD Sender: No OFD packet to send [11:44:27]OFD Sender: No OFD packet to send [11:44:32]OFD Sender: No OFD packet to send [11:44:37]OFD Sender: No OFD packet to send [11:44:42]OFD Sender: No OFD packet to send [11:44:47]OFD Sender: No OFD packet to send [11:44:52]OFD Sender: No OFD packet to send [11:44:57]OFD Sender: No OFD packet to send [11:45:02]OFD Sender: No OFD packet to send [11:45:07]OFD Sender: No OFD packet to send [11:45:12]OFD Sender: No OFD packet to send [11:45:17]OFD Sender: No OFD packet to send [11:45:22]OFD Sender: No OFD packet to send [11:45:27]OFD Sender: No OFD packet to send [11:45:32]OFD Sender: No OFD packet to send [11:45:37]OFD Sender: No OFD packet to send [11:45:42]OFD Sender: No OFD packet to send [11:45:47]OFD Sender: No OFD packet to send [11:45:52]OFD Sender: No OFD packet to send [11:45:57]OFD Sender: No OFD packet to send [11:46:02]OFD Sender: No OFD packet to send [11:46:07]OFD Sender: No OFD packet to send [11:46:11]accept exits with 7 [11:46:11]New connection [11:46:11]New thread 3067518308 created [11:46:11]Thread 3067374948 joined [11:46:11]Waiting for new connection... [11:46:11] Sock 7.Parse request [11:46:11]Sock 7.Check first char [11:46:11]Sock 7.First char is OK [11:46:11]request: POST /json_proto HTTP/1.0 [11:46:11]Method: POST [11:46:11]URL: /json_proto [11:46:11]Method is POST - this is cgi request [11:46:11]url: /json_proto [11:46:11]query_string will be loaded in cgi processing [11:46:11]execute_cgi json_proto POST (null) [11:46:11]execute_cgi path=json_proto method=POST [11:46:11]POST find Content-Length [11:46:11]Host: 172.17.60.69:8080 [11:46:11]Content-Length: 710 [11:46:11]Content-Type: application/json [11:46:11] [11:46:11]POST finish read [11:46:11]Found Content-Length = 710 [11:46:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73378", "tax_sys" : 0, "items" : [ { "code": "4870001571030", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043A\u043B\u0443\u0431\u043D,\u043A\u0438\u0432\u0438 \u041F\u042D\u0422 1\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 85.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:46:11]execute_script... [11:46:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73378", "tax_sys" : 0, "items" : [ { "code": "4870001571030", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043A\u043B\u0443\u0431\u043D,\u043A\u0438\u0432\u0438 \u041F\u042D\u0422 1\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 85.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:46:11]POST & json_proto [11:46:11]process_json_proto [11:46:11]json parsed OK: [11:46:11]protocol is kg_v1.0 [11:46:11]action value=close_receipt [11:46:11]process_action close_receipt [11:46:11]cmd_close_receipt [11:46:11]MH_GetDate [11:46:11]Write to MH i2c: F0 00 00 5B 0C 56 [11:46:11]Write i2c OK [11:46:11]MH_I2C_Read... [11:46:11]Read from MH i2c: F0 [11:46:11]MH_I2C_Read... [11:46:11]Read from MH i2c: F0 09 00 [11:46:11]MH_I2C_Read... [11:46:11]Read from MH i2c: F0 09 00 5B 0C 00 05 AD 5D 66 6A 96 4A 66 84 [11:46:11]GetLastDocTimeStamp 1717414556 [11:46:11]current date 1717415173 [11:46:11]FM_GetShiftState [11:46:11]SAM_PROTO_GetShiftState [11:46:11]wFMCommunicate request_size=4 [11:46:11]MH_SAM_APDU [11:46:11]CAPDU: 80 13 01 00 [11:46:11]Write to MH i2c: E2 08 00 5C 0C 80 13 01 00 00 00 00 00 E5 [11:46:11]Write i2c OK [11:46:11]MH_I2C_Read... [11:46:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:46:11]Read from MH i2c: E2 [11:46:11]MH_I2C_Read... [11:46:11]Read from MH i2c: E2 0E 00 [11:46:11]MH_I2C_Read... [11:46:11]Read from MH i2c: E2 0E 00 5C 0C 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 B1 [11:46:11]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [11:46:11]wFMCommunicate OK [11:46:11]SAM_PROTO_GetShiftState done [11:46:11]FM_GetShiftState done [11:46:11]opened in 1717373173 [11:46:11]opened+sec_in_day 1717459573 [11:46:11]quantity*price = 8500 [11:46:11]sum+1 = 8501 [11:46:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 85.00 НСП 1% : 0.75 НДС 12% : 9.03 Наличными: 85.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 48 03.06.2024 11:46 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63790 ФПД: 196330588880072 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T114613&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63790&fm=196330588880072&tin=02508201610067®Number=0000000000092737&sum=8500 0 [11:46:12]StoreToDocumentArchive [11:46:12]shift 373 fd 63790 [11:46:12]save to /storage/0373/doc_00063790 [11:46:12]save last doc name /storage/0373/doc_00063790 to /storage/kkm_last_doc_name [11:46:12]save OK [11:46:12]Clear old archive folders... [11:46:12]ProcessDocumentItem done err = 0, tmpTLVsize=302 [11:46:12]tlvbuf is 00D1F560 [11:46:12]SAM_PROTO_ClearQueue [11:46:12]wFMCommunicate request_size=4 [11:46:12]MH_SAM_APDU [11:46:12]CAPDU: 80 09 00 00 [11:46:12]Write to MH i2c: E2 08 00 69 0C 80 09 00 00 00 00 00 00 E7 [11:46:12]Write i2c OK [11:46:12]MH_I2C_Read... [11:46:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:46:13]Read from MH i2c: E2 [11:46:13]MH_I2C_Read... [11:46:13]Read from MH i2c: E2 03 00 [11:46:13]MH_I2C_Read... [11:46:13]Read from MH i2c: E2 03 00 69 0C 00 90 00 E9 [11:46:13]RAPDU: 90 00 [11:46:13]wFMCommunicate OK [11:46:13]SAM_PROTO_ClearQueue done [11:46:13]KKMCreateOFDPacket [11:46:13]OFDProtocolAddRootSTLVToBuf [11:46:13]FM_MakeSignedData [11:46:13]FM_MakeSignedData [11:46:13]SAM_PROTO_SignData [11:46:13]wFMCommunicate request_size=4 [11:46:13]MH_SAM_APDU [11:46:13]CAPDU: 80 0D 01 02 [11:46:13]Write to MH i2c: E2 08 00 6A 0C 80 0D 01 02 00 00 00 00 EF [11:46:13]Write i2c OK [11:46:13]MH_I2C_Read... [11:46:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:46:13]Read from MH i2c: E2 [11:46:13]MH_I2C_Read... [11:46:13]Read from MH i2c: E2 03 00 [11:46:13]MH_I2C_Read... [11:46:13]Read from MH i2c: E2 03 00 6A 0C 00 90 00 EA [11:46:13]RAPDU: 90 00 [11:46:13]wFMCommunicate OK [11:46:13]wFMCommunicate request_size=255 [11:46:13]MH_SAM_APDU [11:46:13]CAPDU: 80 0D 02 02 FA 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 33 30 06 04 3C 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 05 AD 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 [11:46:13]Write to MH i2c: E2 02 01 6B 0C 80 0D 02 02 FA 00 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 33 30 06 04 3C 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 05 AD 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 00 00 48 [11:46:13]Write i2c OK [11:46:13]MH_I2C_Read... [11:46:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:46:13]Read from MH i2c: E2 [11:46:13]MH_I2C_Read... [11:46:13]Read from MH i2c: E2 03 00 [11:46:13]MH_I2C_Read... [11:46:13]Read from MH i2c: E2 03 00 6B 0C 00 90 00 EB [11:46:13]RAPDU: 90 00 [11:46:13]wFMCommunicate OK [11:46:13]wFMCommunicate request_size=61 [11:46:13]MH_SAM_APDU [11:46:13]CAPDU: 80 0D 02 02 38 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 2E F9 00 00 35 04 06 00 B2 8F C7 02 3C C8 [11:46:13]Write to MH i2c: E2 40 00 6C 0C 80 0D 02 02 38 00 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 2E F9 00 00 35 04 06 00 B2 8F C7 02 3C C8 00 00 5E [11:46:13]Write i2c OK [11:46:13]MH_I2C_Read... [11:46:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:46:13]Read from MH i2c: E2 [11:46:13]MH_I2C_Read... [11:46:13]Read from MH i2c: E2 03 00 [11:46:13]MH_I2C_Read... [11:46:13]Read from MH i2c: E2 03 00 6C 0C 00 90 00 EC [11:46:13]RAPDU: 90 00 [11:46:13]wFMCommunicate OK [11:46:13]wFMCommunicate request_size=4 [11:46:13]MH_SAM_APDU [11:46:13]CAPDU: 80 0D 03 02 [11:46:13]Write to MH i2c: E2 08 00 6D 0C 80 0D 03 02 00 00 00 00 F4 [11:46:13]Write i2c OK [11:46:13]MH_I2C_Read... [11:46:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:46:13]Read from MH i2c: E2 [11:46:13]MH_I2C_Read... [11:46:13]Read from MH i2c: E2 0B 00 [11:46:13]MH_I2C_Read... [11:46:13]Read from MH i2c: E2 0B 00 6D 0C 00 8F 3A 9B 79 90 5A DB 87 90 00 1E [11:46:13]RAPDU: 8F 3A 9B 79 90 5A DB 87 90 00 [11:46:13]wFMCommunicate OK [11:46:13]SAM_PROTO_SignData done [11:46:13]FM_MakeSignedData done [11:46:13]CreateOFDProtocolMessage [11:46:13]wFMCommunicate request_size=4 [11:46:13]MH_SAM_APDU [11:46:13]CAPDU: 80 11 00 00 [11:46:13]Write to MH i2c: E2 08 00 6E 0C 80 11 00 00 00 00 00 00 F4 [11:46:13]Write i2c OK [11:46:13]MH_I2C_Read... [11:46:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:46:13]Read from MH i2c: E2 [11:46:13]MH_I2C_Read... [11:46:13]Read from MH i2c: E2 17 00 [11:46:13]MH_I2C_Read... [11:46:13]Read from MH i2c: E2 17 00 6E 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 46 [11:46:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [11:46:13]wFMCommunicate OK [11:46:13]CreateOFDProtocolMessage done [11:46:13]OFDSenderStorePacket 63790 [11:46:13]StoreOFDPacket docnum=63790 [11:46:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 42 01 00 00 D3 DA 3A 01 CC A6 5A 03 01 00 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 33 30 06 04 3C 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 05 AD 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 2E F9 00 00 35 04 06 00 B2 8F C7 02 3C C8 8F 3A 9B 79 90 5A DB 87 [11:46:13]CheckFolder [11:46:13]dirname=/storage/ofd_packets [11:46:13]CheckFolder done [11:46:13]ProducePacketName [11:46:13]name=ofd_packets/00063790 [11:46:13]NVStorageSaveData ofd_packets/00063790 [11:46:13]File name is /storage/ofd_packets/00063790 [11:46:13]Write 352 bytes [11:46:13]NVStorageSaveData done [11:46:13]OFDSenderStorePacket done [11:46:13]KKMCreateOFDPacket done [11:46:13]NVStorageSaveData kkm_last_timestamp [11:46:13]File name is /storage/kkm_last_timestamp [11:46:13]Write 4 bytes [11:46:13]NVStorageSaveData done [11:46:13]ExternCall_PrintAddStr [11:46:13]wPrintStart [11:46:13]Write to MH i2c: 01 00 00 6F 0C 7B [11:46:13]Write i2c OK [11:46:13]MH_I2C_Read... [11:46:13]Read from MH i2c: 01 [11:46:13]MH_I2C_Read... [11:46:13]Read from MH i2c: 01 07 00 [11:46:13]MH_I2C_Read... [11:46:13]Read from MH i2c: 01 07 00 6F 0C 00 00 00 00 00 FF 0F 90 [11:46:13]RasterBufferAndPrint [11:46:13]line Счет N : (3)73378 [11:46:13]line ИНН: 02508201610067 [11:46:13]line Контрольно-Кассовый Чек [11:46:13]line ПРОДАЖА [11:46:13]line Товар: 4870001571030 [11:46:13]line Вода ASU пит н.газ клубн,киви ПЭТ 1л [11:46:13]line 1.000 * 85.00 [11:46:13]line = 85.00 [11:46:13]line НДС 12% НСП 1% [11:46:13]line > о реализуемом товаре [11:46:13]line ИТОГО: 85.00 [11:46:13]line НСП 1% : 0.75 [11:46:13]line НДС 12% : 9.03 [11:46:13]line Наличными: 85.00 [11:46:13]line Безнал.: 0.00 [11:46:13]line Место: АЗС № 117 "Партнер Нефть" [11:46:13]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [11:46:13]line СНО: Общий режим [11:46:13]line Чек 48 03.06.2024 11:46 [11:46:13]line Смена: 373 ФФД: 1.0 [11:46:13]line ЗНМ: 0300000031 [11:46:13]line РНМ: 0000000000092737 [11:46:13]line Версия ККМ: 001 [11:46:13]line ФМ: 0000000000875074 [11:46:13]line ФД: 63790 [11:46:13]line ФПД: 196330588880072 [11:46:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T114613&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63790&fm=196330588880072&tin=02508201610067®Number=0000000000092737&sum=8500 [11:46:13]line 0 [11:46:13]OFD Sender: Processing packet 63790 [packets to send 14, broken 13] [11:46:13]ProducePacketName [11:46:13]name=ofd_packets/00063790 [11:46:13]OFD Sender: To server: pG, [11:46:13]CommunicateWithHost lk.salyk.kg:30040 [11:46:13]ConnectInit lk.salyk.kg [11:46:13]written 0, free lines is 4095 [11:46:13]Connected sock=10 [11:46:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 42 01 00 00 D3 DA 3A 01 CC A6 5A 03 01 00 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 33 30 06 04 3C 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 05 AD 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 2E F9 00 00 35 04 06 00 B2 8F C7 02 3C C8 8F 3A 9B 79 90 5A DB 87 [11:46:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 7E FA 47 00 C2 D7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 2E F9 00 00 F4 03 04 00 D7 58 5D 66 B6 04 01 00 00 01 23 54 C2 10 C1 78 04 [11:46:14]CommunicateWithHost err = 0 [11:46:14]CheckOFDResponse [11:46:14]1017 (14) - 77093643461234 [11:46:14]1041 (16) - 0000000000875074 [11:46:14]1040 (4) - 63790 [11:46:14]1012 (4) - 03.06.2024 05:47 [11:46:14]1206 (1) - 0 [11:46:14]OFD Sender: Remove packet 63790 [11:46:14]ProducePacketName [11:46:14]name=ofd_packets/00063790 [11:46:14]NVStorageDeleteData [11:46:14]Write to MH i2c: 01 00 00 98 0C A4 [11:46:14]Write i2c OK [11:46:14]MH_I2C_Read... [11:46:14]Read from MH i2c: 01 [11:46:14]MH_I2C_Read... [11:46:14]Read from MH i2c: 01 07 00 [11:46:14]MH_I2C_Read... [11:46:14]Read from MH i2c: 01 07 00 98 0C 00 00 00 00 00 E4 0C 9B [11:46:14]RasterBufferAndPrint [11:46:14]line [11:46:14]line [11:46:14]line [11:46:14]line [11:46:14]line [11:46:14]written 0, free lines is 3306 [11:46:14]MH_Cut [11:46:14]Write to MH i2c: D1 01 00 9F 0C 01 7D [11:46:14]Write i2c OK [11:46:14]MH_I2C_Read... [11:46:14]Read from MH i2c: D1 [11:46:14]MH_I2C_Read... [11:46:14]Read from MH i2c: D1 01 00 [11:46:14]MH_I2C_Read... [11:46:14]Read from MH i2c: D1 01 00 9F 0C 00 7C [11:46:14]Write to MH i2c: 01 00 00 A0 0C AC [11:46:14]Write i2c OK [11:46:14]MH_I2C_Read... [11:46:14]OFD Sender: No OFD packet to send [11:46:15]*** Cut start [11:46:15]*** Partial cut [11:46:15]*** CUTSNS_PIN = 1 [11:46:15]*** CUTSNS_PIN = 0 [11:46:15]*** Brake cut motor [11:46:15]Read from MH i2c: 01 [11:46:15]MH_I2C_Read... [11:46:15]*** Stop cut motor [11:46:15]*** Cut end [11:46:15]Read from MH i2c: 01 07 00 [11:46:15]MH_I2C_Read... [11:46:15]Read from MH i2c: 01 07 00 A0 0C 00 00 00 00 00 FF 0F C1 [11:46:15]process_action close_receipt done [11:46:15]requested_data is exist [11:46:15]produce_requested_data [11:46:15]requested_item fm.sn is exist - process it [11:46:15]wFMCommunicate request_size=4 [11:46:15]MH_SAM_APDU [11:46:15]CAPDU: 80 11 00 00 [11:46:15]Write to MH i2c: E2 08 00 A1 0C 80 11 00 00 00 00 00 00 27 [11:46:15]Write i2c OK [11:46:15]MH_I2C_Read... [11:46:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:46:15]Read from MH i2c: E2 [11:46:15]MH_I2C_Read... [11:46:15]Read from MH i2c: E2 17 00 [11:46:15]MH_I2C_Read... [11:46:15]Read from MH i2c: E2 17 00 A1 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 79 [11:46:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [11:46:15]wFMCommunicate OK [11:46:15]requested_item fd.num is exist - process it [11:46:15]SAM_PROTO_GetFieldsCounters [11:46:15]wFMCommunicate request_size=4 [11:46:15]MH_SAM_APDU [11:46:15]CAPDU: 80 13 00 00 [11:46:15]Write to MH i2c: E2 08 00 A2 0C 80 13 00 00 00 00 00 00 2A [11:46:15]Write i2c OK [11:46:15]MH_I2C_Read... [11:46:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:46:15]Read from MH i2c: E2 [11:46:15]MH_I2C_Read... [11:46:15]Read from MH i2c: E2 62 00 [11:46:15]MH_I2C_Read... [11:46:15]Read from MH i2c: E2 62 00 A2 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 2E F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 7A [11:46: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 2E F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:46:15]wFMCommunicate OK [11:46:15]SAM_PROTO_GetFieldsCounters done [11:46:15]requested_item shift.num is exist - process it [11:46:15]requested_item shift.opened is exist - process it [11:46:15]req_shift_opened [11:46:15]FM_GetShiftState [11:46:15]SAM_PROTO_GetShiftState [11:46:15]wFMCommunicate request_size=4 [11:46:15]MH_SAM_APDU [11:46:15]CAPDU: 80 13 01 00 [11:46:15]Write to MH i2c: E2 08 00 A3 0C 80 13 01 00 00 00 00 00 2C [11:46:15]Write i2c OK [11:46:15]MH_I2C_Read... [11:46:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:46:16]Read from MH i2c: E2 [11:46:16]MH_I2C_Read... [11:46:16]Read from MH i2c: E2 0E 00 [11:46:16]MH_I2C_Read... [11:46:16]Read from MH i2c: E2 0E 00 A3 0C 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 F8 [11:46:16]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [11:46:16]wFMCommunicate OK [11:46:16]SAM_PROTO_GetShiftState done [11:46:16]FM_GetShiftState done [11:46:16]req_shift_opened done [11:46:16]requested_item shift.open_date is exist - process it [11:46:16]req_shift_open_date [11:46:16]req_shift_open_date done [11:46:16]produce_requested_data done [11:46:16]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63790,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [11:46:16]process_action_free close_receipt [11:46:16]json_value_free [11:46:16]json_value_free done [11:46:16]process_json_proto returns [11:46:16]Send response to host [11:46:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63790,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [11:46:16]free response buf [11:46:16]execute_script done [11:46:16]execute_script returns [11:46:16]free content buf [11:46:16]Sock 7.Close socket [11:46:16]Sock 7.Thread stoped [11:46:16]accept exits with 9 [11:46:16]New connection [11:46:16]New thread 3067374948 created [11:46:16]Thread 3067518308 joined [11:46:16]Waiting for new connection... [11:46:16] Sock 9.Parse request [11:46:16]Sock 9.Check first char [11:46:16]Sock 9.First char is OK [11:46:16]request: POST /json_proto HTTP/1.0 [11:46:16]Method: POST [11:46:16]URL: /json_proto [11:46:16]Method is POST - this is cgi request [11:46:16]url: /json_proto [11:46:16]query_string will be loaded in cgi processing [11:46:16]execute_cgi json_proto POST (null) [11:46:16]execute_cgi path=json_proto method=POST [11:46:16]POST find Content-Length [11:46:16]Host: 172.17.60.69:8080 [11:46:16]Content-Length: 653 [11:46:16]Content-Type: application/json [11:46:16] [11:46:16]POST finish read [11:46:16]Found Content-Length = 653 [11:46:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73379", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:46:16]execute_script... [11:46:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73379", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:46:16]POST & json_proto [11:46:16]process_json_proto [11:46:16]json parsed OK: [11:46:16]protocol is kg_v1.0 [11:46:16]action value=close_receipt [11:46:16]process_action close_receipt [11:46:16]cmd_close_receipt [11:46:16]MH_GetDate [11:46:16]Write to MH i2c: F0 00 00 A4 0C 9F [11:46:16]Write i2c OK [11:46:16]MH_I2C_Read... [11:46:16]Read from MH i2c: F0 [11:46:16]MH_I2C_Read... [11:46:16]Read from MH i2c: F0 09 00 [11:46:16]MH_I2C_Read... [11:46:16]Read from MH i2c: F0 09 00 A4 0C 00 0A AD 5D 66 6A 96 4A 66 D2 [11:46:16]GetLastDocTimeStamp 1717415173 [11:46:16]current date 1717415178 [11:46:16]FM_GetShiftState [11:46:16]SAM_PROTO_GetShiftState [11:46:16]wFMCommunicate request_size=4 [11:46:16]MH_SAM_APDU [11:46:16]CAPDU: 80 13 01 00 [11:46:16]Write to MH i2c: E2 08 00 A5 0C 80 13 01 00 00 00 00 00 2E [11:46:16]Write i2c OK [11:46:16]MH_I2C_Read... [11:46:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:46:16]Read from MH i2c: E2 [11:46:16]MH_I2C_Read... [11:46:16]Read from MH i2c: E2 0E 00 [11:46:16]MH_I2C_Read... [11:46:16]Read from MH i2c: E2 0E 00 A5 0C 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 FA [11:46:16]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [11:46:16]wFMCommunicate OK [11:46:16]SAM_PROTO_GetShiftState done [11:46:16]FM_GetShiftState done [11:46:16]opened in 1717373173 [11:46:16]opened+sec_in_day 1717459573 [11:46:16]quantity*price = 9500 [11:46:16]sum+1 = 9501 [11:46:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 95.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 49 03.06.2024 11:46 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63791 ФПД: 237360581556265 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T114618&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63791&fm=237360581556265&tin=02508201610067®Number=0000000000092737&sum=9500 0 [11:46:18]StoreToDocumentArchive [11:46:18]shift 373 fd 63791 [11:46:18]save to /storage/0373/doc_00063791 [11:46:18]save last doc name /storage/0373/doc_00063791 to /storage/kkm_last_doc_name [11:46:18]save OK [11:46:18]Clear old archive folders... [11:46:18]ProcessDocumentItem done err = 0, tmpTLVsize=293 [11:46:18]tlvbuf is 00D47770 [11:46:18]SAM_PROTO_ClearQueue [11:46:18]wFMCommunicate request_size=4 [11:46:18]MH_SAM_APDU [11:46:18]CAPDU: 80 09 00 00 [11:46:18]Write to MH i2c: E2 08 00 B2 0C 80 09 00 00 00 00 00 00 30 [11:46:18]Write i2c OK [11:46:18]MH_I2C_Read... [11:46:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:46:18]Read from MH i2c: E2 [11:46:18]MH_I2C_Read... [11:46:18]Read from MH i2c: E2 03 00 [11:46:18]MH_I2C_Read... [11:46:18]Read from MH i2c: E2 03 00 B2 0C 00 90 00 32 [11:46:18]RAPDU: 90 00 [11:46:18]wFMCommunicate OK [11:46:18]SAM_PROTO_ClearQueue done [11:46:18]KKMCreateOFDPacket [11:46:18]OFDProtocolAddRootSTLVToBuf [11:46:18]FM_MakeSignedData [11:46:18]FM_MakeSignedData [11:46:18]SAM_PROTO_SignData [11:46:18]wFMCommunicate request_size=4 [11:46:18]MH_SAM_APDU [11:46:18]CAPDU: 80 0D 01 02 [11:46:18]Write to MH i2c: E2 08 00 B3 0C 80 0D 01 02 00 00 00 00 38 [11:46:18]Write i2c OK [11:46:18]MH_I2C_Read... [11:46:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:46:18]Read from MH i2c: E2 [11:46:18]MH_I2C_Read... [11:46:18]Read from MH i2c: E2 03 00 [11:46:18]MH_I2C_Read... [11:46:18]Read from MH i2c: E2 03 00 B3 0C 00 90 00 33 [11:46:18]RAPDU: 90 00 [11:46:18]wFMCommunicate OK [11:46:18]wFMCommunicate request_size=255 [11:46:18]MH_SAM_APDU [11:46:18]CAPDU: 80 0D 02 02 FA 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 0A AD 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [11:46:18]Write to MH i2c: E2 02 01 B4 0C 80 0D 02 02 FA 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 0A AD 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 F9 [11:46:18]Write i2c OK [11:46:18]MH_I2C_Read... [11:46:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:46:18]Read from MH i2c: E2 [11:46:18]MH_I2C_Read... [11:46:18]Read from MH i2c: E2 03 00 [11:46:18]MH_I2C_Read... [11:46:18]Read from MH i2c: E2 03 00 B4 0C 00 90 00 34 [11:46:18]RAPDU: 90 00 [11:46:18]wFMCommunicate OK [11:46:18]wFMCommunicate request_size=52 [11:46:18]MH_SAM_APDU [11:46:18]CAPDU: 80 0D 02 02 2F 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 2F F9 00 00 35 04 06 00 D7 E0 D1 25 B8 29 [11:46:18]Write to MH i2c: E2 37 00 B5 0C 80 0D 02 02 2F 00 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 2F F9 00 00 35 04 06 00 D7 E0 D1 25 B8 29 00 00 B6 [11:46:18]Write i2c OK [11:46:18]MH_I2C_Read... [11:46:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:46:18]Read from MH i2c: E2 [11:46:18]MH_I2C_Read... [11:46:18]Read from MH i2c: E2 03 00 [11:46:18]MH_I2C_Read... [11:46:18]Read from MH i2c: E2 03 00 B5 0C 00 90 00 35 [11:46:18]RAPDU: 90 00 [11:46:18]wFMCommunicate OK [11:46:18]wFMCommunicate request_size=4 [11:46:18]MH_SAM_APDU [11:46:18]CAPDU: 80 0D 03 02 [11:46:18]Write to MH i2c: E2 08 00 B6 0C 80 0D 03 02 00 00 00 00 3D [11:46:18]Write i2c OK [11:46:18]MH_I2C_Read... [11:46:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:46:18]Read from MH i2c: E2 [11:46:18]MH_I2C_Read... [11:46:18]Read from MH i2c: E2 0B 00 [11:46:18]MH_I2C_Read... [11:46:18]Read from MH i2c: E2 0B 00 B6 0C 00 65 70 07 74 65 DE EB 5E 90 00 1A [11:46:18]RAPDU: 65 70 07 74 65 DE EB 5E 90 00 [11:46:18]wFMCommunicate OK [11:46:18]SAM_PROTO_SignData done [11:46:18]FM_MakeSignedData done [11:46:18]CreateOFDProtocolMessage [11:46:18]wFMCommunicate request_size=4 [11:46:18]MH_SAM_APDU [11:46:18]CAPDU: 80 11 00 00 [11:46:18]Write to MH i2c: E2 08 00 B7 0C 80 11 00 00 00 00 00 00 3D [11:46:18]Write i2c OK [11:46:18]MH_I2C_Read... [11:46:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:46:18]Read from MH i2c: E2 [11:46:18]MH_I2C_Read... [11:46:18]Read from MH i2c: E2 17 00 [11:46:18]MH_I2C_Read... [11:46:18]Read from MH i2c: E2 17 00 B7 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 8F [11:46:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [11:46:19]wFMCommunicate OK [11:46:19]CreateOFDProtocolMessage done [11:46:19]OFDSenderStorePacket 63791 [11:46:19]StoreOFDPacket docnum=63791 [11:46:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 39 01 00 00 DC 2C 31 01 90 47 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 0A AD 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 2F F9 00 00 35 04 06 00 D7 E0 D1 25 B8 29 65 70 07 74 65 DE EB 5E [11:46:19]CheckFolder [11:46:19]dirname=/storage/ofd_packets [11:46:19]CheckFolder done [11:46:19]ProducePacketName [11:46:19]name=ofd_packets/00063791 [11:46:19]NVStorageSaveData ofd_packets/00063791 [11:46:19]File name is /storage/ofd_packets/00063791 [11:46:19]Write 343 bytes [11:46:19]NVStorageSaveData done [11:46:19]OFDSenderStorePacket done [11:46:19]KKMCreateOFDPacket done [11:46:19]NVStorageSaveData kkm_last_timestamp [11:46:19]File name is /storage/kkm_last_timestamp [11:46:19]Write 4 bytes [11:46:19]NVStorageSaveData done [11:46:19]ExternCall_PrintAddStr [11:46:19]wPrintStart [11:46:19]Write to MH i2c: 01 00 00 B8 0C C4 [11:46:19]Write i2c OK [11:46:19]MH_I2C_Read... [11:46:19]Read from MH i2c: 01 [11:46:19]MH_I2C_Read... [11:46:19]Read from MH i2c: 01 07 00 [11:46:19]MH_I2C_Read... [11:46:19]Read from MH i2c: 01 07 00 B8 0C 00 00 00 00 00 FF 0F D9 [11:46:19]RasterBufferAndPrint [11:46:19]line Счет N : (3)73379 [11:46:19]line ИНН: 02508201610067 [11:46:19]line Контрольно-Кассовый Чек [11:46:19]line ПРОДАЖА [11:46:19]line Товар: 4700000480050 [11:46:19]line Напиток Nitro Energy эн green ж/б 0,45л [11:46:19]line 1.000 * 95.00 [11:46:19]line = 95.00 [11:46:19]line НДС 12% НСП 1% [11:46:19]line > о реализуемом товаре [11:46:19]line ИТОГО: 95.00 [11:46:19]line НСП 1% : 0.84 [11:46:19]line НДС 12% : 10.09 [11:46:19]line Наличными: 95.00 [11:46:19]line Безнал.: 0.00 [11:46:19]line Место: АЗС № 117 "Партнер Нефть" [11:46:19]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [11:46:19]line СНО: Общий режим [11:46:19]line Чек 49 03.06.2024 11:46 [11:46:19]line Смена: 373 ФФД: 1.0 [11:46:19]line ЗНМ: 0300000031 [11:46:19]line РНМ: 0000000000092737 [11:46:19]line Версия ККМ: 001 [11:46:19]line ФМ: 0000000000875074 [11:46:19]line ФД: 63791 [11:46:19]line ФПД: 237360581556265 [11:46:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T114618&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63791&fm=237360581556265&tin=02508201610067®Number=0000000000092737&sum=9500 [11:46:19]line 0 [11:46:19]written 0, free lines is 4095 [11:46:19]OFD Sender: Processing packet 63791 [packets to send 14, broken 13] [11:46:19]ProducePacketName [11:46:19]name=ofd_packets/00063791 [11:46:19]OFD Sender: To server: pG, [11:46:19]CommunicateWithHost lk.salyk.kg:30040 [11:46:19]ConnectInit lk.salyk.kg [11:46:19]Connected sock=10 [11:46:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 39 01 00 00 DC 2C 31 01 90 47 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 0A AD 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 2F F9 00 00 35 04 06 00 D7 E0 D1 25 B8 29 65 70 07 74 65 DE EB 5E [11:46:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 C2 F4 47 00 DE A3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 2F F9 00 00 F4 03 04 00 DC 58 5D 66 B6 04 01 00 00 2A 55 E9 38 90 23 96 1B [11:46:19]CommunicateWithHost err = 0 [11:46:19]CheckOFDResponse [11:46:19]1017 (14) - 77093643461234 [11:46:19]1041 (16) - 0000000000875074 [11:46:19]1040 (4) - 63791 [11:46:19]1012 (4) - 03.06.2024 05:47 [11:46:19]1206 (1) - 0 [11:46:19]OFD Sender: Remove packet 63791 [11:46:19]ProducePacketName [11:46:19]name=ofd_packets/00063791 [11:46:19]NVStorageDeleteData [11:46:19]Write to MH i2c: 01 00 00 E1 0C ED [11:46:19]Write i2c OK [11:46:19]MH_I2C_Read... [11:46:19]Read from MH i2c: 01 [11:46:19]MH_I2C_Read... [11:46:19]Read from MH i2c: 01 07 00 [11:46:19]MH_I2C_Read... [11:46:19]Read from MH i2c: 01 07 00 E1 0C 00 00 00 00 00 E4 0C E4 [11:46:19]RasterBufferAndPrint [11:46:19]line [11:46:19]line [11:46:19]line [11:46:19]line [11:46:19]line [11:46:19]written 0, free lines is 3310 [11:46:19]MH_Cut [11:46:19]Write to MH i2c: D1 01 00 E8 0C 01 C6 [11:46:19]Write i2c OK [11:46:19]MH_I2C_Read... [11:46:19]Read from MH i2c: D1 [11:46:19]MH_I2C_Read... [11:46:19]Read from MH i2c: D1 01 00 [11:46:19]MH_I2C_Read... [11:46:19]Read from MH i2c: D1 01 00 E8 0C 00 C5 [11:46:19]Write to MH i2c: 01 00 00 E9 0C F5 [11:46:19]Write i2c OK [11:46:19]MH_I2C_Read... [11:46:19]OFD Sender: No OFD packet to send [11:46:20]*** Cut start [11:46:20]*** Partial cut [11:46:20]*** CUTSNS_PIN = 1 [11:46:20]*** CUTSNS_PIN = 0 [11:46:20]*** Brake cut motor [11:46:20]Read from MH i2c: 01 [11:46:20]MH_I2C_Read... [11:46:20]*** Stop cut motor [11:46:20]*** Cut end [11:46:20]Read from MH i2c: 01 07 00 [11:46:20]MH_I2C_Read... [11:46:20]Read from MH i2c: 01 07 00 E9 0C 00 00 00 00 00 FF 0F 0A [11:46:20]process_action close_receipt done [11:46:20]requested_data is exist [11:46:20]produce_requested_data [11:46:20]requested_item fm.sn is exist - process it [11:46:20]wFMCommunicate request_size=4 [11:46:20]MH_SAM_APDU [11:46:20]CAPDU: 80 11 00 00 [11:46:20]Write to MH i2c: E2 08 00 EA 0C 80 11 00 00 00 00 00 00 70 [11:46:20]Write i2c OK [11:46:20]MH_I2C_Read... [11:46:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:46:20]Read from MH i2c: E2 [11:46:20]MH_I2C_Read... [11:46:20]Read from MH i2c: E2 17 00 [11:46:20]MH_I2C_Read... [11:46:20]Read from MH i2c: E2 17 00 EA 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 C2 [11:46:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [11:46:20]wFMCommunicate OK [11:46:20]requested_item fd.num is exist - process it [11:46:20]SAM_PROTO_GetFieldsCounters [11:46:20]wFMCommunicate request_size=4 [11:46:20]MH_SAM_APDU [11:46:20]CAPDU: 80 13 00 00 [11:46:20]Write to MH i2c: E2 08 00 EB 0C 80 13 00 00 00 00 00 00 73 [11:46:20]Write i2c OK [11:46:20]MH_I2C_Read... [11:46:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:46:21]Read from MH i2c: E2 [11:46:21]MH_I2C_Read... [11:46:21]Read from MH i2c: E2 62 00 [11:46:21]MH_I2C_Read... [11:46:21]Read from MH i2c: E2 62 00 EB 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 2F F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 C7 [11:46: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 2F F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:46:21]wFMCommunicate OK [11:46:21]SAM_PROTO_GetFieldsCounters done [11:46:21]requested_item shift.num is exist - process it [11:46:21]requested_item shift.opened is exist - process it [11:46:21]req_shift_opened [11:46:21]FM_GetShiftState [11:46:21]SAM_PROTO_GetShiftState [11:46:21]wFMCommunicate request_size=4 [11:46:21]MH_SAM_APDU [11:46:21]CAPDU: 80 13 01 00 [11:46:21]Write to MH i2c: E2 08 00 EC 0C 80 13 01 00 00 00 00 00 75 [11:46:21]Write i2c OK [11:46:21]MH_I2C_Read... [11:46:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:46:21]Read from MH i2c: E2 [11:46:21]MH_I2C_Read... [11:46:21]Read from MH i2c: E2 0E 00 [11:46:21]MH_I2C_Read... [11:46:21]Read from MH i2c: E2 0E 00 EC 0C 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 41 [11:46:21]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [11:46:21]wFMCommunicate OK [11:46:21]SAM_PROTO_GetShiftState done [11:46:21]FM_GetShiftState done [11:46:21]req_shift_opened done [11:46:21]requested_item shift.open_date is exist - process it [11:46:21]req_shift_open_date [11:46:21]req_shift_open_date done [11:46:21]produce_requested_data done [11:46:21]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63791,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [11:46:21]process_action_free close_receipt [11:46:21]json_value_free [11:46:21]json_value_free done [11:46:21]process_json_proto returns [11:46:21]Send response to host [11:46:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63791,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [11:46:21]free response buf [11:46:21]execute_script done [11:46:21]execute_script returns [11:46:21]free content buf [11:46:21]Sock 9.Close socket [11:46:21]Sock 9.Thread stoped [11:46:24]accept exits with 7 [11:46:24]New connection [11:46:24]New thread 3067518308 created [11:46:24]Thread 3067374948 joined [11:46:24]Waiting for new connection... [11:46:24] Sock 7.Parse request [11:46:24]Sock 7.Check first char [11:46:24]Sock 7.First char is OK [11:46:24]request: POST /json_proto HTTP/1.0 [11:46:24]Method: POST [11:46:24]URL: /json_proto [11:46:24]Method is POST - this is cgi request [11:46:24]url: /json_proto [11:46:24]query_string will be loaded in cgi processing [11:46:24]execute_cgi json_proto POST (null) [11:46:24]execute_cgi path=json_proto method=POST [11:46:24]POST find Content-Length [11:46:24]Host: 172.17.60.69:8080 [11:46:24]Content-Length: 688 [11:46:24]Content-Type: application/json [11:46:24] [11:46:24]POST finish read [11:46:24]Found Content-Length = 688 [11:46:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73380", "tax_sys" : 0, "items" : [ { "code": "4603290004824", "name": "\u041F\u0435\u0447 \u0437\u0430\u0442 \u042F\u0448\u043A\u0438\u043D\u043E \u0441\u043B\u0438\u0432 \u041A\u0440\u0435\u043C 182\u0433", "price" : 81.00, "quantity" : 1.000, "sum" : 81.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 81.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:46:24]execute_script... [11:46:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73380", "tax_sys" : 0, "items" : [ { "code": "4603290004824", "name": "\u041F\u0435\u0447 \u0437\u0430\u0442 \u042F\u0448\u043A\u0438\u043D\u043E \u0441\u043B\u0438\u0432 \u041A\u0440\u0435\u043C 182\u0433", "price" : 81.00, "quantity" : 1.000, "sum" : 81.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 81.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:46:24]POST & json_proto [11:46:24]process_json_proto [11:46:24]json parsed OK: [11:46:24]protocol is kg_v1.0 [11:46:24]action value=close_receipt [11:46:24]process_action close_receipt [11:46:24]cmd_close_receipt [11:46:24]MH_GetDate [11:46:24]Write to MH i2c: F0 00 00 ED 0C E8 [11:46:24]Write i2c OK [11:46:24]MH_I2C_Read... [11:46:24]Read from MH i2c: F0 [11:46:24]MH_I2C_Read... [11:46:24]Read from MH i2c: F0 09 00 [11:46:24]MH_I2C_Read... [11:46:24]Read from MH i2c: F0 09 00 ED 0C 00 12 AD 5D 66 6A 96 4A 66 23 [11:46:24]GetLastDocTimeStamp 1717415178 [11:46:24]current date 1717415186 [11:46:24]FM_GetShiftState [11:46:24]SAM_PROTO_GetShiftState [11:46:24]wFMCommunicate request_size=4 [11:46:24]MH_SAM_APDU [11:46:24]CAPDU: 80 13 01 00 [11:46:24]Write to MH i2c: E2 08 00 EE 0C 80 13 01 00 00 00 00 00 77 [11:46:24]Write i2c OK [11:46:24]MH_I2C_Read... [11:46:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:46:24]Read from MH i2c: E2 [11:46:24]MH_I2C_Read... [11:46:24]Read from MH i2c: E2 0E 00 [11:46:24]MH_I2C_Read... [11:46:24]Read from MH i2c: E2 0E 00 EE 0C 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 43 [11:46:24]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [11:46:24]wFMCommunicate OK [11:46:24]SAM_PROTO_GetShiftState done [11:46:24]FM_GetShiftState done [11:46:24]opened in 1717373173 [11:46:24]opened+sec_in_day 1717459573 [11:46:24]quantity*price = 8100 [11:46:24]sum+1 = 8101 [11:46:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 81.00 НСП 1% : 0.72 НДС 12% : 8.60 Наличными: 81.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 50 03.06.2024 11:46 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63792 ФПД: 78605299926026 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T114626&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63792&fm=78605299926026&tin=02508201610067®Number=0000000000092737&sum=8100 0 [11:46:25]StoreToDocumentArchive [11:46:25]shift 373 fd 63792 [11:46:25]save to /storage/0373/doc_00063792 [11:46:25]save last doc name /storage/0373/doc_00063792 to /storage/kkm_last_doc_name [11:46:25]save OK [11:46:25]Clear old archive folders... [11:46:25]ProcessDocumentItem done err = 0, tmpTLVsize=292 [11:46:25]tlvbuf is 00D4FD40 [11:46:25]SAM_PROTO_ClearQueue [11:46:25]wFMCommunicate request_size=4 [11:46:25]MH_SAM_APDU [11:46:25]CAPDU: 80 09 00 00 [11:46:25]Write to MH i2c: E2 08 00 FB 0C 80 09 00 00 00 00 00 00 79 [11:46:25]Write i2c OK [11:46:25]MH_I2C_Read... [11:46:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:46:25]Read from MH i2c: E2 [11:46:25]MH_I2C_Read... [11:46:25]Read from MH i2c: E2 03 00 [11:46:25]MH_I2C_Read... [11:46:25]Read from MH i2c: E2 03 00 FB 0C 00 90 00 7B [11:46:25]RAPDU: 90 00 [11:46:25]wFMCommunicate OK [11:46:25]SAM_PROTO_ClearQueue done [11:46:25]KKMCreateOFDPacket [11:46:25]OFDProtocolAddRootSTLVToBuf [11:46:25]FM_MakeSignedData [11:46:25]FM_MakeSignedData [11:46:25]SAM_PROTO_SignData [11:46:25]wFMCommunicate request_size=4 [11:46:25]MH_SAM_APDU [11:46:25]CAPDU: 80 0D 01 02 [11:46:25]Write to MH i2c: E2 08 00 FC 0C 80 0D 01 02 00 00 00 00 81 [11:46:25]Write i2c OK [11:46:25]MH_I2C_Read... [11:46:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:46:25]Read from MH i2c: E2 [11:46:25]MH_I2C_Read... [11:46:25]Read from MH i2c: E2 03 00 [11:46:25]MH_I2C_Read... [11:46:25]Read from MH i2c: E2 03 00 FC 0C 00 90 00 7C [11:46:25]RAPDU: 90 00 [11:46:25]wFMCommunicate OK [11:46:25]wFMCommunicate request_size=255 [11:46:25]MH_SAM_APDU [11:46:25]CAPDU: 80 0D 02 02 FA 03 00 24 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 32 34 06 04 32 00 D0 9F D0 B5 D1 87 20 D0 B7 D0 B0 D1 82 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D1 81 D0 BB D0 B8 D0 B2 20 D0 9A D1 80 D0 B5 D0 BC 20 31 38 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 1F 00 00 00 00 13 04 06 00 A4 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5C 03 00 00 00 00 07 04 06 00 A4 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 12 AD 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 [11:46:25]Write to MH i2c: E2 02 01 FD 0C 80 0D 02 02 FA 00 03 00 24 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 32 34 06 04 32 00 D0 9F D0 B5 D1 87 20 D0 B7 D0 B0 D1 82 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D1 81 D0 BB D0 B8 D0 B2 20 D0 9A D1 80 D0 B5 D0 BC 20 31 38 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 1F 00 00 00 00 13 04 06 00 A4 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5C 03 00 00 00 00 07 04 06 00 A4 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 12 AD 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 00 00 E2 [11:46:26]Write i2c OK [11:46:26]MH_I2C_Read... [11:46:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:46:26]Read from MH i2c: E2 [11:46:26]MH_I2C_Read... [11:46:26]Read from MH i2c: E2 03 00 [11:46:26]MH_I2C_Read... [11:46:26]Read from MH i2c: E2 03 00 FD 0C 00 90 00 7D [11:46:26]RAPDU: 90 00 [11:46:26]wFMCommunicate OK [11:46:26]wFMCommunicate request_size=51 [11:46:26]MH_SAM_APDU [11:46:26]CAPDU: 80 0D 02 02 2E 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 30 F9 00 00 35 04 06 00 47 7D B8 FA C4 0A [11:46:26]Write to MH i2c: E2 36 00 FE 0C 80 0D 02 02 2E 00 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 30 F9 00 00 35 04 06 00 47 7D B8 FA C4 0A 00 00 84 [11:46:26]Write i2c OK [11:46:26]MH_I2C_Read... [11:46:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:46:26]Read from MH i2c: E2 [11:46:26]MH_I2C_Read... [11:46:26]Read from MH i2c: E2 03 00 [11:46:26]MH_I2C_Read... [11:46:26]Read from MH i2c: E2 03 00 FE 0C 00 90 00 7E [11:46:26]RAPDU: 90 00 [11:46:26]wFMCommunicate OK [11:46:26]wFMCommunicate request_size=4 [11:46:26]MH_SAM_APDU [11:46:26]CAPDU: 80 0D 03 02 [11:46:26]Write to MH i2c: E2 08 00 FF 0C 80 0D 03 02 00 00 00 00 86 [11:46:26]Write i2c OK [11:46:26]MH_I2C_Read... [11:46:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:46:26]Read from MH i2c: E2 [11:46:26]MH_I2C_Read... [11:46:26]Read from MH i2c: E2 0B 00 [11:46:26]MH_I2C_Read... [11:46:26]Read from MH i2c: E2 0B 00 FF 0C 00 58 53 36 5C DB BC 76 2D 90 00 FE [11:46:26]RAPDU: 58 53 36 5C DB BC 76 2D 90 00 [11:46:26]wFMCommunicate OK [11:46:26]SAM_PROTO_SignData done [11:46:26]FM_MakeSignedData done [11:46:26]CreateOFDProtocolMessage [11:46:26]wFMCommunicate request_size=4 [11:46:26]MH_SAM_APDU [11:46:26]CAPDU: 80 11 00 00 [11:46:26]Write to MH i2c: E2 08 00 00 0D 80 11 00 00 00 00 00 00 87 [11:46:26]Write i2c OK [11:46:26]MH_I2C_Read... [11:46:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:46:26]Read from MH i2c: E2 [11:46:26]MH_I2C_Read... [11:46:26]Read from MH i2c: E2 17 00 [11:46:26]MH_I2C_Read... [11:46:26]Read from MH i2c: E2 17 00 00 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 D9 [11:46:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [11:46:26]wFMCommunicate OK [11:46:26]CreateOFDProtocolMessage done [11:46:26]OFDSenderStorePacket 63792 [11:46:26]StoreOFDPacket docnum=63792 [11:46:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 38 01 00 00 01 72 30 01 CF 7E 5A 03 01 00 03 00 24 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 32 34 06 04 32 00 D0 9F D0 B5 D1 87 20 D0 B7 D0 B0 D1 82 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D1 81 D0 BB D0 B8 D0 B2 20 D0 9A D1 80 D0 B5 D0 BC 20 31 38 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 1F 00 00 00 00 13 04 06 00 A4 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5C 03 00 00 00 00 07 04 06 00 A4 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 12 AD 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 30 F9 00 00 35 04 06 00 47 7D B8 FA C4 0A 58 53 36 5C DB BC 76 2D [11:46:26]CheckFolder [11:46:26]dirname=/storage/ofd_packets [11:46:26]CheckFolder done [11:46:26]ProducePacketName [11:46:26]name=ofd_packets/00063792 [11:46:26]NVStorageSaveData ofd_packets/00063792 [11:46:26]File name is /storage/ofd_packets/00063792 [11:46:26]Write 342 bytes [11:46:26]NVStorageSaveData done [11:46:26]OFDSenderStorePacket done [11:46:26]KKMCreateOFDPacket done [11:46:26]NVStorageSaveData kkm_last_timestamp [11:46:26]File name is /storage/kkm_last_timestamp [11:46:26]Write 4 bytes [11:46:26]NVStorageSaveData done [11:46:26]ExternCall_PrintAddStr [11:46:26]wPrintStart [11:46:26]Write to MH i2c: 01 00 00 01 0D 0E [11:46:26]Write i2c OK [11:46:26]MH_I2C_Read... [11:46:26]Read from MH i2c: 01 [11:46:26]MH_I2C_Read... [11:46:26]Read from MH i2c: 01 07 00 [11:46:26]MH_I2C_Read... [11:46:26]Read from MH i2c: 01 07 00 01 0D 00 00 00 00 00 FF 0F 23 [11:46:26]RasterBufferAndPrint [11:46:26]line Счет N : (3)73380 [11:46:26]line ИНН: 02508201610067 [11:46:26]line Контрольно-Кассовый Чек [11:46:26]line ПРОДАЖА [11:46:26]line Товар: 4603290004824 [11:46:26]line Печ зат Яшкино слив Крем 182г [11:46:26]line 1.000 * 81.00 [11:46:26]line = 81.00 [11:46:26]line НДС 12% НСП 1% [11:46:26]line > о реализуемом товаре [11:46:26]line ИТОГО: 81.00 [11:46:26]line НСП 1% : 0.72 [11:46:26]line НДС 12% : 8.60 [11:46:26]line Наличными: 81.00 [11:46:26]line Безнал.: 0.00 [11:46:26]line Место: АЗС № 117 "Партнер Нефть" [11:46:26]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [11:46:26]line СНО: Общий режим [11:46:26]line Чек 50 03.06.2024 11:46 [11:46:26]line Смена: 373 ФФД: 1.0 [11:46:26]line ЗНМ: 0300000031 [11:46:26]line РНМ: 0000000000092737 [11:46:26]line Версия ККМ: 001 [11:46:26]line ФМ: 0000000000875074 [11:46:26]line ФД: 63792 [11:46:26]line ФПД: 78605299926026 [11:46:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T114626&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63792&fm=78605299926026&tin=02508201610067®Number=0000000000092737&sum=8100 [11:46:26]line 0 [11:46:26]written 0, free lines is 4095 [11:46:26]OFD Sender: Processing packet 63792 [packets to send 14, broken 13] [11:46:26]ProducePacketName [11:46:26]name=ofd_packets/00063792 [11:46:26]OFD Sender: To server: pG, [11:46:26]CommunicateWithHost lk.salyk.kg:30040 [11:46:26]ConnectInit lk.salyk.kg [11:46:26]Connected sock=9 [11:46:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 38 01 00 00 01 72 30 01 CF 7E 5A 03 01 00 03 00 24 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 32 34 06 04 32 00 D0 9F D0 B5 D1 87 20 D0 B7 D0 B0 D1 82 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D1 81 D0 BB D0 B8 D0 B2 20 D0 9A D1 80 D0 B5 D0 BC 20 31 38 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 1F 00 00 00 00 13 04 06 00 A4 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5C 03 00 00 00 00 07 04 06 00 A4 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 12 AD 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 30 F9 00 00 35 04 06 00 47 7D B8 FA C4 0A 58 53 36 5C DB BC 76 2D [11:46:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 D7 CC 47 00 DE 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 35 30 37 34 10 04 04 00 30 F9 00 00 F4 03 04 00 E4 58 5D 66 B6 04 01 00 00 05 30 6E 6B 6F 20 99 3A [11:46:27]CommunicateWithHost err = 0 [11:46:27]CheckOFDResponse [11:46:27]1017 (14) - 77093643461234 [11:46:27]1041 (16) - 0000000000875074 [11:46:27]1040 (4) - 63792 [11:46:27]1012 (4) - 03.06.2024 05:47 [11:46:27]1206 (1) - 0 [11:46:27]OFD Sender: Remove packet 63792 [11:46:27]ProducePacketName [11:46:27]name=ofd_packets/00063792 [11:46:27]NVStorageDeleteData [11:46:27]Write to MH i2c: 01 00 00 2A 0D 37 [11:46:27]Write i2c OK [11:46:27]MH_I2C_Read... [11:46:27]Read from MH i2c: 01 [11:46:27]MH_I2C_Read... [11:46:27]Read from MH i2c: 01 07 00 [11:46:27]MH_I2C_Read... [11:46:27]Read from MH i2c: 01 07 00 2A 0D 00 00 00 00 00 EE 0C 38 [11:46:27]RasterBufferAndPrint [11:46:27]line [11:46:27]line [11:46:27]line [11:46:27]line [11:46:27]line [11:46:27]written 0, free lines is 3329 [11:46:27]MH_Cut [11:46:27]Write to MH i2c: D1 01 00 31 0D 01 10 [11:46:27]Write i2c OK [11:46:27]MH_I2C_Read... [11:46:27]Read from MH i2c: D1 [11:46:27]MH_I2C_Read... [11:46:27]Read from MH i2c: D1 01 00 [11:46:27]MH_I2C_Read... [11:46:27]Read from MH i2c: D1 01 00 31 0D 00 0F [11:46:27]Write to MH i2c: 01 00 00 32 0D 3F [11:46:27]Write i2c OK [11:46:27]MH_I2C_Read... [11:46:27]OFD Sender: No OFD packet to send [11:46:27]*** Cut start [11:46:27]*** Partial cut [11:46:27]*** CUTSNS_PIN = 1 [11:46:27]*** CUTSNS_PIN = 0 [11:46:28]*** Brake cut motor [11:46:28]Read from MH i2c: 01 [11:46:28]MH_I2C_Read... [11:46:28]*** Stop cut motor [11:46:28]*** Cut end [11:46:28]Read from MH i2c: 01 07 00 [11:46:28]MH_I2C_Read... [11:46:28]Read from MH i2c: 01 07 00 32 0D 00 00 00 00 00 FF 0F 54 [11:46:28]process_action close_receipt done [11:46:28]requested_data is exist [11:46:28]produce_requested_data [11:46:28]requested_item fm.sn is exist - process it [11:46:28]wFMCommunicate request_size=4 [11:46:28]MH_SAM_APDU [11:46:28]CAPDU: 80 11 00 00 [11:46:28]Write to MH i2c: E2 08 00 33 0D 80 11 00 00 00 00 00 00 BA [11:46:28]Write i2c OK [11:46:28]MH_I2C_Read... [11:46:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:46:28]Read from MH i2c: E2 [11:46:28]MH_I2C_Read... [11:46:28]Read from MH i2c: E2 17 00 [11:46:28]MH_I2C_Read... [11:46:28]Read from MH i2c: E2 17 00 33 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 0C [11:46:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [11:46:28]wFMCommunicate OK [11:46:28]requested_item fd.num is exist - process it [11:46:28]SAM_PROTO_GetFieldsCounters [11:46:28]wFMCommunicate request_size=4 [11:46:28]MH_SAM_APDU [11:46:28]CAPDU: 80 13 00 00 [11:46:28]Write to MH i2c: E2 08 00 34 0D 80 13 00 00 00 00 00 00 BD [11:46:28]Write i2c OK [11:46:28]MH_I2C_Read... [11:46:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:46:28]Read from MH i2c: E2 [11:46:28]MH_I2C_Read... [11:46:28]Read from MH i2c: E2 62 00 [11:46:28]MH_I2C_Read... [11:46:28]Read from MH i2c: E2 62 00 34 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 30 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 15 [11:46: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 30 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:46:28]wFMCommunicate OK [11:46:28]SAM_PROTO_GetFieldsCounters done [11:46:28]requested_item shift.num is exist - process it [11:46:28]requested_item shift.opened is exist - process it [11:46:28]req_shift_opened [11:46:28]FM_GetShiftState [11:46:28]SAM_PROTO_GetShiftState [11:46:28]wFMCommunicate request_size=4 [11:46:28]MH_SAM_APDU [11:46:28]CAPDU: 80 13 01 00 [11:46:28]Write to MH i2c: E2 08 00 35 0D 80 13 01 00 00 00 00 00 BF [11:46:28]Write i2c OK [11:46:28]MH_I2C_Read... [11:46:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:46:28]Read from MH i2c: E2 [11:46:28]MH_I2C_Read... [11:46:28]Read from MH i2c: E2 0E 00 [11:46:28]MH_I2C_Read... [11:46:28]Read from MH i2c: E2 0E 00 35 0D 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 8B [11:46:28]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [11:46:28]wFMCommunicate OK [11:46:28]SAM_PROTO_GetShiftState done [11:46:28]FM_GetShiftState done [11:46:28]req_shift_opened done [11:46:28]requested_item shift.open_date is exist - process it [11:46:28]req_shift_open_date [11:46:28]req_shift_open_date done [11:46:28]produce_requested_data done [11:46:28]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63792,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [11:46:28]process_action_free close_receipt [11:46:28]json_value_free [11:46:28]json_value_free done [11:46:28]process_json_proto returns [11:46:28]Send response to host [11:46:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63792,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [11:46:28]free response buf [11:46:28]execute_script done [11:46:28]execute_script returns [11:46:28]free content buf [11:46:28]Sock 7.Close socket [11:46:28]Sock 7.Thread stoped [11:46:32]OFD Sender: No OFD packet to send [11:46:37]OFD Sender: No OFD packet to send [11:46:42]OFD Sender: No OFD packet to send [11:46:47]OFD Sender: No OFD packet to send [11:46:47]accept exits with 10 [11:46:47]New connection [11:46:47]New thread 3067374948 created [11:46:47]Thread 3067518308 joined [11:46:47]Waiting for new connection... [11:46:47] Sock 10.Parse request [11:46:47]Sock 10.Check first char [11:46:47]Sock 10.First char is OK [11:46:47]request: POST /json_proto HTTP/1.0 [11:46:47]Method: POST [11:46:47]URL: /json_proto [11:46:47]Method is POST - this is cgi request [11:46:47]url: /json_proto [11:46:47]query_string will be loaded in cgi processing [11:46:47]execute_cgi json_proto POST (null) [11:46:47]execute_cgi path=json_proto method=POST [11:46:47]POST find Content-Length [11:46:47]Host: 172.17.60.69:8080 [11:46:47]Content-Length: 657 [11:46:47]Content-Type: application/json [11:46:47] [11:46:47]POST finish read [11:46:47]Found Content-Length = 657 [11:46:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73381", "tax_sys" : 0, "items" : [ { "code": "4607084351378", "name": "\u0411\u0438\u0441\u043A\u0432\u0438\u0442 \u0427\u043E\u043A\u043E \u043F\u0430\u0439 6\u0448\u0442", "price" : 175.00, "quantity" : 1.000, "sum" : 175.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 175.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:46:47]execute_script... [11:46:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73381", "tax_sys" : 0, "items" : [ { "code": "4607084351378", "name": "\u0411\u0438\u0441\u043A\u0432\u0438\u0442 \u0427\u043E\u043A\u043E \u043F\u0430\u0439 6\u0448\u0442", "price" : 175.00, "quantity" : 1.000, "sum" : 175.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 175.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:46:47]POST & json_proto [11:46:47]process_json_proto [11:46:47]json parsed OK: [11:46:47]protocol is kg_v1.0 [11:46:47]action value=close_receipt [11:46:47]process_action close_receipt [11:46:47]cmd_close_receipt [11:46:47]MH_GetDate [11:46:47]Write to MH i2c: F0 00 00 36 0D 32 [11:46:47]Write i2c OK [11:46:47]MH_I2C_Read... [11:46:47]Read from MH i2c: F0 [11:46:47]MH_I2C_Read... [11:46:47]Read from MH i2c: F0 09 00 [11:46:47]MH_I2C_Read... [11:46:47]Read from MH i2c: F0 09 00 36 0D 00 29 AD 5D 66 6A 96 4A 66 84 [11:46:47]GetLastDocTimeStamp 1717415186 [11:46:47]current date 1717415209 [11:46:47]FM_GetShiftState [11:46:47]SAM_PROTO_GetShiftState [11:46:47]wFMCommunicate request_size=4 [11:46:47]MH_SAM_APDU [11:46:47]CAPDU: 80 13 01 00 [11:46:47]Write to MH i2c: E2 08 00 37 0D 80 13 01 00 00 00 00 00 C1 [11:46:47]Write i2c OK [11:46:47]MH_I2C_Read... [11:46:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:46:47]Read from MH i2c: E2 [11:46:47]MH_I2C_Read... [11:46:47]Read from MH i2c: E2 0E 00 [11:46:47]MH_I2C_Read... [11:46:47]Read from MH i2c: E2 0E 00 37 0D 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 8D [11:46:47]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [11:46:47]wFMCommunicate OK [11:46:47]SAM_PROTO_GetShiftState done [11:46:47]FM_GetShiftState done [11:46:47]opened in 1717373173 [11:46:47]opened+sec_in_day 1717459573 [11:46:47]quantity*price = 17500 [11:46:47]sum+1 = 17501 [11:46:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 175.00 НСП 1% : 1.55 НДС 12% : 18.58 Наличными: 175.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 51 03.06.2024 11:46 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63793 ФПД: 192604607146 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T114649&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63793&fm=192604607146&tin=02508201610067®Number=0000000000092737&sum=17500 0 [11:46:48]StoreToDocumentArchive [11:46:48]shift 373 fd 63793 [11:46:48]save to /storage/0373/doc_00063793 [11:46:48]save last doc name /storage/0373/doc_00063793 to /storage/kkm_last_doc_name [11:46:48]save OK [11:46:48]Clear old archive folders... [11:46:48]ProcessDocumentItem done err = 0, tmpTLVsize=278 [11:46:48]tlvbuf is 00D41B30 [11:46:48]SAM_PROTO_ClearQueue [11:46:48]wFMCommunicate request_size=4 [11:46:48]MH_SAM_APDU [11:46:48]CAPDU: 80 09 00 00 [11:46:48]Write to MH i2c: E2 08 00 44 0D 80 09 00 00 00 00 00 00 C3 [11:46:48]Write i2c OK [11:46:48]MH_I2C_Read... [11:46:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:46:48]Read from MH i2c: E2 [11:46:48]MH_I2C_Read... [11:46:48]Read from MH i2c: E2 03 00 [11:46:48]MH_I2C_Read... [11:46:48]Read from MH i2c: E2 03 00 44 0D 00 90 00 C5 [11:46:48]RAPDU: 90 00 [11:46:48]wFMCommunicate OK [11:46:48]SAM_PROTO_ClearQueue done [11:46:48]KKMCreateOFDPacket [11:46:48]OFDProtocolAddRootSTLVToBuf [11:46:48]FM_MakeSignedData [11:46:48]FM_MakeSignedData [11:46:48]SAM_PROTO_SignData [11:46:48]wFMCommunicate request_size=4 [11:46:48]MH_SAM_APDU [11:46:48]CAPDU: 80 0D 01 02 [11:46:48]Write to MH i2c: E2 08 00 45 0D 80 0D 01 02 00 00 00 00 CB [11:46:48]Write i2c OK [11:46:48]MH_I2C_Read... [11:46:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:46:49]Read from MH i2c: E2 [11:46:49]MH_I2C_Read... [11:46:49]Read from MH i2c: E2 03 00 [11:46:49]MH_I2C_Read... [11:46:49]Read from MH i2c: E2 03 00 45 0D 00 90 00 C6 [11:46:49]RAPDU: 90 00 [11:46:49]wFMCommunicate OK [11:46:49]wFMCommunicate request_size=255 [11:46:49]MH_SAM_APDU [11:46:49]CAPDU: 80 0D 02 02 FA 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 30 37 30 38 34 33 35 31 33 37 38 06 04 24 00 D0 91 D0 B8 D1 81 D0 BA D0 B2 D0 B8 D1 82 20 D0 A7 D0 BE D0 BA D0 BE 20 D0 BF D0 B0 D0 B9 20 36 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 44 00 00 00 00 13 04 06 00 5C 44 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 44 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 07 00 00 00 00 07 04 06 00 5C 44 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 29 AD 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 [11:46:49]Write to MH i2c: E2 02 01 46 0D 80 0D 02 02 FA 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 30 37 30 38 34 33 35 31 33 37 38 06 04 24 00 D0 91 D0 B8 D1 81 D0 BA D0 B2 D0 B8 D1 82 20 D0 A7 D0 BE D0 BA D0 BE 20 D0 BF D0 B0 D0 B9 20 36 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 44 00 00 00 00 13 04 06 00 5C 44 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 44 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 07 00 00 00 00 07 04 06 00 5C 44 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 29 AD 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 00 00 F7 [11:46:49]Write i2c OK [11:46:49]MH_I2C_Read... [11:46:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:46:49]Read from MH i2c: E2 [11:46:49]MH_I2C_Read... [11:46:49]Read from MH i2c: E2 03 00 [11:46:49]MH_I2C_Read... [11:46:49]Read from MH i2c: E2 03 00 46 0D 00 90 00 C7 [11:46:49]RAPDU: 90 00 [11:46:49]wFMCommunicate OK [11:46:49]wFMCommunicate request_size=37 [11:46:49]MH_SAM_APDU [11:46:49]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 31 F9 00 00 35 04 06 00 00 2C D8 21 12 AA [11:46:49]Write to MH i2c: E2 28 00 47 0D 80 0D 02 02 20 00 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 31 F9 00 00 35 04 06 00 00 2C D8 21 12 AA 00 00 2F [11:46:49]Write i2c OK [11:46:49]MH_I2C_Read... [11:46:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:46:49]Read from MH i2c: E2 [11:46:49]MH_I2C_Read... [11:46:49]Read from MH i2c: E2 03 00 [11:46:49]MH_I2C_Read... [11:46:49]Read from MH i2c: E2 03 00 47 0D 00 90 00 C8 [11:46:49]RAPDU: 90 00 [11:46:49]wFMCommunicate OK [11:46:49]wFMCommunicate request_size=4 [11:46:49]MH_SAM_APDU [11:46:49]CAPDU: 80 0D 03 02 [11:46:49]Write to MH i2c: E2 08 00 48 0D 80 0D 03 02 00 00 00 00 D0 [11:46:49]Write i2c OK [11:46:49]MH_I2C_Read... [11:46:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:46:49]Read from MH i2c: E2 [11:46:49]MH_I2C_Read... [11:46:49]Read from MH i2c: E2 0B 00 [11:46:49]MH_I2C_Read... [11:46:49]Read from MH i2c: E2 0B 00 48 0D 00 0A 6E B6 46 97 F6 5E 8F 90 00 BF [11:46:49]RAPDU: 0A 6E B6 46 97 F6 5E 8F 90 00 [11:46:49]wFMCommunicate OK [11:46:49]SAM_PROTO_SignData done [11:46:49]FM_MakeSignedData done [11:46:49]CreateOFDProtocolMessage [11:46:49]wFMCommunicate request_size=4 [11:46:49]MH_SAM_APDU [11:46:49]CAPDU: 80 11 00 00 [11:46:49]Write to MH i2c: E2 08 00 49 0D 80 11 00 00 00 00 00 00 D0 [11:46:49]Write i2c OK [11:46:49]MH_I2C_Read... [11:46:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:46:49]Read from MH i2c: E2 [11:46:49]MH_I2C_Read... [11:46:49]Read from MH i2c: E2 17 00 [11:46:49]MH_I2C_Read... [11:46:49]Read from MH i2c: E2 17 00 49 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 22 [11:46:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [11:46:49]wFMCommunicate OK [11:46:49]CreateOFDProtocolMessage done [11:46:49]OFDSenderStorePacket 63793 [11:46:49]StoreOFDPacket docnum=63793 [11:46:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 2A 01 00 00 08 0F 22 01 F4 2A 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 30 37 30 38 34 33 35 31 33 37 38 06 04 24 00 D0 91 D0 B8 D1 81 D0 BA D0 B2 D0 B8 D1 82 20 D0 A7 D0 BE D0 BA D0 BE 20 D0 BF D0 B0 D0 B9 20 36 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 44 00 00 00 00 13 04 06 00 5C 44 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 44 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 07 00 00 00 00 07 04 06 00 5C 44 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 29 AD 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 31 F9 00 00 35 04 06 00 00 2C D8 21 12 AA 0A 6E B6 46 97 F6 5E 8F [11:46:49]CheckFolder [11:46:49]dirname=/storage/ofd_packets [11:46:49]CheckFolder done [11:46:49]ProducePacketName [11:46:49]name=ofd_packets/00063793 [11:46:49]NVStorageSaveData ofd_packets/00063793 [11:46:49]File name is /storage/ofd_packets/00063793 [11:46:49]Write 328 bytes [11:46:49]NVStorageSaveData done [11:46:49]OFDSenderStorePacket done [11:46:49]KKMCreateOFDPacket done [11:46:49]NVStorageSaveData kkm_last_timestamp [11:46:49]File name is /storage/kkm_last_timestamp [11:46:49]Write 4 bytes [11:46:49]NVStorageSaveData done [11:46:49]ExternCall_PrintAddStr [11:46:49]wPrintStart [11:46:49]Write to MH i2c: 01 00 00 4A 0D 57 [11:46:49]Write i2c OK [11:46:49]MH_I2C_Read... [11:46:49]Read from MH i2c: 01 [11:46:49]MH_I2C_Read... [11:46:49]Read from MH i2c: 01 07 00 [11:46:49]MH_I2C_Read... [11:46:49]Read from MH i2c: 01 07 00 4A 0D 00 00 00 00 00 FF 0F 6C [11:46:49]RasterBufferAndPrint [11:46:49]line Счет N : (3)73381 [11:46:49]line ИНН: 02508201610067 [11:46:49]line Контрольно-Кассовый Чек [11:46:49]line ПРОДАЖА [11:46:49]line Товар: 4607084351378 [11:46:49]line Бисквит Чоко пай 6шт [11:46:49]line 1.000 * 175.00 [11:46:49]line = 175.00 [11:46:49]line НДС 12% НСП 1% [11:46:49]line > о реализуемом товаре [11:46:49]line ИТОГО: 175.00 [11:46:49]line НСП 1% : 1.55 [11:46:49]line НДС 12% : 18.58 [11:46:49]line Наличными: 175.00 [11:46:49]line Безнал.: 0.00 [11:46:49]line Место: АЗС № 117 "Партнер Нефть" [11:46:49]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [11:46:49]line СНО: Общий режим [11:46:49]line Чек 51 03.06.2024 11:46 [11:46:49]line Смена: 373 ФФД: 1.0 [11:46:49]line ЗНМ: 0300000031 [11:46:49]line РНМ: 0000000000092737 [11:46:49]line Версия ККМ: 001 [11:46:49]line ФМ: 0000000000875074 [11:46:49]line ФД: 63793 [11:46:49]line ФПД: 192604607146 [11:46:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T114649&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63793&fm=192604607146&tin=02508201610067®Number=0000000000092737&sum=17500 [11:46:49]line 0 [11:46:49]written 0, free lines is 4095 [11:46:49]OFD Sender: Processing packet 63793 [packets to send 14, broken 13] [11:46:49]ProducePacketName [11:46:49]name=ofd_packets/00063793 [11:46:49]OFD Sender: To server: pG, [11:46:49]CommunicateWithHost lk.salyk.kg:30040 [11:46:49]ConnectInit lk.salyk.kg [11:46:49]Connected sock=9 [11:46:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 2A 01 00 00 08 0F 22 01 F4 2A 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 30 37 30 38 34 33 35 31 33 37 38 06 04 24 00 D0 91 D0 B8 D1 81 D0 BA D0 B2 D0 B8 D1 82 20 D0 A7 D0 BE D0 BA D0 BE 20 D0 BF D0 B0 D0 B9 20 36 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 44 00 00 00 00 13 04 06 00 5C 44 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 44 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 07 00 00 00 00 07 04 06 00 5C 44 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 29 AD 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 31 F9 00 00 35 04 06 00 00 2C D8 21 12 AA 0A 6E B6 46 97 F6 5E 8F [11:46:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 5F 21 47 00 3C 7A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 31 F9 00 00 F4 03 04 00 FB 58 5D 66 B6 04 01 00 00 07 49 B4 76 BC 5E 0E 25 [11:46:49]CommunicateWithHost err = 0 [11:46:49]CheckOFDResponse [11:46:49]1017 (14) - 77093643461234 [11:46:49]1041 (16) - 0000000000875074 [11:46:49]1040 (4) - 63793 [11:46:49]1012 (4) - 03.06.2024 05:47 [11:46:49]1206 (1) - 0 [11:46:49]OFD Sender: Remove packet 63793 [11:46:49]ProducePacketName [11:46:49]name=ofd_packets/00063793 [11:46:49]NVStorageDeleteData [11:46:49]Write to MH i2c: 01 00 00 72 0D 7F [11:46:49]Write i2c OK [11:46:49]MH_I2C_Read... [11:46:49]Read from MH i2c: 01 [11:46:49]MH_I2C_Read... [11:46:49]Read from MH i2c: 01 07 00 [11:46:49]MH_I2C_Read... [11:46:49]Read from MH i2c: 01 07 00 72 0D 00 00 00 00 00 F0 0C 82 [11:46:49]RasterBufferAndPrint [11:46:49]line [11:46:49]line [11:46:49]line [11:46:49]line [11:46:49]line [11:46:49]written 0, free lines is 3327 [11:46:50]MH_Cut [11:46:50]Write to MH i2c: D1 01 00 79 0D 01 58 [11:46:50]Write i2c OK [11:46:50]MH_I2C_Read... [11:46:50]Read from MH i2c: D1 [11:46:50]MH_I2C_Read... [11:46:50]Read from MH i2c: D1 01 00 [11:46:50]MH_I2C_Read... [11:46:50]Read from MH i2c: D1 01 00 79 0D 00 57 [11:46:50]Write to MH i2c: 01 00 00 7A 0D 87 [11:46:50]Write i2c OK [11:46:50]MH_I2C_Read... [11:46:50]OFD Sender: No OFD packet to send [11:46:50]*** Cut start [11:46:50]*** Partial cut [11:46:50]*** CUTSNS_PIN = 1 [11:46:50]*** CUTSNS_PIN = 0 [11:46:51]*** Brake cut motor [11:46:51]Read from MH i2c: 01 [11:46:51]MH_I2C_Read... [11:46:51]*** Stop cut motor [11:46:51]*** Cut end [11:46:51]Read from MH i2c: 01 07 00 [11:46:51]MH_I2C_Read... [11:46:51]Read from MH i2c: 01 07 00 7A 0D 00 00 00 00 00 FF 0F 9C [11:46:51]process_action close_receipt done [11:46:51]requested_data is exist [11:46:51]produce_requested_data [11:46:51]requested_item fm.sn is exist - process it [11:46:51]wFMCommunicate request_size=4 [11:46:51]MH_SAM_APDU [11:46:51]CAPDU: 80 11 00 00 [11:46:51]Write to MH i2c: E2 08 00 7B 0D 80 11 00 00 00 00 00 00 02 [11:46:51]Write i2c OK [11:46:51]MH_I2C_Read... [11:46:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:46:51]Read from MH i2c: E2 [11:46:51]MH_I2C_Read... [11:46:51]Read from MH i2c: E2 17 00 [11:46:51]MH_I2C_Read... [11:46:51]Read from MH i2c: E2 17 00 7B 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 54 [11:46:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [11:46:51]wFMCommunicate OK [11:46:51]requested_item fd.num is exist - process it [11:46:51]SAM_PROTO_GetFieldsCounters [11:46:51]wFMCommunicate request_size=4 [11:46:51]MH_SAM_APDU [11:46:51]CAPDU: 80 13 00 00 [11:46:51]Write to MH i2c: E2 08 00 7C 0D 80 13 00 00 00 00 00 00 05 [11:46:51]Write i2c OK [11:46:51]MH_I2C_Read... [11:46:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:46:51]Read from MH i2c: E2 [11:46:51]MH_I2C_Read... [11:46:51]Read from MH i2c: E2 62 00 [11:46:51]MH_I2C_Read... [11:46:51]Read from MH i2c: E2 62 00 7C 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 31 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 61 [11:46: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 31 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:46:51]wFMCommunicate OK [11:46:51]SAM_PROTO_GetFieldsCounters done [11:46:51]requested_item shift.num is exist - process it [11:46:51]requested_item shift.opened is exist - process it [11:46:51]req_shift_opened [11:46:51]FM_GetShiftState [11:46:51]SAM_PROTO_GetShiftState [11:46:51]wFMCommunicate request_size=4 [11:46:51]MH_SAM_APDU [11:46:51]CAPDU: 80 13 01 00 [11:46:51]Write to MH i2c: E2 08 00 7D 0D 80 13 01 00 00 00 00 00 07 [11:46:51]Write i2c OK [11:46:51]MH_I2C_Read... [11:46:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:46:51]Read from MH i2c: E2 [11:46:51]MH_I2C_Read... [11:46:51]Read from MH i2c: E2 0E 00 [11:46:51]MH_I2C_Read... [11:46:51]Read from MH i2c: E2 0E 00 7D 0D 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 D3 [11:46:51]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [11:46:51]wFMCommunicate OK [11:46:51]SAM_PROTO_GetShiftState done [11:46:51]FM_GetShiftState done [11:46:51]req_shift_opened done [11:46:51]requested_item shift.open_date is exist - process it [11:46:51]req_shift_open_date [11:46:51]req_shift_open_date done [11:46:51]produce_requested_data done [11:46:51]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63793,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [11:46:51]process_action_free close_receipt [11:46:51]json_value_free [11:46:51]json_value_free done [11:46:51]process_json_proto returns [11:46:51]Send response to host [11:46:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63793,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [11:46:51]free response buf [11:46:51]execute_script done [11:46:51]execute_script returns [11:46:51]free content buf [11:46:51]Sock 10.Close socket [11:46:51]Sock 10.Thread stoped [11:46:55]OFD Sender: No OFD packet to send [11:47:00]OFD Sender: No OFD packet to send [11:47:05]OFD Sender: No OFD packet to send [11:47:10]OFD Sender: No OFD packet to send [11:47:15]OFD Sender: No OFD packet to send [11:47:20]OFD Sender: No OFD packet to send [11:47:25]OFD Sender: No OFD packet to send [11:47:30]OFD Sender: No OFD packet to send [11:47:35]OFD Sender: No OFD packet to send [11:47:40]OFD Sender: No OFD packet to send [11:47:45]OFD Sender: No OFD packet to send [11:47:50]OFD Sender: No OFD packet to send [11:47:55]OFD Sender: No OFD packet to send [11:48:00]OFD Sender: No OFD packet to send [11:48:05]OFD Sender: No OFD packet to send [11:48:10]OFD Sender: No OFD packet to send [11:48:15]OFD Sender: No OFD packet to send [11:48:20]OFD Sender: No OFD packet to send [11:48:25]OFD Sender: No OFD packet to send [11:48:30]OFD Sender: No OFD packet to send [11:48:35]OFD Sender: No OFD packet to send [11:48:40]OFD Sender: No OFD packet to send [11:48:45]OFD Sender: No OFD packet to send [11:48:50]OFD Sender: No OFD packet to send [11:48:55]OFD Sender: No OFD packet to send [11:49:00]OFD Sender: No OFD packet to send [11:49:05]OFD Sender: No OFD packet to send [11:49:10]OFD Sender: No OFD packet to send [11:49:15]OFD Sender: No OFD packet to send [11:49:20]OFD Sender: No OFD packet to send [11:49:25]OFD Sender: No OFD packet to send [11:49:30]OFD Sender: No OFD packet to send [11:49:35]OFD Sender: No OFD packet to send [11:49:40]OFD Sender: No OFD packet to send [11:49:45]OFD Sender: No OFD packet to send [11:49:50]OFD Sender: No OFD packet to send [11:49:55]OFD Sender: No OFD packet to send [11:50:00]OFD Sender: No OFD packet to send [11:50:05]OFD Sender: No OFD packet to send [11:50:10]OFD Sender: No OFD packet to send [11:50:15]OFD Sender: No OFD packet to send [11:50:20]OFD Sender: No OFD packet to send [11:50:25]OFD Sender: No OFD packet to send [11:50:30]OFD Sender: No OFD packet to send [11:50:35]OFD Sender: No OFD packet to send [11:50:40]OFD Sender: No OFD packet to send [11:50:45]OFD Sender: No OFD packet to send [11:50:50]OFD Sender: No OFD packet to send [11:50:55]OFD Sender: No OFD packet to send [11:51:00]OFD Sender: No OFD packet to send [11:51:05]OFD Sender: No OFD packet to send [11:51:10]OFD Sender: No OFD packet to send [11:51:15]OFD Sender: No OFD packet to send [11:51:20]OFD Sender: No OFD packet to send [11:51:25]OFD Sender: No OFD packet to send [11:51:30]OFD Sender: No OFD packet to send [11:51:35]OFD Sender: No OFD packet to send [11:51:40]OFD Sender: No OFD packet to send [11:51:45]OFD Sender: No OFD packet to send [11:51:50]OFD Sender: No OFD packet to send [11:51:55]OFD Sender: No OFD packet to send [11:52:00]OFD Sender: No OFD packet to send [11:52:05]OFD Sender: No OFD packet to send [11:52:10]OFD Sender: No OFD packet to send [11:52:15]OFD Sender: No OFD packet to send [11:52:20]OFD Sender: No OFD packet to send [11:52:25]OFD Sender: No OFD packet to send [11:52:30]OFD Sender: No OFD packet to send [11:52:35]OFD Sender: No OFD packet to send [11:52:40]OFD Sender: No OFD packet to send [11:52:45]OFD Sender: No OFD packet to send [11:52:50]OFD Sender: No OFD packet to send [11:52:55]OFD Sender: No OFD packet to send [11:53:00]OFD Sender: No OFD packet to send [11:53:05]OFD Sender: No OFD packet to send [11:53:10]OFD Sender: No OFD packet to send [11:53:15]OFD Sender: No OFD packet to send [11:53:20]OFD Sender: No OFD packet to send [11:53:25]OFD Sender: No OFD packet to send [11:53:30]OFD Sender: No OFD packet to send [11:53: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]OFD Sender: No OFD packet to send [11:55:15]OFD Sender: No OFD packet to send [11:55:20]OFD Sender: No OFD packet to send [11:55:25]OFD Sender: No OFD packet to send [11:55:30]OFD Sender: No OFD packet to send [11:55:35]OFD Sender: No OFD packet to send [11:55:40]OFD Sender: No OFD packet to send [11:55:45]OFD Sender: No OFD packet to send [11:55:50]OFD Sender: No OFD packet to send [11:55:55]OFD Sender: No OFD packet to send [11:56:00]OFD Sender: No OFD packet to send [11:56:05]OFD Sender: No OFD packet to send [11:56:10]OFD Sender: No OFD packet to send [11:56:15]OFD Sender: No OFD packet to send [11:56:20]OFD Sender: No OFD packet to send [11:56:25]OFD Sender: No OFD packet to send [11:56:30]OFD Sender: No OFD packet to send [11:56:35]OFD Sender: No OFD packet to send [11:56:40]OFD Sender: No OFD packet to send [11:56:45]OFD Sender: No OFD packet to send [11:56:50]OFD Sender: No OFD packet to send [11:56:55]OFD Sender: No OFD packet to send [11:57:00]OFD Sender: No OFD packet to send [11:57:05]OFD Sender: No OFD packet to send [11:57:10]OFD Sender: No OFD packet to send [11:57:15]OFD Sender: No OFD packet to send [11:57:20]OFD Sender: No OFD packet to send [11:57:25]OFD Sender: No OFD packet to send [11:57:30]OFD Sender: No OFD packet to send [11:57:35]OFD Sender: No OFD packet to send [11:57:40]OFD Sender: No OFD packet to send [11:57:45]OFD Sender: No OFD packet to send [11:57:50]OFD Sender: No OFD packet to send [11:57:55]OFD Sender: No OFD packet to send [11:58:00]OFD Sender: No OFD packet to send [11:58:05]OFD Sender: No OFD packet to send [11:58:10]OFD Sender: No OFD packet to send [11:58:15]OFD Sender: No OFD packet to send [11:58:20]OFD Sender: No OFD packet to send [11:58:26]OFD Sender: No OFD packet to send [11:58:31]OFD Sender: No OFD packet to send [11:58:36]OFD Sender: No OFD packet to send [11:58:41]OFD Sender: No OFD packet to send [11:58:46]OFD Sender: No OFD packet to send [11:58:51]OFD Sender: No OFD packet to send [11:58:56]OFD Sender: No OFD packet to send [11:59:01]OFD Sender: No OFD packet to send [11:59:06]OFD Sender: No OFD packet to send [11:59:11]OFD Sender: No OFD packet to send [11:59:16]OFD Sender: No OFD packet to send [11:59:21]OFD Sender: No OFD packet to send [11:59:26]OFD Sender: No OFD packet to send [11:59:31]OFD Sender: No OFD packet to send [11:59:36]OFD Sender: No OFD packet to send [11:59:41]OFD Sender: No OFD packet to send [11:59:46]OFD Sender: No OFD packet to send [11:59:51]OFD Sender: No OFD packet to send [11:59:56]OFD Sender: No OFD packet to send [12:00:01]OFD Sender: No OFD packet to send [12:00:06]OFD Sender: No OFD packet to send [12:00:11]OFD Sender: No OFD packet to send [12:00:16]OFD Sender: No OFD packet to send [12:00:21]OFD Sender: No OFD packet to send [12:00:26]OFD Sender: No OFD packet to send [12:00:31]OFD Sender: No OFD packet to send [12:00:36]OFD Sender: No OFD packet to send [12:00:41]OFD Sender: No OFD packet to send [12:00:46]OFD Sender: No OFD packet to send [12:00:51]OFD Sender: No OFD packet to send [12:00:56]OFD Sender: No OFD packet to send [12:01:01]OFD Sender: No OFD packet to send [12:01:06]OFD Sender: No OFD packet to send [12:01:11]OFD Sender: No OFD packet to send [12:01:16]OFD Sender: No OFD packet to send [12:01:21]OFD Sender: No OFD packet to send [12:01:26]OFD Sender: No OFD packet to send [12:01:31]OFD Sender: No OFD packet to send [12:01:36]OFD Sender: No OFD packet to send [12:01:41]OFD Sender: No OFD packet to send [12:01:46]OFD Sender: No OFD packet to send [12:01:51]OFD Sender: No OFD packet to send [12:01:56]OFD Sender: No OFD packet to send [12:02:01]OFD Sender: No OFD packet to send [12:02:06]OFD Sender: No OFD packet to send [12:02:11]OFD Sender: No OFD packet to send [12:02:16]OFD Sender: No OFD packet to send [12:02:21]OFD Sender: No OFD packet to send [12:02:26]OFD Sender: No OFD packet to send [12:02:31]OFD Sender: No OFD packet to send [12:02:36]OFD Sender: No OFD packet to send [12:02:41]OFD Sender: No OFD packet to send [12:02:46]OFD Sender: No OFD packet to send [12:02:51]OFD Sender: No OFD packet to send [12:02:53]accept exits with 7 [12:02:53]New connection [12:02:53]New thread 3067518308 created [12:02:53]Thread 3067374948 joined [12:02:53]Waiting for new connection... [12:02:53] Sock 7.Parse request [12:02:53]Sock 7.Check first char [12:02:53]Sock 7.First char is OK [12:02:53]request: POST /json_proto HTTP/1.0 [12:02:53]Method: POST [12:02:53]URL: /json_proto [12:02:53]Method is POST - this is cgi request [12:02:53]url: /json_proto [12:02:53]query_string will be loaded in cgi processing [12:02:53]execute_cgi json_proto POST (null) [12:02:53]execute_cgi path=json_proto method=POST [12:02:53]POST find Content-Length [12:02:53]Host: 172.17.60.69:8080 [12:02:53]Content-Length: 828 [12:02:53]Content-Type: application/json [12:02:53] [12:02:53]POST finish read [12:02:53]Found Content-Length = 828 [12:02:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73382", "tax_sys" : 0, "items" : [ { "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:02:53]execute_script... [12:02:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73382", "tax_sys" : 0, "items" : [ { "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:02:53]POST & json_proto [12:02:53]process_json_proto [12:02:53]json parsed OK: [12:02:53]protocol is kg_v1.0 [12:02:53]action value=close_receipt [12:02:53]process_action close_receipt [12:02:53]cmd_close_receipt [12:02:53]MH_GetDate [12:02:53]Write to MH i2c: F0 00 00 7E 0D 7A [12:02:53]Write i2c OK [12:02:53]MH_I2C_Read... [12:02:53]Read from MH i2c: F0 [12:02:53]MH_I2C_Read... [12:02:53]Read from MH i2c: F0 09 00 [12:02:53]MH_I2C_Read... [12:02:53]Read from MH i2c: F0 09 00 7E 0D 00 EF B0 5D 66 6A 96 4A 66 95 [12:02:53]GetLastDocTimeStamp 1717415209 [12:02:53]current date 1717416175 [12:02:53]FM_GetShiftState [12:02:53]SAM_PROTO_GetShiftState [12:02:53]wFMCommunicate request_size=4 [12:02:53]MH_SAM_APDU [12:02:53]CAPDU: 80 13 01 00 [12:02:53]Write to MH i2c: E2 08 00 7F 0D 80 13 01 00 00 00 00 00 09 [12:02:53]Write i2c OK [12:02:53]MH_I2C_Read... [12:02:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:02:53]Read from MH i2c: E2 [12:02:53]MH_I2C_Read... [12:02:53]Read from MH i2c: E2 0E 00 [12:02:53]MH_I2C_Read... [12:02:53]Read from MH i2c: E2 0E 00 7F 0D 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 D5 [12:02:53]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [12:02:53]wFMCommunicate OK [12:02:53]SAM_PROTO_GetShiftState done [12:02:53]FM_GetShiftState done [12:02:53]opened in 1717373173 [12:02:53]opened+sec_in_day 1717459573 [12:02:53]quantity*price = 13000 [12:02:53]sum+1 = 13001 [12:02:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 0.00 Безнал.: 130.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 52 03.06.2024 12:02 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000875074 ФД: 63794 ФПД: 239451968677074 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T120255&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63794&fm=239451968677074&tin=02508201610067®Number=0000000000092737&sum=13000 0 [12:02:54]StoreToDocumentArchive [12:02:54]shift 373 fd 63794 [12:02:54]save to /storage/0373/doc_00063794 [12:02:54]save last doc name /storage/0373/doc_00063794 to /storage/kkm_last_doc_name [12:02:54]save OK [12:02:54]Clear old archive folders... [12:02:54]ProcessDocumentItem done err = 0, tmpTLVsize=276 [12:02:54]tlvbuf is 00CFFE00 [12:02:54]SAM_PROTO_ClearQueue [12:02:54]wFMCommunicate request_size=4 [12:02:54]MH_SAM_APDU [12:02:54]CAPDU: 80 09 00 00 [12:02:54]Write to MH i2c: E2 08 00 8C 0D 80 09 00 00 00 00 00 00 0B [12:02:54]Write i2c OK [12:02:54]MH_I2C_Read... [12:02:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:02:54]Read from MH i2c: E2 [12:02:54]MH_I2C_Read... [12:02:54]Read from MH i2c: E2 03 00 [12:02:54]MH_I2C_Read... [12:02:54]Read from MH i2c: E2 03 00 8C 0D 00 90 00 0D [12:02:54]RAPDU: 90 00 [12:02:54]wFMCommunicate OK [12:02:54]SAM_PROTO_ClearQueue done [12:02:54]KKMCreateOFDPacket [12:02:54]OFDProtocolAddRootSTLVToBuf [12:02:54]FM_MakeSignedData [12:02:54]FM_MakeSignedData [12:02:54]SAM_PROTO_SignData [12:02:54]wFMCommunicate request_size=4 [12:02:54]MH_SAM_APDU [12:02:54]CAPDU: 80 0D 01 02 [12:02:54]Write to MH i2c: E2 08 00 8D 0D 80 0D 01 02 00 00 00 00 13 [12:02:54]Write i2c OK [12:02:54]MH_I2C_Read... [12:02:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:02:54]Read from MH i2c: E2 [12:02:54]MH_I2C_Read... [12:02:54]Read from MH i2c: E2 03 00 [12:02:54]MH_I2C_Read... [12:02:54]Read from MH i2c: E2 03 00 8D 0D 00 90 00 0E [12:02:54]RAPDU: 90 00 [12:02:54]wFMCommunicate OK [12:02:54]wFMCommunicate request_size=255 [12:02:54]MH_SAM_APDU [12:02:54]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 EF B0 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 [12:02:54]Write to MH i2c: E2 02 01 8E 0D 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 EF B0 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 00 00 3D [12:02:54]Write i2c OK [12:02:54]MH_I2C_Read... [12:02:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:02:54]Read from MH i2c: E2 [12:02:54]MH_I2C_Read... [12:02:54]Read from MH i2c: E2 03 00 [12:02:54]MH_I2C_Read... [12:02:54]Read from MH i2c: E2 03 00 8E 0D 00 90 00 0F [12:02:54]RAPDU: 90 00 [12:02:54]wFMCommunicate OK [12:02:54]wFMCommunicate request_size=35 [12:02:54]MH_SAM_APDU [12:02:54]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 32 F9 00 00 35 04 06 00 D9 C7 C1 88 A4 D2 [12:02:54]Write to MH i2c: E2 26 00 8F 0D 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 32 F9 00 00 35 04 06 00 D9 C7 C1 88 A4 D2 00 00 92 [12:02:54]Write i2c OK [12:02:54]MH_I2C_Read... [12:02:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:02:54]Read from MH i2c: E2 [12:02:54]MH_I2C_Read... [12:02:54]Read from MH i2c: E2 03 00 [12:02:54]MH_I2C_Read... [12:02:54]Read from MH i2c: E2 03 00 8F 0D 00 90 00 10 [12:02:54]RAPDU: 90 00 [12:02:54]wFMCommunicate OK [12:02:54]wFMCommunicate request_size=4 [12:02:54]MH_SAM_APDU [12:02:54]CAPDU: 80 0D 03 02 [12:02:54]Write to MH i2c: E2 08 00 90 0D 80 0D 03 02 00 00 00 00 18 [12:02:54]Write i2c OK [12:02:54]MH_I2C_Read... [12:02:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:02:54]Read from MH i2c: E2 [12:02:54]MH_I2C_Read... [12:02:54]Read from MH i2c: E2 0B 00 [12:02:54]MH_I2C_Read... [12:02:54]Read from MH i2c: E2 0B 00 90 0D 00 B2 89 3C 32 BD 50 2B 3B 90 00 35 [12:02:54]RAPDU: B2 89 3C 32 BD 50 2B 3B 90 00 [12:02:54]wFMCommunicate OK [12:02:54]SAM_PROTO_SignData done [12:02:54]FM_MakeSignedData done [12:02:54]CreateOFDProtocolMessage [12:02:54]wFMCommunicate request_size=4 [12:02:54]MH_SAM_APDU [12:02:54]CAPDU: 80 11 00 00 [12:02:54]Write to MH i2c: E2 08 00 91 0D 80 11 00 00 00 00 00 00 18 [12:02:54]Write i2c OK [12:02:54]MH_I2C_Read... [12:02:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:02:54]Read from MH i2c: E2 [12:02:54]MH_I2C_Read... [12:02:54]Read from MH i2c: E2 17 00 [12:02:54]MH_I2C_Read... [12:02:54]Read from MH i2c: E2 17 00 91 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 6A [12:02:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [12:02:54]wFMCommunicate OK [12:02:54]CreateOFDProtocolMessage done [12:02:54]OFDSenderStorePacket 63794 [12:02:54]StoreOFDPacket docnum=63794 [12:02:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 28 01 00 00 02 7F 20 01 E1 1E 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 EF B0 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 32 F9 00 00 35 04 06 00 D9 C7 C1 88 A4 D2 B2 89 3C 32 BD 50 2B 3B [12:02:54]CheckFolder [12:02:54]dirname=/storage/ofd_packets [12:02:54]CheckFolder done [12:02:54]ProducePacketName [12:02:54]name=ofd_packets/00063794 [12:02:54]NVStorageSaveData ofd_packets/00063794 [12:02:54]File name is /storage/ofd_packets/00063794 [12:02:54]Write 326 bytes [12:02:54]NVStorageSaveData done [12:02:54]OFDSenderStorePacket done [12:02:54]KKMCreateOFDPacket done [12:02:54]NVStorageSaveData kkm_last_timestamp [12:02:54]File name is /storage/kkm_last_timestamp [12:02:54]Write 4 bytes [12:02:54]NVStorageSaveData done [12:02:54]ExternCall_PrintAddStr [12:02:54]wPrintStart [12:02:54]Write to MH i2c: 01 00 00 92 0D 9F [12:02:54]OFD Sender: Processing packet 63794 [packets to send 14, broken 13] [12:02:54]ProducePacketName [12:02:54]name=ofd_packets/00063794 [12:02:54]OFD Sender: To server: pG, [12:02:54]CommunicateWithHost lk.salyk.kg:30040 [12:02:54]ConnectInit lk.salyk.kg [12:02:54]Write i2c OK [12:02:54]MH_I2C_Read... [12:02:54]Read from MH i2c: 01 [12:02:54]MH_I2C_Read... [12:02:54]Read from MH i2c: 01 07 00 [12:02:54]MH_I2C_Read... [12:02:54]Read from MH i2c: 01 07 00 92 0D 00 00 00 00 00 FF 0F B4 [12:02:54]RasterBufferAndPrint [12:02:54]line Счет N : (3)73382 [12:02:54]line ИНН: 02508201610067 [12:02:54]line Контрольно-Кассовый Чек [12:02:54]line ПРОДАЖА [12:02:54]line Товар: 2000036230011 [12:02:54]line Кофе Латте XL(GABB TRADE) [12:02:54]line 1.000 * 130.00 [12:02:54]line = 130.00 [12:02:54]line НДС 12% НСП 1% [12:02:54]line > о реализуемом товаре [12:02:54]line ИТОГО: 130.00 [12:02:54]line НСП 1% : 1.15 [12:02:54]line НДС 12% : 13.80 [12:02:54]line Наличными: 0.00 [12:02:54]line Безнал.: 130.00 [12:02:54]line Место: АЗС № 117 "Партнер Нефть" [12:02:54]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [12:02:54]line СНО: Общий режим [12:02:54]line Чек 52 03.06.2024 12:02 [12:02:54]line Смена: 373 ФФД: 1.0 [12:02:54]line ЗНМ: 0300000031 [12:02:54]line РНМ: 0000000000092737 [12:02:54]line Версия ККМ: 001 [12:02:54]line Платежная система: АКБ Кыргызстан [12:02:54]line ФМ: 0000000000875074 [12:02:54]line ФД: 63794 [12:02:54]line ФПД: 239451968677074 [12:02:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T120255&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63794&fm=239451968677074&tin=02508201610067®Number=0000000000092737&sum=13000 [12:02:55]Connected sock=10 [12:02:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 28 01 00 00 02 7F 20 01 E1 1E 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 EF B0 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 32 F9 00 00 35 04 06 00 D9 C7 C1 88 A4 D2 B2 89 3C 32 BD 50 2B 3B [12:02:55]line 0 [12:02:55]written 0, free lines is 4095 [12:02:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 BC 26 47 00 B7 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 35 30 37 34 10 04 04 00 32 F9 00 00 F4 03 04 00 C0 5C 5D 66 B6 04 01 00 00 CC DD 4B 22 ED 52 06 23 [12:02:55]CommunicateWithHost err = 0 [12:02:55]CheckOFDResponse [12:02:55]1017 (14) - 77093643461234 [12:02:55]1041 (16) - 0000000000875074 [12:02:55]1040 (4) - 63794 [12:02:55]1012 (4) - 03.06.2024 06:03 [12:02:55]1206 (1) - 0 [12:02:55]OFD Sender: Remove packet 63794 [12:02:55]ProducePacketName [12:02:55]name=ofd_packets/00063794 [12:02:55]NVStorageDeleteData [12:02:55]Write to MH i2c: 01 00 00 BC 0D C9 [12:02:55]Write i2c OK [12:02:55]MH_I2C_Read... [12:02:55]Read from MH i2c: 01 [12:02:55]MH_I2C_Read... [12:02:55]Read from MH i2c: 01 07 00 [12:02:55]MH_I2C_Read... [12:02:55]Read from MH i2c: 01 07 00 BC 0D 00 00 00 00 00 E3 0C BF [12:02:55]RasterBufferAndPrint [12:02:55]line [12:02:55]line [12:02:55]line [12:02:55]line [12:02:55]line [12:02:55]written 0, free lines is 3305 [12:02:55]MH_Cut [12:02:55]Write to MH i2c: D1 01 00 C3 0D 01 A2 [12:02:55]Write i2c OK [12:02:55]MH_I2C_Read... [12:02:55]Read from MH i2c: D1 [12:02:55]MH_I2C_Read... [12:02:55]Read from MH i2c: D1 01 00 [12:02:55]MH_I2C_Read... [12:02:55]Read from MH i2c: D1 01 00 C3 0D 00 A1 [12:02:55]Write to MH i2c: 01 00 00 C4 0D D1 [12:02:55]Write i2c OK [12:02:55]MH_I2C_Read... [12:02:55]OFD Sender: No OFD packet to send [12:02:56]*** Cut start [12:02:56]*** Partial cut [12:02:56]*** CUTSNS_PIN = 1 [12:02:56]*** CUTSNS_PIN = 0 [12:02:56]*** Brake cut motor [12:02:57]Read from MH i2c: 01 [12:02:57]MH_I2C_Read... [12:02:57]*** Stop cut motor [12:02:57]*** Cut end [12:02:57]Read from MH i2c: 01 07 00 [12:02:57]MH_I2C_Read... [12:02:57]Read from MH i2c: 01 07 00 C4 0D 00 00 00 00 00 FF 0F E6 [12:02:57]process_action close_receipt done [12:02:57]requested_data is exist [12:02:57]produce_requested_data [12:02:57]requested_item fm.sn is exist - process it [12:02:57]wFMCommunicate request_size=4 [12:02:57]MH_SAM_APDU [12:02:57]CAPDU: 80 11 00 00 [12:02:57]Write to MH i2c: E2 08 00 C5 0D 80 11 00 00 00 00 00 00 4C [12:02:57]Write i2c OK [12:02:57]MH_I2C_Read... [12:02:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:02:57]Read from MH i2c: E2 [12:02:57]MH_I2C_Read... [12:02:57]Read from MH i2c: E2 17 00 [12:02:57]MH_I2C_Read... [12:02:57]Read from MH i2c: E2 17 00 C5 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 9E [12:02:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [12:02:57]wFMCommunicate OK [12:02:57]requested_item fd.num is exist - process it [12:02:57]SAM_PROTO_GetFieldsCounters [12:02:57]wFMCommunicate request_size=4 [12:02:57]MH_SAM_APDU [12:02:57]CAPDU: 80 13 00 00 [12:02:57]Write to MH i2c: E2 08 00 C6 0D 80 13 00 00 00 00 00 00 4F [12:02:57]Write i2c OK [12:02:57]MH_I2C_Read... [12:02:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:02:57]Read from MH i2c: E2 [12:02:57]MH_I2C_Read... [12:02:57]Read from MH i2c: E2 62 00 [12:02:57]MH_I2C_Read... [12:02:57]Read from MH i2c: E2 62 00 C6 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 32 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 AF [12:02: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 32 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:02:57]wFMCommunicate OK [12:02:57]SAM_PROTO_GetFieldsCounters done [12:02:57]requested_item shift.num is exist - process it [12:02:57]requested_item shift.opened is exist - process it [12:02:57]req_shift_opened [12:02:57]FM_GetShiftState [12:02:57]SAM_PROTO_GetShiftState [12:02:57]wFMCommunicate request_size=4 [12:02:57]MH_SAM_APDU [12:02:57]CAPDU: 80 13 01 00 [12:02:57]Write to MH i2c: E2 08 00 C7 0D 80 13 01 00 00 00 00 00 51 [12:02:57]Write i2c OK [12:02:57]MH_I2C_Read... [12:02:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:02:57]Read from MH i2c: E2 [12:02:57]MH_I2C_Read... [12:02:57]Read from MH i2c: E2 0E 00 [12:02:57]MH_I2C_Read... [12:02:57]Read from MH i2c: E2 0E 00 C7 0D 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 1D [12:02:57]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [12:02:57]wFMCommunicate OK [12:02:57]SAM_PROTO_GetShiftState done [12:02:57]FM_GetShiftState done [12:02:57]req_shift_opened done [12:02:57]requested_item shift.open_date is exist - process it [12:02:57]req_shift_open_date [12:02:57]req_shift_open_date done [12:02:57]produce_requested_data done [12:02:57]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63794,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [12:02:57]process_action_free close_receipt [12:02:57]json_value_free [12:02:57]json_value_free done [12:02:57]process_json_proto returns [12:02:57]Send response to host [12:02:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63794,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [12:02:57]free response buf [12:02:57]execute_script done [12:02:57]execute_script returns [12:02:57]free content buf [12:02:57]Sock 7.Close socket [12:02:57]Sock 7.Thread stoped [12:03:01]OFD Sender: No OFD packet to send [12:03:06]OFD Sender: No OFD packet to send [12:03:11]OFD Sender: No OFD packet to send [12:03:16]OFD Sender: No OFD packet to send [12:03:21]OFD Sender: No OFD packet to send [12:03:26]OFD Sender: No OFD packet to send [12:03:31]OFD Sender: No OFD packet to send [12:03:36]OFD Sender: No OFD packet to send [12:03:41]OFD Sender: No OFD packet to send [12:03:46]OFD Sender: No OFD packet to send [12:03:51]OFD Sender: No OFD packet to send [12:03:56]OFD Sender: No OFD packet to send [12:04:01]OFD Sender: No OFD packet to send [12:04:06]OFD Sender: No OFD packet to send [12:04:11]OFD Sender: No OFD packet to send [12:04:16]OFD Sender: No OFD packet to send [12:04:21]OFD Sender: No OFD packet to send [12:04:22]accept exits with 9 [12:04:22]New connection [12:04:22]New thread 3067374948 created [12:04:22]Thread 3067518308 joined [12:04:22]Waiting for new connection... [12:04:22] Sock 9.Parse request [12:04:22]Sock 9.Check first char [12:04:22]Sock 9.First char is OK [12:04:22]request: POST /json_proto HTTP/1.0 [12:04:22]Method: POST [12:04:22]URL: /json_proto [12:04:22]Method is POST - this is cgi request [12:04:22]url: /json_proto [12:04:22]query_string will be loaded in cgi processing [12:04:22]execute_cgi json_proto POST (null) [12:04:22]execute_cgi path=json_proto method=POST [12:04:22]POST find Content-Length [12:04:22]Host: 172.17.60.69:8080 [12:04:22]Content-Length: 620 [12:04:22]Content-Type: application/json [12:04:22] [12:04:22]POST finish read [12:04:22]Found Content-Length = 620 [12:04:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73383", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:04:22]execute_script... [12:04:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73383", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:04:22]POST & json_proto [12:04:22]process_json_proto [12:04:22]json parsed OK: [12:04:22]protocol is kg_v1.0 [12:04:22]action value=close_receipt [12:04:22]process_action close_receipt [12:04:22]cmd_close_receipt [12:04:22]MH_GetDate [12:04:22]Write to MH i2c: F0 00 00 C8 0D C4 [12:04:22]Write i2c OK [12:04:22]MH_I2C_Read... [12:04:22]Read from MH i2c: F0 [12:04:22]MH_I2C_Read... [12:04:22]Read from MH i2c: F0 09 00 [12:04:22]MH_I2C_Read... [12:04:22]Read from MH i2c: F0 09 00 C8 0D 00 49 B1 5D 66 6A 96 4A 66 3A [12:04:22]GetLastDocTimeStamp 1717416175 [12:04:22]current date 1717416265 [12:04:22]FM_GetShiftState [12:04:22]SAM_PROTO_GetShiftState [12:04:22]wFMCommunicate request_size=4 [12:04:22]MH_SAM_APDU [12:04:22]CAPDU: 80 13 01 00 [12:04:22]Write to MH i2c: E2 08 00 C9 0D 80 13 01 00 00 00 00 00 53 [12:04:22]Write i2c OK [12:04:22]MH_I2C_Read... [12:04:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:04:22]Read from MH i2c: E2 [12:04:22]MH_I2C_Read... [12:04:22]Read from MH i2c: E2 0E 00 [12:04:22]MH_I2C_Read... [12:04:22]Read from MH i2c: E2 0E 00 C9 0D 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 1F [12:04:22]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [12:04:22]wFMCommunicate OK [12:04:22]SAM_PROTO_GetShiftState done [12:04:22]FM_GetShiftState done [12:04:22]opened in 1717373173 [12:04:22]opened+sec_in_day 1717459573 [12:04:22]quantity*price = 14000 [12:04:22]sum+1 = 14001 [12:04:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 53 03.06.2024 12:04 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63795 ФПД: 220589571062685 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T120425&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63795&fm=220589571062685&tin=02508201610067®Number=0000000000092737&sum=14000 0 [12:04:24]StoreToDocumentArchive [12:04:24]shift 373 fd 63795 [12:04:24]save to /storage/0373/doc_00063795 [12:04:24]save last doc name /storage/0373/doc_00063795 to /storage/kkm_last_doc_name [12:04:24]save OK [12:04:24]Clear old archive folders... [12:04:24]ProcessDocumentItem done err = 0, tmpTLVsize=273 [12:04:24]tlvbuf is 00D46650 [12:04:24]SAM_PROTO_ClearQueue [12:04:24]wFMCommunicate request_size=4 [12:04:24]MH_SAM_APDU [12:04:24]CAPDU: 80 09 00 00 [12:04:24]Write to MH i2c: E2 08 00 D6 0D 80 09 00 00 00 00 00 00 55 [12:04:24]Write i2c OK [12:04:24]MH_I2C_Read... [12:04:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:04:24]Read from MH i2c: E2 [12:04:24]MH_I2C_Read... [12:04:24]Read from MH i2c: E2 03 00 [12:04:24]MH_I2C_Read... [12:04:24]Read from MH i2c: E2 03 00 D6 0D 00 90 00 57 [12:04:24]RAPDU: 90 00 [12:04:24]wFMCommunicate OK [12:04:24]SAM_PROTO_ClearQueue done [12:04:24]KKMCreateOFDPacket [12:04:24]OFDProtocolAddRootSTLVToBuf [12:04:24]FM_MakeSignedData [12:04:24]FM_MakeSignedData [12:04:24]SAM_PROTO_SignData [12:04:24]wFMCommunicate request_size=4 [12:04:24]MH_SAM_APDU [12:04:24]CAPDU: 80 0D 01 02 [12:04:24]Write to MH i2c: E2 08 00 D7 0D 80 0D 01 02 00 00 00 00 5D [12:04:24]Write i2c OK [12:04:24]MH_I2C_Read... [12:04:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:04:24]Read from MH i2c: E2 [12:04:24]MH_I2C_Read... [12:04:24]Read from MH i2c: E2 03 00 [12:04:24]MH_I2C_Read... [12:04:24]Read from MH i2c: E2 03 00 D7 0D 00 90 00 58 [12:04:24]RAPDU: 90 00 [12:04:24]wFMCommunicate OK [12:04:24]wFMCommunicate request_size=255 [12:04:24]MH_SAM_APDU [12:04:24]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 49 B1 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 [12:04:24]Write to MH i2c: E2 02 01 D8 0D 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 49 B1 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 00 00 BD [12:04:24]Write i2c OK [12:04:24]MH_I2C_Read... [12:04:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:04:24]Read from MH i2c: E2 [12:04:24]MH_I2C_Read... [12:04:24]Read from MH i2c: E2 03 00 [12:04:24]MH_I2C_Read... [12:04:24]Read from MH i2c: E2 03 00 D8 0D 00 90 00 59 [12:04:24]RAPDU: 90 00 [12:04:24]wFMCommunicate OK [12:04:24]wFMCommunicate request_size=32 [12:04:24]MH_SAM_APDU [12:04:24]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 35 30 37 34 10 04 04 00 33 F9 00 00 35 04 06 00 C8 A0 03 06 3B 9D [12:04:24]Write to MH i2c: E2 23 00 D9 0D 80 0D 02 02 1B 00 30 30 30 38 37 35 30 37 34 10 04 04 00 33 F9 00 00 35 04 06 00 C8 A0 03 06 3B 9D 00 00 31 [12:04:24]Write i2c OK [12:04:24]MH_I2C_Read... [12:04:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:04:24]Read from MH i2c: E2 [12:04:24]MH_I2C_Read... [12:04:24]Read from MH i2c: E2 03 00 [12:04:24]MH_I2C_Read... [12:04:24]Read from MH i2c: E2 03 00 D9 0D 00 90 00 5A [12:04:24]RAPDU: 90 00 [12:04:24]wFMCommunicate OK [12:04:24]wFMCommunicate request_size=4 [12:04:24]MH_SAM_APDU [12:04:24]CAPDU: 80 0D 03 02 [12:04:24]Write to MH i2c: E2 08 00 DA 0D 80 0D 03 02 00 00 00 00 62 [12:04:24]Write i2c OK [12:04:24]MH_I2C_Read... [12:04:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:04:24]Read from MH i2c: E2 [12:04:24]MH_I2C_Read... [12:04:24]Read from MH i2c: E2 0B 00 [12:04:24]MH_I2C_Read... [12:04:24]Read from MH i2c: E2 0B 00 DA 0D 00 5C F1 E1 04 6A 42 B2 06 90 00 F9 [12:04:24]RAPDU: 5C F1 E1 04 6A 42 B2 06 90 00 [12:04:24]wFMCommunicate OK [12:04:24]SAM_PROTO_SignData done [12:04:24]FM_MakeSignedData done [12:04:24]CreateOFDProtocolMessage [12:04:24]wFMCommunicate request_size=4 [12:04:24]MH_SAM_APDU [12:04:24]CAPDU: 80 11 00 00 [12:04:24]Write to MH i2c: E2 08 00 DB 0D 80 11 00 00 00 00 00 00 62 [12:04:24]Write i2c OK [12:04:24]MH_I2C_Read... [12:04:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:04:24]Read from MH i2c: E2 [12:04:24]MH_I2C_Read... [12:04:24]Read from MH i2c: E2 17 00 [12:04:24]MH_I2C_Read... [12:04:24]Read from MH i2c: E2 17 00 DB 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 B4 [12:04:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [12:04:24]wFMCommunicate OK [12:04:24]CreateOFDProtocolMessage done [12:04:24]OFDSenderStorePacket 63795 [12:04:24]StoreOFDPacket docnum=63795 [12:04:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 25 01 00 00 0B 71 1D 01 EC 69 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 49 B1 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 33 F9 00 00 35 04 06 00 C8 A0 03 06 3B 9D 5C F1 E1 04 6A 42 B2 06 [12:04:24]CheckFolder [12:04:24]dirname=/storage/ofd_packets [12:04:24]CheckFolder done [12:04:24]ProducePacketName [12:04:24]name=ofd_packets/00063795 [12:04:24]NVStorageSaveData ofd_packets/00063795 [12:04:24]File name is /storage/ofd_packets/00063795 [12:04:24]Write 323 bytes [12:04:24]NVStorageSaveData done [12:04:24]OFDSenderStorePacket done [12:04:24]KKMCreateOFDPacket done [12:04:24]NVStorageSaveData kkm_last_timestamp [12:04:24]File name is /storage/kkm_last_timestamp [12:04:24]Write 4 bytes [12:04:24]NVStorageSaveData done [12:04:24]ExternCall_PrintAddStr [12:04:24]wPrintStart [12:04:24]Write to MH i2c: 01 00 00 DC 0D E9 [12:04:24]Write i2c OK [12:04:24]MH_I2C_Read... [12:04:24]Read from MH i2c: 01 [12:04:24]MH_I2C_Read... [12:04:24]Read from MH i2c: 01 07 00 [12:04:24]MH_I2C_Read... [12:04:24]Read from MH i2c: 01 07 00 DC 0D 00 00 00 00 00 FF 0F FE [12:04:24]RasterBufferAndPrint [12:04:24]line Счет N : (3)73383 [12:04:24]line ИНН: 02508201610067 [12:04:24]line Контрольно-Кассовый Чек [12:04:24]line ПРОДАЖА [12:04:24]line Товар: 48743570 [12:04:24]line Сигареты Winston XStyle Blue [12:04:24]line 1.000 * 140.00 [12:04:24]line = 140.00 [12:04:24]line НДС 12% НСП 1% [12:04:24]line > о реализуемом товаре [12:04:24]line ИТОГО: 140.00 [12:04:24]line НСП 1% : 1.24 [12:04:24]line НДС 12% : 14.87 [12:04:24]line Наличными: 140.00 [12:04:24]line Безнал.: 0.00 [12:04:24]line Место: АЗС № 117 "Партнер Нефть" [12:04:24]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [12:04:24]line СНО: Общий режим [12:04:24]line Чек 53 03.06.2024 12:04 [12:04:24]line Смена: 373 ФФД: 1.0 [12:04:24]line ЗНМ: 0300000031 [12:04:24]line РНМ: 0000000000092737 [12:04:24]line Версия ККМ: 001 [12:04:24]line ФМ: 0000000000875074 [12:04:24]line ФД: 63795 [12:04:24]line ФПД: 220589571062685 [12:04:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T120425&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63795&fm=220589571062685&tin=02508201610067®Number=0000000000092737&sum=14000 [12:04:24]line 0 [12:04:24]OFD Sender: Processing packet 63795 [packets to send 14, broken 13] [12:04:24]ProducePacketName [12:04:24]name=ofd_packets/00063795 [12:04:24]OFD Sender: To server: pG, [12:04:24]CommunicateWithHost lk.salyk.kg:30040 [12:04:24]ConnectInit lk.salyk.kg [12:04:24]written 0, free lines is 4095 [12:04:25]Connected sock=10 [12:04:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 25 01 00 00 0B 71 1D 01 EC 69 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 49 B1 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 33 F9 00 00 35 04 06 00 C8 A0 03 06 3B 9D 5C F1 E1 04 6A 42 B2 06 [12:04:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 BE 33 47 00 2D 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 35 30 37 34 10 04 04 00 33 F9 00 00 F4 03 04 00 1A 5D 5D 66 B6 04 01 00 00 B2 BD D9 E5 58 48 8C 3B [12:04:25]CommunicateWithHost err = 0 [12:04:25]CheckOFDResponse [12:04:25]1017 (14) - 77093643461234 [12:04:25]1041 (16) - 0000000000875074 [12:04:25]1040 (4) - 63795 [12:04:25]1012 (4) - 03.06.2024 06:05 [12:04:25]1206 (1) - 0 [12:04:25]OFD Sender: Remove packet 63795 [12:04:25]ProducePacketName [12:04:25]name=ofd_packets/00063795 [12:04:25]NVStorageDeleteData [12:04:25]Write to MH i2c: 01 00 00 04 0E 12 [12:04:25]Write i2c OK [12:04:25]MH_I2C_Read... [12:04:25]Read from MH i2c: 01 [12:04:25]MH_I2C_Read... [12:04:25]Read from MH i2c: 01 07 00 [12:04:25]MH_I2C_Read... [12:04:25]Read from MH i2c: 01 07 00 04 0E 00 00 00 00 00 E2 0C 07 [12:04:25]RasterBufferAndPrint [12:04:25]line [12:04:25]line [12:04:25]line [12:04:25]line [12:04:25]line [12:04:25]written 0, free lines is 3303 [12:04:25]MH_Cut [12:04:25]Write to MH i2c: D1 01 00 0B 0E 01 EB [12:04:25]Write i2c OK [12:04:25]MH_I2C_Read... [12:04:25]Read from MH i2c: D1 [12:04:25]MH_I2C_Read... [12:04:25]Read from MH i2c: D1 01 00 [12:04:25]MH_I2C_Read... [12:04:25]Read from MH i2c: D1 01 00 0B 0E 00 EA [12:04:25]Write to MH i2c: 01 00 00 0C 0E 1A [12:04:25]Write i2c OK [12:04:25]MH_I2C_Read... [12:04:25]OFD Sender: No OFD packet to send [12:04:26]*** Cut start [12:04:26]*** Partial cut [12:04:26]*** CUTSNS_PIN = 1 [12:04:26]*** CUTSNS_PIN = 0 [12:04:26]*** Brake cut motor [12:04:26]Read from MH i2c: 01 [12:04:26]MH_I2C_Read... [12:04:26]*** Stop cut motor [12:04:26]*** Cut end [12:04:26]Read from MH i2c: 01 07 00 [12:04:26]MH_I2C_Read... [12:04:26]Read from MH i2c: 01 07 00 0C 0E 00 00 00 00 00 FF 0F 2F [12:04:26]process_action close_receipt done [12:04:26]requested_data is exist [12:04:26]produce_requested_data [12:04:26]requested_item fm.sn is exist - process it [12:04:26]wFMCommunicate request_size=4 [12:04:26]MH_SAM_APDU [12:04:26]CAPDU: 80 11 00 00 [12:04:26]Write to MH i2c: E2 08 00 0D 0E 80 11 00 00 00 00 00 00 95 [12:04:26]Write i2c OK [12:04:26]MH_I2C_Read... [12:04:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:04:26]Read from MH i2c: E2 [12:04:26]MH_I2C_Read... [12:04:26]Read from MH i2c: E2 17 00 [12:04:26]MH_I2C_Read... [12:04:26]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 35 30 37 34 90 00 E7 [12:04:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [12:04:26]wFMCommunicate OK [12:04:26]requested_item fd.num is exist - process it [12:04:26]SAM_PROTO_GetFieldsCounters [12:04:26]wFMCommunicate request_size=4 [12:04:26]MH_SAM_APDU [12:04:26]CAPDU: 80 13 00 00 [12:04:26]Write to MH i2c: E2 08 00 0E 0E 80 13 00 00 00 00 00 00 98 [12:04:26]Write i2c OK [12:04:26]MH_I2C_Read... [12:04:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:04:26]Read from MH i2c: E2 [12:04:26]MH_I2C_Read... [12:04:26]Read from MH i2c: E2 62 00 [12:04:26]MH_I2C_Read... [12:04:26]Read from MH i2c: E2 62 00 0E 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 33 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 FC [12:04:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 33 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:04:26]wFMCommunicate OK [12:04:26]SAM_PROTO_GetFieldsCounters done [12:04:26]requested_item shift.num is exist - process it [12:04:26]requested_item shift.opened is exist - process it [12:04:26]req_shift_opened [12:04:26]FM_GetShiftState [12:04:26]SAM_PROTO_GetShiftState [12:04:26]wFMCommunicate request_size=4 [12:04:26]MH_SAM_APDU [12:04:26]CAPDU: 80 13 01 00 [12:04:26]Write to MH i2c: E2 08 00 0F 0E 80 13 01 00 00 00 00 00 9A [12:04:26]Write i2c OK [12:04:26]MH_I2C_Read... [12:04:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:04:27]Read from MH i2c: E2 [12:04:27]MH_I2C_Read... [12:04:27]Read from MH i2c: E2 0E 00 [12:04:27]MH_I2C_Read... [12:04:27]Read from MH i2c: E2 0E 00 0F 0E 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 66 [12:04:27]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [12:04:27]wFMCommunicate OK [12:04:27]SAM_PROTO_GetShiftState done [12:04:27]FM_GetShiftState done [12:04:27]req_shift_opened done [12:04:27]requested_item shift.open_date is exist - process it [12:04:27]req_shift_open_date [12:04:27]req_shift_open_date done [12:04:27]produce_requested_data done [12:04:27]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63795,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [12:04:27]process_action_free close_receipt [12:04:27]json_value_free [12:04:27]json_value_free done [12:04:27]process_json_proto returns [12:04:27]Send response to host [12:04:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63795,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [12:04:27]free response buf [12:04:27]execute_script done [12:04:27]execute_script returns [12:04:27]free content buf [12:04:27]Sock 9.Close socket [12:04:27]Sock 9.Thread stoped [12:04:30]OFD Sender: No OFD packet to send [12:04:35]OFD Sender: No OFD packet to send [12:04:40]OFD Sender: No OFD packet to send [12:04:45]OFD Sender: No OFD packet to send [12:04:50]OFD Sender: No OFD packet to send [12:04:55]OFD Sender: No OFD packet to send [12:05:00]OFD Sender: No OFD packet to send [12:05:05]OFD Sender: No OFD packet to send [12:05:08]accept exits with 7 [12:05:08]New connection [12:05:08]New thread 3067518308 created [12:05:08]Thread 3067374948 joined [12:05:08]Waiting for new connection... [12:05:08] Sock 7.Parse request [12:05:08]Sock 7.Check first char [12:05:08]Sock 7.First char is OK [12:05:08]request: POST /json_proto HTTP/1.0 [12:05:08]Method: POST [12:05:08]URL: /json_proto [12:05:08]Method is POST - this is cgi request [12:05:08]url: /json_proto [12:05:08]query_string will be loaded in cgi processing [12:05:08]execute_cgi json_proto POST (null) [12:05:08]execute_cgi path=json_proto method=POST [12:05:08]POST find Content-Length [12:05:08]Host: 172.17.60.69:8080 [12:05:08]Content-Length: 1166 [12:05:08]Content-Type: application/json [12:05:08] [12:05:08]POST finish read [12:05:08]Found Content-Length = 1166 [12:05:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73384", "tax_sys" : 0, "items" : [ { "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4600338001623", "name": "\u0412\u043E\u0434\u0430 \u0424\u0440\u0443\u0442\u043E \u041D\u042F\u041D\u042F \u043D\u0435\u0433\u0430\u0437\u0438\u0440 \u0434/\u0434\u0435\u0442\u0435\u0439 0,33\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:05:08]execute_script... [12:05:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73384", "tax_sys" : 0, "items" : [ { "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4600338001623", "name": "\u0412\u043E\u0434\u0430 \u0424\u0440\u0443\u0442\u043E \u041D\u042F\u041D\u042F \u043D\u0435\u0433\u0430\u0437\u0438\u0440 \u0434/\u0434\u0435\u0442\u0435\u0439 0,33\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:05:08]POST & json_proto [12:05:08]process_json_proto [12:05:08]json parsed OK: [12:05:08]protocol is kg_v1.0 [12:05:08]action value=close_receipt [12:05:08]process_action close_receipt [12:05:08]cmd_close_receipt [12:05:08]MH_GetDate [12:05:08]Write to MH i2c: F0 00 00 10 0E 0D [12:05:08]Write i2c OK [12:05:08]MH_I2C_Read... [12:05:08]Read from MH i2c: F0 [12:05:08]MH_I2C_Read... [12:05:08]Read from MH i2c: F0 09 00 [12:05:08]MH_I2C_Read... [12:05:08]Read from MH i2c: F0 09 00 10 0E 00 76 B1 5D 66 6A 96 4A 66 B0 [12:05:08]GetLastDocTimeStamp 1717416265 [12:05:08]current date 1717416310 [12:05:08]FM_GetShiftState [12:05:08]SAM_PROTO_GetShiftState [12:05:08]wFMCommunicate request_size=4 [12:05:08]MH_SAM_APDU [12:05:08]CAPDU: 80 13 01 00 [12:05:08]Write to MH i2c: E2 08 00 11 0E 80 13 01 00 00 00 00 00 9C [12:05:08]Write i2c OK [12:05:08]MH_I2C_Read... [12:05:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:05:08]Read from MH i2c: E2 [12:05:08]MH_I2C_Read... [12:05:08]Read from MH i2c: E2 0E 00 [12:05:08]MH_I2C_Read... [12:05:08]Read from MH i2c: E2 0E 00 11 0E 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 68 [12:05:08]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [12:05:08]wFMCommunicate OK [12:05:08]SAM_PROTO_GetShiftState done [12:05:08]FM_GetShiftState done [12:05:08]opened in 1717373173 [12:05:08]opened+sec_in_day 1717459573 [12:05:08]quantity*price = 6000 [12:05:08]sum+1 = 6001 [12:05:08]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4600338001623 Вода Фруто НЯНЯ негазир д/детей 0,33л 1.000 * 80.00 = 80.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 0.00 Безнал.: 140.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 54 03.06.2024 12:05 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875074 ФД: 63796 ФПД: 90092287288430 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T120510&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63796&fm=90092287288430&tin=02508201610067®Number=0000000000092737&sum=14000 0 [12:05:09]StoreToDocumentArchive [12:05:09]shift 373 fd 63796 [12:05:09]save to /storage/0373/doc_00063796 [12:05:09]save last doc name /storage/0373/doc_00063796 to /storage/kkm_last_doc_name [12:05:09]save OK [12:05:09]Clear old archive folders... [12:05:09]ProcessDocumentItem done err = 0, tmpTLVsize=412 [12:05:09]tlvbuf is 00D2B280 [12:05:09]SAM_PROTO_ClearQueue [12:05:09]wFMCommunicate request_size=4 [12:05:09]MH_SAM_APDU [12:05:09]CAPDU: 80 09 00 00 [12:05:09]Write to MH i2c: E2 08 00 1E 0E 80 09 00 00 00 00 00 00 9E [12:05:09]Write i2c OK [12:05:09]MH_I2C_Read... [12:05:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:05:09]Read from MH i2c: E2 [12:05:09]MH_I2C_Read... [12:05:09]Read from MH i2c: E2 03 00 [12:05:09]MH_I2C_Read... [12:05:09]Read from MH i2c: E2 03 00 1E 0E 00 90 00 A0 [12:05:09]RAPDU: 90 00 [12:05:09]wFMCommunicate OK [12:05:09]SAM_PROTO_ClearQueue done [12:05:09]KKMCreateOFDPacket [12:05:09]OFDProtocolAddRootSTLVToBuf [12:05:09]FM_MakeSignedData [12:05:09]FM_MakeSignedData [12:05:09]SAM_PROTO_SignData [12:05:09]wFMCommunicate request_size=4 [12:05:09]MH_SAM_APDU [12:05:09]CAPDU: 80 0D 01 02 [12:05:09]Write to MH i2c: E2 08 00 1F 0E 80 0D 01 02 00 00 00 00 A6 [12:05:09]Write i2c OK [12:05:09]MH_I2C_Read... [12:05:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:05:09]Read from MH i2c: E2 [12:05:09]MH_I2C_Read... [12:05:09]Read from MH i2c: E2 03 00 [12:05:09]MH_I2C_Read... [12:05:09]Read from MH i2c: E2 03 00 1F 0E 00 90 00 A1 [12:05:09]RAPDU: 90 00 [12:05:09]wFMCommunicate OK [12:05:09]wFMCommunicate request_size=255 [12:05:09]MH_SAM_APDU [12:05:09]CAPDU: 80 0D 02 02 FA 03 00 9C 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 84 00 8A 04 0D 00 34 36 30 30 33 33 38 30 30 31 36 32 33 06 04 40 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 A4 D1 80 D1 83 D1 82 D0 BE 20 D0 9D D0 AF D0 9D D0 AF 20 D0 BD D0 B5 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 20 D0 B4 2F D0 B4 D0 B5 D1 82 D0 B5 D0 B9 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 [12:05:09]Write to MH i2c: E2 02 01 20 0E 80 0D 02 02 FA 00 03 00 9C 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 84 00 8A 04 0D 00 34 36 30 30 33 33 38 30 30 31 36 32 33 06 04 40 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 A4 D1 80 D1 83 D1 82 D0 BE 20 D0 9D D0 AF D0 9D D0 AF 20 D0 BD D0 B5 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 20 D0 B4 2F D0 B4 D0 B5 D1 82 D0 B5 D0 B9 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 00 00 4C [12:05:09]Write i2c OK [12:05:09]MH_I2C_Read... [12:05:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:05:09]Read from MH i2c: E2 [12:05:09]MH_I2C_Read... [12:05:09]Read from MH i2c: E2 03 00 [12:05:09]MH_I2C_Read... [12:05:09]Read from MH i2c: E2 03 00 20 0E 00 90 00 A2 [12:05:09]RAPDU: 90 00 [12:05:09]wFMCommunicate OK [12:05:09]wFMCommunicate request_size=171 [12:05:09]MH_SAM_APDU [12:05:09]CAPDU: 80 0D 02 02 A6 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 76 B1 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 34 F9 00 00 35 04 06 00 51 F0 3E C7 E4 6E [12:05:09]Write to MH i2c: E2 AE 00 21 0E 80 0D 02 02 A6 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 76 B1 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 34 F9 00 00 35 04 06 00 51 F0 3E C7 E4 6E 00 00 B1 [12:05:09]Write i2c OK [12:05:09]MH_I2C_Read... [12:05:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:05:09]Read from MH i2c: E2 [12:05:09]MH_I2C_Read... [12:05:09]Read from MH i2c: E2 03 00 [12:05:09]MH_I2C_Read... [12:05:09]Read from MH i2c: E2 03 00 21 0E 00 90 00 A3 [12:05:09]RAPDU: 90 00 [12:05:09]wFMCommunicate OK [12:05:09]wFMCommunicate request_size=4 [12:05:09]MH_SAM_APDU [12:05:09]CAPDU: 80 0D 03 02 [12:05:09]Write to MH i2c: E2 08 00 22 0E 80 0D 03 02 00 00 00 00 AB [12:05:09]Write i2c OK [12:05:09]MH_I2C_Read... [12:05:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:05:09]Read from MH i2c: E2 [12:05:09]MH_I2C_Read... [12:05:09]Read from MH i2c: E2 0B 00 [12:05:09]MH_I2C_Read... [12:05:09]Read from MH i2c: E2 0B 00 22 0E 00 56 27 C0 74 08 88 10 57 90 00 54 [12:05:09]RAPDU: 56 27 C0 74 08 88 10 57 90 00 [12:05:09]wFMCommunicate OK [12:05:09]SAM_PROTO_SignData done [12:05:09]FM_MakeSignedData done [12:05:09]CreateOFDProtocolMessage [12:05:09]wFMCommunicate request_size=4 [12:05:09]MH_SAM_APDU [12:05:09]CAPDU: 80 11 00 00 [12:05:09]Write to MH i2c: E2 08 00 23 0E 80 11 00 00 00 00 00 00 AB [12:05:09]Write i2c OK [12:05:09]MH_I2C_Read... [12:05:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:05:09]Read from MH i2c: E2 [12:05:09]MH_I2C_Read... [12:05:09]Read from MH i2c: E2 17 00 [12:05:09]MH_I2C_Read... [12:05:09]Read from MH i2c: E2 17 00 23 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 FD [12:05:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [12:05:09]wFMCommunicate OK [12:05:09]CreateOFDProtocolMessage done [12:05:09]OFDSenderStorePacket 63796 [12:05:09]StoreOFDPacket docnum=63796 [12:05:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 B0 01 00 00 09 B9 A8 01 AD 93 5A 03 01 00 03 00 9C 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 84 00 8A 04 0D 00 34 36 30 30 33 33 38 30 30 31 36 32 33 06 04 40 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 A4 D1 80 D1 83 D1 82 D0 BE 20 D0 9D D0 AF D0 9D D0 AF 20 D0 BD D0 B5 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 20 D0 B4 2F D0 B4 D0 B5 D1 82 D0 B5 D0 B9 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 76 B1 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 34 F9 00 00 35 04 06 00 51 F0 3E C7 E4 6E 56 27 C0 74 08 88 10 57 [12:05:09]CheckFolder [12:05:09]dirname=/storage/ofd_packets [12:05:09]CheckFolder done [12:05:10]ProducePacketName [12:05:10]name=ofd_packets/00063796 [12:05:10]NVStorageSaveData ofd_packets/00063796 [12:05:10]File name is /storage/ofd_packets/00063796 [12:05:10]Write 462 bytes [12:05:10]NVStorageSaveData done [12:05:10]OFDSenderStorePacket done [12:05:10]KKMCreateOFDPacket done [12:05:10]NVStorageSaveData kkm_last_timestamp [12:05:10]File name is /storage/kkm_last_timestamp [12:05:10]Write 4 bytes [12:05:10]NVStorageSaveData done [12:05:10]ExternCall_PrintAddStr [12:05:10]wPrintStart [12:05:10]Write to MH i2c: 01 00 00 24 0E 32 [12:05:10]Write i2c OK [12:05:10]MH_I2C_Read... [12:05:10]Read from MH i2c: 01 [12:05:10]MH_I2C_Read... [12:05:10]Read from MH i2c: 01 07 00 [12:05:10]MH_I2C_Read... [12:05:10]Read from MH i2c: 01 07 00 24 0E 00 00 00 00 00 FF 0F 47 [12:05:10]RasterBufferAndPrint [12:05:10]line Счет N : (3)73384 [12:05:10]line ИНН: 02508201610067 [12:05:10]line Контрольно-Кассовый Чек [12:05:10]line ПРОДАЖА [12:05:10]line Товар: 4700000310043 [12:05:10]line Вода Жалалабат 27 1л [12:05:10]line 1.000 * 60.00 [12:05:10]line = 60.00 [12:05:10]line НДС 12% НСП 1% [12:05:10]line > о реализуемом товаре [12:05:10]line Товар: 4600338001623 [12:05:10]line Вода Фруто НЯНЯ негазир д/детей 0,33л [12:05:10]line 1.000 * 80.00 [12:05:10]line = 80.00 [12:05:10]line НДС 12% НСП 1% [12:05:10]line > о реализуемом товаре [12:05:10]line ИТОГО: 140.00 [12:05:10]line НСП 1% : 1.24 [12:05:10]line НДС 12% : 14.87 [12:05:10]line Наличными: 0.00 [12:05:10]line Безнал.: 140.00 [12:05:10]line Место: АЗС № 117 "Партнер Нефть" [12:05:10]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [12:05:10]line СНО: Общий режим [12:05:10]line Чек 54 03.06.2024 12:05 [12:05:10]OFD Sender: Processing packet 63796 [packets to send 14, broken 13] [12:05:10]ProducePacketName [12:05:10]name=ofd_packets/00063796 [12:05:10]OFD Sender: To server: pG, [12:05:10]CommunicateWithHost lk.salyk.kg:30040 [12:05:10]ConnectInit lk.salyk.kg [12:05:10]line Смена: 373 ФФД: 1.0 [12:05:10]line ЗНМ: 0300000031 [12:05:10]line РНМ: 0000000000092737 [12:05:10]line Версия ККМ: 001 [12:05:10]line Платежная система: Бакай Банк [12:05:10]line ФМ: 0000000000875074 [12:05:10]line ФД: 63796 [12:05:10]line ФПД: 90092287288430 [12:05:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T120510&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63796&fm=90092287288430&tin=02508201610067®Number=0000000000092737&sum=14000 [12:05:10]line 0 [12:05:10]written 0, free lines is 4095 [12:05:10]Connected sock=9 [12:05:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 B0 01 00 00 09 B9 A8 01 AD 93 5A 03 01 00 03 00 9C 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 84 00 8A 04 0D 00 34 36 30 30 33 33 38 30 30 31 36 32 33 06 04 40 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 A4 D1 80 D1 83 D1 82 D0 BE 20 D0 9D D0 AF D0 9D D0 AF 20 D0 BD D0 B5 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 20 D0 B4 2F D0 B4 D0 B5 D1 82 D0 B5 D0 B9 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 76 B1 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 34 F9 00 00 35 04 06 00 51 F0 3E C7 E4 6E 56 27 C0 74 08 88 10 57 [12:05:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 5E 2C 47 00 17 63 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 34 F9 00 00 F4 03 04 00 47 5D 5D 66 B6 04 01 00 00 F2 90 5D D1 D7 D0 5D E3 [12:05:10]CommunicateWithHost err = 0 [12:05:10]CheckOFDResponse [12:05:10]1017 (14) - 77093643461234 [12:05:10]1041 (16) - 0000000000875074 [12:05:10]1040 (4) - 63796 [12:05:10]1012 (4) - 03.06.2024 06:05 [12:05:10]1206 (1) - 0 [12:05:10]OFD Sender: Remove packet 63796 [12:05:10]ProducePacketName [12:05:10]name=ofd_packets/00063796 [12:05:10]NVStorageDeleteData [12:05:10]Write to MH i2c: 01 00 00 55 0E 63 [12:05:10]Write i2c OK [12:05:10]MH_I2C_Read... [12:05:10]Read from MH i2c: 01 [12:05:10]MH_I2C_Read... [12:05:10]Read from MH i2c: 01 07 00 [12:05:10]MH_I2C_Read... [12:05:10]Read from MH i2c: 01 07 00 55 0E 00 00 00 00 00 69 0C DF [12:05:10]RasterBufferAndPrint [12:05:10]line [12:05:10]line [12:05:10]line [12:05:10]line [12:05:10]line [12:05:10]written 0, free lines is 3183 [12:05:10]MH_Cut [12:05:10]Write to MH i2c: D1 01 00 5C 0E 01 3C [12:05:10]Write i2c OK [12:05:10]MH_I2C_Read... [12:05:10]Read from MH i2c: D1 [12:05:10]MH_I2C_Read... [12:05:10]Read from MH i2c: D1 01 00 [12:05:10]MH_I2C_Read... [12:05:10]Read from MH i2c: D1 01 00 5C 0E 00 3B [12:05:10]Write to MH i2c: 01 00 00 5D 0E 6B [12:05:10]Write i2c OK [12:05:10]MH_I2C_Read... [12:05:11]OFD Sender: No OFD packet to send [12:05:11]*** Cut start [12:05:11]*** Partial cut [12:05:11]*** CUTSNS_PIN = 1 [12:05:11]*** CUTSNS_PIN = 0 [12:05:11]*** Brake cut motor [12:05:12]Read from MH i2c: 01 [12:05:12]MH_I2C_Read... [12:05:12]*** Stop cut motor [12:05:12]*** Cut end [12:05:12]Read from MH i2c: 01 07 00 [12:05:12]MH_I2C_Read... [12:05:12]Read from MH i2c: 01 07 00 5D 0E 00 00 00 00 00 FF 0F 80 [12:05:12]process_action close_receipt done [12:05:12]requested_data is exist [12:05:12]produce_requested_data [12:05:12]requested_item fm.sn is exist - process it [12:05:12]wFMCommunicate request_size=4 [12:05:12]MH_SAM_APDU [12:05:12]CAPDU: 80 11 00 00 [12:05:12]Write to MH i2c: E2 08 00 5E 0E 80 11 00 00 00 00 00 00 E6 [12:05:12]Write i2c OK [12:05:12]MH_I2C_Read... [12:05:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:05:12]Read from MH i2c: E2 [12:05:12]MH_I2C_Read... [12:05:12]Read from MH i2c: E2 17 00 [12:05:12]MH_I2C_Read... [12:05:12]Read from MH i2c: E2 17 00 5E 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 38 [12:05:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [12:05:12]wFMCommunicate OK [12:05:12]requested_item fd.num is exist - process it [12:05:12]SAM_PROTO_GetFieldsCounters [12:05:12]wFMCommunicate request_size=4 [12:05:12]MH_SAM_APDU [12:05:12]CAPDU: 80 13 00 00 [12:05:12]Write to MH i2c: E2 08 00 5F 0E 80 13 00 00 00 00 00 00 E9 [12:05:12]Write i2c OK [12:05:12]MH_I2C_Read... [12:05:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:05:12]Read from MH i2c: E2 [12:05:12]MH_I2C_Read... [12:05:12]Read from MH i2c: E2 62 00 [12:05:12]MH_I2C_Read... [12:05:12]Read from MH i2c: E2 62 00 5F 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 34 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 51 [12:05:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 34 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:05:12]wFMCommunicate OK [12:05:12]SAM_PROTO_GetFieldsCounters done [12:05:12]requested_item shift.num is exist - process it [12:05:12]requested_item shift.opened is exist - process it [12:05:12]req_shift_opened [12:05:12]FM_GetShiftState [12:05:12]SAM_PROTO_GetShiftState [12:05:12]wFMCommunicate request_size=4 [12:05:12]MH_SAM_APDU [12:05:12]CAPDU: 80 13 01 00 [12:05:12]Write to MH i2c: E2 08 00 60 0E 80 13 01 00 00 00 00 00 EB [12:05:12]Write i2c OK [12:05:12]MH_I2C_Read... [12:05:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:05:12]Read from MH i2c: E2 [12:05:12]MH_I2C_Read... [12:05:12]Read from MH i2c: E2 0E 00 [12:05:12]MH_I2C_Read... [12:05:12]Read from MH i2c: E2 0E 00 60 0E 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 B7 [12:05:12]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [12:05:12]wFMCommunicate OK [12:05:12]SAM_PROTO_GetShiftState done [12:05:12]FM_GetShiftState done [12:05:12]req_shift_opened done [12:05:12]requested_item shift.open_date is exist - process it [12:05:12]req_shift_open_date [12:05:12]req_shift_open_date done [12:05:12]produce_requested_data done [12:05:12]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63796,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [12:05:12]process_action_free close_receipt [12:05:12]json_value_free [12:05:12]json_value_free done [12:05:12]process_json_proto returns [12:05:12]Send response to host [12:05:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63796,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [12:05:12]free response buf [12:05:12]execute_script done [12:05:12]execute_script returns [12:05:12]free content buf [12:05:12]Sock 7.Close socket [12:05:12]Sock 7.Thread stoped [12:05:16]OFD Sender: No OFD packet to send [12:05:21]OFD Sender: No OFD packet to send [12:05:26]OFD Sender: No OFD packet to send [12:05:31]OFD Sender: No OFD packet to send [12:05:36]OFD Sender: No OFD packet to send [12:05:41]OFD Sender: No OFD packet to send [12:05:46]OFD Sender: No OFD packet to send [12:05:51]OFD Sender: No OFD packet to send [12:05:56]OFD Sender: No OFD packet to send [12:06:01]OFD Sender: No OFD packet to send [12:06:06]OFD Sender: No OFD packet to send [12:06:11]OFD Sender: No OFD packet to send [12:06:16]OFD Sender: No OFD packet to send [12:06:21]OFD Sender: No OFD packet to send [12:06:26]OFD Sender: No OFD packet to send [12:06:31]OFD Sender: No OFD packet to send [12:06:36]OFD Sender: No OFD packet to send [12:06:41]OFD Sender: No OFD packet to send [12:06:46]OFD Sender: No OFD packet to send [12:06:51]OFD Sender: No OFD packet to send [12:06:56]OFD Sender: No OFD packet to send [12:07:01]OFD Sender: No OFD packet to send [12:07:06]OFD Sender: No OFD packet to send [12:07:11]OFD Sender: No OFD packet to send [12:07:16]OFD Sender: No OFD packet to send [12:07:21]OFD Sender: No OFD packet to send [12:07:26]OFD Sender: No OFD packet to send [12:07:31]OFD Sender: No OFD packet to send [12:07:36]OFD Sender: No OFD packet to send [12:07:41]OFD Sender: No OFD packet to send [12:07:46]OFD Sender: No OFD packet to send [12:07:51]OFD Sender: No OFD packet to send [12:07:56]OFD Sender: No OFD packet to send [12:08:01]OFD Sender: No OFD packet to send [12:08:06]OFD Sender: No OFD packet to send [12:08:11]OFD Sender: No OFD packet to send [12:08:16]OFD Sender: No OFD packet to send [12:08:21]OFD Sender: No OFD packet to send [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:21]OFD Sender: No OFD packet to send [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:11]OFD Sender: No OFD packet to send [12:10:16]OFD Sender: No OFD packet to send [12:10:21]OFD Sender: No OFD packet to send [12:10:26]OFD Sender: No OFD packet to send [12:10:31]OFD Sender: No OFD packet to send [12:10:36]OFD Sender: No OFD packet to send [12:10:41]OFD Sender: No OFD packet to send [12:10:46]OFD Sender: No OFD packet to send [12:10:51]OFD Sender: No OFD packet to send [12:10:56]OFD Sender: No OFD packet to send [12:11:01]OFD Sender: No OFD packet to send [12:11:06]OFD Sender: No OFD packet to send [12:11:11]OFD Sender: No OFD packet to send [12:11:16]OFD Sender: No OFD packet to send [12:11:21]OFD Sender: No OFD packet to send [12:11:26]OFD Sender: No OFD packet to send [12:11:31]OFD Sender: No OFD packet to send [12:11:36]OFD Sender: No OFD packet to send [12:11:41]OFD Sender: No OFD packet to send [12:11:46]OFD Sender: No OFD packet to send [12:11:51]OFD Sender: No OFD packet to send [12:11:56]OFD Sender: No OFD packet to send [12:12:01]OFD Sender: No OFD packet to send [12:12:06]OFD Sender: No OFD packet to send [12:12:11]OFD Sender: No OFD packet to send [12:12:16]OFD Sender: No OFD packet to send [12:12:21]OFD Sender: No OFD packet to send [12:12:26]OFD Sender: No OFD packet to send [12:12:31]OFD Sender: No OFD packet to send [12:12:36]OFD Sender: No OFD packet to send [12:12:41]OFD Sender: No OFD packet to send [12:12:46]OFD Sender: No OFD packet to send [12:12:51]OFD Sender: No OFD packet to send [12:12:56]OFD Sender: No OFD packet to send [12:13:01]OFD Sender: No OFD packet to send [12:13:06]OFD Sender: No OFD packet to send [12:13:11]OFD Sender: No OFD packet to send [12:13:16]OFD Sender: No OFD packet to send [12:13:21]OFD Sender: No OFD packet to send [12:13:26]OFD Sender: No OFD packet to send [12:13:31]OFD Sender: No OFD packet to send [12:13:36]OFD Sender: No OFD packet to send [12:13:41]OFD Sender: No OFD packet to send [12:13:46]OFD Sender: No OFD packet to send [12:13:51]OFD Sender: No OFD packet to send [12:13:56]OFD Sender: No OFD packet to send [12:14:01]OFD Sender: No OFD packet to send [12:14:06]OFD Sender: No OFD packet to send [12:14:11]OFD Sender: No OFD packet to send [12:14:16]OFD Sender: No OFD packet to send [12:14:21]OFD Sender: No OFD packet to send [12:14:25]accept exits with 10 [12:14:25]New connection [12:14:25]New thread 3067374948 created [12:14:25]Thread 3067518308 joined [12:14:25]Waiting for new connection... [12:14:25] Sock 10.Parse request [12:14:25]Sock 10.Check first char [12:14:25]Sock 10.First char is OK [12:14:25]request: POST /json_proto HTTP/1.0 [12:14:25]Method: POST [12:14:25]URL: /json_proto [12:14:25]Method is POST - this is cgi request [12:14:25]url: /json_proto [12:14:25]query_string will be loaded in cgi processing [12:14:25]execute_cgi json_proto POST (null) [12:14:25]execute_cgi path=json_proto method=POST [12:14:25]POST find Content-Length [12:14:25]Host: 172.17.60.69:8080 [12:14:25]Content-Length: 674 [12:14:25]Content-Type: application/json [12:14:25] [12:14:25]POST finish read [12:14:25]Found Content-Length = 674 [12:14:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73385", "tax_sys" : 0, "items" : [ { "code": "4870235681376", "name": "\u0427\u0418\u041F\u0421\u042B SLANG \u0421\u041E \u0412\u041A\u0423\u0421\u041E\u041C \u041A\u0420\u0410\u0411 60\u0413", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:14:25]execute_script... [12:14:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73385", "tax_sys" : 0, "items" : [ { "code": "4870235681376", "name": "\u0427\u0418\u041F\u0421\u042B SLANG \u0421\u041E \u0412\u041A\u0423\u0421\u041E\u041C \u041A\u0420\u0410\u0411 60\u0413", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:14:25]POST & json_proto [12:14:25]process_json_proto [12:14:25]json parsed OK: [12:14:25]protocol is kg_v1.0 [12:14:25]action value=close_receipt [12:14:25]process_action close_receipt [12:14:25]cmd_close_receipt [12:14:25]MH_GetDate [12:14:25]Write to MH i2c: F0 00 00 61 0E 5E [12:14:25]Write i2c OK [12:14:25]MH_I2C_Read... [12:14:25]Read from MH i2c: F0 [12:14:25]MH_I2C_Read... [12:14:25]Read from MH i2c: F0 09 00 [12:14:25]MH_I2C_Read... [12:14:25]Read from MH i2c: F0 09 00 61 0E 00 A3 B3 5D 66 6A 96 4A 66 30 [12:14:25]GetLastDocTimeStamp 1717416310 [12:14:25]current date 1717416867 [12:14:25]FM_GetShiftState [12:14:25]SAM_PROTO_GetShiftState [12:14:25]wFMCommunicate request_size=4 [12:14:25]MH_SAM_APDU [12:14:25]CAPDU: 80 13 01 00 [12:14:25]Write to MH i2c: E2 08 00 62 0E 80 13 01 00 00 00 00 00 ED [12:14:25]Write i2c OK [12:14:25]MH_I2C_Read... [12:14:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:14:25]Read from MH i2c: E2 [12:14:25]MH_I2C_Read... [12:14:25]Read from MH i2c: E2 0E 00 [12:14:25]MH_I2C_Read... [12:14:25]Read from MH i2c: E2 0E 00 62 0E 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 B9 [12:14:25]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [12:14:25]wFMCommunicate OK [12:14:25]SAM_PROTO_GetShiftState done [12:14:25]FM_GetShiftState done [12:14:25]opened in 1717373173 [12:14:25]opened+sec_in_day 1717459573 [12:14:25]quantity*price = 9500 [12:14:25]sum+1 = 9501 [12:14:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 95.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 55 03.06.2024 12:14 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63797 ФПД: 27760344441032 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T121428&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63797&fm=27760344441032&tin=02508201610067®Number=0000000000092737&sum=9500 0 [12:14:26]StoreToDocumentArchive [12:14:26]shift 373 fd 63797 [12:14:26]save to /storage/0373/doc_00063797 [12:14:26]save last doc name /storage/0373/doc_00063797 to /storage/kkm_last_doc_name [12:14:26]save OK [12:14:26]Clear old archive folders... [12:14:26]ProcessDocumentItem done err = 0, tmpTLVsize=290 [12:14:26]tlvbuf is 00D53170 [12:14:26]SAM_PROTO_ClearQueue [12:14:26]wFMCommunicate request_size=4 [12:14:26]MH_SAM_APDU [12:14:26]CAPDU: 80 09 00 00 [12:14:26]Write to MH i2c: E2 08 00 6F 0E 80 09 00 00 00 00 00 00 EF [12:14:26]Write i2c OK [12:14:26]MH_I2C_Read... [12:14:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:14:27]Read from MH i2c: E2 [12:14:27]MH_I2C_Read... [12:14:27]Read from MH i2c: E2 03 00 [12:14:27]MH_I2C_Read... [12:14:27]Read from MH i2c: E2 03 00 6F 0E 00 90 00 F1 [12:14:27]RAPDU: 90 00 [12:14:27]wFMCommunicate OK [12:14:27]SAM_PROTO_ClearQueue done [12:14:27]KKMCreateOFDPacket [12:14:27]OFDProtocolAddRootSTLVToBuf [12:14:27]FM_MakeSignedData [12:14:27]FM_MakeSignedData [12:14:27]SAM_PROTO_SignData [12:14:27]wFMCommunicate request_size=4 [12:14:27]MH_SAM_APDU [12:14:27]CAPDU: 80 0D 01 02 [12:14:27]Write to MH i2c: E2 08 00 70 0E 80 0D 01 02 00 00 00 00 F7 [12:14:27]Write i2c OK [12:14:27]MH_I2C_Read... [12:14:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:14:27]Read from MH i2c: E2 [12:14:27]MH_I2C_Read... [12:14:27]Read from MH i2c: E2 03 00 [12:14:27]MH_I2C_Read... [12:14:27]Read from MH i2c: E2 03 00 70 0E 00 90 00 F2 [12:14:27]RAPDU: 90 00 [12:14:27]wFMCommunicate OK [12:14:27]wFMCommunicate request_size=255 [12:14:27]MH_SAM_APDU [12:14:27]CAPDU: 80 0D 02 02 FA 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 33 37 36 06 04 30 00 D0 A7 D0 98 D0 9F D0 A1 D0 AB 20 53 4C 41 4E 47 20 D0 A1 D0 9E 20 D0 92 D0 9A D0 A3 D0 A1 D0 9E D0 9C 20 D0 9A D0 A0 D0 90 D0 91 20 36 30 D0 93 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 A4 B3 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 [12:14:27]Write to MH i2c: E2 02 01 71 0E 80 0D 02 02 FA 00 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 33 37 36 06 04 30 00 D0 A7 D0 98 D0 9F D0 A1 D0 AB 20 53 4C 41 4E 47 20 D0 A1 D0 9E 20 D0 92 D0 9A D0 A3 D0 A1 D0 9E D0 9C 20 D0 9A D0 A0 D0 90 D0 91 20 36 30 D0 93 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 A4 B3 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 00 00 FA [12:14:27]Write i2c OK [12:14:27]MH_I2C_Read... [12:14:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:14:27]Read from MH i2c: E2 [12:14:27]MH_I2C_Read... [12:14:27]Read from MH i2c: E2 03 00 [12:14:27]MH_I2C_Read... [12:14:27]Read from MH i2c: E2 03 00 71 0E 00 90 00 F3 [12:14:27]RAPDU: 90 00 [12:14:27]wFMCommunicate OK [12:14:27]wFMCommunicate request_size=49 [12:14:27]MH_SAM_APDU [12:14:27]CAPDU: 80 0D 02 02 2C 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 35 F9 00 00 35 04 06 00 19 3F 75 78 20 C8 [12:14:27]Write to MH i2c: E2 34 00 72 0E 80 0D 02 02 2C 00 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 35 F9 00 00 35 04 06 00 19 3F 75 78 20 C8 00 00 84 [12:14:27]Write i2c OK [12:14:27]MH_I2C_Read... [12:14:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:14:27]Read from MH i2c: E2 [12:14:27]MH_I2C_Read... [12:14:27]Read from MH i2c: E2 03 00 [12:14:27]MH_I2C_Read... [12:14:27]Read from MH i2c: E2 03 00 72 0E 00 90 00 F4 [12:14:27]RAPDU: 90 00 [12:14:27]wFMCommunicate OK [12:14:27]wFMCommunicate request_size=4 [12:14:27]MH_SAM_APDU [12:14:27]CAPDU: 80 0D 03 02 [12:14:27]Write to MH i2c: E2 08 00 73 0E 80 0D 03 02 00 00 00 00 FC [12:14:27]Write i2c OK [12:14:27]MH_I2C_Read... [12:14:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:14:27]Read from MH i2c: E2 [12:14:27]MH_I2C_Read... [12:14:27]Read from MH i2c: E2 0B 00 [12:14:27]MH_I2C_Read... [12:14:27]Read from MH i2c: E2 0B 00 73 0E 00 E5 AA 12 13 B4 5D 74 10 90 00 46 [12:14:27]RAPDU: E5 AA 12 13 B4 5D 74 10 90 00 [12:14:27]wFMCommunicate OK [12:14:27]SAM_PROTO_SignData done [12:14:27]FM_MakeSignedData done [12:14:27]CreateOFDProtocolMessage [12:14:27]wFMCommunicate request_size=4 [12:14:27]MH_SAM_APDU [12:14:27]CAPDU: 80 11 00 00 [12:14:27]Write to MH i2c: E2 08 00 74 0E 80 11 00 00 00 00 00 00 FC [12:14:27]Write i2c OK [12:14:27]MH_I2C_Read... [12:14:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:14:27]Read from MH i2c: E2 [12:14:27]MH_I2C_Read... [12:14:27]Read from MH i2c: E2 17 00 [12:14:27]MH_I2C_Read... [12:14:27]Read from MH i2c: E2 17 00 74 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 4E [12:14:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [12:14:27]wFMCommunicate OK [12:14:27]CreateOFDProtocolMessage done [12:14:27]OFDSenderStorePacket 63797 [12:14:27]StoreOFDPacket docnum=63797 [12:14:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 36 01 00 00 CC 65 2E 01 BC C3 5A 03 01 00 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 33 37 36 06 04 30 00 D0 A7 D0 98 D0 9F D0 A1 D0 AB 20 53 4C 41 4E 47 20 D0 A1 D0 9E 20 D0 92 D0 9A D0 A3 D0 A1 D0 9E D0 9C 20 D0 9A D0 A0 D0 90 D0 91 20 36 30 D0 93 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 A4 B3 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 35 F9 00 00 35 04 06 00 19 3F 75 78 20 C8 E5 AA 12 13 B4 5D 74 10 [12:14:27]CheckFolder [12:14:27]dirname=/storage/ofd_packets [12:14:27]CheckFolder done [12:14:27]ProducePacketName [12:14:27]name=ofd_packets/00063797 [12:14:27]NVStorageSaveData ofd_packets/00063797 [12:14:27]File name is /storage/ofd_packets/00063797 [12:14:27]Write 340 bytes [12:14:27]NVStorageSaveData done [12:14:27]OFDSenderStorePacket done [12:14:27]KKMCreateOFDPacket done [12:14:27]NVStorageSaveData kkm_last_timestamp [12:14:27]File name is /storage/kkm_last_timestamp [12:14:27]Write 4 bytes [12:14:27]NVStorageSaveData done [12:14:27]ExternCall_PrintAddStr [12:14:27]wPrintStart [12:14:27]Write to MH i2c: 01 00 00 75 0E 83 [12:14:27]Write i2c OK [12:14:27]MH_I2C_Read... [12:14:27]Read from MH i2c: 01 [12:14:27]MH_I2C_Read... [12:14:27]Read from MH i2c: 01 07 00 [12:14:27]MH_I2C_Read... [12:14:27]Read from MH i2c: 01 07 00 75 0E 00 00 00 00 00 FF 0F 98 [12:14:27]RasterBufferAndPrint [12:14:27]line Счет N : (3)73385 [12:14:27]line ИНН: 02508201610067 [12:14:27]line Контрольно-Кассовый Чек [12:14:27]line ПРОДАЖА [12:14:27]line Товар: 4870235681376 [12:14:27]line ЧИПСЫ SLANG СО ВКУСОМ КРАБ 60Г [12:14:27]line 1.000 * 95.00 [12:14:27]line = 95.00 [12:14:27]line НДС 12% НСП 1% [12:14:27]line > о реализуемом товаре [12:14:27]line ИТОГО: 95.00 [12:14:27]line НСП 1% : 0.84 [12:14:27]line НДС 12% : 10.09 [12:14:27]line Наличными: 95.00 [12:14:27]line Безнал.: 0.00 [12:14:27]line Место: АЗС № 117 "Партнер Нефть" [12:14:27]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [12:14:27]line СНО: Общий режим [12:14:27]line Чек 55 03.06.2024 12:14 [12:14:27]line Смена: 373 ФФД: 1.0 [12:14:27]line ЗНМ: 0300000031 [12:14:27]line РНМ: 0000000000092737 [12:14:27]line Версия ККМ: 001 [12:14:27]line ФМ: 0000000000875074 [12:14:27]line ФД: 63797 [12:14:27]line ФПД: 27760344441032 [12:14:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T121428&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63797&fm=27760344441032&tin=02508201610067®Number=0000000000092737&sum=9500 [12:14:27]OFD Sender: Processing packet 63797 [packets to send 14, broken 13] [12:14:27]ProducePacketName [12:14:27]name=ofd_packets/00063797 [12:14:27]OFD Sender: To server: pG, [12:14:27]CommunicateWithHost lk.salyk.kg:30040 [12:14:27]ConnectInit lk.salyk.kg [12:14:27]line 0 [12:14:27]written 0, free lines is 4095 [12:14:27]Connected sock=7 [12:14:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 36 01 00 00 CC 65 2E 01 BC C3 5A 03 01 00 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 33 37 36 06 04 30 00 D0 A7 D0 98 D0 9F D0 A1 D0 AB 20 53 4C 41 4E 47 20 D0 A1 D0 9E 20 D0 92 D0 9A D0 A3 D0 A1 D0 9E D0 9C 20 D0 9A D0 A0 D0 90 D0 91 20 36 30 D0 93 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 A4 B3 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 35 F9 00 00 35 04 06 00 19 3F 75 78 20 C8 E5 AA 12 13 B4 5D 74 10 [12:14:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 C3 00 47 00 68 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 35 30 37 34 10 04 04 00 35 F9 00 00 F4 03 04 00 75 5F 5D 66 B6 04 01 00 00 E2 8A 33 03 B0 48 1F F5 [12:14:28]CommunicateWithHost err = 0 [12:14:28]CheckOFDResponse [12:14:28]1017 (14) - 77093643461234 [12:14:28]1041 (16) - 0000000000875074 [12:14:28]1040 (4) - 63797 [12:14:28]1012 (4) - 03.06.2024 06:15 [12:14:28]1206 (1) - 0 [12:14:28]OFD Sender: Remove packet 63797 [12:14:28]ProducePacketName [12:14:28]name=ofd_packets/00063797 [12:14:28]NVStorageDeleteData [12:14:28]Write to MH i2c: 01 00 00 9E 0E AC [12:14:28]Write i2c OK [12:14:28]MH_I2C_Read... [12:14:28]Read from MH i2c: 01 [12:14:28]MH_I2C_Read... [12:14:28]Read from MH i2c: 01 07 00 [12:14:28]MH_I2C_Read... [12:14:28]Read from MH i2c: 01 07 00 9E 0E 00 00 00 00 00 DA 0C 99 [12:14:28]RasterBufferAndPrint [12:14:28]line [12:14:28]line [12:14:28]line [12:14:28]line [12:14:28]line [12:14:28]written 0, free lines is 3297 [12:14:28]MH_Cut [12:14:28]Write to MH i2c: D1 01 00 A5 0E 01 85 [12:14:28]Write i2c OK [12:14:28]MH_I2C_Read... [12:14:28]Read from MH i2c: D1 [12:14:28]MH_I2C_Read... [12:14:28]Read from MH i2c: D1 01 00 [12:14:28]MH_I2C_Read... [12:14:28]Read from MH i2c: D1 01 00 A5 0E 00 84 [12:14:28]Write to MH i2c: 01 00 00 A6 0E B4 [12:14:28]Write i2c OK [12:14:28]MH_I2C_Read... [12:14:28]OFD Sender: No OFD packet to send [12:14:29]*** Cut start [12:14:29]*** Partial cut [12:14:29]*** CUTSNS_PIN = 1 [12:14:29]*** CUTSNS_PIN = 0 [12:14:29]*** Brake cut motor [12:14:29]Read from MH i2c: 01 [12:14:29]MH_I2C_Read... [12:14:29]*** Stop cut motor [12:14:29]*** Cut end [12:14:29]Read from MH i2c: 01 07 00 [12:14:29]MH_I2C_Read... [12:14:29]Read from MH i2c: 01 07 00 A6 0E 00 00 00 00 00 FF 0F C9 [12:14:29]process_action close_receipt done [12:14:29]requested_data is exist [12:14:29]produce_requested_data [12:14:29]requested_item fm.sn is exist - process it [12:14:29]wFMCommunicate request_size=4 [12:14:29]MH_SAM_APDU [12:14:29]CAPDU: 80 11 00 00 [12:14:29]Write to MH i2c: E2 08 00 A7 0E 80 11 00 00 00 00 00 00 2F [12:14:29]Write i2c OK [12:14:29]MH_I2C_Read... [12:14:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:14:29]Read from MH i2c: E2 [12:14:29]MH_I2C_Read... [12:14:29]Read from MH i2c: E2 17 00 [12:14:29]MH_I2C_Read... [12:14:29]Read from MH i2c: E2 17 00 A7 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 81 [12:14:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [12:14:29]wFMCommunicate OK [12:14:29]requested_item fd.num is exist - process it [12:14:29]SAM_PROTO_GetFieldsCounters [12:14:29]wFMCommunicate request_size=4 [12:14:29]MH_SAM_APDU [12:14:29]CAPDU: 80 13 00 00 [12:14:29]Write to MH i2c: E2 08 00 A8 0E 80 13 00 00 00 00 00 00 32 [12:14:29]Write i2c OK [12:14:29]MH_I2C_Read... [12:14:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:14:29]Read from MH i2c: E2 [12:14:29]MH_I2C_Read... [12:14:29]Read from MH i2c: E2 62 00 [12:14:29]MH_I2C_Read... [12:14:29]Read from MH i2c: E2 62 00 A8 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 35 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 9E [12:14: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 35 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:14:29]wFMCommunicate OK [12:14:29]SAM_PROTO_GetFieldsCounters done [12:14:29]requested_item shift.num is exist - process it [12:14:29]requested_item shift.opened is exist - process it [12:14:29]req_shift_opened [12:14:29]FM_GetShiftState [12:14:29]SAM_PROTO_GetShiftState [12:14:29]wFMCommunicate request_size=4 [12:14:29]MH_SAM_APDU [12:14:29]CAPDU: 80 13 01 00 [12:14:29]Write to MH i2c: E2 08 00 A9 0E 80 13 01 00 00 00 00 00 34 [12:14:29]Write i2c OK [12:14:29]MH_I2C_Read... [12:14:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:14:30]Read from MH i2c: E2 [12:14:30]MH_I2C_Read... [12:14:30]Read from MH i2c: E2 0E 00 [12:14:30]MH_I2C_Read... [12:14:30]Read from MH i2c: E2 0E 00 A9 0E 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 00 [12:14:30]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [12:14:30]wFMCommunicate OK [12:14:30]SAM_PROTO_GetShiftState done [12:14:30]FM_GetShiftState done [12:14:30]req_shift_opened done [12:14:30]requested_item shift.open_date is exist - process it [12:14:30]req_shift_open_date [12:14:30]req_shift_open_date done [12:14:30]produce_requested_data done [12:14:30]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63797,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [12:14:30]process_action_free close_receipt [12:14:30]json_value_free [12:14:30]json_value_free done [12:14:30]process_json_proto returns [12:14:30]Send response to host [12:14:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63797,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [12:14:30]free response buf [12:14:30]execute_script done [12:14:30]execute_script returns [12:14:30]free content buf [12:14:30]Sock 10.Close socket [12:14:30]Sock 10.Thread stoped [12:14:33]OFD Sender: No OFD packet to send [12:14:38]OFD Sender: No OFD packet to send [12:14:43]OFD Sender: No OFD packet to send [12:14:48]OFD Sender: No OFD packet to send [12:14:53]OFD Sender: No OFD packet to send [12:14:58]OFD Sender: No OFD packet to send [12:15:03]OFD Sender: No OFD packet to send [12:15:08]OFD Sender: No OFD packet to send [12:15:13]OFD Sender: No OFD packet to send [12:15:18]OFD Sender: No OFD packet to send [12:15:23]OFD Sender: No OFD packet to send [12:15:28]OFD Sender: No OFD packet to send [12:15:33]OFD Sender: No OFD packet to send [12:15:38]OFD Sender: No OFD packet to send [12:15:43]OFD Sender: No OFD packet to send [12:15:48]OFD Sender: No OFD packet to send [12:15:53]OFD Sender: No OFD packet to send [12:15:58]OFD Sender: No OFD packet to send [12:16:03]OFD Sender: No OFD packet to send [12:16:08]OFD Sender: No OFD packet to send [12:16:13]OFD Sender: No OFD packet to send [12:16:18]OFD Sender: No OFD packet to send [12:16:23]OFD Sender: No OFD packet to send [12:16:28]OFD Sender: No OFD packet to send [12:16:29]accept exits with 9 [12:16:29]New connection [12:16:29]New thread 3067518308 created [12:16:29]Thread 3067374948 joined [12:16:29]Waiting for new connection... [12:16:29] Sock 9.Parse request [12:16:29]Sock 9.Check first char [12:16:29]Sock 9.First char is OK [12:16:29]request: POST /json_proto HTTP/1.0 [12:16:29]Method: POST [12:16:29]URL: /json_proto [12:16:29]Method is POST - this is cgi request [12:16:29]url: /json_proto [12:16:29]query_string will be loaded in cgi processing [12:16:29]execute_cgi json_proto POST (null) [12:16:29]execute_cgi path=json_proto method=POST [12:16:29]POST find Content-Length [12:16:29]Host: 172.17.60.69:8080 [12:16:29]Content-Length: 1212 [12:16:29]Content-Type: application/json [12:16:29] [12:16:29]POST finish read [12:16:29]Found Content-Length = 1212 [12:16:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73386", "tax_sys" : 0, "items" : [ { "code": "4870202521247", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u0447\u0435\u0440\u043D.\u043F\u0435\u0440\u0441\u0438\u043A", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "8904103304060", "name": "\u041F\u0440\u0435\u0437\u0435\u0440\u0432\u0430\u0442\u0438\u0432 ITEX \u0436\u0435\u0432 \u0440\u0435\u0437\u0438\u043D\u043A\u0430 3 \u0448\u0442", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 265.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:16:29]execute_script... [12:16:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73386", "tax_sys" : 0, "items" : [ { "code": "4870202521247", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u0447\u0435\u0440\u043D.\u043F\u0435\u0440\u0441\u0438\u043A", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "8904103304060", "name": "\u041F\u0440\u0435\u0437\u0435\u0440\u0432\u0430\u0442\u0438\u0432 ITEX \u0436\u0435\u0432 \u0440\u0435\u0437\u0438\u043D\u043A\u0430 3 \u0448\u0442", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 265.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:16:29]POST & json_proto [12:16:29]process_json_proto [12:16:29]json parsed OK: [12:16:29]protocol is kg_v1.0 [12:16:29]action value=close_receipt [12:16:29]process_action close_receipt [12:16:29]cmd_close_receipt [12:16:29]MH_GetDate [12:16:29]Write to MH i2c: F0 00 00 AA 0E A7 [12:16:29]Write i2c OK [12:16:29]MH_I2C_Read... [12:16:29]Read from MH i2c: F0 [12:16:29]MH_I2C_Read... [12:16:29]Read from MH i2c: F0 09 00 [12:16:29]MH_I2C_Read... [12:16:29]Read from MH i2c: F0 09 00 AA 0E 00 20 B4 5D 66 6A 96 4A 66 F7 [12:16:29]GetLastDocTimeStamp 1717416868 [12:16:29]current date 1717416992 [12:16:29]FM_GetShiftState [12:16:29]SAM_PROTO_GetShiftState [12:16:29]wFMCommunicate request_size=4 [12:16:29]MH_SAM_APDU [12:16:29]CAPDU: 80 13 01 00 [12:16:29]Write to MH i2c: E2 08 00 AB 0E 80 13 01 00 00 00 00 00 36 [12:16:29]Write i2c OK [12:16:29]MH_I2C_Read... [12:16:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:16:29]Read from MH i2c: E2 [12:16:29]MH_I2C_Read... [12:16:29]Read from MH i2c: E2 0E 00 [12:16:29]MH_I2C_Read... [12:16:29]Read from MH i2c: E2 0E 00 AB 0E 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 02 [12:16:29]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [12:16:29]wFMCommunicate OK [12:16:29]SAM_PROTO_GetShiftState done [12:16:29]FM_GetShiftState done [12:16:29]opened in 1717373173 [12:16:29]opened+sec_in_day 1717459573 [12:16:29]quantity*price = 12500 [12:16:29]sum+1 = 12501 [12:16:29]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 8904103304060 Презерватив ITEX жев резинка 3 шт 1.000 * 140.00 = 140.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 265.00 НСП 1% : 2.35 НДС 12% : 28.14 Наличными: 0.00 Безнал.: 265.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 56 03.06.2024 12:16 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000875074 ФД: 63798 ФПД: 85877932549230 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T121632&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63798&fm=85877932549230&tin=02508201610067®Number=0000000000092737&sum=26500 0 [12:16:31]StoreToDocumentArchive [12:16:31]shift 373 fd 63798 [12:16:31]save to /storage/0373/doc_00063798 [12:16:31]save last doc name /storage/0373/doc_00063798 to /storage/kkm_last_doc_name [12:16:31]save OK [12:16:31]Clear old archive folders... [12:16:31]ProcessDocumentItem done err = 0, tmpTLVsize=422 [12:16:31]tlvbuf is 00D2A8C0 [12:16:31]SAM_PROTO_ClearQueue [12:16:31]wFMCommunicate request_size=4 [12:16:31]MH_SAM_APDU [12:16:31]CAPDU: 80 09 00 00 [12:16:31]Write to MH i2c: E2 08 00 B8 0E 80 09 00 00 00 00 00 00 38 [12:16:31]Write i2c OK [12:16:31]MH_I2C_Read... [12:16:31]Read from MH i2c: E2 [12:16:31]MH_I2C_Read... [12:16:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:16:31]Read from MH i2c: E2 03 00 [12:16:31]MH_I2C_Read... [12:16:31]Read from MH i2c: E2 03 00 B8 0E 00 90 00 3A [12:16:31]RAPDU: 90 00 [12:16:31]wFMCommunicate OK [12:16:31]SAM_PROTO_ClearQueue done [12:16:31]KKMCreateOFDPacket [12:16:31]OFDProtocolAddRootSTLVToBuf [12:16:31]FM_MakeSignedData [12:16:31]FM_MakeSignedData [12:16:31]SAM_PROTO_SignData [12:16:31]wFMCommunicate request_size=4 [12:16:31]MH_SAM_APDU [12:16:31]CAPDU: 80 0D 01 02 [12:16:31]Write to MH i2c: E2 08 00 B9 0E 80 0D 01 02 00 00 00 00 40 [12:16:31]Write i2c OK [12:16:31]MH_I2C_Read... [12:16:31]Read from MH i2c: E2 [12:16:31]MH_I2C_Read... [12:16:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:16:31]Read from MH i2c: E2 03 00 [12:16:31]MH_I2C_Read... [12:16:31]Read from MH i2c: E2 03 00 B9 0E 00 90 00 3B [12:16:31]RAPDU: 90 00 [12:16:31]wFMCommunicate OK [12:16:31]wFMCommunicate request_size=255 [12:16:31]MH_SAM_APDU [12:16:31]CAPDU: 80 0D 02 02 FA 03 00 A6 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 34 37 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D1 87 D0 B5 D1 80 D0 BD 2E D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7C 00 8A 04 0D 00 38 39 30 34 31 30 33 33 30 34 30 36 30 06 04 38 00 D0 9F D1 80 D0 B5 D0 B7 D0 B5 D1 80 D0 B2 D0 B0 D1 82 D0 B8 D0 B2 20 49 54 45 58 20 D0 B6 D0 B5 D0 B2 20 D1 80 D0 B5 D0 B7 D0 B8 D0 BD D0 BA D0 B0 20 33 20 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 [12:16:31]Write to MH i2c: E2 02 01 BA 0E 80 0D 02 02 FA 00 03 00 A6 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 34 37 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D1 87 D0 B5 D1 80 D0 BD 2E D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7C 00 8A 04 0D 00 38 39 30 34 31 30 33 33 30 34 30 36 30 06 04 38 00 D0 9F D1 80 D0 B5 D0 B7 D0 B5 D1 80 D0 B2 D0 B0 D1 82 D0 B8 D0 B2 20 49 54 45 58 20 D0 B6 D0 B5 D0 B2 20 D1 80 D0 B5 D0 B7 D0 B8 D0 BD D0 BA D0 B0 20 33 20 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 00 00 DC [12:16:31]Write i2c OK [12:16:31]MH_I2C_Read... [12:16:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:16:31]Read from MH i2c: E2 [12:16:31]MH_I2C_Read... [12:16:31]Read from MH i2c: E2 03 00 [12:16:31]MH_I2C_Read... [12:16:31]Read from MH i2c: E2 03 00 BA 0E 00 90 00 3C [12:16:31]RAPDU: 90 00 [12:16:31]wFMCommunicate OK [12:16:31]wFMCommunicate request_size=181 [12:16:31]MH_SAM_APDU [12:16:31]CAPDU: 80 0D 02 02 B0 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 67 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 84 67 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 20 B4 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 36 F9 00 00 35 04 06 00 4E 1B 03 A9 E4 6E [12:16:31]Write to MH i2c: E2 B8 00 BB 0E 80 0D 02 02 B0 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 67 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 84 67 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 20 B4 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 36 F9 00 00 35 04 06 00 4E 1B 03 A9 E4 6E 00 00 49 [12:16:31]Write i2c OK [12:16:31]MH_I2C_Read... [12:16:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:16:31]Read from MH i2c: E2 [12:16:31]MH_I2C_Read... [12:16:31]Read from MH i2c: E2 03 00 [12:16:31]MH_I2C_Read... [12:16:31]Read from MH i2c: E2 03 00 BB 0E 00 90 00 3D [12:16:31]RAPDU: 90 00 [12:16:31]wFMCommunicate OK [12:16:31]wFMCommunicate request_size=4 [12:16:31]MH_SAM_APDU [12:16:31]CAPDU: 80 0D 03 02 [12:16:31]Write to MH i2c: E2 08 00 BC 0E 80 0D 03 02 00 00 00 00 45 [12:16:31]Write i2c OK [12:16:31]MH_I2C_Read... [12:16:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:16:32]Read from MH i2c: E2 [12:16:32]MH_I2C_Read... [12:16:32]Read from MH i2c: E2 0B 00 [12:16:32]MH_I2C_Read... [12:16:32]Read from MH i2c: E2 0B 00 BC 0E 00 AA 95 55 B8 33 44 7C 44 90 00 C9 [12:16:32]RAPDU: AA 95 55 B8 33 44 7C 44 90 00 [12:16:32]wFMCommunicate OK [12:16:32]SAM_PROTO_SignData done [12:16:32]FM_MakeSignedData done [12:16:32]CreateOFDProtocolMessage [12:16:32]wFMCommunicate request_size=4 [12:16:32]MH_SAM_APDU [12:16:32]CAPDU: 80 11 00 00 [12:16:32]Write to MH i2c: E2 08 00 BD 0E 80 11 00 00 00 00 00 00 45 [12:16:32]Write i2c OK [12:16:32]MH_I2C_Read... [12:16:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:16:32]Read from MH i2c: E2 [12:16:32]MH_I2C_Read... [12:16:32]Read from MH i2c: E2 17 00 [12:16:32]MH_I2C_Read... [12:16:32]Read from MH i2c: E2 17 00 BD 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 97 [12:16:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [12:16:32]wFMCommunicate OK [12:16:32]CreateOFDProtocolMessage done [12:16:32]OFDSenderStorePacket 63798 [12:16:32]StoreOFDPacket docnum=63798 [12:16:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 BA 01 00 00 F2 44 B2 01 6B 84 5A 03 01 00 03 00 A6 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 34 37 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D1 87 D0 B5 D1 80 D0 BD 2E D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7C 00 8A 04 0D 00 38 39 30 34 31 30 33 33 30 34 30 36 30 06 04 38 00 D0 9F D1 80 D0 B5 D0 B7 D0 B5 D1 80 D0 B2 D0 B0 D1 82 D0 B8 D0 B2 20 49 54 45 58 20 D0 B6 D0 B5 D0 B2 20 D1 80 D0 B5 D0 B7 D0 B8 D0 BD D0 BA D0 B0 20 33 20 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 67 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 84 67 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 20 B4 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 36 F9 00 00 35 04 06 00 4E 1B 03 A9 E4 6E AA 95 55 B8 33 44 7C 44 [12:16:32]CheckFolder [12:16:32]dirname=/storage/ofd_packets [12:16:32]CheckFolder done [12:16:32]ProducePacketName [12:16:32]name=ofd_packets/00063798 [12:16:32]NVStorageSaveData ofd_packets/00063798 [12:16:32]File name is /storage/ofd_packets/00063798 [12:16:32]Write 472 bytes [12:16:32]NVStorageSaveData done [12:16:32]OFDSenderStorePacket done [12:16:32]KKMCreateOFDPacket done [12:16:32]NVStorageSaveData kkm_last_timestamp [12:16:32]File name is /storage/kkm_last_timestamp [12:16:32]Write 4 bytes [12:16:32]NVStorageSaveData done [12:16:32]ExternCall_PrintAddStr [12:16:32]wPrintStart [12:16:32]Write to MH i2c: 01 00 00 BE 0E CC [12:16:32]Write i2c OK [12:16:32]MH_I2C_Read... [12:16:32]Read from MH i2c: 01 [12:16:32]MH_I2C_Read... [12:16:32]Read from MH i2c: 01 07 00 [12:16:32]MH_I2C_Read... [12:16:32]Read from MH i2c: 01 07 00 BE 0E 00 00 00 00 00 FF 0F E1 [12:16:32]RasterBufferAndPrint [12:16:32]line Счет N : (3)73386 [12:16:32]line ИНН: 02508201610067 [12:16:32]line Контрольно-Кассовый Чек [12:16:32]line ПРОДАЖА [12:16:32]line Товар: 4870202521247 [12:16:32]line Напиток MAXI чай 1,2 черн.персик [12:16:32]line 1.000 * 125.00 [12:16:32]line = 125.00 [12:16:32]line НДС 12% НСП 1% [12:16:32]line > о реализуемом товаре [12:16:32]line Товар: 8904103304060 [12:16:32]line Презерватив ITEX жев резинка 3 шт [12:16:32]line 1.000 * 140.00 [12:16:32]line = 140.00 [12:16:32]line НДС 12% НСП 1% [12:16:32]line > о реализуемом товаре [12:16:32]line ИТОГО: 265.00 [12:16:32]line НСП 1% : 2.35 [12:16:32]line НДС 12% : 28.14 [12:16:32]line Наличными: 0.00 [12:16:32]line Безнал.: 265.00 [12:16:32]line Место: АЗС № 117 "Партнер Нефть" [12:16:32]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [12:16:32]line СНО: Общий режим [12:16:32]line Чек 56 03.06.2024 12:16 [12:16:32]line Смена: 373 ФФД: 1.0 [12:16:32]line ЗНМ: 0300000031 [12:16:32]line РНМ: 0000000000092737 [12:16:32]line Версия ККМ: 001 [12:16:32]line Платежная система: АКБ Кыргызстан [12:16:32]line ФМ: 0000000000875074 [12:16:32]line ФД: 63798 [12:16:32]line ФПД: 85877932549230 [12:16:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T121632&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63798&fm=85877932549230&tin=02508201610067®Number=0000000000092737&sum=26500 [12:16:32]line 0 [12:16:32]written 0, free lines is 4095 [12:16:32]OFD Sender: Processing packet 63798 [packets to send 14, broken 13] [12:16:32]ProducePacketName [12:16:32]name=ofd_packets/00063798 [12:16:32]OFD Sender: To server: pG, [12:16:32]CommunicateWithHost lk.salyk.kg:30040 [12:16:32]ConnectInit lk.salyk.kg [12:16:32]Connected sock=11 [12:16:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 BA 01 00 00 F2 44 B2 01 6B 84 5A 03 01 00 03 00 A6 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 34 37 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D1 87 D0 B5 D1 80 D0 BD 2E D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7C 00 8A 04 0D 00 38 39 30 34 31 30 33 33 30 34 30 36 30 06 04 38 00 D0 9F D1 80 D0 B5 D0 B7 D0 B5 D1 80 D0 B2 D0 B0 D1 82 D0 B8 D0 B2 20 49 54 45 58 20 D0 B6 D0 B5 D0 B2 20 D1 80 D0 B5 D0 B7 D0 B8 D0 BD D0 BA D0 B0 20 33 20 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 67 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 84 67 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 20 B4 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 36 F9 00 00 35 04 06 00 4E 1B 03 A9 E4 6E AA 95 55 B8 33 44 7C 44 [12:16:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 9D 68 47 00 34 7D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 36 F9 00 00 F4 03 04 00 F1 5F 5D 66 B6 04 01 00 00 97 76 C4 45 89 79 AA 19 [12:16:32]CommunicateWithHost err = 0 [12:16:32]CheckOFDResponse [12:16:32]1017 (14) - 77093643461234 [12:16:32]1041 (16) - 0000000000875074 [12:16:32]1040 (4) - 63798 [12:16:32]1012 (4) - 03.06.2024 06:17 [12:16:32]1206 (1) - 0 [12:16:32]OFD Sender: Remove packet 63798 [12:16:32]ProducePacketName [12:16:32]name=ofd_packets/00063798 [12:16:32]NVStorageDeleteData [12:16:32]Write to MH i2c: 01 00 00 F0 0E FE [12:16:32]Write i2c OK [12:16:32]MH_I2C_Read... [12:16:32]Read from MH i2c: 01 [12:16:32]MH_I2C_Read... [12:16:32]Read from MH i2c: 01 07 00 [12:16:32]MH_I2C_Read... [12:16:32]Read from MH i2c: 01 07 00 F0 0E 00 00 00 00 00 4C 0C 5D [12:16:32]RasterBufferAndPrint [12:16:32]line [12:16:32]line [12:16:32]line [12:16:32]line [12:16:32]line [12:16:32]written 0, free lines is 3153 [12:16:32]MH_Cut [12:16:32]Write to MH i2c: D1 01 00 F7 0E 01 D7 [12:16:32]Write i2c OK [12:16:32]MH_I2C_Read... [12:16:32]Read from MH i2c: D1 [12:16:32]MH_I2C_Read... [12:16:32]Read from MH i2c: D1 01 00 [12:16:32]MH_I2C_Read... [12:16:32]Read from MH i2c: D1 01 00 F7 0E 00 D6 [12:16:32]Write to MH i2c: 01 00 00 F8 0E 06 [12:16:32]Write i2c OK [12:16:32]MH_I2C_Read... [12:16:32]OFD Sender: No OFD packet to send [12:16:33]*** Cut start [12:16:33]*** Partial cut [12:16:33]*** CUTSNS_PIN = 1 [12:16:33]*** CUTSNS_PIN = 0 [12:16:33]*** Brake cut motor [12:16:34]Read from MH i2c: 01 [12:16:34]MH_I2C_Read... [12:16:34]*** Stop cut motor [12:16:34]*** Cut end [12:16:34]Read from MH i2c: 01 07 00 [12:16:34]MH_I2C_Read... [12:16:34]Read from MH i2c: 01 07 00 F8 0E 00 00 00 00 00 FF 0F 1B [12:16:34]process_action close_receipt done [12:16:34]requested_data is exist [12:16:34]produce_requested_data [12:16:34]requested_item fm.sn is exist - process it [12:16:34]wFMCommunicate request_size=4 [12:16:34]MH_SAM_APDU [12:16:34]CAPDU: 80 11 00 00 [12:16:34]Write to MH i2c: E2 08 00 F9 0E 80 11 00 00 00 00 00 00 81 [12:16:34]Write i2c OK [12:16:34]MH_I2C_Read... [12:16:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:16:34]Read from MH i2c: E2 [12:16:34]MH_I2C_Read... [12:16:34]Read from MH i2c: E2 17 00 [12:16:34]MH_I2C_Read... [12:16:34]Read from MH i2c: E2 17 00 F9 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 D3 [12:16:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [12:16:34]wFMCommunicate OK [12:16:34]requested_item fd.num is exist - process it [12:16:34]SAM_PROTO_GetFieldsCounters [12:16:34]wFMCommunicate request_size=4 [12:16:34]MH_SAM_APDU [12:16:34]CAPDU: 80 13 00 00 [12:16:34]Write to MH i2c: E2 08 00 FA 0E 80 13 00 00 00 00 00 00 84 [12:16:34]Write i2c OK [12:16:34]MH_I2C_Read... [12:16:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:16:34]Read from MH i2c: E2 [12:16:34]MH_I2C_Read... [12:16:34]Read from MH i2c: E2 62 00 [12:16:34]MH_I2C_Read... [12:16:34]Read from MH i2c: E2 62 00 FA 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 36 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 F4 [12:16: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 36 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:16:34]wFMCommunicate OK [12:16:34]SAM_PROTO_GetFieldsCounters done [12:16:34]requested_item shift.num is exist - process it [12:16:34]requested_item shift.opened is exist - process it [12:16:34]req_shift_opened [12:16:34]FM_GetShiftState [12:16:34]SAM_PROTO_GetShiftState [12:16:34]wFMCommunicate request_size=4 [12:16:34]MH_SAM_APDU [12:16:34]CAPDU: 80 13 01 00 [12:16:34]Write to MH i2c: E2 08 00 FB 0E 80 13 01 00 00 00 00 00 86 [12:16:34]Write i2c OK [12:16:34]MH_I2C_Read... [12:16:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:16:34]Read from MH i2c: E2 [12:16:34]MH_I2C_Read... [12:16:34]Read from MH i2c: E2 0E 00 [12:16:34]MH_I2C_Read... [12:16:34]Read from MH i2c: E2 0E 00 FB 0E 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 52 [12:16:34]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [12:16:34]wFMCommunicate OK [12:16:34]SAM_PROTO_GetShiftState done [12:16:34]FM_GetShiftState done [12:16:34]req_shift_opened done [12:16:34]requested_item shift.open_date is exist - process it [12:16:34]req_shift_open_date [12:16:34]req_shift_open_date done [12:16:34]produce_requested_data done [12:16:34]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63798,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [12:16:34]process_action_free close_receipt [12:16:34]json_value_free [12:16:34]json_value_free done [12:16:34]process_json_proto returns [12:16:34]Send response to host [12:16:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63798,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [12:16:34]free response buf [12:16:34]execute_script done [12:16:34]execute_script returns [12:16:34]free content buf [12:16:34]Sock 9.Close socket [12:16:34]Sock 9.Thread stoped [12:16:37]OFD Sender: No OFD packet to send [12:16:42]OFD Sender: No OFD packet to send [12:16:47]OFD Sender: No OFD packet to send [12:16:52]OFD Sender: No OFD packet to send [12:16:57]OFD Sender: No OFD packet to send [12:17:02]OFD Sender: No OFD packet to send [12:17:07]OFD Sender: No OFD packet to send [12:17:12]OFD Sender: No OFD packet to send [12:17:17]OFD Sender: No OFD packet to send [12:17:22]OFD Sender: No OFD packet to send [12:17:27]OFD Sender: No OFD packet to send [12:17:32]OFD Sender: No OFD packet to send [12:17:37]OFD Sender: No OFD packet to send [12:17:42]OFD Sender: No OFD packet to send [12:17:47]OFD Sender: No OFD packet to send [12:17:52]OFD Sender: No OFD packet to send [12:17:57]OFD Sender: No OFD packet to send [12:18:02]OFD Sender: No OFD packet to send [12:18:07]OFD Sender: No OFD packet to send [12:18:09]accept exits with 7 [12:18:09]New connection [12:18:09]New thread 3067374948 created [12:18:09]Thread 3067518308 joined [12:18:09]Waiting for new connection... [12:18:09] Sock 7.Parse request [12:18:09]Sock 7.Check first char [12:18:09]Sock 7.First char is OK [12:18:09]request: POST /json_proto HTTP/1.0 [12:18:09]Method: POST [12:18:09]URL: /json_proto [12:18:09]Method is POST - this is cgi request [12:18:09]url: /json_proto [12:18:09]query_string will be loaded in cgi processing [12:18:09]execute_cgi json_proto POST (null) [12:18:09]execute_cgi path=json_proto method=POST [12:18:09]POST find Content-Length [12:18:09]Host: 172.17.60.69:8080 [12:18:09]Content-Length: 883 [12:18:09]Content-Type: application/json [12:18:09] [12:18:09]POST finish read [12:18:09]Found Content-Length = 883 [12:18:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73387", "tax_sys" : 0, "items" : [ { "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 138.00, "quantity" : 1.000, "sum" : 138.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "90162602", "name": "\u042D\u043D\u0435\u0440\u0433 \u043D\u0430\u043F\u0438\u0442\u043E\u043A Red bull 0,25\u043B", "price" : 157.00, "quantity" : 1.000, "sum" : 157.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 295.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:18:09]execute_script... [12:18:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73387", "tax_sys" : 0, "items" : [ { "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 138.00, "quantity" : 1.000, "sum" : 138.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "90162602", "name": "\u042D\u043D\u0435\u0440\u0433 \u043D\u0430\u043F\u0438\u0442\u043E\u043A Red bull 0,25\u043B", "price" : 157.00, "quantity" : 1.000, "sum" : 157.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 295.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:18:09]POST & json_proto [12:18:09]process_json_proto [12:18:09]json parsed OK: [12:18:09]protocol is kg_v1.0 [12:18:09]action value=close_receipt [12:18:09]process_action close_receipt [12:18:09]cmd_close_receipt [12:18:09]MH_GetDate [12:18:09]Write to MH i2c: F0 00 00 FC 0E F9 [12:18:09]Write i2c OK [12:18:09]MH_I2C_Read... [12:18:09]Read from MH i2c: F0 [12:18:09]MH_I2C_Read... [12:18:09]Read from MH i2c: F0 09 00 [12:18:09]MH_I2C_Read... [12:18:09]Read from MH i2c: F0 09 00 FC 0E 00 83 B4 5D 66 6A 96 4A 66 AC [12:18:09]GetLastDocTimeStamp 1717416992 [12:18:09]current date 1717417091 [12:18:09]FM_GetShiftState [12:18:09]SAM_PROTO_GetShiftState [12:18:09]wFMCommunicate request_size=4 [12:18:09]MH_SAM_APDU [12:18:09]CAPDU: 80 13 01 00 [12:18:09]Write to MH i2c: E2 08 00 FD 0E 80 13 01 00 00 00 00 00 88 [12:18:09]Write i2c OK [12:18:09]MH_I2C_Read... [12:18:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:18:09]Read from MH i2c: E2 [12:18:09]MH_I2C_Read... [12:18:09]Read from MH i2c: E2 0E 00 [12:18:09]MH_I2C_Read... [12:18:09]Read from MH i2c: E2 0E 00 FD 0E 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 54 [12:18:09]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [12:18:09]wFMCommunicate OK [12:18:09]SAM_PROTO_GetShiftState done [12:18:09]FM_GetShiftState done [12:18:09]opened in 1717373173 [12:18:09]opened+sec_in_day 1717459573 [12:18:09]quantity*price = 13800 [12:18:09]sum+1 = 13801 [12:18:09]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 90162602 Энерг напиток Red bull 0,25л 1.000 * 157.00 = 157.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 295.00 НСП 1% : 2.61 НДС 12% : 31.32 Наличными: 295.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 57 03.06.2024 12:18 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63799 ФПД: 230223702705178 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T121811&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63799&fm=230223702705178&tin=02508201610067®Number=0000000000092737&sum=29500 0 [12:18:10]StoreToDocumentArchive [12:18:10]shift 373 fd 63799 [12:18:10]save to /storage/0373/doc_00063799 [12:18:10]save last doc name /storage/0373/doc_00063799 to /storage/kkm_last_doc_name [12:18:10]save OK [12:18:10]Clear old archive folders... [12:18:10]ProcessDocumentItem done err = 0, tmpTLVsize=382 [12:18:10]tlvbuf is 00D1ED70 [12:18:10]SAM_PROTO_ClearQueue [12:18:10]wFMCommunicate request_size=4 [12:18:10]MH_SAM_APDU [12:18:10]CAPDU: 80 09 00 00 [12:18:10]Write to MH i2c: E2 08 00 0A 0F 80 09 00 00 00 00 00 00 8B [12:18:10]Write i2c OK [12:18:10]MH_I2C_Read... [12:18:10]Read from MH i2c: E2 [12:18:10]MH_I2C_Read... [12:18:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:18:10]Read from MH i2c: E2 03 00 [12:18:10]MH_I2C_Read... [12:18:10]Read from MH i2c: E2 03 00 0A 0F 00 90 00 8D [12:18:10]RAPDU: 90 00 [12:18:10]wFMCommunicate OK [12:18:10]SAM_PROTO_ClearQueue done [12:18:10]KKMCreateOFDPacket [12:18:10]OFDProtocolAddRootSTLVToBuf [12:18:10]FM_MakeSignedData [12:18:10]FM_MakeSignedData [12:18:10]SAM_PROTO_SignData [12:18:10]wFMCommunicate request_size=4 [12:18:10]MH_SAM_APDU [12:18:10]CAPDU: 80 0D 01 02 [12:18:10]Write to MH i2c: E2 08 00 0B 0F 80 0D 01 02 00 00 00 00 93 [12:18:10]Write i2c OK [12:18:10]MH_I2C_Read... [12:18:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:18:10]Read from MH i2c: E2 [12:18:10]MH_I2C_Read... [12:18:10]Read from MH i2c: E2 03 00 [12:18:10]MH_I2C_Read... [12:18:10]Read from MH i2c: E2 03 00 0B 0F 00 90 00 8E [12:18:10]RAPDU: 90 00 [12:18:10]wFMCommunicate OK [12:18:10]wFMCommunicate request_size=255 [12:18:10]MH_SAM_APDU [12:18:10]CAPDU: 80 0D 02 02 FA 03 00 7E 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 E8 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 08 00 39 30 31 36 32 36 30 32 06 04 29 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 62 75 6C 6C 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 3D 00 00 00 00 13 04 06 00 54 3D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 73 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 05 01 [12:18:10]Write to MH i2c: E2 02 01 0C 0F 80 0D 02 02 FA 00 03 00 7E 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 E8 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 08 00 39 30 31 36 32 36 30 32 06 04 29 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 62 75 6C 6C 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 3D 00 00 00 00 13 04 06 00 54 3D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 73 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 05 01 00 00 51 [12:18:10]Write i2c OK [12:18:10]MH_I2C_Read... [12:18:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:18:10]Read from MH i2c: E2 [12:18:10]MH_I2C_Read... [12:18:10]Read from MH i2c: E2 03 00 [12:18:10]MH_I2C_Read... [12:18:10]Read from MH i2c: E2 03 00 0C 0F 00 90 00 8F [12:18:10]RAPDU: 90 00 [12:18:10]wFMCommunicate OK [12:18:10]wFMCommunicate request_size=141 [12:18:10]MH_SAM_APDU [12:18:10]CAPDU: 80 0D 02 02 88 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 0C 00 00 00 00 07 04 06 00 3C 73 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 83 B4 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 37 F9 00 00 35 04 06 00 D1 63 22 04 C4 1A [12:18:10]Write to MH i2c: E2 90 00 0D 0F 80 0D 02 02 88 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 0C 00 00 00 00 07 04 06 00 3C 73 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 83 B4 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 37 F9 00 00 35 04 06 00 D1 63 22 04 C4 1A 00 00 DD [12:18:10]Write i2c OK [12:18:10]MH_I2C_Read... [12:18:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:18:10]Read from MH i2c: E2 [12:18:10]MH_I2C_Read... [12:18:10]Read from MH i2c: E2 03 00 [12:18:10]MH_I2C_Read... [12:18:10]Read from MH i2c: E2 03 00 0D 0F 00 90 00 90 [12:18:10]RAPDU: 90 00 [12:18:10]wFMCommunicate OK [12:18:10]wFMCommunicate request_size=4 [12:18:10]MH_SAM_APDU [12:18:10]CAPDU: 80 0D 03 02 [12:18:10]Write to MH i2c: E2 08 00 0E 0F 80 0D 03 02 00 00 00 00 98 [12:18:10]Write i2c OK [12:18:10]MH_I2C_Read... [12:18:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:18:10]Read from MH i2c: E2 [12:18:10]MH_I2C_Read... [12:18:10]Read from MH i2c: E2 0B 00 [12:18:10]MH_I2C_Read... [12:18:10]Read from MH i2c: E2 0B 00 0E 0F 00 09 CE CB 5C D1 28 48 83 90 00 5B [12:18:10]RAPDU: 09 CE CB 5C D1 28 48 83 90 00 [12:18:10]wFMCommunicate OK [12:18:10]SAM_PROTO_SignData done [12:18:10]FM_MakeSignedData done [12:18:10]CreateOFDProtocolMessage [12:18:10]wFMCommunicate request_size=4 [12:18:10]MH_SAM_APDU [12:18:10]CAPDU: 80 11 00 00 [12:18:10]Write to MH i2c: E2 08 00 0F 0F 80 11 00 00 00 00 00 00 98 [12:18:10]Write i2c OK [12:18:10]MH_I2C_Read... [12:18:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:18:10]Read from MH i2c: E2 [12:18:10]MH_I2C_Read... [12:18:10]Read from MH i2c: E2 17 00 [12:18:10]MH_I2C_Read... [12:18:10]Read from MH i2c: E2 17 00 0F 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 EA [12:18:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [12:18:10]wFMCommunicate OK [12:18:10]CreateOFDProtocolMessage done [12:18:10]OFDSenderStorePacket 63799 [12:18:10]StoreOFDPacket docnum=63799 [12:18:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 92 01 00 00 53 7A 8A 01 5E 58 5A 03 01 00 03 00 7E 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 E8 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 08 00 39 30 31 36 32 36 30 32 06 04 29 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 62 75 6C 6C 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 3D 00 00 00 00 13 04 06 00 54 3D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 73 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 05 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 0C 00 00 00 00 07 04 06 00 3C 73 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 83 B4 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 37 F9 00 00 35 04 06 00 D1 63 22 04 C4 1A 09 CE CB 5C D1 28 48 83 [12:18:10]CheckFolder [12:18:10]dirname=/storage/ofd_packets [12:18:10]CheckFolder done [12:18:10]ProducePacketName [12:18:10]name=ofd_packets/00063799 [12:18:10]NVStorageSaveData ofd_packets/00063799 [12:18:10]File name is /storage/ofd_packets/00063799 [12:18:10]Write 432 bytes [12:18:10]NVStorageSaveData done [12:18:10]OFDSenderStorePacket done [12:18:10]KKMCreateOFDPacket done [12:18:10]NVStorageSaveData kkm_last_timestamp [12:18:10]File name is /storage/kkm_last_timestamp [12:18:10]Write 4 bytes [12:18:10]NVStorageSaveData done [12:18:10]ExternCall_PrintAddStr [12:18:10]wPrintStart [12:18:10]Write to MH i2c: 01 00 00 10 0F 1F [12:18:10]Write i2c OK [12:18:10]MH_I2C_Read... [12:18:10]Read from MH i2c: 01 [12:18:10]MH_I2C_Read... [12:18:10]Read from MH i2c: 01 07 00 [12:18:10]MH_I2C_Read... [12:18:10]Read from MH i2c: 01 07 00 10 0F 00 00 00 00 00 FF 0F 34 [12:18:10]RasterBufferAndPrint [12:18:10]line Счет N : (3)73387 [12:18:10]line ИНН: 02508201610067 [12:18:10]line Контрольно-Кассовый Чек [12:18:10]line ПРОДАЖА [12:18:10]line Товар: 4640030091645 [12:18:11]line Сигареты ESSE Exchange M [12:18:11]line 1.000 * 138.00 [12:18:11]line = 138.00 [12:18:11]line НДС 12% НСП 1% [12:18:11]line > о реализуемом товаре [12:18:11]line Товар: 90162602 [12:18:11]line Энерг напиток Red bull 0,25л [12:18:11]line 1.000 * 157.00 [12:18:11]line = 157.00 [12:18:11]line НДС 12% НСП 1% [12:18:11]line > о реализуемом товаре [12:18:11]line ИТОГО: 295.00 [12:18:11]line НСП 1% : 2.61 [12:18:11]line НДС 12% : 31.32 [12:18:11]line Наличными: 295.00 [12:18:11]line Безнал.: 0.00 [12:18:11]line Место: АЗС № 117 "Партнер Нефть" [12:18:11]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [12:18:11]line СНО: Общий режим [12:18:11]line Чек 57 03.06.2024 12:18 [12:18:11]line Смена: 373 ФФД: 1.0 [12:18:11]line ЗНМ: 0300000031 [12:18:11]line РНМ: 0000000000092737 [12:18:11]line Версия ККМ: 001 [12:18:11]line ФМ: 0000000000875074 [12:18:11]line ФД: 63799 [12:18:11]line ФПД: 230223702705178 [12:18:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T121811&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63799&fm=230223702705178&tin=02508201610067®Number=0000000000092737&sum=29500 [12:18:11]line 0 [12:18:11]OFD Sender: Processing packet 63799 [packets to send 14, broken 13] [12:18:11]ProducePacketName [12:18:11]name=ofd_packets/00063799 [12:18:11]OFD Sender: To server: pG, [12:18:11]CommunicateWithHost lk.salyk.kg:30040 [12:18:11]ConnectInit lk.salyk.kg [12:18:11]written 0, free lines is 4095 [12:18:11]Connected sock=10 [12:18:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 92 01 00 00 53 7A 8A 01 5E 58 5A 03 01 00 03 00 7E 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 E8 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 08 00 39 30 31 36 32 36 30 32 06 04 29 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 62 75 6C 6C 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 3D 00 00 00 00 13 04 06 00 54 3D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 73 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 05 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 0C 00 00 00 00 07 04 06 00 3C 73 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 83 B4 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 37 F9 00 00 35 04 06 00 D1 63 22 04 C4 1A 09 CE CB 5C D1 28 48 83 [12:18:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 AF 77 47 00 20 B3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 37 F9 00 00 F4 03 04 00 54 60 5D 66 B6 04 01 00 00 47 43 DC 00 FE 83 D2 FE [12:18:11]CommunicateWithHost err = 0 [12:18:11]CheckOFDResponse [12:18:11]1017 (14) - 77093643461234 [12:18:11]1041 (16) - 0000000000875074 [12:18:11]1040 (4) - 63799 [12:18:11]1012 (4) - 03.06.2024 06:19 [12:18:11]1206 (1) - 0 [12:18:11]OFD Sender: Remove packet 63799 [12:18:11]ProducePacketName [12:18:11]name=ofd_packets/00063799 [12:18:11]NVStorageDeleteData [12:18:11]Write to MH i2c: 01 00 00 3E 0F 4D [12:18:11]Write i2c OK [12:18:11]MH_I2C_Read... [12:18:11]Read from MH i2c: 01 [12:18:11]MH_I2C_Read... [12:18:11]Read from MH i2c: 01 07 00 [12:18:11]MH_I2C_Read... [12:18:11]Read from MH i2c: 01 07 00 3E 0F 00 00 00 00 00 9A 0C FA [12:18:11]RasterBufferAndPrint [12:18:11]line [12:18:11]line [12:18:11]line [12:18:11]line [12:18:11]line [12:18:11]written 0, free lines is 3233 [12:18:11]MH_Cut [12:18:11]Write to MH i2c: D1 01 00 45 0F 01 26 [12:18:11]Write i2c OK [12:18:11]MH_I2C_Read... [12:18:11]Read from MH i2c: D1 [12:18:11]MH_I2C_Read... [12:18:11]Read from MH i2c: D1 01 00 [12:18:11]MH_I2C_Read... [12:18:11]Read from MH i2c: D1 01 00 45 0F 00 25 [12:18:11]Write to MH i2c: 01 00 00 46 0F 55 [12:18:11]Write i2c OK [12:18:11]MH_I2C_Read... [12:18:11]OFD Sender: No OFD packet to send [12:18:12]*** Cut start [12:18:12]*** Partial cut [12:18:12]*** CUTSNS_PIN = 1 [12:18:12]*** CUTSNS_PIN = 0 [12:18:12]*** Brake cut motor [12:18:13]Read from MH i2c: 01 [12:18:13]MH_I2C_Read... [12:18:13]*** Stop cut motor [12:18:13]*** Cut end [12:18:13]Read from MH i2c: 01 07 00 [12:18:13]MH_I2C_Read... [12:18:13]Read from MH i2c: 01 07 00 46 0F 00 00 00 00 00 FF 0F 6A [12:18:13]process_action close_receipt done [12:18:13]requested_data is exist [12:18:13]produce_requested_data [12:18:13]requested_item fm.sn is exist - process it [12:18:13]wFMCommunicate request_size=4 [12:18:13]MH_SAM_APDU [12:18:13]CAPDU: 80 11 00 00 [12:18:13]Write to MH i2c: E2 08 00 47 0F 80 11 00 00 00 00 00 00 D0 [12:18:13]Write i2c OK [12:18:13]MH_I2C_Read... [12:18:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:18:13]Read from MH i2c: E2 [12:18:13]MH_I2C_Read... [12:18:13]Read from MH i2c: E2 17 00 [12:18:13]MH_I2C_Read... [12:18:13]Read from MH i2c: E2 17 00 47 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 22 [12:18:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [12:18:13]wFMCommunicate OK [12:18:13]requested_item fd.num is exist - process it [12:18:13]SAM_PROTO_GetFieldsCounters [12:18:13]wFMCommunicate request_size=4 [12:18:13]MH_SAM_APDU [12:18:13]CAPDU: 80 13 00 00 [12:18:13]Write to MH i2c: E2 08 00 48 0F 80 13 00 00 00 00 00 00 D3 [12:18:13]Write i2c OK [12:18:13]MH_I2C_Read... [12:18:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:18:13]Read from MH i2c: E2 [12:18:13]MH_I2C_Read... [12:18:13]Read from MH i2c: E2 62 00 [12:18:13]MH_I2C_Read... [12:18:13]Read from MH i2c: E2 62 00 48 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 37 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 47 [12:18: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 37 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:18:13]wFMCommunicate OK [12:18:13]SAM_PROTO_GetFieldsCounters done [12:18:13]requested_item shift.num is exist - process it [12:18:13]requested_item shift.opened is exist - process it [12:18:13]req_shift_opened [12:18:13]FM_GetShiftState [12:18:13]SAM_PROTO_GetShiftState [12:18:13]wFMCommunicate request_size=4 [12:18:13]MH_SAM_APDU [12:18:13]CAPDU: 80 13 01 00 [12:18:13]Write to MH i2c: E2 08 00 49 0F 80 13 01 00 00 00 00 00 D5 [12:18:13]Write i2c OK [12:18:13]MH_I2C_Read... [12:18:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:18:13]Read from MH i2c: E2 [12:18:13]MH_I2C_Read... [12:18:13]Read from MH i2c: E2 0E 00 [12:18:13]MH_I2C_Read... [12:18:13]Read from MH i2c: E2 0E 00 49 0F 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 A1 [12:18:13]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [12:18:13]wFMCommunicate OK [12:18:13]SAM_PROTO_GetShiftState done [12:18:13]FM_GetShiftState done [12:18:13]req_shift_opened done [12:18:13]requested_item shift.open_date is exist - process it [12:18:13]req_shift_open_date [12:18:13]req_shift_open_date done [12:18:13]produce_requested_data done [12:18:13]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63799,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [12:18:13]process_action_free close_receipt [12:18:13]json_value_free [12:18:13]json_value_free done [12:18:13]process_json_proto returns [12:18:13]Send response to host [12:18:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63799,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [12:18:13]free response buf [12:18:13]execute_script done [12:18:13]execute_script returns [12:18:13]free content buf [12:18:13]Sock 7.Close socket [12:18:13]Sock 7.Thread stoped [12:18:16]OFD Sender: No OFD packet to send [12:18:21]OFD Sender: No OFD packet to send [12:18:26]OFD Sender: No OFD packet to send [12:18:31]OFD Sender: No OFD packet to send [12:18:36]OFD Sender: No OFD packet to send [12:18:42]OFD Sender: No OFD packet to send [12:18:47]OFD Sender: No OFD packet to send [12:18:52]OFD Sender: No OFD packet to send [12:18:57]OFD Sender: No OFD packet to send [12:19:02]OFD Sender: No OFD packet to send [12:19:07]OFD Sender: No OFD packet to send [12:19:12]OFD Sender: No OFD packet to send [12:19:17]OFD Sender: No OFD packet to send [12:19:22]OFD Sender: No OFD packet to send [12:19:27]OFD Sender: No OFD packet to send [12:19:32]OFD Sender: No OFD packet to send [12:19:37]OFD Sender: No OFD packet to send [12:19:42]OFD Sender: No OFD packet to send [12:19:47]OFD Sender: No OFD packet to send [12:19:52]OFD Sender: No OFD packet to send [12:19:57]OFD Sender: No OFD packet to send [12:20:02]OFD Sender: No OFD packet to send [12:20:07]OFD Sender: No OFD packet to send [12:20:12]OFD Sender: No OFD packet to send [12:20:17]OFD Sender: No OFD packet to send [12:20:22]OFD Sender: No OFD packet to send [12:20:27]OFD Sender: No OFD packet to send [12:20:32]OFD Sender: No OFD packet to send [12:20:37]OFD Sender: No OFD packet to send [12:20:42]OFD Sender: No OFD packet to send [12:20:47]OFD Sender: No OFD packet to send [12:20:52]OFD Sender: No OFD packet to send [12:20:57]OFD Sender: No OFD packet to send [12:21:02]OFD Sender: No OFD packet to send [12:21:07]OFD Sender: No OFD packet to send [12:21:12]OFD Sender: No OFD packet to send [12:21:17]OFD Sender: No OFD packet to send [12:21:22]OFD Sender: No OFD packet to send [12:21:27]OFD Sender: No OFD packet to send [12:21:32]OFD Sender: No OFD packet to send [12:21:37]OFD Sender: No OFD packet to send [12:21:42]OFD Sender: No OFD packet to send [12:21:47]OFD Sender: No OFD packet to send [12:21:52]OFD Sender: No OFD packet to send [12:21:52]accept exits with 9 [12:21:52]New connection [12:21:52]New thread 3067518308 created [12:21:52]Thread 3067374948 joined [12:21:52]Waiting for new connection... [12:21:52] Sock 9.Parse request [12:21:52]Sock 9.Check first char [12:21:52]Sock 9.First char is OK [12:21:52]request: POST /json_proto HTTP/1.0 [12:21:52]Method: POST [12:21:52]URL: /json_proto [12:21:52]Method is POST - this is cgi request [12:21:52]url: /json_proto [12:21:52]query_string will be loaded in cgi processing [12:21:52]execute_cgi json_proto POST (null) [12:21:52]execute_cgi path=json_proto method=POST [12:21:52]POST find Content-Length [12:21:52]Host: 172.17.60.69:8080 [12:21:52]Content-Length: 852 [12:21:52]Content-Type: application/json [12:21:52] [12:21:52]POST finish read [12:21:52]Found Content-Length = 852 [12:21:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73388", "tax_sys" : 0, "items" : [ { "code": "9002490206550", "name": "\u042D\u043D\u0435\u0440\u0433 \u043D\u0430\u043F\u0438\u0442\u043E\u043A Red Bull 0,355\u043B", "price" : 265.00, "quantity" : 1.000, "sum" : 265.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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 265.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:21:52]execute_script... [12:21:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73388", "tax_sys" : 0, "items" : [ { "code": "9002490206550", "name": "\u042D\u043D\u0435\u0440\u0433 \u043D\u0430\u043F\u0438\u0442\u043E\u043A Red Bull 0,355\u043B", "price" : 265.00, "quantity" : 1.000, "sum" : 265.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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 265.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:21:52]POST & json_proto [12:21:52]process_json_proto [12:21:52]json parsed OK: [12:21:52]protocol is kg_v1.0 [12:21:52]action value=close_receipt [12:21:52]process_action close_receipt [12:21:52]cmd_close_receipt [12:21:52]MH_GetDate [12:21:52]Write to MH i2c: F0 00 00 4A 0F 48 [12:21:52]Write i2c OK [12:21:52]MH_I2C_Read... [12:21:52]Read from MH i2c: F0 [12:21:52]MH_I2C_Read... [12:21:52]Read from MH i2c: F0 09 00 [12:21:52]MH_I2C_Read... [12:21:52]Read from MH i2c: F0 09 00 4A 0F 00 62 B5 5D 66 6A 96 4A 66 DB [12:21:52]GetLastDocTimeStamp 1717417091 [12:21:52]current date 1717417314 [12:21:52]FM_GetShiftState [12:21:52]SAM_PROTO_GetShiftState [12:21:52]wFMCommunicate request_size=4 [12:21:52]MH_SAM_APDU [12:21:52]CAPDU: 80 13 01 00 [12:21:52]Write to MH i2c: E2 08 00 4B 0F 80 13 01 00 00 00 00 00 D7 [12:21:52]Write i2c OK [12:21:52]MH_I2C_Read... [12:21:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:21:52]Read from MH i2c: E2 [12:21:52]MH_I2C_Read... [12:21:52]Read from MH i2c: E2 0E 00 [12:21:52]MH_I2C_Read... [12:21:52]Read from MH i2c: E2 0E 00 4B 0F 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 A3 [12:21:52]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [12:21:52]wFMCommunicate OK [12:21:52]SAM_PROTO_GetShiftState done [12:21:52]FM_GetShiftState done [12:21:52]opened in 1717373173 [12:21:52]opened+sec_in_day 1717459573 [12:21:52]quantity*price = 26500 [12:21:52]sum+1 = 26501 [12:21:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 265.00 НСП 1% : 2.34 НДС 12% : 28.14 Наличными: 0.00 Безнал.: 265.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 58 03.06.2024 12:21 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000875074 ФД: 63800 ФПД: 196548686344727 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T122154&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63800&fm=196548686344727&tin=02508201610067®Number=0000000000092737&sum=26500 0 [12:21:53]StoreToDocumentArchive [12:21:53]shift 373 fd 63800 [12:21:53]save to /storage/0373/doc_00063800 [12:21:53]save last doc name /storage/0373/doc_00063800 to /storage/kkm_last_doc_name [12:21:53]save OK [12:21:53]Clear old archive folders... [12:21:53]ProcessDocumentItem done err = 0, tmpTLVsize=284 [12:21:53]tlvbuf is 00D2F7E0 [12:21:53]SAM_PROTO_ClearQueue [12:21:53]wFMCommunicate request_size=4 [12:21:53]MH_SAM_APDU [12:21:53]CAPDU: 80 09 00 00 [12:21:53]Write to MH i2c: E2 08 00 58 0F 80 09 00 00 00 00 00 00 D9 [12:21:53]Write i2c OK [12:21:53]MH_I2C_Read... [12:21:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:21:53]Read from MH i2c: E2 [12:21:53]MH_I2C_Read... [12:21:53]Read from MH i2c: E2 03 00 [12:21:53]MH_I2C_Read... [12:21:53]Read from MH i2c: E2 03 00 58 0F 00 90 00 DB [12:21:53]RAPDU: 90 00 [12:21:53]wFMCommunicate OK [12:21:53]SAM_PROTO_ClearQueue done [12:21:53]KKMCreateOFDPacket [12:21:53]OFDProtocolAddRootSTLVToBuf [12:21:53]FM_MakeSignedData [12:21:53]FM_MakeSignedData [12:21:53]SAM_PROTO_SignData [12:21:53]wFMCommunicate request_size=4 [12:21:53]MH_SAM_APDU [12:21:53]CAPDU: 80 0D 01 02 [12:21:53]Write to MH i2c: E2 08 00 59 0F 80 0D 01 02 00 00 00 00 E1 [12:21:53]Write i2c OK [12:21:53]MH_I2C_Read... [12:21:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:21:53]Read from MH i2c: E2 [12:21:53]MH_I2C_Read... [12:21:53]Read from MH i2c: E2 03 00 [12:21:53]MH_I2C_Read... [12:21:53]Read from MH i2c: E2 03 00 59 0F 00 90 00 DC [12:21:53]RAPDU: 90 00 [12:21:53]wFMCommunicate OK [12:21:53]wFMCommunicate request_size=255 [12:21:53]MH_SAM_APDU [12:21:53]CAPDU: 80 0D 02 02 FA 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 39 30 30 32 34 39 30 32 30 36 35 35 30 06 04 2A 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 42 75 6C 6C 20 30 2C 33 35 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 84 67 00 00 00 00 13 04 06 00 84 67 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 67 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 84 67 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 62 B5 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 [12:21:53]Write to MH i2c: E2 02 01 5A 0F 80 0D 02 02 FA 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 39 30 30 32 34 39 30 32 30 36 35 35 30 06 04 2A 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 42 75 6C 6C 20 30 2C 33 35 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 84 67 00 00 00 00 13 04 06 00 84 67 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 67 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 84 67 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 62 B5 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 00 00 95 [12:21:53]Write i2c OK [12:21:53]MH_I2C_Read... [12:21:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:21:54]Read from MH i2c: E2 [12:21:54]MH_I2C_Read... [12:21:54]Read from MH i2c: E2 03 00 [12:21:54]MH_I2C_Read... [12:21:54]Read from MH i2c: E2 03 00 5A 0F 00 90 00 DD [12:21:54]RAPDU: 90 00 [12:21:54]wFMCommunicate OK [12:21:54]wFMCommunicate request_size=43 [12:21:54]MH_SAM_APDU [12:21:54]CAPDU: 80 0D 02 02 26 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 38 F9 00 00 35 04 06 00 B2 C2 8E A1 72 17 [12:21:54]Write to MH i2c: E2 2E 00 5B 0F 80 0D 02 02 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 38 F9 00 00 35 04 06 00 B2 C2 8E A1 72 17 00 00 28 [12:21:54]Write i2c OK [12:21:54]MH_I2C_Read... [12:21:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:21:54]Read from MH i2c: E2 [12:21:54]MH_I2C_Read... [12:21:54]Read from MH i2c: E2 03 00 [12:21:54]MH_I2C_Read... [12:21:54]Read from MH i2c: E2 03 00 5B 0F 00 90 00 DE [12:21:54]RAPDU: 90 00 [12:21:54]wFMCommunicate OK [12:21:54]wFMCommunicate request_size=4 [12:21:54]MH_SAM_APDU [12:21:54]CAPDU: 80 0D 03 02 [12:21:54]Write to MH i2c: E2 08 00 5C 0F 80 0D 03 02 00 00 00 00 E6 [12:21:54]Write i2c OK [12:21:54]MH_I2C_Read... [12:21:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:21:54]Read from MH i2c: E2 [12:21:54]MH_I2C_Read... [12:21:54]Read from MH i2c: E2 0B 00 [12:21:54]MH_I2C_Read... [12:21:54]Read from MH i2c: E2 0B 00 5C 0F 00 7E DB 44 CD 97 48 05 0F 90 00 44 [12:21:54]RAPDU: 7E DB 44 CD 97 48 05 0F 90 00 [12:21:54]wFMCommunicate OK [12:21:54]SAM_PROTO_SignData done [12:21:54]FM_MakeSignedData done [12:21:54]CreateOFDProtocolMessage [12:21:54]wFMCommunicate request_size=4 [12:21:54]MH_SAM_APDU [12:21:54]CAPDU: 80 11 00 00 [12:21:54]Write to MH i2c: E2 08 00 5D 0F 80 11 00 00 00 00 00 00 E6 [12:21:54]Write i2c OK [12:21:54]MH_I2C_Read... [12:21:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:21:54]Read from MH i2c: E2 [12:21:54]MH_I2C_Read... [12:21:54]Read from MH i2c: E2 17 00 [12:21:54]MH_I2C_Read... [12:21:54]Read from MH i2c: E2 17 00 5D 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 38 [12:21:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [12:21:54]wFMCommunicate OK [12:21:54]CreateOFDProtocolMessage done [12:21:54]OFDSenderStorePacket 63800 [12:21:54]StoreOFDPacket docnum=63800 [12:21:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 30 01 00 00 B0 61 28 01 44 D8 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 39 30 30 32 34 39 30 32 30 36 35 35 30 06 04 2A 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 42 75 6C 6C 20 30 2C 33 35 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 84 67 00 00 00 00 13 04 06 00 84 67 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 67 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 84 67 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 62 B5 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 38 F9 00 00 35 04 06 00 B2 C2 8E A1 72 17 7E DB 44 CD 97 48 05 0F [12:21:54]CheckFolder [12:21:54]dirname=/storage/ofd_packets [12:21:54]CheckFolder done [12:21:54]ProducePacketName [12:21:54]name=ofd_packets/00063800 [12:21:54]NVStorageSaveData ofd_packets/00063800 [12:21:54]File name is /storage/ofd_packets/00063800 [12:21:54]Write 334 bytes [12:21:54]NVStorageSaveData done [12:21:54]OFDSenderStorePacket done [12:21:54]KKMCreateOFDPacket done [12:21:54]NVStorageSaveData kkm_last_timestamp [12:21:54]File name is /storage/kkm_last_timestamp [12:21:54]Write 4 bytes [12:21:54]NVStorageSaveData done [12:21:54]ExternCall_PrintAddStr [12:21:54]wPrintStart [12:21:54]Write to MH i2c: 01 00 00 5E 0F 6D [12:21:54]Write i2c OK [12:21:54]MH_I2C_Read... [12:21:54]Read from MH i2c: 01 [12:21:54]MH_I2C_Read... [12:21:54]Read from MH i2c: 01 07 00 [12:21:54]MH_I2C_Read... [12:21:54]Read from MH i2c: 01 07 00 5E 0F 00 00 00 00 00 FF 0F 82 [12:21:54]RasterBufferAndPrint [12:21:54]line Счет N : (3)73388 [12:21:54]line ИНН: 02508201610067 [12:21:54]line Контрольно-Кассовый Чек [12:21:54]line ПРОДАЖА [12:21:54]line Товар: 9002490206550 [12:21:54]line Энерг напиток Red Bull 0,355л [12:21:54]line 1.000 * 265.00 [12:21:54]line = 265.00 [12:21:54]line НДС 12% НСП 1% [12:21:54]line > о реализуемом товаре [12:21:54]line ИТОГО: 265.00 [12:21:54]line НСП 1% : 2.34 [12:21:54]line НДС 12% : 28.14 [12:21:54]line Наличными: 0.00 [12:21:54]line Безнал.: 265.00 [12:21:54]line Место: АЗС № 117 "Партнер Нефть" [12:21:54]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [12:21:54]line СНО: Общий режим [12:21:54]line Чек 58 03.06.2024 12:21 [12:21:54]line Смена: 373 ФФД: 1.0 [12:21:54]line ЗНМ: 0300000031 [12:21:54]line РНМ: 0000000000092737 [12:21:54]line Версия ККМ: 001 [12:21:54]line Платежная система: АКБ Кыргызстан [12:21:54]line ФМ: 0000000000875074 [12:21:54]line ФД: 63800 [12:21:54]line ФПД: 196548686344727 [12:21:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T122154&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63800&fm=196548686344727&tin=02508201610067®Number=0000000000092737&sum=26500 [12:21:54]line 0 [12:21:54]OFD Sender: Processing packet 63800 [packets to send 14, broken 13] [12:21:54]ProducePacketName [12:21:54]name=ofd_packets/00063800 [12:21:54]OFD Sender: To server: pG, [12:21:54]CommunicateWithHost lk.salyk.kg:30040 [12:21:54]ConnectInit lk.salyk.kg [12:21:54]written 0, free lines is 4095 [12:21:54]Connected sock=10 [12:21:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 30 01 00 00 B0 61 28 01 44 D8 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 39 30 30 32 34 39 30 32 30 36 35 35 30 06 04 2A 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 42 75 6C 6C 20 30 2C 33 35 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 84 67 00 00 00 00 13 04 06 00 84 67 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 67 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 84 67 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 62 B5 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 38 F9 00 00 35 04 06 00 B2 C2 8E A1 72 17 7E DB 44 CD 97 48 05 0F [12:21:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 0F 12 47 00 47 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 35 30 37 34 10 04 04 00 38 F9 00 00 F4 03 04 00 34 61 5D 66 B6 04 01 00 00 3E 9D 4A 63 83 1F 5D 3D [12:21:55]CommunicateWithHost err = 0 [12:21:55]CheckOFDResponse [12:21:55]1017 (14) - 77093643461234 [12:21:55]1041 (16) - 0000000000875074 [12:21:55]1040 (4) - 63800 [12:21:55]1012 (4) - 03.06.2024 06:22 [12:21:55]1206 (1) - 0 [12:21:55]OFD Sender: Remove packet 63800 [12:21:55]ProducePacketName [12:21:55]name=ofd_packets/00063800 [12:21:55]NVStorageDeleteData [12:21:55]Write to MH i2c: 01 00 00 88 0F 97 [12:21:55]Write i2c OK [12:21:55]MH_I2C_Read... [12:21:55]Read from MH i2c: 01 [12:21:55]MH_I2C_Read... [12:21:55]Read from MH i2c: 01 07 00 [12:21:55]MH_I2C_Read... [12:21:55]Read from MH i2c: 01 07 00 88 0F 00 00 00 00 00 EC 0C 96 [12:21:55]RasterBufferAndPrint [12:21:55]line [12:21:55]line [12:21:55]line [12:21:55]line [12:21:55]line [12:21:55]written 0, free lines is 3314 [12:21:55]MH_Cut [12:21:55]Write to MH i2c: D1 01 00 8F 0F 01 70 [12:21:55]Write i2c OK [12:21:55]MH_I2C_Read... [12:21:55]Read from MH i2c: D1 [12:21:55]MH_I2C_Read... [12:21:55]Read from MH i2c: D1 01 00 [12:21:55]MH_I2C_Read... [12:21:55]Read from MH i2c: D1 01 00 8F 0F 00 6F [12:21:55]Write to MH i2c: 01 00 00 90 0F 9F [12:21:55]Write i2c OK [12:21:55]MH_I2C_Read... [12:21:55]OFD Sender: No OFD packet to send [12:21:56]*** Cut start [12:21:56]*** Partial cut [12:21:56]*** CUTSNS_PIN = 1 [12:21:56]*** CUTSNS_PIN = 0 [12:21:56]*** Brake cut motor [12:21:56]Read from MH i2c: 01 [12:21:56]MH_I2C_Read... [12:21:56]*** Stop cut motor [12:21:56]*** Cut end [12:21:56]Read from MH i2c: 01 07 00 [12:21:56]MH_I2C_Read... [12:21:56]Read from MH i2c: 01 07 00 90 0F 00 00 00 00 00 FF 0F B4 [12:21:56]process_action close_receipt done [12:21:56]requested_data is exist [12:21:56]produce_requested_data [12:21:56]requested_item fm.sn is exist - process it [12:21:56]wFMCommunicate request_size=4 [12:21:56]MH_SAM_APDU [12:21:56]CAPDU: 80 11 00 00 [12:21:56]Write to MH i2c: E2 08 00 91 0F 80 11 00 00 00 00 00 00 1A [12:21:56]Write i2c OK [12:21:56]MH_I2C_Read... [12:21:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:21:56]Read from MH i2c: E2 [12:21:56]MH_I2C_Read... [12:21:56]Read from MH i2c: E2 17 00 [12:21:56]MH_I2C_Read... [12:21:56]Read from MH i2c: E2 17 00 91 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 6C [12:21:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [12:21:56]wFMCommunicate OK [12:21:56]requested_item fd.num is exist - process it [12:21:56]SAM_PROTO_GetFieldsCounters [12:21:56]wFMCommunicate request_size=4 [12:21:56]MH_SAM_APDU [12:21:56]CAPDU: 80 13 00 00 [12:21:56]Write to MH i2c: E2 08 00 92 0F 80 13 00 00 00 00 00 00 1D [12:21:56]Write i2c OK [12:21:56]MH_I2C_Read... [12:21:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:21:56]Read from MH i2c: E2 [12:21:56]MH_I2C_Read... [12:21:56]Read from MH i2c: E2 62 00 [12:21:56]MH_I2C_Read... [12:21:56]Read from MH i2c: E2 62 00 92 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 38 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 95 [12:21: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 38 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:21:56]wFMCommunicate OK [12:21:56]SAM_PROTO_GetFieldsCounters done [12:21:56]requested_item shift.num is exist - process it [12:21:56]requested_item shift.opened is exist - process it [12:21:56]req_shift_opened [12:21:56]FM_GetShiftState [12:21:56]SAM_PROTO_GetShiftState [12:21:56]wFMCommunicate request_size=4 [12:21:56]MH_SAM_APDU [12:21:56]CAPDU: 80 13 01 00 [12:21:56]Write to MH i2c: E2 08 00 93 0F 80 13 01 00 00 00 00 00 1F [12:21:56]Write i2c OK [12:21:56]MH_I2C_Read... [12:21:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:21:56]Read from MH i2c: E2 [12:21:56]MH_I2C_Read... [12:21:56]Read from MH i2c: E2 0E 00 [12:21:56]MH_I2C_Read... [12:21:56]Read from MH i2c: E2 0E 00 93 0F 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 EB [12:21:56]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [12:21:56]wFMCommunicate OK [12:21:56]SAM_PROTO_GetShiftState done [12:21:56]FM_GetShiftState done [12:21:56]req_shift_opened done [12:21:56]requested_item shift.open_date is exist - process it [12:21:56]req_shift_open_date [12:21:56]req_shift_open_date done [12:21:56]produce_requested_data done [12:21:56]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63800,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [12:21:56]process_action_free close_receipt [12:21:56]json_value_free [12:21:56]json_value_free done [12:21:56]process_json_proto returns [12:21:56]Send response to host [12:21:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63800,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [12:21:56]free response buf [12:21:56]execute_script done [12:21:56]execute_script returns [12:21:56]free content buf [12:21:56]Sock 9.Close socket [12:21:56]Sock 9.Thread stoped [12:22:00]OFD Sender: No OFD packet to send [12:22:05]OFD Sender: No OFD packet to send [12:22:10]OFD Sender: No OFD packet to send [12:22:15]OFD Sender: No OFD packet to send [12:22:20]OFD Sender: No OFD packet to send [12:22:25]OFD Sender: No OFD packet to send [12:22:30]OFD Sender: No OFD packet to send [12:22:35]OFD Sender: No OFD packet to send [12:22:40]OFD Sender: No OFD packet to send [12:22:45]OFD Sender: No OFD packet to send [12:22:50]OFD Sender: No OFD packet to send [12:22:55]OFD Sender: No OFD packet to send [12:23:00]OFD Sender: No OFD packet to send [12:23:05]OFD Sender: No OFD packet to send [12:23:10]OFD Sender: No OFD packet to send [12:23:15]OFD Sender: No OFD packet to send [12:23:20]OFD Sender: No OFD packet to send [12:23:25]OFD Sender: No OFD packet to send [12:23:30]OFD Sender: No OFD packet to send [12:23:35]OFD Sender: No OFD packet to send [12:23:40]OFD Sender: No OFD packet to send [12:23:45]OFD Sender: No OFD packet to send [12:23:50]OFD Sender: No OFD packet to send [12:23:55]OFD Sender: No OFD packet to send [12:24:00]OFD Sender: No OFD packet to send [12:24:05]OFD Sender: No OFD packet to send [12:24:10]OFD Sender: No OFD packet to send [12:24:15]OFD Sender: No OFD packet to send [12:24:20]OFD Sender: No OFD packet to send [12:24:25]OFD Sender: No OFD packet to send [12:24:30]OFD Sender: No OFD packet to send [12:24:35]OFD Sender: No OFD packet to send [12:24:40]OFD Sender: No OFD packet to send [12:24:45]OFD Sender: No OFD packet to send [12:24:50]OFD Sender: No OFD packet to send [12:24:55]OFD Sender: No OFD packet to send [12:25:00]OFD Sender: No OFD packet to send [12:25:05]OFD Sender: No OFD packet to send [12:25:10]OFD Sender: No OFD packet to send [12:25:15]OFD Sender: No OFD packet to send [12:25:20]OFD Sender: No OFD packet to send [12:25:25]OFD Sender: No OFD packet to send [12:25:30]OFD Sender: No OFD packet to send [12:25:35]OFD Sender: No OFD packet to send [12:25:40]OFD Sender: No OFD packet to send [12:25:45]OFD Sender: No OFD packet to send [12:25:50]OFD Sender: No OFD packet to send [12:25:55]OFD Sender: No OFD packet to send [12:26:00]OFD Sender: No OFD packet to send [12:26:05]OFD Sender: No OFD packet to send [12:26:10]OFD Sender: No OFD packet to send [12:26:15]OFD Sender: No OFD packet to send [12:26:20]OFD Sender: No OFD packet to send [12:26:25]OFD Sender: No OFD packet to send [12:26:30]OFD Sender: No OFD packet to send [12:26:32]accept exits with 7 [12:26:32]New connection [12:26:32]New thread 3067374948 created [12:26:32]Thread 3067518308 joined [12:26:32]Waiting for new connection... [12:26:32] Sock 7.Parse request [12:26:32]Sock 7.Check first char [12:26:32]Sock 7.First char is OK [12:26:32]request: POST /json_proto HTTP/1.0 [12:26:32]Method: POST [12:26:32]URL: /json_proto [12:26:32]Method is POST - this is cgi request [12:26:32]url: /json_proto [12:26:32]query_string will be loaded in cgi processing [12:26:32]execute_cgi json_proto POST (null) [12:26:32]execute_cgi path=json_proto method=POST [12:26:32]POST find Content-Length [12:26:32]Host: 172.17.60.69:8080 [12:26:32]Content-Length: 621 [12:26:32]Content-Type: application/json [12:26:32] [12:26:32]POST finish read [12:26:32]Found Content-Length = 621 [12:26:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73389", "tax_sys" : 0, "items" : [ { "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 151.00, "quantity" : 1.000, "sum" : 151.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 151.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:26:32]execute_script... [12: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 : (3)73389", "tax_sys" : 0, "items" : [ { "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 151.00, "quantity" : 1.000, "sum" : 151.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 151.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:26:32]POST & json_proto [12:26:32]process_json_proto [12:26:32]json parsed OK: [12:26:32]protocol is kg_v1.0 [12:26:32]action value=close_receipt [12:26:32]process_action close_receipt [12:26:32]cmd_close_receipt [12:26:32]MH_GetDate [12:26:32]Write to MH i2c: F0 00 00 94 0F 92 [12:26:32]Write i2c OK [12:26:32]MH_I2C_Read... [12:26:32]Read from MH i2c: F0 [12:26:32]MH_I2C_Read... [12:26:32]Read from MH i2c: F0 09 00 [12:26:32]MH_I2C_Read... [12:26:32]Read from MH i2c: F0 09 00 94 0F 00 7B B6 5D 66 6A 96 4A 66 3F [12:26:32]GetLastDocTimeStamp 1717417314 [12:26:32]current date 1717417595 [12:26:32]FM_GetShiftState [12:26:32]SAM_PROTO_GetShiftState [12:26:32]wFMCommunicate request_size=4 [12:26:32]MH_SAM_APDU [12:26:32]CAPDU: 80 13 01 00 [12:26:32]Write to MH i2c: E2 08 00 95 0F 80 13 01 00 00 00 00 00 21 [12:26:32]Write i2c OK [12:26:32]MH_I2C_Read... [12:26:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:26:32]Read from MH i2c: E2 [12:26:32]MH_I2C_Read... [12:26:32]Read from MH i2c: E2 0E 00 [12:26:32]MH_I2C_Read... [12:26:32]Read from MH i2c: E2 0E 00 95 0F 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 ED [12:26:32]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [12:26:32]wFMCommunicate OK [12:26:32]SAM_PROTO_GetShiftState done [12:26:32]FM_GetShiftState done [12:26:32]opened in 1717373173 [12:26:32]opened+sec_in_day 1717459573 [12:26:32]quantity*price = 15100 [12:26:32]sum+1 = 15101 [12:26:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 151.00 НСП 1% : 1.34 НДС 12% : 16.03 Наличными: 151.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 59 03.06.2024 12:26 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63801 ФПД: 14262610101814 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T122635&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63801&fm=14262610101814&tin=02508201610067®Number=0000000000092737&sum=15100 0 [12:26:34]StoreToDocumentArchive [12:26:34]shift 373 fd 63801 [12:26:34]save to /storage/0373/doc_00063801 [12:26:34]save last doc name /storage/0373/doc_00063801 to /storage/kkm_last_doc_name [12:26:34]save OK [12:26:34]Clear old archive folders... [12:26:34]ProcessDocumentItem done err = 0, tmpTLVsize=274 [12:26:34]tlvbuf is 00D63D80 [12:26:34]SAM_PROTO_ClearQueue [12:26:34]wFMCommunicate request_size=4 [12:26:34]MH_SAM_APDU [12:26:34]CAPDU: 80 09 00 00 [12:26:34]Write to MH i2c: E2 08 00 A2 0F 80 09 00 00 00 00 00 00 23 [12:26:34]Write i2c OK [12:26:34]MH_I2C_Read... [12:26:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:26:34]Read from MH i2c: E2 [12:26:34]MH_I2C_Read... [12:26:34]Read from MH i2c: E2 03 00 [12:26:34]MH_I2C_Read... [12:26:34]Read from MH i2c: E2 03 00 A2 0F 00 90 00 25 [12:26:34]RAPDU: 90 00 [12:26:34]wFMCommunicate OK [12:26:34]SAM_PROTO_ClearQueue done [12:26:34]KKMCreateOFDPacket [12:26:34]OFDProtocolAddRootSTLVToBuf [12:26:34]FM_MakeSignedData [12:26:34]FM_MakeSignedData [12:26:34]SAM_PROTO_SignData [12:26:34]wFMCommunicate request_size=4 [12:26:34]MH_SAM_APDU [12:26:34]CAPDU: 80 0D 01 02 [12:26:34]Write to MH i2c: E2 08 00 A3 0F 80 0D 01 02 00 00 00 00 2B [12:26:34]Write i2c OK [12:26:34]MH_I2C_Read... [12:26:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:26:34]Read from MH i2c: E2 [12:26:34]MH_I2C_Read... [12:26:34]Read from MH i2c: E2 03 00 [12:26:34]MH_I2C_Read... [12:26:34]Read from MH i2c: E2 03 00 A3 0F 00 90 00 26 [12:26:34]RAPDU: 90 00 [12:26:34]wFMCommunicate OK [12:26:34]wFMCommunicate request_size=255 [12:26:34]MH_SAM_APDU [12:26:34]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 7B B6 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 [12:26:34]Write to MH i2c: E2 02 01 A4 0F 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 7B B6 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 00 00 9C [12:26:34]Write i2c OK [12:26:34]MH_I2C_Read... [12:26:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:26:34]Read from MH i2c: E2 [12:26:34]MH_I2C_Read... [12:26:34]Read from MH i2c: E2 03 00 [12:26:34]MH_I2C_Read... [12:26:34]Read from MH i2c: E2 03 00 A4 0F 00 90 00 27 [12:26:34]RAPDU: 90 00 [12:26:34]wFMCommunicate OK [12:26:34]wFMCommunicate request_size=33 [12:26:34]MH_SAM_APDU [12:26:34]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 35 30 37 34 10 04 04 00 39 F9 00 00 35 04 06 00 0C F8 C5 CF 06 36 [12:26:34]Write to MH i2c: E2 24 00 A5 0F 80 0D 02 02 1C 00 30 30 30 30 38 37 35 30 37 34 10 04 04 00 39 F9 00 00 35 04 06 00 0C F8 C5 CF 06 36 00 00 C2 [12:26:34]Write i2c OK [12:26:34]MH_I2C_Read... [12:26:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:26:34]Read from MH i2c: E2 [12:26:34]MH_I2C_Read... [12:26:34]Read from MH i2c: E2 03 00 [12:26:34]MH_I2C_Read... [12:26:34]Read from MH i2c: E2 03 00 A5 0F 00 90 00 28 [12:26:34]RAPDU: 90 00 [12:26:34]wFMCommunicate OK [12:26:34]wFMCommunicate request_size=4 [12:26:34]MH_SAM_APDU [12:26:34]CAPDU: 80 0D 03 02 [12:26:34]Write to MH i2c: E2 08 00 A6 0F 80 0D 03 02 00 00 00 00 30 [12:26:34]Write i2c OK [12:26:34]MH_I2C_Read... [12:26:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:26:34]Read from MH i2c: E2 [12:26:34]MH_I2C_Read... [12:26:34]Read from MH i2c: E2 0B 00 [12:26:34]MH_I2C_Read... [12:26:34]Read from MH i2c: E2 0B 00 A6 0F 00 53 88 00 A7 91 A7 DA 83 90 00 48 [12:26:34]RAPDU: 53 88 00 A7 91 A7 DA 83 90 00 [12:26:34]wFMCommunicate OK [12:26:34]SAM_PROTO_SignData done [12:26:34]FM_MakeSignedData done [12:26:34]CreateOFDProtocolMessage [12:26:34]wFMCommunicate request_size=4 [12:26:34]MH_SAM_APDU [12:26:34]CAPDU: 80 11 00 00 [12:26:34]Write to MH i2c: E2 08 00 A7 0F 80 11 00 00 00 00 00 00 30 [12:26:34]Write i2c OK [12:26:34]MH_I2C_Read... [12:26:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:26:34]Read from MH i2c: E2 [12:26:34]MH_I2C_Read... [12:26:34]Read from MH i2c: E2 17 00 [12:26:34]MH_I2C_Read... [12:26:34]Read from MH i2c: E2 17 00 A7 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 82 [12:26:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [12:26:34]wFMCommunicate OK [12:26:34]CreateOFDProtocolMessage done [12:26:34]OFDSenderStorePacket 63801 [12:26:34]StoreOFDPacket docnum=63801 [12:26:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 26 01 00 00 FD 1B 1E 01 CB 5F 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 7B B6 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 39 F9 00 00 35 04 06 00 0C F8 C5 CF 06 36 53 88 00 A7 91 A7 DA 83 [12:26:34]CheckFolder [12:26:34]dirname=/storage/ofd_packets [12:26:34]CheckFolder done [12:26:34]ProducePacketName [12:26:34]name=ofd_packets/00063801 [12:26:34]NVStorageSaveData ofd_packets/00063801 [12:26:34]File name is /storage/ofd_packets/00063801 [12:26:34]Write 324 bytes [12:26:34]NVStorageSaveData done [12:26:34]OFDSenderStorePacket done [12:26:34]KKMCreateOFDPacket done [12:26:34]NVStorageSaveData kkm_last_timestamp [12:26:34]File name is /storage/kkm_last_timestamp [12:26:34]Write 4 bytes [12:26:34]NVStorageSaveData done [12:26:34]ExternCall_PrintAddStr [12:26:34]wPrintStart [12:26:34]Write to MH i2c: 01 00 00 A8 0F B7 [12:26:34]Write i2c OK [12:26:34]MH_I2C_Read... [12:26:34]Read from MH i2c: 01 [12:26:34]MH_I2C_Read... [12:26:34]Read from MH i2c: 01 07 00 [12:26:34]MH_I2C_Read... [12:26:34]Read from MH i2c: 01 07 00 A8 0F 00 00 00 00 00 FF 0F CC [12:26:34]RasterBufferAndPrint [12:26:34]line Счет N : (3)73389 [12:26:34]line ИНН: 02508201610067 [12:26:34]line Контрольно-Кассовый Чек [12:26:34]line ПРОДАЖА [12:26:34]line Товар: 48741958 [12:26:34]line Сигареты Parliament Aqua Blue [12:26:34]line 1.000 * 151.00 [12:26:34]line = 151.00 [12:26:34]line НДС 12% НСП 1% [12:26:34]line > о реализуемом товаре [12:26:34]line ИТОГО: 151.00 [12:26:34]line НСП 1% : 1.34 [12:26:34]line НДС 12% : 16.03 [12:26:34]line Наличными: 151.00 [12:26:34]line Безнал.: 0.00 [12:26:34]line Место: АЗС № 117 "Партнер Нефть" [12:26:34]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [12:26:34]line СНО: Общий режим [12:26:34]line Чек 59 03.06.2024 12:26 [12:26:34]line Смена: 373 ФФД: 1.0 [12:26:34]line ЗНМ: 0300000031 [12:26:34]line РНМ: 0000000000092737 [12:26:34]line Версия ККМ: 001 [12:26:34]line ФМ: 0000000000875074 [12:26:34]line ФД: 63801 [12:26:34]line ФПД: 14262610101814 [12:26:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T122635&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63801&fm=14262610101814&tin=02508201610067®Number=0000000000092737&sum=15100 [12:26:34]line 0 [12:26:34]OFD Sender: Processing packet 63801 [packets to send 14, broken 13] [12:26:34]ProducePacketName [12:26:34]name=ofd_packets/00063801 [12:26:34]OFD Sender: To server: pG, [12:26:34]CommunicateWithHost lk.salyk.kg:30040 [12:26:34]ConnectInit lk.salyk.kg [12:26:34]written 0, free lines is 4095 [12:26:34]Connected sock=10 [12: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 35 30 37 34 26 01 00 00 FD 1B 1E 01 CB 5F 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 7B B6 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 39 F9 00 00 35 04 06 00 0C F8 C5 CF 06 36 53 88 00 A7 91 A7 DA 83 [12:26:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 B4 96 47 00 E5 6B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 39 F9 00 00 F4 03 04 00 4C 62 5D 66 B6 04 01 00 00 95 F2 D4 0B 0F 4D D9 2B [12:26:35]CommunicateWithHost err = 0 [12:26:35]CheckOFDResponse [12:26:35]1017 (14) - 77093643461234 [12:26:35]1041 (16) - 0000000000875074 [12:26:35]1040 (4) - 63801 [12:26:35]1012 (4) - 03.06.2024 06:27 [12:26:35]1206 (1) - 0 [12:26:35]OFD Sender: Remove packet 63801 [12:26:35]ProducePacketName [12:26:35]name=ofd_packets/00063801 [12:26:35]NVStorageDeleteData [12:26:35]Write to MH i2c: 01 00 00 D1 0F E0 [12:26:35]Write i2c OK [12:26:35]MH_I2C_Read... [12:26:35]Read from MH i2c: 01 [12:26:35]MH_I2C_Read... [12:26:35]Read from MH i2c: 01 07 00 [12:26:35]MH_I2C_Read... [12:26:35]Read from MH i2c: 01 07 00 D1 0F 00 00 00 00 00 C4 0C B7 [12:26:35]RasterBufferAndPrint [12:26:35]line [12:26:35]line [12:26:35]line [12:26:35]line [12:26:35]line [12:26:35]written 0, free lines is 3275 [12:26:35]MH_Cut [12:26:35]Write to MH i2c: D1 01 00 D8 0F 01 B9 [12:26:35]Write i2c OK [12:26:35]MH_I2C_Read... [12:26:35]Read from MH i2c: D1 [12:26:35]MH_I2C_Read... [12:26:35]Read from MH i2c: D1 01 00 [12:26:35]MH_I2C_Read... [12:26:35]Read from MH i2c: D1 01 00 D8 0F 00 B8 [12:26:35]Write to MH i2c: 01 00 00 D9 0F E8 [12:26:35]Write i2c OK [12:26:35]MH_I2C_Read... [12:26:35]OFD Sender: No OFD packet to send [12:26:36]*** Cut start [12:26:36]*** Partial cut [12:26:36]*** CUTSNS_PIN = 1 [12:26:36]*** CUTSNS_PIN = 0 [12:26:36]*** Brake cut motor [12:26:36]Read from MH i2c: 01 [12:26:36]MH_I2C_Read... [12:26:36]*** Stop cut motor [12:26:36]*** Cut end [12:26:36]Read from MH i2c: 01 07 00 [12:26:36]MH_I2C_Read... [12:26:36]Read from MH i2c: 01 07 00 D9 0F 00 00 00 00 00 FF 0F FD [12:26:36]process_action close_receipt done [12:26:36]requested_data is exist [12:26:36]produce_requested_data [12:26:36]requested_item fm.sn is exist - process it [12:26:36]wFMCommunicate request_size=4 [12:26:36]MH_SAM_APDU [12:26:36]CAPDU: 80 11 00 00 [12:26:36]Write to MH i2c: E2 08 00 DA 0F 80 11 00 00 00 00 00 00 63 [12:26:36]Write i2c OK [12:26:36]MH_I2C_Read... [12:26:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:26:36]Read from MH i2c: E2 [12:26:36]MH_I2C_Read... [12:26:36]Read from MH i2c: E2 17 00 [12:26:36]MH_I2C_Read... [12:26:36]Read from MH i2c: E2 17 00 DA 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 B5 [12:26:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [12:26:36]wFMCommunicate OK [12:26:36]requested_item fd.num is exist - process it [12:26:36]SAM_PROTO_GetFieldsCounters [12:26:36]wFMCommunicate request_size=4 [12:26:36]MH_SAM_APDU [12:26:36]CAPDU: 80 13 00 00 [12:26:36]Write to MH i2c: E2 08 00 DB 0F 80 13 00 00 00 00 00 00 66 [12:26:36]Write i2c OK [12:26:36]MH_I2C_Read... [12:26:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:26:36]Read from MH i2c: E2 [12:26:36]MH_I2C_Read... [12:26:36]Read from MH i2c: E2 62 00 [12:26:36]MH_I2C_Read... [12:26:37]Read from MH i2c: E2 62 00 DB 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 39 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 E2 [12: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 39 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:26:37]wFMCommunicate OK [12:26:37]SAM_PROTO_GetFieldsCounters done [12:26:37]requested_item shift.num is exist - process it [12:26:37]requested_item shift.opened is exist - process it [12:26:37]req_shift_opened [12:26:37]FM_GetShiftState [12:26:37]SAM_PROTO_GetShiftState [12:26:37]wFMCommunicate request_size=4 [12:26:37]MH_SAM_APDU [12:26:37]CAPDU: 80 13 01 00 [12:26:37]Write to MH i2c: E2 08 00 DC 0F 80 13 01 00 00 00 00 00 68 [12:26:37]Write i2c OK [12:26:37]MH_I2C_Read... [12:26:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:26:37]Read from MH i2c: E2 [12:26:37]MH_I2C_Read... [12:26:37]Read from MH i2c: E2 0E 00 [12:26:37]MH_I2C_Read... [12:26:37]Read from MH i2c: E2 0E 00 DC 0F 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 34 [12:26:37]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [12:26:37]wFMCommunicate OK [12:26:37]SAM_PROTO_GetShiftState done [12:26:37]FM_GetShiftState done [12:26:37]req_shift_opened done [12:26:37]requested_item shift.open_date is exist - process it [12:26:37]req_shift_open_date [12:26:37]req_shift_open_date done [12:26:37]produce_requested_data done [12:26:37]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63801,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [12:26:37]process_action_free close_receipt [12:26:37]json_value_free [12:26:37]json_value_free done [12:26:37]process_json_proto returns [12:26:37]Send response to host [12:26:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63801,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [12:26:37]free response buf [12:26:37]execute_script done [12:26:37]execute_script returns [12:26:37]free content buf [12:26:37]Sock 7.Close socket [12:26:37]Sock 7.Thread stoped [12:26:40]OFD Sender: No OFD packet to send [12:26:45]OFD Sender: No OFD packet to send [12:26:50]OFD Sender: No OFD packet to send [12:26:55]OFD Sender: No OFD packet to send [12:27:00]OFD Sender: No OFD packet to send [12:27:05]OFD Sender: No OFD packet to send [12:27:10]OFD Sender: No OFD packet to send [12:27:15]OFD Sender: No OFD packet to send [12:27:20]OFD Sender: No OFD packet to send [12:27:25]OFD Sender: No OFD packet to send [12:27:30]OFD Sender: No OFD packet to send [12:27:35]OFD Sender: No OFD packet to send [12:27:40]OFD Sender: No OFD packet to send [12:27:45]OFD Sender: No OFD packet to send [12:27:50]OFD Sender: No OFD packet to send [12:27:55]OFD Sender: No OFD packet to send [12:28:00]OFD Sender: No OFD packet to send [12:28:05]OFD Sender: No OFD packet to send [12:28:10]OFD Sender: No OFD packet to send [12:28:15]OFD Sender: No OFD packet to send [12:28:20]OFD Sender: No OFD packet to send [12:28:25]OFD Sender: No OFD packet to send [12:28:30]OFD Sender: No OFD packet to send [12:28:35]OFD Sender: No OFD packet to send [12:28:40]OFD Sender: No OFD packet to send [12:28:45]OFD Sender: No OFD packet to send [12:28:50]OFD Sender: No OFD packet to send [12:28:55]OFD Sender: No OFD packet to send [12:29:00]OFD Sender: No OFD packet to send [12:29:05]OFD Sender: No OFD packet to send [12:29:10]OFD Sender: No OFD packet to send [12:29:15]accept exits with 9 [12:29:15]New connection [12:29:15]New thread 3067518308 created [12:29:15]Thread 3067374948 joined [12:29:15]Waiting for new connection... [12:29:15] Sock 9.Parse request [12:29:15]Sock 9.Check first char [12:29:15]Sock 9.First char is OK [12:29:15]request: POST /json_proto HTTP/1.0 [12:29:15]Method: POST [12:29:15]URL: /json_proto [12:29:15]Method is POST - this is cgi request [12:29:15]url: /json_proto [12:29:15]query_string will be loaded in cgi processing [12:29:15]execute_cgi json_proto POST (null) [12:29:15]execute_cgi path=json_proto method=POST [12:29:15]POST find Content-Length [12:29:15]Host: 172.17.60.69:8080 [12:29:15]Content-Length: 690 [12:29:15]Content-Type: application/json [12:29:15] [12:29:15]POST finish read [12:29:15]Found Content-Length = 690 [12:29:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73390", "tax_sys" : 0, "items" : [ { "code": "5449000000950", "name": "\u041A\u041E\u041C\u0411\u041E \u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,33\u043B", "price" : 77.00, "quantity" : 2.000, "sum" : 154.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 154.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:29:15]execute_script... [12:29:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73390", "tax_sys" : 0, "items" : [ { "code": "5449000000950", "name": "\u041A\u041E\u041C\u0411\u041E \u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,33\u043B", "price" : 77.00, "quantity" : 2.000, "sum" : 154.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 154.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:29:15]POST & json_proto [12:29:15]process_json_proto [12:29:15]json parsed OK: [12:29:15]protocol is kg_v1.0 [12:29:15]action value=close_receipt [12:29:15]process_action close_receipt [12:29:15]cmd_close_receipt [12:29:15]MH_GetDate [12:29:15]Write to MH i2c: F0 00 00 DD 0F DB [12:29:15]Write i2c OK [12:29:15]MH_I2C_Read... [12:29:15]Read from MH i2c: F0 [12:29:15]MH_I2C_Read... [12:29:15]Read from MH i2c: F0 09 00 [12:29:15]MH_I2C_Read... [12:29:15]Read from MH i2c: F0 09 00 DD 0F 00 1E B7 5D 66 6A 96 4A 66 2C [12:29:15]GetLastDocTimeStamp 1717417595 [12:29:15]current date 1717417758 [12:29:15]FM_GetShiftState [12:29:15]SAM_PROTO_GetShiftState [12:29:15]wFMCommunicate request_size=4 [12:29:15]MH_SAM_APDU [12:29:15]CAPDU: 80 13 01 00 [12:29:15]Write to MH i2c: E2 08 00 DE 0F 80 13 01 00 00 00 00 00 6A [12:29:15]Write i2c OK [12:29:15]MH_I2C_Read... [12:29:15]OFD Sender: No OFD packet to send [12:29:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:29:15]Read from MH i2c: E2 [12:29:15]MH_I2C_Read... [12:29:15]Read from MH i2c: E2 0E 00 [12:29:15]MH_I2C_Read... [12:29:15]Read from MH i2c: E2 0E 00 DE 0F 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 36 [12:29:15]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [12:29:15]wFMCommunicate OK [12:29:15]SAM_PROTO_GetShiftState done [12:29:15]FM_GetShiftState done [12:29:15]opened in 1717373173 [12:29:15]opened+sec_in_day 1717459573 [12:29:15]quantity*price = 15400 [12:29:15]sum+1 = 15401 [12:29:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 154.00 НСП 1% : 1.36 НДС 12% : 16.35 Наличными: 154.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 60 03.06.2024 12:29 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63802 ФПД: 267131157034266 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T122918&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63802&fm=267131157034266&tin=02508201610067®Number=0000000000092737&sum=15400 0 [12:29:16]StoreToDocumentArchive [12:29:16]shift 373 fd 63802 [12:29:16]save to /storage/0373/doc_00063802 [12:29:16]save last doc name /storage/0373/doc_00063802 to /storage/kkm_last_doc_name [12:29:16]save OK [12:29:16]Clear old archive folders... [12:29:16]ProcessDocumentItem done err = 0, tmpTLVsize=292 [12:29:16]tlvbuf is 00D97E00 [12:29:16]SAM_PROTO_ClearQueue [12:29:16]wFMCommunicate request_size=4 [12:29:16]MH_SAM_APDU [12:29:16]CAPDU: 80 09 00 00 [12:29:16]Write to MH i2c: E2 08 00 EB 0F 80 09 00 00 00 00 00 00 6C [12:29:16]Write i2c OK [12:29:16]MH_I2C_Read... [12:29:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:29:17]Read from MH i2c: E2 [12:29:17]MH_I2C_Read... [12:29:17]Read from MH i2c: E2 03 00 [12:29:17]MH_I2C_Read... [12:29:17]Read from MH i2c: E2 03 00 EB 0F 00 90 00 6E [12:29:17]RAPDU: 90 00 [12:29:17]wFMCommunicate OK [12:29:17]SAM_PROTO_ClearQueue done [12:29:17]KKMCreateOFDPacket [12:29:17]OFDProtocolAddRootSTLVToBuf [12:29:17]FM_MakeSignedData [12:29:17]FM_MakeSignedData [12:29:17]SAM_PROTO_SignData [12:29:17]wFMCommunicate request_size=4 [12:29:17]MH_SAM_APDU [12:29:17]CAPDU: 80 0D 01 02 [12:29:17]Write to MH i2c: E2 08 00 EC 0F 80 0D 01 02 00 00 00 00 74 [12:29:17]Write i2c OK [12:29:17]MH_I2C_Read... [12:29:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:29:17]Read from MH i2c: E2 [12:29:17]MH_I2C_Read... [12:29:17]Read from MH i2c: E2 03 00 [12:29:17]MH_I2C_Read... [12:29:17]Read from MH i2c: E2 03 00 EC 0F 00 90 00 6F [12:29:17]RAPDU: 90 00 [12:29:17]wFMCommunicate OK [12:29:17]wFMCommunicate request_size=255 [12:29:17]MH_SAM_APDU [12:29:17]CAPDU: 80 0D 02 02 FA 03 00 24 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 39 35 30 06 04 32 00 D0 9A D0 9E D0 9C D0 91 D0 9E 20 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 33 33 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 06 00 00 00 00 07 04 06 00 28 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 1E B7 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 [12:29:17]Write to MH i2c: E2 02 01 ED 0F 80 0D 02 02 FA 00 03 00 24 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 39 35 30 06 04 32 00 D0 9A D0 9E D0 9C D0 91 D0 9E 20 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 33 33 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 06 00 00 00 00 07 04 06 00 28 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 1E B7 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 00 00 BC [12:29:17]Write i2c OK [12:29:17]MH_I2C_Read... [12:29:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:29:17]Read from MH i2c: E2 [12:29:17]MH_I2C_Read... [12:29:17]Read from MH i2c: E2 03 00 [12:29:17]MH_I2C_Read... [12:29:17]Read from MH i2c: E2 03 00 ED 0F 00 90 00 70 [12:29:17]RAPDU: 90 00 [12:29:17]wFMCommunicate OK [12:29:17]wFMCommunicate request_size=51 [12:29:17]MH_SAM_APDU [12:29:17]CAPDU: 80 0D 02 02 2E 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 3A F9 00 00 35 04 06 00 F2 F4 51 B9 35 1A [12:29:17]Write to MH i2c: E2 36 00 EE 0F 80 0D 02 02 2E 00 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 3A F9 00 00 35 04 06 00 F2 F4 51 B9 35 1A 00 00 7C [12:29:17]Write i2c OK [12:29:17]MH_I2C_Read... [12:29:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:29:17]Read from MH i2c: E2 [12:29:17]MH_I2C_Read... [12:29:17]Read from MH i2c: E2 03 00 [12:29:17]MH_I2C_Read... [12:29:17]Read from MH i2c: E2 03 00 EE 0F 00 90 00 71 [12:29:17]RAPDU: 90 00 [12:29:17]wFMCommunicate OK [12:29:17]wFMCommunicate request_size=4 [12:29:17]MH_SAM_APDU [12:29:17]CAPDU: 80 0D 03 02 [12:29:17]Write to MH i2c: E2 08 00 EF 0F 80 0D 03 02 00 00 00 00 79 [12:29:17]Write i2c OK [12:29:17]MH_I2C_Read... [12:29:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:29:17]Read from MH i2c: E2 [12:29:17]MH_I2C_Read... [12:29:17]Read from MH i2c: E2 0B 00 [12:29:17]MH_I2C_Read... [12:29:17]Read from MH i2c: E2 0B 00 EF 0F 00 F0 AE EE F9 90 95 46 74 90 00 DE [12:29:17]RAPDU: F0 AE EE F9 90 95 46 74 90 00 [12:29:17]wFMCommunicate OK [12:29:17]SAM_PROTO_SignData done [12:29:17]FM_MakeSignedData done [12:29:17]CreateOFDProtocolMessage [12:29:17]wFMCommunicate request_size=4 [12:29:17]MH_SAM_APDU [12:29:17]CAPDU: 80 11 00 00 [12:29:17]Write to MH i2c: E2 08 00 F0 0F 80 11 00 00 00 00 00 00 79 [12:29:17]Write i2c OK [12:29:17]MH_I2C_Read... [12:29:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:29:17]Read from MH i2c: E2 [12:29:17]MH_I2C_Read... [12:29:17]Read from MH i2c: E2 17 00 [12:29:17]MH_I2C_Read... [12:29:17]Read from MH i2c: E2 17 00 F0 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 CB [12:29:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [12:29:17]wFMCommunicate OK [12:29:17]CreateOFDProtocolMessage done [12:29:17]OFDSenderStorePacket 63802 [12:29:17]StoreOFDPacket docnum=63802 [12:29:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 38 01 00 00 1C 05 30 01 39 B7 5A 03 01 00 03 00 24 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 39 35 30 06 04 32 00 D0 9A D0 9E D0 9C D0 91 D0 9E 20 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 33 33 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 06 00 00 00 00 07 04 06 00 28 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 1E B7 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 3A F9 00 00 35 04 06 00 F2 F4 51 B9 35 1A F0 AE EE F9 90 95 46 74 [12:29:17]CheckFolder [12:29:17]dirname=/storage/ofd_packets [12:29:17]CheckFolder done [12:29:17]ProducePacketName [12:29:17]name=ofd_packets/00063802 [12:29:17]NVStorageSaveData ofd_packets/00063802 [12:29:17]File name is /storage/ofd_packets/00063802 [12:29:17]Write 342 bytes [12:29:17]NVStorageSaveData done [12:29:17]OFDSenderStorePacket done [12:29:17]KKMCreateOFDPacket done [12:29:17]NVStorageSaveData kkm_last_timestamp [12:29:17]File name is /storage/kkm_last_timestamp [12:29:17]Write 4 bytes [12:29:17]NVStorageSaveData done [12:29:17]ExternCall_PrintAddStr [12:29:17]wPrintStart [12:29:17]Write to MH i2c: 01 00 00 F1 0F 00 [12:29:17]Write i2c OK [12:29:17]MH_I2C_Read... [12:29:17]Read from MH i2c: 01 [12:29:17]MH_I2C_Read... [12:29:17]Read from MH i2c: 01 07 00 [12:29:17]MH_I2C_Read... [12:29:17]Read from MH i2c: 01 07 00 F1 0F 00 00 00 00 00 FF 0F 15 [12:29:17]RasterBufferAndPrint [12:29:17]line Счет N : (3)73390 [12:29:17]line ИНН: 02508201610067 [12:29:17]line Контрольно-Кассовый Чек [12:29:17]line ПРОДАЖА [12:29:17]line Товар: 5449000000950 [12:29:17]line КОМБО Напиток Кока-Кола 0,33л [12:29:17]line 2.000 * 77.00 [12:29:17]line = 154.00 [12:29:17]line НДС 12% НСП 1% [12:29:17]line > о реализуемом товаре [12:29:17]line ИТОГО: 154.00 [12:29:17]line НСП 1% : 1.36 [12:29:17]line НДС 12% : 16.35 [12:29:17]line Наличными: 154.00 [12:29:17]line Безнал.: 0.00 [12:29:17]line Место: АЗС № 117 "Партнер Нефть" [12:29:17]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [12:29:17]line СНО: Общий режим [12:29:17]line Чек 60 03.06.2024 12:29 [12:29:17]line Смена: 373 ФФД: 1.0 [12:29:17]line ЗНМ: 0300000031 [12:29:17]line РНМ: 0000000000092737 [12:29:17]line Версия ККМ: 001 [12:29:17]line ФМ: 0000000000875074 [12:29:17]line ФД: 63802 [12:29:17]line ФПД: 267131157034266 [12:29:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T122918&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63802&fm=267131157034266&tin=02508201610067®Number=0000000000092737&sum=15400 [12:29:17]OFD Sender: Processing packet 63802 [packets to send 14, broken 13] [12:29:17]ProducePacketName [12:29:17]name=ofd_packets/00063802 [12:29:17]OFD Sender: To server: pG, [12:29:17]CommunicateWithHost lk.salyk.kg:30040 [12:29:17]ConnectInit lk.salyk.kg [12:29:17]line 0 [12:29:17]written 0, free lines is 4095 [12:29:17]Connected sock=10 [12:29:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 38 01 00 00 1C 05 30 01 39 B7 5A 03 01 00 03 00 24 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 39 35 30 06 04 32 00 D0 9A D0 9E D0 9C D0 91 D0 9E 20 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 33 33 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 06 00 00 00 00 07 04 06 00 28 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 1E B7 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 3A F9 00 00 35 04 06 00 F2 F4 51 B9 35 1A F0 AE EE F9 90 95 46 74 [12:29:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 E3 64 47 00 33 C9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 3A F9 00 00 F4 03 04 00 EF 62 5D 66 B6 04 01 00 00 36 D0 60 39 4A C1 C1 3D [12:29:18]CommunicateWithHost err = 0 [12:29:18]CheckOFDResponse [12:29:18]1017 (14) - 77093643461234 [12:29:18]1041 (16) - 0000000000875074 [12:29:18]1040 (4) - 63802 [12:29:18]1012 (4) - 03.06.2024 06:30 [12:29:18]1206 (1) - 0 [12:29:18]OFD Sender: Remove packet 63802 [12:29:18]ProducePacketName [12:29:18]name=ofd_packets/00063802 [12:29:18]NVStorageDeleteData [12:29:18]Write to MH i2c: 01 00 00 1A 10 2A [12:29:18]Write i2c OK [12:29:18]MH_I2C_Read... [12:29:18]Read from MH i2c: 01 [12:29:18]MH_I2C_Read... [12:29:18]Read from MH i2c: 01 07 00 [12:29:18]MH_I2C_Read... [12:29:18]Read from MH i2c: 01 07 00 1A 10 00 00 00 00 00 E7 0C 24 [12:29:18]RasterBufferAndPrint [12:29:18]line [12:29:18]line [12:29:18]line [12:29:18]line [12:29:18]line [12:29:18]written 0, free lines is 3310 [12:29:18]MH_Cut [12:29:18]Write to MH i2c: D1 01 00 21 10 01 03 [12:29:18]Write i2c OK [12:29:18]MH_I2C_Read... [12:29:18]Read from MH i2c: D1 [12:29:18]MH_I2C_Read... [12:29:18]Read from MH i2c: D1 01 00 [12:29:18]MH_I2C_Read... [12:29:18]Read from MH i2c: D1 01 00 21 10 00 02 [12:29:18]Write to MH i2c: 01 00 00 22 10 32 [12:29:18]Write i2c OK [12:29:18]MH_I2C_Read... [12:29:18]OFD Sender: No OFD packet to send [12:29:19]*** Cut start [12:29:19]*** Partial cut [12:29:19]*** CUTSNS_PIN = 1 [12:29:19]*** CUTSNS_PIN = 0 [12:29:19]*** Brake cut motor [12:29:19]Read from MH i2c: 01 [12:29:19]MH_I2C_Read... [12:29:19]*** Stop cut motor [12:29:19]*** Cut end [12:29:19]Read from MH i2c: 01 07 00 [12:29:19]MH_I2C_Read... [12:29:19]Read from MH i2c: 01 07 00 22 10 00 00 00 00 00 FF 0F 47 [12:29:19]process_action close_receipt done [12:29:19]requested_data is exist [12:29:19]produce_requested_data [12:29:19]requested_item fm.sn is exist - process it [12:29:19]wFMCommunicate request_size=4 [12:29:19]MH_SAM_APDU [12:29:19]CAPDU: 80 11 00 00 [12:29:19]Write to MH i2c: E2 08 00 23 10 80 11 00 00 00 00 00 00 AD [12:29:19]Write i2c OK [12:29:19]MH_I2C_Read... [12:29:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:29:19]Read from MH i2c: E2 [12:29:19]MH_I2C_Read... [12:29:19]Read from MH i2c: E2 17 00 [12:29:19]MH_I2C_Read... [12:29:19]Read from MH i2c: E2 17 00 23 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 FF [12:29:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [12:29:19]wFMCommunicate OK [12:29:19]requested_item fd.num is exist - process it [12:29:19]SAM_PROTO_GetFieldsCounters [12:29:19]wFMCommunicate request_size=4 [12:29:19]MH_SAM_APDU [12:29:19]CAPDU: 80 13 00 00 [12:29:19]Write to MH i2c: E2 08 00 24 10 80 13 00 00 00 00 00 00 B0 [12:29:19]Write i2c OK [12:29:19]MH_I2C_Read... [12:29:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:29:19]Read from MH i2c: E2 [12:29:19]MH_I2C_Read... [12:29:19]Read from MH i2c: E2 62 00 [12:29:19]MH_I2C_Read... [12:29:19]Read from MH i2c: E2 62 00 24 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 3A F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 30 [12:29: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 3A F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:29:19]wFMCommunicate OK [12:29:19]SAM_PROTO_GetFieldsCounters done [12:29:19]requested_item shift.num is exist - process it [12:29:19]requested_item shift.opened is exist - process it [12:29:19]req_shift_opened [12:29:19]FM_GetShiftState [12:29:19]SAM_PROTO_GetShiftState [12:29:19]wFMCommunicate request_size=4 [12:29:19]MH_SAM_APDU [12:29:19]CAPDU: 80 13 01 00 [12:29:19]Write to MH i2c: E2 08 00 25 10 80 13 01 00 00 00 00 00 B2 [12:29:19]Write i2c OK [12:29:19]MH_I2C_Read... [12:29:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:29:20]Read from MH i2c: E2 [12:29:20]MH_I2C_Read... [12:29:20]Read from MH i2c: E2 0E 00 [12:29:20]MH_I2C_Read... [12:29:20]Read from MH i2c: E2 0E 00 25 10 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 7E [12:29:20]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [12:29:20]wFMCommunicate OK [12:29:20]SAM_PROTO_GetShiftState done [12:29:20]FM_GetShiftState done [12:29:20]req_shift_opened done [12:29:20]requested_item shift.open_date is exist - process it [12:29:20]req_shift_open_date [12:29:20]req_shift_open_date done [12:29:20]produce_requested_data done [12:29:20]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63802,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [12:29:20]process_action_free close_receipt [12:29:20]json_value_free [12:29:20]json_value_free done [12:29:20]process_json_proto returns [12:29:20]Send response to host [12:29:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63802,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [12:29:20]free response buf [12:29:20]execute_script done [12:29:20]execute_script returns [12:29:20]free content buf [12:29:20]Sock 9.Close socket [12:29:20]Sock 9.Thread stoped [12:29:23]OFD Sender: No OFD packet to send [12:29:28]OFD Sender: No OFD packet to send [12:29:33]OFD Sender: No OFD packet to send [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:08]OFD Sender: No OFD packet to send [12:30:13]OFD Sender: No OFD packet to send [12:30:18]OFD Sender: No OFD packet to send [12:30:23]OFD Sender: No OFD packet to send [12:30:28]OFD Sender: No OFD packet to send [12:30:33]OFD Sender: No OFD packet to send [12:30:38]OFD Sender: No OFD packet to send [12:30:43]OFD Sender: No OFD packet to send [12:30:48]OFD Sender: No OFD packet to send [12:30:53]OFD Sender: No OFD packet to send [12:30:58]OFD Sender: No OFD packet to send [12:31:03]OFD Sender: No OFD packet to send [12:31:08]OFD Sender: No OFD packet to send [12:31:13]OFD Sender: No OFD packet to send [12:31:18]OFD Sender: No OFD packet to send [12:31:23]OFD Sender: No OFD packet to send [12:31:28]OFD Sender: No OFD packet to send [12:31:33]OFD Sender: No OFD packet to send [12:31:38]OFD Sender: No OFD packet to send [12:31:43]OFD Sender: No OFD packet to send [12:31:48]OFD Sender: No OFD packet to send [12:31:53]OFD Sender: No OFD packet to send [12:31:58]OFD Sender: No OFD packet to send [12:32:03]OFD Sender: No OFD packet to send [12:32:08]OFD Sender: No OFD packet to send [12:32:13]OFD Sender: No OFD packet to send [12:32:18]OFD Sender: No OFD packet to send [12:32:23]OFD Sender: No OFD packet to send [12:32:28]OFD Sender: No OFD packet to send [12:32:33]OFD Sender: No OFD packet to send [12:32:38]OFD Sender: No OFD packet to send [12:32:43]OFD Sender: No OFD packet to send [12:32:48]OFD Sender: No OFD packet to send [12:32:53]OFD Sender: No OFD packet to send [12:32:58]OFD Sender: No OFD packet to send [12:33:03]OFD Sender: No OFD packet to send [12:33:08]OFD Sender: No OFD packet to send [12:33:13]OFD Sender: No OFD packet to send [12:33:18]OFD Sender: No OFD packet to send [12:33:23]OFD Sender: No OFD packet to send [12:33:28]OFD Sender: No OFD packet to send [12:33:33]OFD Sender: No OFD packet to send [12:33:38]OFD Sender: No OFD packet to send [12:33:43]OFD Sender: No OFD packet to send [12:33:48]OFD Sender: No OFD packet to send [12:33:53]OFD Sender: No OFD packet to send [12:33:58]OFD Sender: No OFD packet to send [12:34:03]OFD Sender: No OFD packet to send [12:34:08]OFD Sender: No OFD packet to send [12:34:13]OFD Sender: No OFD packet to send [12:34:18]OFD Sender: No OFD packet to send [12:34:23]OFD Sender: No OFD packet to send [12:34:28]OFD Sender: No OFD packet to send [12:34:33]OFD Sender: No OFD packet to send [12:34:38]OFD Sender: No OFD packet to send [12:34:43]OFD Sender: No OFD packet to send [12:34:48]OFD Sender: No OFD packet to send [12:34:53]OFD Sender: No OFD packet to send [12:34:58]OFD Sender: No OFD packet to send [12:35:03]OFD Sender: No OFD packet to send [12:35:08]OFD Sender: No OFD packet to send [12:35:13]OFD Sender: No OFD packet to send [12:35:18]OFD Sender: No OFD packet to send [12:35:24]OFD Sender: No OFD packet to send [12:35:29]OFD Sender: No OFD packet to send [12:35:34]OFD Sender: No OFD packet to send [12:35:39]OFD Sender: No OFD packet to send [12:35:44]OFD Sender: No OFD packet to send [12:35:49]OFD Sender: No OFD packet to send [12:35:54]OFD Sender: No OFD packet to send [12:35:59]OFD Sender: No OFD packet to send [12:36:04]OFD Sender: No OFD packet to send [12:36:09]OFD Sender: No OFD packet to send [12:36:14]OFD Sender: No OFD packet to send [12:36:19]OFD Sender: No OFD packet to send [12:36:24]OFD Sender: No OFD packet to send [12:36:29]OFD Sender: No OFD packet to send [12:36:34]OFD Sender: No OFD packet to send [12:36:39]OFD Sender: No OFD packet to send [12:36:44]OFD Sender: No OFD packet to send [12:36:49]OFD Sender: No OFD packet to send [12:36:54]OFD Sender: No OFD packet to send [12:36:59]OFD Sender: No OFD packet to send [12:37:04]OFD Sender: No OFD packet to send [12:37:09]OFD Sender: No OFD packet to send [12:37:14]OFD Sender: No OFD packet to send [12:37:19]OFD Sender: No OFD packet to send [12:37:24]OFD Sender: No OFD packet to send [12:37:29]OFD Sender: No OFD packet to send [12:37:34]OFD Sender: No OFD packet to send [12:37:39]OFD Sender: No OFD packet to send [12:37:44]OFD Sender: No OFD packet to send [12:37:49]OFD Sender: No OFD packet to send [12:37:54]OFD Sender: No OFD packet to send [12:37:59]OFD Sender: No OFD packet to send [12:38:04]OFD Sender: No OFD packet to send [12:38:09]OFD Sender: No OFD packet to send [12:38:14]OFD Sender: No OFD packet to send [12:38:19]OFD Sender: No OFD packet to send [12:38:24]OFD Sender: No OFD packet to send [12:38:29]OFD Sender: No OFD packet to send [12:38:34]OFD Sender: No OFD packet to send [12:38:39]OFD Sender: No OFD packet to send [12:38:44]OFD Sender: No OFD packet to send [12:38:49]OFD Sender: No OFD packet to send [12:38:54]OFD Sender: No OFD packet to send [12:38:59]OFD Sender: No OFD packet to send [12:39:04]OFD Sender: No OFD packet to send [12:39:09]OFD Sender: No OFD packet to send [12:39:14]OFD Sender: No OFD packet to send [12:39:19]OFD Sender: No OFD packet to send [12:39:24]OFD Sender: No OFD packet to send [12:39:29]OFD Sender: No OFD packet to send [12:39:34]OFD Sender: No OFD packet to send [12:39:39]OFD Sender: No OFD packet to send [12:39:44]OFD Sender: No OFD packet to send [12:39:49]OFD Sender: No OFD packet to send [12:39:54]OFD Sender: No OFD packet to send [12:39:59]OFD Sender: No OFD packet to send [12:40:04]OFD Sender: No OFD packet to send [12:40:09]OFD Sender: No OFD packet to send [12:40:14]OFD Sender: No OFD packet to send [12:40:19]OFD Sender: No OFD packet to send [12:40:24]OFD Sender: No OFD packet to send [12:40:29]OFD Sender: No OFD packet to send [12:40:34]OFD Sender: No OFD packet to send [12:40:39]OFD Sender: No OFD packet to send [12:40:44]OFD Sender: No OFD packet to send [12:40:49]OFD Sender: No OFD packet to send [12:40:54]OFD Sender: No OFD packet to send [12:40:59]OFD Sender: No OFD packet to send [12:41:04]OFD Sender: No OFD packet to send [12:41:09]OFD Sender: No OFD packet to send [12:41:14]OFD Sender: No OFD packet to send [12:41:19]OFD Sender: No OFD packet to send [12:41:24]OFD Sender: No OFD packet to send [12:41:29]OFD Sender: No OFD packet to send [12:41:34]OFD Sender: No OFD packet to send [12:41:39]OFD Sender: No OFD packet to send [12:41:44]OFD Sender: No OFD packet to send [12:41:49]OFD Sender: No OFD packet to send [12:41:54]OFD Sender: No OFD packet to send [12:41:59]OFD Sender: No OFD packet to send [12:42:04]OFD Sender: No OFD packet to send [12:42:09]OFD Sender: No OFD packet to send [12:42:14]OFD Sender: No OFD packet to send [12:42:19]OFD Sender: No OFD packet to send [12:42:24]OFD Sender: No OFD packet to send [12:42:29]OFD Sender: No OFD packet to send [12:42:34]OFD Sender: No OFD packet to send [12:42:39]OFD Sender: No OFD packet to send [12:42:44]OFD Sender: No OFD packet to send [12:42:49]OFD Sender: No OFD packet to send [12:42:54]OFD Sender: No OFD packet to send [12:42:59]OFD Sender: No OFD packet to send [12:43:04]OFD Sender: No OFD packet to send [12:43:09]OFD Sender: No OFD packet to send [12:43:14]OFD Sender: No OFD packet to send [12:43:19]OFD Sender: No OFD packet to send [12:43:24]OFD Sender: No OFD packet to send [12:43:29]OFD Sender: No OFD packet to send [12:43:34]OFD Sender: No OFD packet to send [12:43:39]OFD Sender: No OFD packet to send [12:43:44]OFD Sender: No OFD packet to send [12:43:49]OFD Sender: No OFD packet to send [12:43:54]OFD Sender: No OFD packet to send [12:43:59]OFD Sender: No OFD packet to send [12:44:04]OFD Sender: No OFD packet to send [12:44:09]OFD Sender: No OFD packet to send [12:44:14]OFD Sender: No OFD packet to send [12:44:19]OFD Sender: No OFD packet to send [12:44:24]OFD Sender: No OFD packet to send [12:44:29]OFD Sender: No OFD packet to send [12:44:34]OFD Sender: No OFD packet to send [12:44:39]OFD Sender: No OFD packet to send [12:44:44]OFD Sender: No OFD packet to send [12:44:49]OFD Sender: No OFD packet to send [12:44:54]OFD Sender: No OFD packet to send [12:44:59]OFD Sender: No OFD packet to send [12:45:04]OFD Sender: No OFD packet to send [12:45:09]OFD Sender: No OFD packet to send [12:45:14]OFD Sender: No OFD packet to send [12:45:19]OFD Sender: No OFD packet to send [12:45:24]OFD Sender: No OFD packet to send [12:45:29]OFD Sender: No OFD packet to send [12:45:34]OFD Sender: No OFD packet to send [12:45:39]OFD Sender: No OFD packet to send [12:45:44]OFD Sender: No OFD packet to send [12:45:49]OFD Sender: No OFD packet to send [12:45:54]OFD Sender: No OFD packet to send [12:45:59]OFD Sender: No OFD packet to send [12:46:04]OFD Sender: No OFD packet to send [12:46:09]OFD Sender: No OFD packet to send [12:46:14]OFD Sender: No OFD packet to send [12:46:19]OFD Sender: No OFD packet to send [12:46:24]OFD Sender: No OFD packet to send [12:46:29]OFD Sender: No OFD packet to send [12:46:34]OFD Sender: No OFD packet to send [12:46:39]OFD Sender: No OFD packet to send [12:46:44]OFD Sender: No OFD packet to send [12:46:49]OFD Sender: No OFD packet to send [12:46:54]OFD Sender: No OFD packet to send [12:46:59]OFD Sender: No OFD packet to send [12:47:04]OFD Sender: No OFD packet to send [12:47:09]OFD Sender: No OFD packet to send [12:47:14]OFD Sender: No OFD packet to send [12:47:19]OFD Sender: No OFD packet to send [12:47:24]OFD Sender: No OFD packet to send [12:47:29]OFD Sender: No OFD packet to send [12:47:34]OFD Sender: No OFD packet to send [12:47:39]OFD Sender: No OFD packet to send [12:47:44]OFD Sender: No OFD packet to send [12:47:49]OFD Sender: No OFD packet to send [12:47:54]OFD Sender: No OFD packet to send [12:47:59]OFD Sender: No OFD packet to send [12:48:04]OFD Sender: No OFD packet to send [12:48:09]OFD Sender: No OFD packet to send [12:48:14]OFD Sender: No OFD packet to send [12:48:19]OFD Sender: No OFD packet to send [12:48:24]OFD Sender: No OFD packet to send [12:48:29]OFD Sender: No OFD packet to send [12:48:34]OFD Sender: No OFD packet to send [12:48:39]OFD Sender: No OFD packet to send [12:48:44]OFD Sender: No OFD packet to send [12:48:49]OFD Sender: No OFD packet to send [12:48:54]OFD Sender: No OFD packet to send [12:48:59]OFD Sender: No OFD packet to send [12:49:04]OFD Sender: No OFD packet to send [12:49:09]OFD Sender: No OFD packet to send [12:49:14]OFD Sender: No OFD packet to send [12:49:19]OFD Sender: No OFD packet to send [12:49:23]accept exits with 7 [12:49:23]New connection [12:49:23]New thread 3067374948 created [12:49:23]Thread 3067518308 joined [12:49:23]Waiting for new connection... [12:49:23] Sock 7.Parse request [12:49:23]Sock 7.Check first char [12:49:23]Sock 7.First char is OK [12:49:23]request: POST /json_proto HTTP/1.0 [12:49:23]Method: POST [12:49:23]URL: /json_proto [12:49:23]Method is POST - this is cgi request [12:49:23]url: /json_proto [12:49:23]query_string will be loaded in cgi processing [12:49:23]execute_cgi json_proto POST (null) [12:49:23]execute_cgi path=json_proto method=POST [12:49:23]POST find Content-Length [12:49:23]Host: 172.17.60.69:8080 [12:49:23]Content-Length: 846 [12:49:23]Content-Type: application/json [12:49:23] [12:49:23]POST finish read [12:49:23]Found Content-Length = 846 [12:49:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543659", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 34.90, "quantity" : 57.320, "sum" : 2000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 2000.47 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:49:23]execute_script... [12:49: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)543659", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 34.90, "quantity" : 57.320, "sum" : 2000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 2000.47 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:49:23]POST & json_proto [12:49:23]process_json_proto [12:49:23]json parsed OK: [12:49:23]protocol is kg_v1.0 [12:49:23]action value=close_receipt [12:49:23]process_action close_receipt [12:49:23]cmd_close_receipt [12:49:23]MH_GetDate [12:49:23]Write to MH i2c: F0 00 00 26 10 25 [12:49:23]Write i2c OK [12:49:23]MH_I2C_Read... [12:49:23]Read from MH i2c: F0 [12:49:23]MH_I2C_Read... [12:49:23]Read from MH i2c: F0 09 00 [12:49:23]MH_I2C_Read... [12:49:23]Read from MH i2c: F0 09 00 26 10 00 D5 BB 5D 66 6A 96 4A 66 31 [12:49:23]GetLastDocTimeStamp 1717417758 [12:49:23]current date 1717418965 [12:49:23]FM_GetShiftState [12:49:23]SAM_PROTO_GetShiftState [12:49:23]wFMCommunicate request_size=4 [12:49:23]MH_SAM_APDU [12:49:23]CAPDU: 80 13 01 00 [12:49:23]Write to MH i2c: E2 08 00 27 10 80 13 01 00 00 00 00 00 B4 [12:49:23]Write i2c OK [12:49:23]MH_I2C_Read... [12:49:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:49:23]Read from MH i2c: E2 [12:49:23]MH_I2C_Read... [12:49:23]Read from MH i2c: E2 0E 00 [12:49:23]MH_I2C_Read... [12:49:23]Read from MH i2c: E2 0E 00 27 10 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 80 [12:49:23]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [12:49:23]wFMCommunicate OK [12:49:23]SAM_PROTO_GetShiftState done [12:49:23]FM_GetShiftState done [12:49:23]opened in 1717373173 [12:49:23]opened+sec_in_day 1717459573 [12:49:23]quantity*price = 200046 [12:49:23]sum+1 = 200048 [12:49:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.47 НСП 1% : 17.70 НДС 12% : 212.44 Наличными: 0.00 Безнал.: 2000.47 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 61 03.06.2024 12:49 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000875074 ФД: 63803 ФПД: 213864568118808 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T124925&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63803&fm=213864568118808&tin=02508201610067®Number=0000000000092737&sum=200047 [12:49:24]StoreToDocumentArchive [12:49:24]shift 373 fd 63803 [12:49:24]save to /storage/0373/doc_00063803 [12:49:24]save last doc name /storage/0373/doc_00063803 to /storage/kkm_last_doc_name [12:49:24]save OK [12:49:24]Clear old archive folders... [12:49:24]ProcessDocumentItem done err = 0, tmpTLVsize=250 [12:49:24]tlvbuf is 00D2BA30 [12:49:24]SAM_PROTO_ClearQueue [12:49:24]wFMCommunicate request_size=4 [12:49:24]MH_SAM_APDU [12:49:24]CAPDU: 80 09 00 00 [12:49:24]Write to MH i2c: E2 08 00 34 10 80 09 00 00 00 00 00 00 B6 [12:49:24]Write i2c OK [12:49:24]MH_I2C_Read... [12:49:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:49:24]Read from MH i2c: E2 [12:49:24]MH_I2C_Read... [12:49:24]Read from MH i2c: E2 03 00 [12:49:24]MH_I2C_Read... [12:49:24]Read from MH i2c: E2 03 00 34 10 00 90 00 B8 [12:49:24]RAPDU: 90 00 [12:49:24]wFMCommunicate OK [12:49:24]SAM_PROTO_ClearQueue done [12:49:24]KKMCreateOFDPacket [12:49:24]OFDProtocolAddRootSTLVToBuf [12:49:24]FM_MakeSignedData [12:49:24]FM_MakeSignedData [12:49:24]SAM_PROTO_SignData [12:49:24]wFMCommunicate request_size=4 [12:49:24]MH_SAM_APDU [12:49:24]CAPDU: 80 0D 01 02 [12:49:24]Write to MH i2c: E2 08 00 35 10 80 0D 01 02 00 00 00 00 BE [12:49:24]Write i2c OK [12:49:24]MH_I2C_Read... [12:49:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:49:24]Read from MH i2c: E2 [12:49:24]MH_I2C_Read... [12:49:24]Read from MH i2c: E2 03 00 [12:49:24]MH_I2C_Read... [12:49:24]Read from MH i2c: E2 03 00 35 10 00 90 00 B9 [12:49:24]RAPDU: 90 00 [12:49:24]wFMCommunicate OK [12:49:24]wFMCommunicate request_size=255 [12:49:24]MH_SAM_APDU [12:49:24]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 E8 DF 00 00 00 00 00 37 04 06 00 A2 0D 00 00 00 00 13 04 06 00 6F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6F 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 FC 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 D5 BB 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 3B F9 00 00 35 04 06 00 C2 82 [12:49:24]Write to MH i2c: E2 02 01 36 10 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 E8 DF 00 00 00 00 00 37 04 06 00 A2 0D 00 00 00 00 13 04 06 00 6F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6F 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 FC 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 D5 BB 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 3B F9 00 00 35 04 06 00 C2 82 00 00 20 [12:49:24]Write i2c OK [12:49:24]MH_I2C_Read... [12:49:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:49:25]Read from MH i2c: E2 [12:49:25]MH_I2C_Read... [12:49:25]Read from MH i2c: E2 03 00 [12:49:25]MH_I2C_Read... [12:49:25]Read from MH i2c: E2 03 00 36 10 00 90 00 BA [12:49:25]RAPDU: 90 00 [12:49:25]wFMCommunicate OK [12:49:25]wFMCommunicate request_size=9 [12:49:25]MH_SAM_APDU [12:49:25]CAPDU: 80 0D 02 02 04 39 9C DE 18 [12:49:25]Write to MH i2c: E2 0C 00 37 10 80 0D 02 02 04 00 39 9C DE 18 00 00 94 [12:49:25]Write i2c OK [12:49:25]MH_I2C_Read... [12:49:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:49:25]Read from MH i2c: E2 [12:49:25]MH_I2C_Read... [12:49:25]Read from MH i2c: E2 03 00 [12:49:25]MH_I2C_Read... [12:49:25]Read from MH i2c: E2 03 00 37 10 00 90 00 BB [12:49:25]RAPDU: 90 00 [12:49:25]wFMCommunicate OK [12:49:25]wFMCommunicate request_size=4 [12:49:25]MH_SAM_APDU [12:49:25]CAPDU: 80 0D 03 02 [12:49:25]Write to MH i2c: E2 08 00 38 10 80 0D 03 02 00 00 00 00 C3 [12:49:25]Write i2c OK [12:49:25]MH_I2C_Read... [12:49:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:49:25]Read from MH i2c: E2 [12:49:25]MH_I2C_Read... [12:49:25]Read from MH i2c: E2 0B 00 [12:49:25]MH_I2C_Read... [12:49:25]Read from MH i2c: E2 0B 00 38 10 00 40 7C F3 DB AC C5 5B 90 90 00 AA [12:49:25]RAPDU: 40 7C F3 DB AC C5 5B 90 90 00 [12:49:25]wFMCommunicate OK [12:49:25]SAM_PROTO_SignData done [12:49:25]FM_MakeSignedData done [12:49:25]CreateOFDProtocolMessage [12:49:25]wFMCommunicate request_size=4 [12:49:25]MH_SAM_APDU [12:49:25]CAPDU: 80 11 00 00 [12:49:25]Write to MH i2c: E2 08 00 39 10 80 11 00 00 00 00 00 00 C3 [12:49:25]Write i2c OK [12:49:25]MH_I2C_Read... [12:49:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:49:25]Read from MH i2c: E2 [12:49:25]MH_I2C_Read... [12:49:25]Read from MH i2c: E2 17 00 [12:49:25]MH_I2C_Read... [12:49:25]Read from MH i2c: E2 17 00 39 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 15 [12:49:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [12:49:25]wFMCommunicate OK [12:49:25]CreateOFDProtocolMessage done [12:49:25]OFDSenderStorePacket 63803 [12:49:25]StoreOFDPacket docnum=63803 [12:49:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0E 01 00 00 B3 82 06 01 A6 22 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 E8 DF 00 00 00 00 00 37 04 06 00 A2 0D 00 00 00 00 13 04 06 00 6F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6F 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 FC 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 D5 BB 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 3B F9 00 00 35 04 06 00 C2 82 39 9C DE 18 40 7C F3 DB AC C5 5B 90 [12:49:25]CheckFolder [12:49:25]dirname=/storage/ofd_packets [12:49:25]CheckFolder done [12:49:25]ProducePacketName [12:49:25]name=ofd_packets/00063803 [12:49:25]NVStorageSaveData ofd_packets/00063803 [12:49:25]File name is /storage/ofd_packets/00063803 [12:49:25]Write 300 bytes [12:49:25]NVStorageSaveData done [12:49:25]OFDSenderStorePacket done [12:49:25]KKMCreateOFDPacket done [12:49:25]NVStorageSaveData kkm_last_timestamp [12:49:25]File name is /storage/kkm_last_timestamp [12:49:25]Write 4 bytes [12:49:25]NVStorageSaveData done [12:49:25]ExternCall_PrintAddStr [12:49:25]wPrintStart [12:49:25]Write to MH i2c: 01 00 00 3A 10 4A [12:49:25]Write i2c OK [12:49:25]MH_I2C_Read... [12:49:25]Read from MH i2c: 01 [12:49:25]MH_I2C_Read... [12:49:25]Read from MH i2c: 01 07 00 [12:49:25]MH_I2C_Read... [12:49:25]Read from MH i2c: 01 07 00 3A 10 00 00 00 00 00 FF 0F 5F [12:49:25]RasterBufferAndPrint [12:49:25]line Счет N : (1)543659 [12:49:25]line ИНН: 02508201610067 [12:49:25]line Контрольно-Кассовый Чек [12:49:25]line ПРОДАЖА [12:49:25]line ТРК (МРК, ГНК) : 71 [12:49:25]line Товар: 2711190000 [12:49:25]line ГАЗ-К-5 [12:49:25]line 57.320 * 34.90 [12:49:25]line = 2000.47 [12:49:25]line НДС 12% НСП 1% [12:49:25]line > о реализуемом товаре [12:49:25]line ИТОГО: 2000.47 [12:49:25]line НСП 1% : 17.70 [12:49:25]line НДС 12% : 212.44 [12:49:25]line Наличными: 0.00 [12:49:25]line Безнал.: 2000.47 [12:49:25]line Место: АЗС № 117 "Партнер Нефть" [12:49:25]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [12:49:25]line СНО: Общий режим [12:49:25]line Чек 61 03.06.2024 12:49 [12:49:25]line Смена: 373 ФФД: 1.0 [12:49:25]line ЗНМ: 0300000031 [12:49:25]line РНМ: 0000000000092737 [12:49:25]line Версия ККМ: 001 [12:49:25]line Платежная система: АКБ Кыргызстан [12:49:25]line ФМ: 0000000000875074 [12:49:25]line ФД: 63803 [12:49:25]line ФПД: 213864568118808 [12:49:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T124925&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63803&fm=213864568118808&tin=02508201610067®Number=0000000000092737&sum=200047 [12:49:25]OFD Sender: Processing packet 63803 [packets to send 14, broken 13] [12:49:25]ProducePacketName [12:49:25]name=ofd_packets/00063803 [12:49:25]OFD Sender: To server: pG, [12:49:25]CommunicateWithHost lk.salyk.kg:30040 [12:49:25]ConnectInit lk.salyk.kg [12:49:25]written 0, free lines is 4095 [12:49:25]Connected sock=11 [12:49:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0E 01 00 00 B3 82 06 01 A6 22 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 E8 DF 00 00 00 00 00 37 04 06 00 A2 0D 00 00 00 00 13 04 06 00 6F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6F 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 FC 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 D5 BB 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 3B F9 00 00 35 04 06 00 C2 82 39 9C DE 18 40 7C F3 DB AC C5 5B 90 [12:49:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 C7 2C 47 00 F2 B4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 3B F9 00 00 F4 03 04 00 A7 67 5D 66 B6 04 01 00 00 06 30 12 6A 9F 10 F6 C6 [12:49:25]CommunicateWithHost err = 0 [12:49:25]CheckOFDResponse [12:49:25]1017 (14) - 77093643461234 [12:49:25]1041 (16) - 0000000000875074 [12:49:25]1040 (4) - 63803 [12:49:25]1012 (4) - 03.06.2024 06:50 [12:49:25]1206 (1) - 0 [12:49:25]OFD Sender: Remove packet 63803 [12:49:25]ProducePacketName [12:49:25]name=ofd_packets/00063803 [12:49:25]NVStorageDeleteData [12:49:26]Write to MH i2c: 01 00 00 64 10 74 [12:49:26]Write i2c OK [12:49:26]MH_I2C_Read... [12:49:26]Read from MH i2c: 01 [12:49:26]MH_I2C_Read... [12:49:26]Read from MH i2c: 01 07 00 [12:49:26]MH_I2C_Read... [12:49:26]Read from MH i2c: 01 07 00 64 10 00 00 00 00 00 EE 0C 75 [12:49:26]RasterBufferAndPrint [12:49:26]line [12:49:26]line [12:49:26]line [12:49:26]line [12:49:26]line [12:49:26]written 0, free lines is 3316 [12:49:26]MH_Cut [12:49:26]Write to MH i2c: D1 01 00 6B 10 01 4D [12:49:26]Write i2c OK [12:49:26]MH_I2C_Read... [12:49:26]Read from MH i2c: D1 [12:49:26]MH_I2C_Read... [12:49:26]Read from MH i2c: D1 01 00 [12:49:26]MH_I2C_Read... [12:49:26]Read from MH i2c: D1 01 00 6B 10 00 4C [12:49:26]Write to MH i2c: 01 00 00 6C 10 7C [12:49:26]Write i2c OK [12:49:26]MH_I2C_Read... [12:49:26]OFD Sender: No OFD packet to send [12:49:26]*** Cut start [12:49:26]*** Partial cut [12:49:26]*** CUTSNS_PIN = 1 [12:49:26]*** CUTSNS_PIN = 0 [12:49:27]*** Brake cut motor [12:49:27]Read from MH i2c: 01 [12:49:27]MH_I2C_Read... [12:49:27]*** Stop cut motor [12:49:27]*** Cut end [12:49:27]Read from MH i2c: 01 07 00 [12:49:27]MH_I2C_Read... [12:49:27]Read from MH i2c: 01 07 00 6C 10 00 00 00 00 00 FF 0F 91 [12:49:27]process_action close_receipt done [12:49:27]requested_data is exist [12:49:27]produce_requested_data [12:49:27]requested_item fm.sn is exist - process it [12:49:27]wFMCommunicate request_size=4 [12:49:27]MH_SAM_APDU [12:49:27]CAPDU: 80 11 00 00 [12:49:27]Write to MH i2c: E2 08 00 6D 10 80 11 00 00 00 00 00 00 F7 [12:49:27]Write i2c OK [12:49:27]MH_I2C_Read... [12:49:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:49:27]Read from MH i2c: E2 [12:49:27]MH_I2C_Read... [12:49:27]Read from MH i2c: E2 17 00 [12:49:27]MH_I2C_Read... [12:49:27]Read from MH i2c: E2 17 00 6D 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 49 [12:49:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [12:49:27]wFMCommunicate OK [12:49:27]requested_item fd.num is exist - process it [12:49:27]SAM_PROTO_GetFieldsCounters [12:49:27]wFMCommunicate request_size=4 [12:49:27]MH_SAM_APDU [12:49:27]CAPDU: 80 13 00 00 [12:49:27]Write to MH i2c: E2 08 00 6E 10 80 13 00 00 00 00 00 00 FA [12:49:27]Write i2c OK [12:49:27]MH_I2C_Read... [12:49:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:49:27]Read from MH i2c: E2 [12:49:27]MH_I2C_Read... [12:49:27]Read from MH i2c: E2 62 00 [12:49:27]MH_I2C_Read... [12:49:27]Read from MH i2c: E2 62 00 6E 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 3B F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 7E [12:49: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 3B F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:49:27]wFMCommunicate OK [12:49:27]SAM_PROTO_GetFieldsCounters done [12:49:27]requested_item shift.num is exist - process it [12:49:27]requested_item shift.opened is exist - process it [12:49:27]req_shift_opened [12:49:27]FM_GetShiftState [12:49:27]SAM_PROTO_GetShiftState [12:49:27]wFMCommunicate request_size=4 [12:49:27]MH_SAM_APDU [12:49:27]CAPDU: 80 13 01 00 [12:49:27]Write to MH i2c: E2 08 00 6F 10 80 13 01 00 00 00 00 00 FC [12:49:27]Write i2c OK [12:49:27]MH_I2C_Read... [12:49:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:49:27]Read from MH i2c: E2 [12:49:27]MH_I2C_Read... [12:49:27]Read from MH i2c: E2 0E 00 [12:49:27]MH_I2C_Read... [12:49:27]Read from MH i2c: E2 0E 00 6F 10 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 C8 [12:49:27]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [12:49:27]wFMCommunicate OK [12:49:27]SAM_PROTO_GetShiftState done [12:49:27]FM_GetShiftState done [12:49:27]req_shift_opened done [12:49:27]requested_item shift.open_date is exist - process it [12:49:27]req_shift_open_date [12:49:27]req_shift_open_date done [12:49:27]produce_requested_data done [12:49:27]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63803,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [12:49:27]process_action_free close_receipt [12:49:27]json_value_free [12:49:27]json_value_free done [12:49:27]process_json_proto returns [12:49:27]Send response to host [12:49:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63803,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [12:49:27]free response buf [12:49:27]execute_script done [12:49:27]execute_script returns [12:49:27]free content buf [12:49:27]Sock 7.Close socket [12:49:27]Sock 7.Thread stoped [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:06]OFD Sender: No OFD packet to send [12:50:11]OFD Sender: No OFD packet to send [12:50:16]OFD Sender: No OFD packet to send [12:50:21]OFD Sender: No OFD packet to send [12:50:21]accept exits with 9 [12:50:21]New connection [12:50:21]New thread 3067518308 created [12:50:21]Thread 3067374948 joined [12:50:21]Waiting for new connection... [12:50:21] Sock 9.Parse request [12:50:21]Sock 9.Check first char [12:50:21]Sock 9.First char is OK [12:50:21]request: POST /json_proto HTTP/1.0 [12:50:21]Method: POST [12:50:21]URL: /json_proto [12:50:21]Method is POST - this is cgi request [12:50:21]url: /json_proto [12:50:21]query_string will be loaded in cgi processing [12:50:21]execute_cgi json_proto POST (null) [12:50:21]execute_cgi path=json_proto method=POST [12:50:21]POST find Content-Length [12:50:21]Host: 172.17.60.69:8080 [12:50:21]Content-Length: 622 [12:50:21]Content-Type: application/json [12:50:21] [12:50:21]POST finish read [12:50:21]Found Content-Length = 622 [12:50:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73391", "tax_sys" : 0, "items" : [ { "code": "48741415", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B LD Super Slims Violet", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:50:21]execute_script... [12:50:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73391", "tax_sys" : 0, "items" : [ { "code": "48741415", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B LD Super Slims Violet", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:50:21]POST & json_proto [12:50:21]process_json_proto [12:50:21]json parsed OK: [12:50:21]protocol is kg_v1.0 [12:50:21]action value=close_receipt [12:50:21]process_action close_receipt [12:50:21]cmd_close_receipt [12:50:21]MH_GetDate [12:50:21]Write to MH i2c: F0 00 00 70 10 6F [12:50:21]Write i2c OK [12:50:21]MH_I2C_Read... [12:50:21]Read from MH i2c: F0 [12:50:21]MH_I2C_Read... [12:50:21]Read from MH i2c: F0 09 00 [12:50:21]MH_I2C_Read... [12:50:21]Read from MH i2c: F0 09 00 70 10 00 10 BC 5D 66 6A 96 4A 66 B7 [12:50:21]GetLastDocTimeStamp 1717418965 [12:50:21]current date 1717419024 [12:50:21]FM_GetShiftState [12:50:21]SAM_PROTO_GetShiftState [12:50:21]wFMCommunicate request_size=4 [12:50:21]MH_SAM_APDU [12:50:21]CAPDU: 80 13 01 00 [12:50:21]Write to MH i2c: E2 08 00 71 10 80 13 01 00 00 00 00 00 FE [12:50:21]Write i2c OK [12:50:21]MH_I2C_Read... [12:50:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:50:21]Read from MH i2c: E2 [12:50:21]MH_I2C_Read... [12:50:21]Read from MH i2c: E2 0E 00 [12:50:21]MH_I2C_Read... [12:50:21]Read from MH i2c: E2 0E 00 71 10 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 CA [12:50:21]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [12:50:21]wFMCommunicate OK [12:50:21]SAM_PROTO_GetShiftState done [12:50:21]FM_GetShiftState done [12:50:21]opened in 1717373173 [12:50:21]opened+sec_in_day 1717459573 [12:50:21]quantity*price = 13000 [12:50:21]sum+1 = 13001 [12:50:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 62 03.06.2024 12:50 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63804 ФПД: 97768724679179 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T125024&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63804&fm=97768724679179&tin=02508201610067®Number=0000000000092737&sum=13000 0 [12:50:22]StoreToDocumentArchive [12:50:22]shift 373 fd 63804 [12:50:22]save to /storage/0373/doc_00063804 [12:50:22]save last doc name /storage/0373/doc_00063804 to /storage/kkm_last_doc_name [12:50:22]save OK [12:50:22]Clear old archive folders... [12:50:22]ProcessDocumentItem done err = 0, tmpTLVsize=275 [12:50:22]tlvbuf is 00D980F0 [12:50:22]SAM_PROTO_ClearQueue [12:50:22]wFMCommunicate request_size=4 [12:50:22]MH_SAM_APDU [12:50:22]CAPDU: 80 09 00 00 [12:50:22]Write to MH i2c: E2 08 00 7E 10 80 09 00 00 00 00 00 00 00 [12:50:22]Write i2c OK [12:50:22]MH_I2C_Read... [12:50:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:50:22]Read from MH i2c: E2 [12:50:22]MH_I2C_Read... [12:50:22]Read from MH i2c: E2 03 00 [12:50:22]MH_I2C_Read... [12:50:22]Read from MH i2c: E2 03 00 7E 10 00 90 00 02 [12:50:22]RAPDU: 90 00 [12:50:22]wFMCommunicate OK [12:50:22]SAM_PROTO_ClearQueue done [12:50:22]KKMCreateOFDPacket [12:50:22]OFDProtocolAddRootSTLVToBuf [12:50:22]FM_MakeSignedData [12:50:22]FM_MakeSignedData [12:50:22]SAM_PROTO_SignData [12:50:22]wFMCommunicate request_size=4 [12:50:22]MH_SAM_APDU [12:50:22]CAPDU: 80 0D 01 02 [12:50:22]Write to MH i2c: E2 08 00 7F 10 80 0D 01 02 00 00 00 00 08 [12:50:22]Write i2c OK [12:50:22]MH_I2C_Read... [12:50:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:50:22]Read from MH i2c: E2 [12:50:22]MH_I2C_Read... [12:50:22]Read from MH i2c: E2 03 00 [12:50:22]MH_I2C_Read... [12:50:22]Read from MH i2c: E2 03 00 7F 10 00 90 00 03 [12:50:22]RAPDU: 90 00 [12:50:22]wFMCommunicate OK [12:50:22]wFMCommunicate request_size=255 [12:50:22]MH_SAM_APDU [12:50:22]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 31 34 31 35 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 53 75 70 65 72 20 53 6C 69 6D 73 20 56 69 6F 6C 65 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 10 BC 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 [12:50:22]Write to MH i2c: E2 02 01 80 10 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 31 34 31 35 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 53 75 70 65 72 20 53 6C 69 6D 73 20 56 69 6F 6C 65 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 10 BC 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 00 00 18 [12:50:22]Write i2c OK [12:50:22]MH_I2C_Read... [12:50:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:50:23]Read from MH i2c: E2 [12:50:23]MH_I2C_Read... [12:50:23]Read from MH i2c: E2 03 00 [12:50:23]MH_I2C_Read... [12:50:23]Read from MH i2c: E2 03 00 80 10 00 90 00 04 [12:50:23]RAPDU: 90 00 [12:50:23]wFMCommunicate OK [12:50:23]wFMCommunicate request_size=34 [12:50:23]MH_SAM_APDU [12:50:23]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 3C F9 00 00 35 04 06 00 58 EB 8E 1A CA 0B [12:50:23]Write to MH i2c: E2 25 00 81 10 80 0D 02 02 1D 00 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 3C F9 00 00 35 04 06 00 58 EB 8E 1A CA 0B 00 00 C0 [12:50:23]Write i2c OK [12:50:23]MH_I2C_Read... [12:50:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:50:23]Read from MH i2c: E2 [12:50:23]MH_I2C_Read... [12:50:23]Read from MH i2c: E2 03 00 [12:50:23]MH_I2C_Read... [12:50:23]Read from MH i2c: E2 03 00 81 10 00 90 00 05 [12:50:23]RAPDU: 90 00 [12:50:23]wFMCommunicate OK [12:50:23]wFMCommunicate request_size=4 [12:50:23]MH_SAM_APDU [12:50:23]CAPDU: 80 0D 03 02 [12:50:23]Write to MH i2c: E2 08 00 82 10 80 0D 03 02 00 00 00 00 0D [12:50:23]Write i2c OK [12:50:23]MH_I2C_Read... [12:50:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:50:23]Read from MH i2c: E2 [12:50:23]MH_I2C_Read... [12:50:23]Read from MH i2c: E2 0B 00 [12:50:23]MH_I2C_Read... [12:50:23]Read from MH i2c: E2 0B 00 82 10 00 23 7B 98 02 2B 50 F5 A5 90 00 5B [12:50:23]RAPDU: 23 7B 98 02 2B 50 F5 A5 90 00 [12:50:23]wFMCommunicate OK [12:50:23]SAM_PROTO_SignData done [12:50:23]FM_MakeSignedData done [12:50:23]CreateOFDProtocolMessage [12:50:23]wFMCommunicate request_size=4 [12:50:23]MH_SAM_APDU [12:50:23]CAPDU: 80 11 00 00 [12:50:23]Write to MH i2c: E2 08 00 83 10 80 11 00 00 00 00 00 00 0D [12:50:23]Write i2c OK [12:50:23]MH_I2C_Read... [12:50:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:50:23]Read from MH i2c: E2 [12:50:23]MH_I2C_Read... [12:50:23]Read from MH i2c: E2 17 00 [12:50:23]MH_I2C_Read... [12:50:23]Read from MH i2c: E2 17 00 83 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 5F [12:50:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [12:50:23]wFMCommunicate OK [12:50:23]CreateOFDProtocolMessage done [12:50:23]OFDSenderStorePacket 63804 [12:50:23]StoreOFDPacket docnum=63804 [12:50:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 27 01 00 00 0E 8A 1F 01 3D CF 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 31 34 31 35 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 53 75 70 65 72 20 53 6C 69 6D 73 20 56 69 6F 6C 65 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 10 BC 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 3C F9 00 00 35 04 06 00 58 EB 8E 1A CA 0B 23 7B 98 02 2B 50 F5 A5 [12:50:23]CheckFolder [12:50:23]dirname=/storage/ofd_packets [12:50:23]CheckFolder done [12:50:23]ProducePacketName [12:50:23]name=ofd_packets/00063804 [12:50:23]NVStorageSaveData ofd_packets/00063804 [12:50:23]File name is /storage/ofd_packets/00063804 [12:50:23]Write 325 bytes [12:50:23]NVStorageSaveData done [12:50:23]OFDSenderStorePacket done [12:50:23]KKMCreateOFDPacket done [12:50:23]NVStorageSaveData kkm_last_timestamp [12:50:23]File name is /storage/kkm_last_timestamp [12:50:23]Write 4 bytes [12:50:23]NVStorageSaveData done [12:50:23]ExternCall_PrintAddStr [12:50:23]wPrintStart [12:50:23]Write to MH i2c: 01 00 00 84 10 94 [12:50:23]Write i2c OK [12:50:23]MH_I2C_Read... [12:50:23]Read from MH i2c: 01 [12:50:23]MH_I2C_Read... [12:50:23]Read from MH i2c: 01 07 00 [12:50:23]MH_I2C_Read... [12:50:23]Read from MH i2c: 01 07 00 84 10 00 00 00 00 00 FF 0F A9 [12:50:23]RasterBufferAndPrint [12:50:23]line Счет N : (3)73391 [12:50:23]line ИНН: 02508201610067 [12:50:23]line Контрольно-Кассовый Чек [12:50:23]line ПРОДАЖА [12:50:23]line Товар: 48741415 [12:50:23]line Сигареты LD Super Slims Violet [12:50:23]line 1.000 * 130.00 [12:50:23]line = 130.00 [12:50:23]line НДС 12% НСП 1% [12:50:23]line > о реализуемом товаре [12:50:23]line ИТОГО: 130.00 [12:50:23]line НСП 1% : 1.15 [12:50:23]line НДС 12% : 13.80 [12:50:23]line Наличными: 130.00 [12:50:23]line Безнал.: 0.00 [12:50:23]line Место: АЗС № 117 "Партнер Нефть" [12:50:23]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [12:50:23]line СНО: Общий режим [12:50:23]line Чек 62 03.06.2024 12:50 [12:50:23]line Смена: 373 ФФД: 1.0 [12:50:23]line ЗНМ: 0300000031 [12:50:23]line РНМ: 0000000000092737 [12:50:23]line Версия ККМ: 001 [12:50:23]line ФМ: 0000000000875074 [12:50:23]line ФД: 63804 [12:50:23]line ФПД: 97768724679179 [12:50:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T125024&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63804&fm=97768724679179&tin=02508201610067®Number=0000000000092737&sum=13000 [12:50:23]line 0 [12:50:23]written 0, free lines is 4095 [12:50:23]OFD Sender: Processing packet 63804 [packets to send 14, broken 13] [12:50:23]ProducePacketName [12:50:23]name=ofd_packets/00063804 [12:50:23]OFD Sender: To server: pG, [12:50:23]CommunicateWithHost lk.salyk.kg:30040 [12:50:23]ConnectInit lk.salyk.kg [12:50:23]Connected sock=11 [12:50:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 27 01 00 00 0E 8A 1F 01 3D CF 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 31 34 31 35 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 53 75 70 65 72 20 53 6C 69 6D 73 20 56 69 6F 6C 65 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 10 BC 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 3C F9 00 00 35 04 06 00 58 EB 8E 1A CA 0B 23 7B 98 02 2B 50 F5 A5 [12:50:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 8A 51 47 00 83 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 35 30 37 34 10 04 04 00 3C F9 00 00 F4 03 04 00 E1 67 5D 66 B6 04 01 00 00 1A AC 9D AC 47 39 36 81 [12:50:23]CommunicateWithHost err = 0 [12:50:23]CheckOFDResponse [12:50:23]1017 (14) - 77093643461234 [12:50:23]1041 (16) - 0000000000875074 [12:50:23]1040 (4) - 63804 [12:50:23]1012 (4) - 03.06.2024 06:51 [12:50:23]1206 (1) - 0 [12:50:23]OFD Sender: Remove packet 63804 [12:50:23]ProducePacketName [12:50:23]name=ofd_packets/00063804 [12:50:23]NVStorageDeleteData [12:50:23]Write to MH i2c: 01 00 00 AD 10 BD [12:50:23]Write i2c OK [12:50:23]MH_I2C_Read... [12:50:23]Read from MH i2c: 01 [12:50:23]MH_I2C_Read... [12:50:23]Read from MH i2c: 01 07 00 [12:50:23]MH_I2C_Read... [12:50:23]Read from MH i2c: 01 07 00 AD 10 00 00 00 00 00 D1 0C A1 [12:50:23]RasterBufferAndPrint [12:50:23]line [12:50:23]line [12:50:23]line [12:50:23]line [12:50:23]line [12:50:23]written 0, free lines is 3288 [12:50:23]MH_Cut [12:50:23]Write to MH i2c: D1 01 00 B4 10 01 96 [12:50:23]Write i2c OK [12:50:23]MH_I2C_Read... [12:50:23]Read from MH i2c: D1 [12:50:23]MH_I2C_Read... [12:50:23]Read from MH i2c: D1 01 00 [12:50:23]MH_I2C_Read... [12:50:23]Read from MH i2c: D1 01 00 B4 10 00 95 [12:50:23]Write to MH i2c: 01 00 00 B5 10 C5 [12:50:23]Write i2c OK [12:50:23]MH_I2C_Read... [12:50:24]OFD Sender: No OFD packet to send [12:50:24]*** Cut start [12:50:24]*** Partial cut [12:50:24]*** CUTSNS_PIN = 1 [12:50:24]*** CUTSNS_PIN = 0 [12:50:24]*** Brake cut motor [12:50:25]Read from MH i2c: 01 [12:50:25]MH_I2C_Read... [12:50:25]*** Stop cut motor [12:50:25]*** Cut end [12:50:25]Read from MH i2c: 01 07 00 [12:50:25]MH_I2C_Read... [12:50:25]Read from MH i2c: 01 07 00 B5 10 00 00 00 00 00 FF 0F DA [12:50:25]process_action close_receipt done [12:50:25]requested_data is exist [12:50:25]produce_requested_data [12:50:25]requested_item fm.sn is exist - process it [12:50:25]wFMCommunicate request_size=4 [12:50:25]MH_SAM_APDU [12:50:25]CAPDU: 80 11 00 00 [12:50:25]Write to MH i2c: E2 08 00 B6 10 80 11 00 00 00 00 00 00 40 [12:50:25]Write i2c OK [12:50:25]MH_I2C_Read... [12:50:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:50:25]Read from MH i2c: E2 [12:50:25]MH_I2C_Read... [12:50:25]Read from MH i2c: E2 17 00 [12:50:25]MH_I2C_Read... [12:50:25]Read from MH i2c: E2 17 00 B6 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 92 [12:50:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [12:50:25]wFMCommunicate OK [12:50:25]requested_item fd.num is exist - process it [12:50:25]SAM_PROTO_GetFieldsCounters [12:50:25]wFMCommunicate request_size=4 [12:50:25]MH_SAM_APDU [12:50:25]CAPDU: 80 13 00 00 [12:50:25]Write to MH i2c: E2 08 00 B7 10 80 13 00 00 00 00 00 00 43 [12:50:25]Write i2c OK [12:50:25]MH_I2C_Read... [12:50:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:50:25]Read from MH i2c: E2 [12:50:25]MH_I2C_Read... [12:50:25]Read from MH i2c: E2 62 00 [12:50:25]MH_I2C_Read... [12:50:25]Read from MH i2c: E2 62 00 B7 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 3C F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 CB [12:50: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 3C F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:50:25]wFMCommunicate OK [12:50:25]SAM_PROTO_GetFieldsCounters done [12:50:25]requested_item shift.num is exist - process it [12:50:25]requested_item shift.opened is exist - process it [12:50:25]req_shift_opened [12:50:25]FM_GetShiftState [12:50:25]SAM_PROTO_GetShiftState [12:50:25]wFMCommunicate request_size=4 [12:50:25]MH_SAM_APDU [12:50:25]CAPDU: 80 13 01 00 [12:50:25]Write to MH i2c: E2 08 00 B8 10 80 13 01 00 00 00 00 00 45 [12:50:25]Write i2c OK [12:50:25]MH_I2C_Read... [12:50:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:50:25]Read from MH i2c: E2 [12:50:25]MH_I2C_Read... [12:50:25]Read from MH i2c: E2 0E 00 [12:50:25]MH_I2C_Read... [12:50:25]Read from MH i2c: E2 0E 00 B8 10 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 11 [12:50:25]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [12:50:25]wFMCommunicate OK [12:50:25]SAM_PROTO_GetShiftState done [12:50:25]FM_GetShiftState done [12:50:25]req_shift_opened done [12:50:25]requested_item shift.open_date is exist - process it [12:50:25]req_shift_open_date [12:50:25]req_shift_open_date done [12:50:25]produce_requested_data done [12:50:25]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63804,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [12:50:25]process_action_free close_receipt [12:50:25]json_value_free [12:50:25]json_value_free done [12:50:25]process_json_proto returns [12:50:25]Send response to host [12:50:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63804,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [12:50:25]free response buf [12:50:25]execute_script done [12:50:25]execute_script returns [12:50:25]free content buf [12:50:25]Sock 9.Close socket [12:50:25]Sock 9.Thread stoped [12:50:29]OFD Sender: No OFD packet to send [12:50:34]OFD Sender: No OFD packet to send [12:50:39]OFD Sender: No OFD packet to send [12:50:44]OFD Sender: No OFD packet to send [12:50:49]OFD Sender: No OFD packet to send [12:50:54]OFD Sender: No OFD packet to send [12:50:56]accept exits with 7 [12:50:56]New connection [12:50:56]New thread 3067374948 created [12:50:56]Thread 3067518308 joined [12:50:56]Waiting for new connection... [12:50:56] Sock 7.Parse request [12:50:56]Sock 7.Check first char [12:50:56]Sock 7.First char is OK [12:50:56]request: POST /json_proto HTTP/1.0 [12:50:56]Method: POST [12:50:56]URL: /json_proto [12:50:56]Method is POST - this is cgi request [12:50:56]url: /json_proto [12:50:56]query_string will be loaded in cgi processing [12:50:56]execute_cgi json_proto POST (null) [12:50:56]execute_cgi path=json_proto method=POST [12:50:56]POST find Content-Length [12:50:56]Host: 172.17.60.69:8080 [12:50:56]Content-Length: 678 [12:50:56]Content-Type: application/json [12:50:56] [12:50:56]POST finish read [12:50:56]Found Content-Length = 678 [12:50:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543671", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:50:56]execute_script... [12:50: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)543671", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:50:56]POST & json_proto [12:50:56]process_json_proto [12:50:56]json parsed OK: [12:50:56]protocol is kg_v1.0 [12:50:56]action value=close_receipt [12:50:56]process_action close_receipt [12:50:56]cmd_close_receipt [12:50:56]MH_GetDate [12:50:56]Write to MH i2c: F0 00 00 B9 10 B8 [12:50:56]Write i2c OK [12:50:56]MH_I2C_Read... [12:50:56]Read from MH i2c: F0 [12:50:56]MH_I2C_Read... [12:50:56]Read from MH i2c: F0 09 00 [12:50:56]MH_I2C_Read... [12:50:56]Read from MH i2c: F0 09 00 B9 10 00 33 BC 5D 66 6A 96 4A 66 23 [12:50:56]GetLastDocTimeStamp 1717419024 [12:50:56]current date 1717419059 [12:50:56]FM_GetShiftState [12:50:56]SAM_PROTO_GetShiftState [12:50:56]wFMCommunicate request_size=4 [12:50:56]MH_SAM_APDU [12:50:56]CAPDU: 80 13 01 00 [12:50:56]Write to MH i2c: E2 08 00 BA 10 80 13 01 00 00 00 00 00 47 [12:50:56]Write i2c OK [12:50:56]MH_I2C_Read... [12:50:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:50:56]Read from MH i2c: E2 [12:50:56]MH_I2C_Read... [12:50:56]Read from MH i2c: E2 0E 00 [12:50:56]MH_I2C_Read... [12:50:56]Read from MH i2c: E2 0E 00 BA 10 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 13 [12:50:56]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [12:50:56]wFMCommunicate OK [12:50:56]SAM_PROTO_GetShiftState done [12:50:56]FM_GetShiftState done [12:50:56]opened in 1717373173 [12:50:56]opened+sec_in_day 1717459573 [12:50:56]quantity*price = 70044 [12:50:56]sum+1 = 70045 [12:50:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 63 03.06.2024 12:50 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63805 ФПД: 144964008517003 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T125059&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63805&fm=144964008517003&tin=02508201610067®Number=0000000000092737&sum=70000 [12:50:57]StoreToDocumentArchive [12:50:57]shift 373 fd 63805 [12:50:57]save to /storage/0373/doc_00063805 [12:50:57]save last doc name /storage/0373/doc_00063805 to /storage/kkm_last_doc_name [12:50:57]save OK [12:50:57]Clear old archive folders... [12:50:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:50:57]tlvbuf is 00D54170 [12:50:57]SAM_PROTO_ClearQueue [12:50:57]wFMCommunicate request_size=4 [12:50:57]MH_SAM_APDU [12:50:57]CAPDU: 80 09 00 00 [12:50:57]Write to MH i2c: E2 08 00 C7 10 80 09 00 00 00 00 00 00 49 [12:50:57]Write i2c OK [12:50:57]MH_I2C_Read... [12:50:57]Read from MH i2c: E2 [12:50:57]MH_I2C_Read... [12:50:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:50:57]Read from MH i2c: E2 03 00 [12:50:57]MH_I2C_Read... [12:50:57]Read from MH i2c: E2 03 00 C7 10 00 90 00 4B [12:50:57]RAPDU: 90 00 [12:50:57]wFMCommunicate OK [12:50:57]SAM_PROTO_ClearQueue done [12:50:57]KKMCreateOFDPacket [12:50:57]OFDProtocolAddRootSTLVToBuf [12:50:57]FM_MakeSignedData [12:50:57]FM_MakeSignedData [12:50:57]SAM_PROTO_SignData [12:50:57]wFMCommunicate request_size=4 [12:50:57]MH_SAM_APDU [12:50:57]CAPDU: 80 0D 01 02 [12:50:57]Write to MH i2c: E2 08 00 C8 10 80 0D 01 02 00 00 00 00 51 [12:50:57]Write i2c OK [12:50:57]MH_I2C_Read... [12:50:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:50:58]Read from MH i2c: E2 [12:50:58]MH_I2C_Read... [12:50:58]Read from MH i2c: E2 03 00 [12:50:58]MH_I2C_Read... [12:50:58]Read from MH i2c: E2 03 00 C8 10 00 90 00 4C [12:50:58]RAPDU: 90 00 [12:50:58]wFMCommunicate OK [12:50:58]wFMCommunicate request_size=255 [12:50:58]MH_SAM_APDU [12:50:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 33 BC 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 3D F9 00 00 35 04 06 00 83 [12:50:58]Write to MH i2c: E2 02 01 C9 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 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 33 BC 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 3D F9 00 00 35 04 06 00 83 00 00 12 [12:50:58]Write i2c OK [12:50:58]MH_I2C_Read... [12:50:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:50:58]Read from MH i2c: E2 [12:50:58]MH_I2C_Read... [12:50:58]Read from MH i2c: E2 03 00 [12:50:58]MH_I2C_Read... [12:50:58]Read from MH i2c: E2 03 00 C9 10 00 90 00 4D [12:50:58]RAPDU: 90 00 [12:50:58]wFMCommunicate OK [12:50:58]wFMCommunicate request_size=10 [12:50:58]MH_SAM_APDU [12:50:58]CAPDU: 80 0D 02 02 05 D8 10 3B 9D 8B [12:50:58]Write to MH i2c: E2 0D 00 CA 10 80 0D 02 02 05 00 D8 10 3B 9D 8B 00 00 A9 [12:50:58]Write i2c OK [12:50:58]MH_I2C_Read... [12:50:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:50:58]Read from MH i2c: E2 [12:50:58]MH_I2C_Read... [12:50:58]Read from MH i2c: E2 03 00 [12:50:58]MH_I2C_Read... [12:50:58]Read from MH i2c: E2 03 00 CA 10 00 90 00 4E [12:50:58]RAPDU: 90 00 [12:50:58]wFMCommunicate OK [12:50:58]wFMCommunicate request_size=4 [12:50:58]MH_SAM_APDU [12:50:58]CAPDU: 80 0D 03 02 [12:50:58]Write to MH i2c: E2 08 00 CB 10 80 0D 03 02 00 00 00 00 56 [12:50:58]Write i2c OK [12:50:58]MH_I2C_Read... [12:50:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:50:58]Read from MH i2c: E2 [12:50:58]MH_I2C_Read... [12:50:58]Read from MH i2c: E2 0B 00 [12:50:58]MH_I2C_Read... [12:50:58]Read from MH i2c: E2 0B 00 CB 10 00 BD C5 9C DD FB 29 01 02 90 00 79 [12:50:58]RAPDU: BD C5 9C DD FB 29 01 02 90 00 [12:50:58]wFMCommunicate OK [12:50:58]SAM_PROTO_SignData done [12:50:58]FM_MakeSignedData done [12:50:58]CreateOFDProtocolMessage [12:50:58]wFMCommunicate request_size=4 [12:50:58]MH_SAM_APDU [12:50:58]CAPDU: 80 11 00 00 [12:50:58]Write to MH i2c: E2 08 00 CC 10 80 11 00 00 00 00 00 00 56 [12:50:58]Write i2c OK [12:50:58]MH_I2C_Read... [12:50:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:50:58]Read from MH i2c: E2 [12:50:58]MH_I2C_Read... [12:50:58]Read from MH i2c: E2 17 00 [12:50:58]MH_I2C_Read... [12:50:58]Read from MH i2c: E2 17 00 CC 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 A8 [12:50:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [12:50:58]wFMCommunicate OK [12:50:58]CreateOFDProtocolMessage done [12:50:58]OFDSenderStorePacket 63805 [12:50:58]StoreOFDPacket docnum=63805 [12:50:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0F 01 00 00 EE B1 07 01 56 25 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 33 BC 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 3D F9 00 00 35 04 06 00 83 D8 10 3B 9D 8B BD C5 9C DD FB 29 01 02 [12:50:58]CheckFolder [12:50:58]dirname=/storage/ofd_packets [12:50:58]CheckFolder done [12:50:58]ProducePacketName [12:50:58]name=ofd_packets/00063805 [12:50:58]NVStorageSaveData ofd_packets/00063805 [12:50:58]File name is /storage/ofd_packets/00063805 [12:50:58]Write 301 bytes [12:50:58]NVStorageSaveData done [12:50:58]OFDSenderStorePacket done [12:50:58]KKMCreateOFDPacket done [12:50:58]NVStorageSaveData kkm_last_timestamp [12:50:58]File name is /storage/kkm_last_timestamp [12:50:58]Write 4 bytes [12:50:58]NVStorageSaveData done [12:50:58]ExternCall_PrintAddStr [12:50:58]wPrintStart [12:50:58]Write to MH i2c: 01 00 00 CD 10 DD [12:50:58]Write i2c OK [12:50:58]MH_I2C_Read... [12:50:58]Read from MH i2c: 01 [12:50:58]MH_I2C_Read... [12:50:58]Read from MH i2c: 01 07 00 [12:50:58]MH_I2C_Read... [12:50:58]Read from MH i2c: 01 07 00 CD 10 00 00 00 00 00 FF 0F F2 [12:50:58]RasterBufferAndPrint [12:50:58]line Счет N : (1)543671 [12:50:58]line ИНН: 02508201610067 [12:50:58]line Контрольно-Кассовый Чек [12:50:58]line ПРОДАЖА [12:50:58]line ТРК (МРК, ГНК) : 22 [12:50:58]line Товар: 2710124130 [12:50:58]line Аи-92-К-5 [12:50:58]line 10.470 * 66.90 [12:50:58]line = 700.44 [12:50:58]line НДС 12% НСП 1% [12:50:58]line > о реализуемом товаре [12:50:58]line ОКРУГЛЕНИЕ: -0.44 [12:50:58]line ИТОГО: 700.00 [12:50:58]line Внесено: 700.00 [12:50:58]line СДАЧА: 0.00 [12:50:58]line НСП 1% : 6.20 [12:50:58]line НДС 12% : 74.38 [12:50:58]line Наличными: 700.00 [12:50:58]line Безнал.: 0.00 [12:50:58]line Место: АЗС № 117 "Партнер Нефть" [12:50:58]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [12:50:58]line СНО: Общий режим [12:50:58]line Чек 63 03.06.2024 12:50 [12:50:58]line Смена: 373 ФФД: 1.0 [12:50:58]line ЗНМ: 0300000031 [12:50:58]line РНМ: 0000000000092737 [12:50:58]line Версия ККМ: 001 [12:50:58]line ФМ: 0000000000875074 [12:50:58]line ФД: 63805 [12:50:58]line ФПД: 144964008517003 [12:50:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T125059&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63805&fm=144964008517003&tin=02508201610067®Number=0000000000092737&sum=70000 [12:50:58]OFD Sender: Processing packet 63805 [packets to send 14, broken 13] [12:50:58]ProducePacketName [12:50:58]name=ofd_packets/00063805 [12:50:58]OFD Sender: To server: pG, [12:50:58]CommunicateWithHost lk.salyk.kg:30040 [12:50:58]ConnectInit lk.salyk.kg [12:50:58]written 0, free lines is 4095 [12:50:58]Connected sock=10 [12:50:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0F 01 00 00 EE B1 07 01 56 25 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 33 BC 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 3D F9 00 00 35 04 06 00 83 D8 10 3B 9D 8B BD C5 9C DD FB 29 01 02 [12:50:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 B3 73 47 00 4F 19 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 3D F9 00 00 F4 03 04 00 04 68 5D 66 B6 04 01 00 00 3D 1A 40 35 F5 0D D3 9D [12:50:59]CommunicateWithHost err = 0 [12:50:59]CheckOFDResponse [12:50:59]1017 (14) - 77093643461234 [12:50:59]1041 (16) - 0000000000875074 [12:50:59]1040 (4) - 63805 [12:50:59]1012 (4) - 03.06.2024 06:51 [12:50:59]1206 (1) - 0 [12:50:59]OFD Sender: Remove packet 63805 [12:50:59]ProducePacketName [12:50:59]name=ofd_packets/00063805 [12:50:59]NVStorageDeleteData [12:50:59]Write to MH i2c: 01 00 00 F8 10 08 [12:50:59]Write i2c OK [12:50:59]MH_I2C_Read... [12:50:59]Read from MH i2c: 01 [12:50:59]MH_I2C_Read... [12:50:59]Read from MH i2c: 01 07 00 [12:50:59]MH_I2C_Read... [12:50:59]Read from MH i2c: 01 07 00 F8 10 00 00 00 00 00 D4 0C EF [12:50:59]RasterBufferAndPrint [12:50:59]line [12:50:59]line [12:50:59]line [12:50:59]line [12:50:59]line [12:50:59]written 0, free lines is 3292 [12:50:59]MH_Cut [12:50:59]Write to MH i2c: D1 01 00 FF 10 01 E1 [12:50:59]Write i2c OK [12:50:59]MH_I2C_Read... [12:50:59]Read from MH i2c: D1 [12:50:59]MH_I2C_Read... [12:50:59]Read from MH i2c: D1 01 00 [12:50:59]MH_I2C_Read... [12:50:59]Read from MH i2c: D1 01 00 FF 10 00 E0 [12:50:59]Write to MH i2c: 01 00 00 00 11 11 [12:50:59]Write i2c OK [12:50:59]MH_I2C_Read... [12:50:59]OFD Sender: No OFD packet to send [12:51:00]*** Cut start [12:51:00]*** Partial cut [12:51:00]*** CUTSNS_PIN = 1 [12:51:00]*** CUTSNS_PIN = 0 [12:51:00]*** Brake cut motor [12:51:00]Read from MH i2c: 01 [12:51:00]MH_I2C_Read... [12:51:00]*** Stop cut motor [12:51:00]*** Cut end [12:51:00]Read from MH i2c: 01 07 00 [12:51:00]MH_I2C_Read... [12:51:00]Read from MH i2c: 01 07 00 00 11 00 00 00 00 00 FF 0F 26 [12:51:00]process_action close_receipt done [12:51:00]requested_data is exist [12:51:00]produce_requested_data [12:51:00]requested_item fm.sn is exist - process it [12:51:00]wFMCommunicate request_size=4 [12:51:00]MH_SAM_APDU [12:51:00]CAPDU: 80 11 00 00 [12:51:00]Write to MH i2c: E2 08 00 01 11 80 11 00 00 00 00 00 00 8C [12:51:00]Write i2c OK [12:51:00]MH_I2C_Read... [12:51:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:51:00]Read from MH i2c: E2 [12:51:00]MH_I2C_Read... [12:51:00]Read from MH i2c: E2 17 00 [12:51:00]MH_I2C_Read... [12:51:00]Read from MH i2c: E2 17 00 01 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 DE [12:51:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [12:51:00]wFMCommunicate OK [12:51:00]requested_item fd.num is exist - process it [12:51:00]SAM_PROTO_GetFieldsCounters [12:51:00]wFMCommunicate request_size=4 [12:51:00]MH_SAM_APDU [12:51:00]CAPDU: 80 13 00 00 [12:51:00]Write to MH i2c: E2 08 00 02 11 80 13 00 00 00 00 00 00 8F [12:51:00]Write i2c OK [12:51:00]MH_I2C_Read... [12:51:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:51:00]Read from MH i2c: E2 [12:51:00]MH_I2C_Read... [12:51:00]Read from MH i2c: E2 62 00 [12:51:00]MH_I2C_Read... [12:51:00]Read from MH i2c: E2 62 00 02 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 3D F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 1B [12:51: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 3D F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:51:00]wFMCommunicate OK [12:51:00]SAM_PROTO_GetFieldsCounters done [12:51:00]requested_item shift.num is exist - process it [12:51:00]requested_item shift.opened is exist - process it [12:51:00]req_shift_opened [12:51:00]FM_GetShiftState [12:51:00]SAM_PROTO_GetShiftState [12:51:00]wFMCommunicate request_size=4 [12:51:00]MH_SAM_APDU [12:51:00]CAPDU: 80 13 01 00 [12:51:00]Write to MH i2c: E2 08 00 03 11 80 13 01 00 00 00 00 00 91 [12:51:00]Write i2c OK [12:51:00]MH_I2C_Read... [12:51:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:51:00]Read from MH i2c: E2 [12:51:00]MH_I2C_Read... [12:51:00]Read from MH i2c: E2 0E 00 [12:51:00]MH_I2C_Read... [12:51:00]Read from MH i2c: E2 0E 00 03 11 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 5D [12:51:00]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [12:51:00]wFMCommunicate OK [12:51:00]SAM_PROTO_GetShiftState done [12:51:00]FM_GetShiftState done [12:51:00]req_shift_opened done [12:51:00]requested_item shift.open_date is exist - process it [12:51:00]req_shift_open_date [12:51:00]req_shift_open_date done [12:51:00]produce_requested_data done [12:51:00]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63805,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [12:51:00]process_action_free close_receipt [12:51:00]json_value_free [12:51:00]json_value_free done [12:51:00]process_json_proto returns [12:51:00]Send response to host [12:51:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63805,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [12:51:00]free response buf [12:51:00]execute_script done [12:51:00]execute_script returns [12:51:00]free content buf [12:51:00]Sock 7.Close socket [12:51:00]Sock 7.Thread stoped [12:51:04]OFD Sender: No OFD packet to send [12:51:09]OFD Sender: No OFD packet to send [12:51:14]OFD Sender: No OFD packet to send [12:51:19]OFD Sender: No OFD packet to send [12:51:24]OFD Sender: No OFD packet to send [12:51:29]OFD Sender: No OFD packet to send [12:51:34]OFD Sender: No OFD packet to send [12:51:39]OFD Sender: No OFD packet to send [12:51:44]OFD Sender: No OFD packet to send [12:51:49]OFD Sender: No OFD packet to send [12:51:54]OFD Sender: No OFD packet to send [12:51:59]OFD Sender: No OFD packet to send [12:52:04]OFD Sender: No OFD packet to send [12:52:09]OFD Sender: No OFD packet to send [12:52:14]OFD Sender: No OFD packet to send [12:52:19]OFD Sender: No OFD packet to send [12:52:24]OFD Sender: No OFD packet to send [12:52:29]OFD Sender: No OFD packet to send [12:52:34]accept exits with 9 [12:52:34]New connection [12:52:34]New thread 3067518308 created [12:52:34]Thread 3067374948 joined [12:52:34]Waiting for new connection... [12:52:34] Sock 9.Parse request [12:52:34]Sock 9.Check first char [12:52:34]Sock 9.First char is OK [12:52:34]request: POST /json_proto HTTP/1.0 [12:52:34]Method: POST [12:52:34]URL: /json_proto [12:52:34]Method is POST - this is cgi request [12:52:34]url: /json_proto [12:52:34]query_string will be loaded in cgi processing [12:52:34]execute_cgi json_proto POST (null) [12:52:34]execute_cgi path=json_proto method=POST [12:52:34]POST find Content-Length [12:52:34]Host: 172.17.60.69:8080 [12:52:34]Content-Length: 813 [12:52:34]Content-Type: application/json [12:52:34] [12:52:34]POST finish read [12:52:34]Found Content-Length = 813 [12:52:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543674", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 8.240, "sum" : 600.70, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 600.70 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:52:34]execute_script... [12:52: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)543674", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 8.240, "sum" : 600.70, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 600.70 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:52:34]POST & json_proto [12:52:34]process_json_proto [12:52:34]json parsed OK: [12:52:34]protocol is kg_v1.0 [12:52:34]action value=close_receipt [12:52:34]process_action close_receipt [12:52:34]cmd_close_receipt [12:52:34]MH_GetDate [12:52:34]Write to MH i2c: F0 00 00 04 11 04 [12:52:34]Write i2c OK [12:52:34]MH_I2C_Read... [12:52:34]Read from MH i2c: F0 [12:52:34]MH_I2C_Read... [12:52:34]Read from MH i2c: F0 09 00 [12:52:34]MH_I2C_Read... [12:52:34]Read from MH i2c: F0 09 00 04 11 00 94 BC 5D 66 6A 96 4A 66 D0 [12:52:34]GetLastDocTimeStamp 1717419059 [12:52:34]current date 1717419156 [12:52:34]FM_GetShiftState [12:52:34]SAM_PROTO_GetShiftState [12:52:34]wFMCommunicate request_size=4 [12:52:34]MH_SAM_APDU [12:52:34]CAPDU: 80 13 01 00 [12:52:34]Write to MH i2c: E2 08 00 05 11 80 13 01 00 00 00 00 00 93 [12:52:34]Write i2c OK [12:52:34]MH_I2C_Read... [12:52:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:52:34]Read from MH i2c: E2 [12:52:34]MH_I2C_Read... [12:52:34]Read from MH i2c: E2 0E 00 [12:52:34]MH_I2C_Read... [12:52:34]Read from MH i2c: E2 0E 00 05 11 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 5F [12:52:34]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [12:52:34]wFMCommunicate OK [12:52:34]SAM_PROTO_GetShiftState done [12:52:34]FM_GetShiftState done [12:52:34]opened in 1717373173 [12:52:34]opened+sec_in_day 1717459573 [12:52:34]quantity*price = 60069 [12:52:34]sum+1 = 60071 [12:52:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 600.70 НСП 1% : 5.32 НДС 12% : 63.79 Наличными: 0.00 Безнал.: 600.70 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 64 03.06.2024 12:52 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875074 ФД: 63806 ФПД: 257149014343949 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T125236&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63806&fm=257149014343949&tin=02508201610067®Number=0000000000092737&sum=60070 [12:52:35]StoreToDocumentArchive [12:52:35]shift 373 fd 63806 [12:52:35]save to /storage/0373/doc_00063806 [12:52:35]save last doc name /storage/0373/doc_00063806 to /storage/kkm_last_doc_name [12:52:35]save OK [12:52:35]Clear old archive folders... [12:52:35]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:52:35]tlvbuf is B6E32610 [12:52:35]SAM_PROTO_ClearQueue [12:52:35]wFMCommunicate request_size=4 [12:52:35]MH_SAM_APDU [12:52:35]CAPDU: 80 09 00 00 [12:52:35]Write to MH i2c: E2 08 00 12 11 80 09 00 00 00 00 00 00 95 [12:52:35]Write i2c OK [12:52:35]MH_I2C_Read... [12:52:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:52:35]Read from MH i2c: E2 [12:52:35]MH_I2C_Read... [12:52:35]Read from MH i2c: E2 03 00 [12:52:35]MH_I2C_Read... [12:52:35]Read from MH i2c: E2 03 00 12 11 00 90 00 97 [12:52:35]RAPDU: 90 00 [12:52:35]wFMCommunicate OK [12:52:35]SAM_PROTO_ClearQueue done [12:52:35]KKMCreateOFDPacket [12:52:35]OFDProtocolAddRootSTLVToBuf [12:52:35]FM_MakeSignedData [12:52:35]FM_MakeSignedData [12:52:35]SAM_PROTO_SignData [12:52:35]wFMCommunicate request_size=4 [12:52:35]MH_SAM_APDU [12:52:35]CAPDU: 80 0D 01 02 [12:52:35]Write to MH i2c: E2 08 00 13 11 80 0D 01 02 00 00 00 00 9D [12:52:35]Write i2c OK [12:52:35]MH_I2C_Read... [12:52:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:52:35]Read from MH i2c: E2 [12:52:35]MH_I2C_Read... [12:52:35]Read from MH i2c: E2 03 00 [12:52:35]MH_I2C_Read... [12:52:35]Read from MH i2c: E2 03 00 13 11 00 90 00 98 [12:52:35]RAPDU: 90 00 [12:52:35]wFMCommunicate OK [12:52:35]wFMCommunicate request_size=255 [12:52:35]MH_SAM_APDU [12:52:35]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 35 FF 03 08 00 03 30 20 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A6 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A6 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 14 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A6 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 94 BC 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 3E F9 00 00 35 04 06 00 E9 E0 2B A7 [12:52:35]Write to MH i2c: E2 02 01 14 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 35 FF 03 08 00 03 30 20 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A6 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A6 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 14 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A6 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 94 BC 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 3E F9 00 00 35 04 06 00 E9 E0 2B A7 00 00 46 [12:52:35]Write i2c OK [12:52:35]MH_I2C_Read... [12:52:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:52:35]Read from MH i2c: E2 [12:52:35]MH_I2C_Read... [12:52:35]Read from MH i2c: E2 03 00 [12:52:35]MH_I2C_Read... [12:52:35]Read from MH i2c: E2 03 00 14 11 00 90 00 99 [12:52:35]RAPDU: 90 00 [12:52:35]wFMCommunicate OK [12:52:35]wFMCommunicate request_size=7 [12:52:35]MH_SAM_APDU [12:52:35]CAPDU: 80 0D 02 02 02 81 0D [12:52:35]Write to MH i2c: E2 0A 00 15 11 80 0D 02 02 02 00 81 0D 00 00 32 [12:52:35]Write i2c OK [12:52:35]MH_I2C_Read... [12:52:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:52:35]Read from MH i2c: E2 [12:52:35]MH_I2C_Read... [12:52:35]Read from MH i2c: E2 03 00 [12:52:35]MH_I2C_Read... [12:52:35]Read from MH i2c: E2 03 00 15 11 00 90 00 9A [12:52:35]RAPDU: 90 00 [12:52:35]wFMCommunicate OK [12:52:35]wFMCommunicate request_size=4 [12:52:35]MH_SAM_APDU [12:52:35]CAPDU: 80 0D 03 02 [12:52:35]Write to MH i2c: E2 08 00 16 11 80 0D 03 02 00 00 00 00 A2 [12:52:35]Write i2c OK [12:52:35]MH_I2C_Read... [12:52:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:52:35]Read from MH i2c: E2 [12:52:35]MH_I2C_Read... [12:52:35]Read from MH i2c: E2 0B 00 [12:52:35]MH_I2C_Read... [12:52:35]Read from MH i2c: E2 0B 00 16 11 00 19 B9 33 94 E0 C0 C1 4B 90 00 E8 [12:52:35]RAPDU: 19 B9 33 94 E0 C0 C1 4B 90 00 [12:52:35]wFMCommunicate OK [12:52:35]SAM_PROTO_SignData done [12:52:35]FM_MakeSignedData done [12:52:35]CreateOFDProtocolMessage [12:52:35]wFMCommunicate request_size=4 [12:52:35]MH_SAM_APDU [12:52:35]CAPDU: 80 11 00 00 [12:52:35]Write to MH i2c: E2 08 00 17 11 80 11 00 00 00 00 00 00 A2 [12:52:35]Write i2c OK [12:52:35]MH_I2C_Read... [12:52:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:52:35]Read from MH i2c: E2 [12:52:35]MH_I2C_Read... [12:52:35]Read from MH i2c: E2 17 00 [12:52:35]MH_I2C_Read... [12:52:35]Read from MH i2c: E2 17 00 17 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 F4 [12:52:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [12:52:35]wFMCommunicate OK [12:52:35]CreateOFDProtocolMessage done [12:52:35]OFDSenderStorePacket 63806 [12:52:35]StoreOFDPacket docnum=63806 [12:52:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0C 01 00 00 5E 5B 04 01 8C 8F 5A 03 01 00 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 35 FF 03 08 00 03 30 20 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A6 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A6 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 14 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A6 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 94 BC 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 3E F9 00 00 35 04 06 00 E9 E0 2B A7 81 0D 19 B9 33 94 E0 C0 C1 4B [12:52:35]CheckFolder [12:52:35]dirname=/storage/ofd_packets [12:52:35]CheckFolder done [12:52:35]ProducePacketName [12:52:35]name=ofd_packets/00063806 [12:52:35]NVStorageSaveData ofd_packets/00063806 [12:52:35]File name is /storage/ofd_packets/00063806 [12:52:35]Write 298 bytes [12:52:35]NVStorageSaveData done [12:52:35]OFDSenderStorePacket done [12:52:35]KKMCreateOFDPacket done [12:52:35]NVStorageSaveData kkm_last_timestamp [12:52:35]File name is /storage/kkm_last_timestamp [12:52:35]Write 4 bytes [12:52:35]NVStorageSaveData done [12:52:35]ExternCall_PrintAddStr [12:52:35]wPrintStart [12:52:35]Write to MH i2c: 01 00 00 18 11 29 [12:52:35]Write i2c OK [12:52:35]MH_I2C_Read... [12:52:35]Read from MH i2c: 01 [12:52:35]MH_I2C_Read... [12:52:35]Read from MH i2c: 01 07 00 [12:52:35]MH_I2C_Read... [12:52:35]Read from MH i2c: 01 07 00 18 11 00 00 00 00 00 FF 0F 3E [12:52:35]RasterBufferAndPrint [12:52:35]line Счет N : (1)543674 [12:52:35]line ИНН: 02508201610067 [12:52:35]line Контрольно-Кассовый Чек [12:52:35]line ПРОДАЖА [12:52:35]line ТРК (МРК, ГНК) : 51 [12:52:35]line Товар: 2710194210 [12:52:35]line ДТ-К-5 [12:52:35]line 8.240 * 72.90 [12:52:35]line = 600.70 [12:52:35]line НДС 12% НСП 1% [12:52:35]line > о реализуемом товаре [12:52:35]line ИТОГО: 600.70 [12:52:35]line НСП 1% : 5.32 [12:52:35]line НДС 12% : 63.79 [12:52:35]line Наличными: 0.00 [12:52:35]line Безнал.: 600.70 [12:52:35]line Место: АЗС № 117 "Партнер Нефть" [12:52:35]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [12:52:35]line СНО: Общий режим [12:52:35]line Чек 64 03.06.2024 12:52 [12:52:36]line Смена: 373 ФФД: 1.0 [12:52:36]line ЗНМ: 0300000031 [12:52:36]line РНМ: 0000000000092737 [12:52:36]line Версия ККМ: 001 [12:52:36]line Платежная система: Бакай Банк [12:52:36]line ФМ: 0000000000875074 [12:52:36]line ФД: 63806 [12:52:36]line ФПД: 257149014343949 [12:52:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T125236&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63806&fm=257149014343949&tin=02508201610067®Number=0000000000092737&sum=60070 [12:52:36]OFD Sender: Processing packet 63806 [packets to send 14, broken 13] [12:52:36]ProducePacketName [12:52:36]name=ofd_packets/00063806 [12:52:36]OFD Sender: To server: pG, [12:52:36]CommunicateWithHost lk.salyk.kg:30040 [12:52:36]ConnectInit lk.salyk.kg [12:52:36]written 0, free lines is 4095 [12:52:36]Connected sock=10 [12:52:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0C 01 00 00 5E 5B 04 01 8C 8F 5A 03 01 00 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 35 FF 03 08 00 03 30 20 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A6 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A6 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 14 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A6 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 94 BC 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 3E F9 00 00 35 04 06 00 E9 E0 2B A7 81 0D 19 B9 33 94 E0 C0 C1 4B [12:52:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 C9 F5 47 00 14 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 35 30 37 34 10 04 04 00 3E F9 00 00 F4 03 04 00 65 68 5D 66 B6 04 01 00 00 6A FD C1 F7 B6 86 CA F8 [12:52:36]CommunicateWithHost err = 0 [12:52:36]CheckOFDResponse [12:52:36]1017 (14) - 77093643461234 [12:52:36]1041 (16) - 0000000000875074 [12:52:36]1040 (4) - 63806 [12:52:36]1012 (4) - 03.06.2024 06:53 [12:52:36]1206 (1) - 0 [12:52:36]OFD Sender: Remove packet 63806 [12:52:36]ProducePacketName [12:52:36]name=ofd_packets/00063806 [12:52:36]NVStorageDeleteData [12:52:36]Write to MH i2c: 01 00 00 42 11 53 [12:52:36]Write i2c OK [12:52:36]MH_I2C_Read... [12:52:36]Read from MH i2c: 01 [12:52:36]MH_I2C_Read... [12:52:36]Read from MH i2c: 01 07 00 [12:52:36]MH_I2C_Read... [12:52:36]Read from MH i2c: 01 07 00 42 11 00 00 00 00 00 E4 0C 4A [12:52:36]RasterBufferAndPrint [12:52:36]line [12:52:36]line [12:52:36]line [12:52:36]line [12:52:36]line [12:52:36]written 0, free lines is 3307 [12:52:36]MH_Cut [12:52:36]Write to MH i2c: D1 01 00 49 11 01 2C [12:52:36]Write i2c OK [12:52:36]MH_I2C_Read... [12:52:36]Read from MH i2c: D1 [12:52:36]MH_I2C_Read... [12:52:36]Read from MH i2c: D1 01 00 [12:52:36]MH_I2C_Read... [12:52:36]Read from MH i2c: D1 01 00 49 11 00 2B [12:52:36]Write to MH i2c: 01 00 00 4A 11 5B [12:52:36]Write i2c OK [12:52:36]MH_I2C_Read... [12:52:36]OFD Sender: No OFD packet to send [12:52:37]*** Cut start [12:52:37]*** Partial cut [12:52:37]*** CUTSNS_PIN = 1 [12:52:37]*** CUTSNS_PIN = 0 [12:52:37]*** Brake cut motor [12:52:37]Read from MH i2c: 01 [12:52:37]MH_I2C_Read... [12:52:37]*** Stop cut motor [12:52:37]*** Cut end [12:52:37]Read from MH i2c: 01 07 00 [12:52:37]MH_I2C_Read... [12:52:37]Read from MH i2c: 01 07 00 4A 11 00 00 00 00 00 FF 0F 70 [12:52:37]process_action close_receipt done [12:52:37]requested_data is exist [12:52:37]produce_requested_data [12:52:37]requested_item fm.sn is exist - process it [12:52:37]wFMCommunicate request_size=4 [12:52:37]MH_SAM_APDU [12:52:37]CAPDU: 80 11 00 00 [12:52:37]Write to MH i2c: E2 08 00 4B 11 80 11 00 00 00 00 00 00 D6 [12:52:37]Write i2c OK [12:52:37]MH_I2C_Read... [12:52:37]Read from MH i2c: E2 [12:52:37]MH_I2C_Read... [12:52:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:52:37]Read from MH i2c: E2 17 00 [12:52:37]MH_I2C_Read... [12:52:37]Read from MH i2c: E2 17 00 4B 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 28 [12:52:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [12:52:37]wFMCommunicate OK [12:52:37]requested_item fd.num is exist - process it [12:52:37]SAM_PROTO_GetFieldsCounters [12:52:37]wFMCommunicate request_size=4 [12:52:37]MH_SAM_APDU [12:52:37]CAPDU: 80 13 00 00 [12:52:37]Write to MH i2c: E2 08 00 4C 11 80 13 00 00 00 00 00 00 D9 [12:52:37]Write i2c OK [12:52:37]MH_I2C_Read... [12:52:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:52:38]Read from MH i2c: E2 [12:52:38]MH_I2C_Read... [12:52:38]Read from MH i2c: E2 62 00 [12:52:38]MH_I2C_Read... [12:52:38]Read from MH i2c: E2 62 00 4C 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 3E F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 69 [12:52: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 3E F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:52:38]wFMCommunicate OK [12:52:38]SAM_PROTO_GetFieldsCounters done [12:52:38]requested_item shift.num is exist - process it [12:52:38]requested_item shift.opened is exist - process it [12:52:38]req_shift_opened [12:52:38]FM_GetShiftState [12:52:38]SAM_PROTO_GetShiftState [12:52:38]wFMCommunicate request_size=4 [12:52:38]MH_SAM_APDU [12:52:38]CAPDU: 80 13 01 00 [12:52:38]Write to MH i2c: E2 08 00 4D 11 80 13 01 00 00 00 00 00 DB [12:52:38]Write i2c OK [12:52:38]MH_I2C_Read... [12:52:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:52:38]Read from MH i2c: E2 [12:52:38]MH_I2C_Read... [12:52:38]Read from MH i2c: E2 0E 00 [12:52:38]MH_I2C_Read... [12:52:38]Read from MH i2c: E2 0E 00 4D 11 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 A7 [12:52:38]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [12:52:38]wFMCommunicate OK [12:52:38]SAM_PROTO_GetShiftState done [12:52:38]FM_GetShiftState done [12:52:38]req_shift_opened done [12:52:38]requested_item shift.open_date is exist - process it [12:52:38]req_shift_open_date [12:52:38]req_shift_open_date done [12:52:38]produce_requested_data done [12:52:38]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63806,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [12:52:38]process_action_free close_receipt [12:52:38]json_value_free [12:52:38]json_value_free done [12:52:38]process_json_proto returns [12:52:38]Send response to host [12:52:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63806,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [12:52:38]free response buf [12:52:38]execute_script done [12:52:38]execute_script returns [12:52:38]free content buf [12:52:38]Sock 9.Close socket [12:52:38]Sock 9.Thread stoped [12:52:41]OFD Sender: No OFD packet to send [12:52:46]OFD Sender: No OFD packet to send [12:52:50]accept exits with 7 [12:52:50]New connection [12:52:50]New thread 3067374948 created [12:52:50]Thread 3067518308 joined [12:52:50]Waiting for new connection... [12:52:50] Sock 7.Parse request [12:52:50]Sock 7.Check first char [12:52:50]Sock 7.First char is OK [12:52:50]request: POST /json_proto HTTP/1.0 [12:52:50]Method: POST [12:52:50]URL: /json_proto [12:52:50]Method is POST - this is cgi request [12:52:50]url: /json_proto [12:52:50]query_string will be loaded in cgi processing [12:52:50]execute_cgi json_proto POST (null) [12:52:50]execute_cgi path=json_proto method=POST [12:52:50]POST find Content-Length [12:52:50]Host: 172.17.60.69:8080 [12:52:50]Content-Length: 682 [12:52:50]Content-Type: application/json [12:52:50] [12:52:50]POST finish read [12:52:50]Found Content-Length = 682 [12:52:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543672", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:52:50]execute_script... [12:52: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)543672", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:52:50]POST & json_proto [12:52:50]process_json_proto [12:52:50]json parsed OK: [12:52:50]protocol is kg_v1.0 [12:52:50]action value=close_receipt [12:52:50]process_action close_receipt [12:52:50]cmd_close_receipt [12:52:50]MH_GetDate [12:52:50]Write to MH i2c: F0 00 00 4E 11 4E [12:52:50]Write i2c OK [12:52:50]MH_I2C_Read... [12:52:50]Read from MH i2c: F0 [12:52:50]MH_I2C_Read... [12:52:50]Read from MH i2c: F0 09 00 [12:52:50]MH_I2C_Read... [12:52:50]Read from MH i2c: F0 09 00 4E 11 00 A4 BC 5D 66 6A 96 4A 66 2A [12:52:50]GetLastDocTimeStamp 1717419156 [12:52:50]current date 1717419172 [12:52:50]FM_GetShiftState [12:52:50]SAM_PROTO_GetShiftState [12:52:50]wFMCommunicate request_size=4 [12:52:50]MH_SAM_APDU [12:52:50]CAPDU: 80 13 01 00 [12:52:50]Write to MH i2c: E2 08 00 4F 11 80 13 01 00 00 00 00 00 DD [12:52:50]Write i2c OK [12:52:50]MH_I2C_Read... [12:52:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:52:50]Read from MH i2c: E2 [12:52:50]MH_I2C_Read... [12:52:50]Read from MH i2c: E2 0E 00 [12:52:50]MH_I2C_Read... [12:52:50]Read from MH i2c: E2 0E 00 4F 11 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 A9 [12:52:50]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [12:52:50]wFMCommunicate OK [12:52:50]SAM_PROTO_GetShiftState done [12:52:50]FM_GetShiftState done [12:52:50]opened in 1717373173 [12:52:50]opened+sec_in_day 1717459573 [12:52:50]quantity*price = 100015 [12:52:50]sum+1 = 100017 [12:52:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 65 03.06.2024 12:52 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63807 ФПД: 254279619748680 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T125252&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63807&fm=254279619748680&tin=02508201610067®Number=0000000000092737&sum=100000 [12:52:51]StoreToDocumentArchive [12:52:51]shift 373 fd 63807 [12:52:51]save to /storage/0373/doc_00063807 [12:52:51]save last doc name /storage/0373/doc_00063807 to /storage/kkm_last_doc_name [12:52:51]save OK [12:52:51]Clear old archive folders... [12:52:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:52:51]tlvbuf is B6F4B830 [12:52:51]SAM_PROTO_ClearQueue [12:52:51]wFMCommunicate request_size=4 [12:52:51]MH_SAM_APDU [12:52:51]CAPDU: 80 09 00 00 [12:52:51]Write to MH i2c: E2 08 00 5C 11 80 09 00 00 00 00 00 00 DF [12:52:51]Write i2c OK [12:52:51]MH_I2C_Read... [12:52:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:52:51]Read from MH i2c: E2 [12:52:51]MH_I2C_Read... [12:52:51]Read from MH i2c: E2 03 00 [12:52:51]MH_I2C_Read... [12:52:51]Read from MH i2c: E2 03 00 5C 11 00 90 00 E1 [12:52:51]RAPDU: 90 00 [12:52:51]wFMCommunicate OK [12:52:51]SAM_PROTO_ClearQueue done [12:52:51]KKMCreateOFDPacket [12:52:51]OFDProtocolAddRootSTLVToBuf [12:52:51]FM_MakeSignedData [12:52:51]FM_MakeSignedData [12:52:51]SAM_PROTO_SignData [12:52:51]wFMCommunicate request_size=4 [12:52:51]MH_SAM_APDU [12:52:51]CAPDU: 80 0D 01 02 [12:52:51]Write to MH i2c: E2 08 00 5D 11 80 0D 01 02 00 00 00 00 E7 [12:52:51]Write i2c OK [12:52:51]MH_I2C_Read... [12:52:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:52:51]Read from MH i2c: E2 [12:52:51]MH_I2C_Read... [12:52:51]Read from MH i2c: E2 03 00 [12:52:51]MH_I2C_Read... [12:52:51]Read from MH i2c: E2 03 00 5D 11 00 90 00 E2 [12:52:51]RAPDU: 90 00 [12:52:51]wFMCommunicate OK [12:52:51]wFMCommunicate request_size=255 [12:52:51]MH_SAM_APDU [12:52:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 41 00 00 00 F4 03 04 00 A4 BC 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 3F F9 00 00 35 04 06 00 E7 [12:52:51]Write to MH i2c: E2 02 01 5E 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 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 A4 BC 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 3F F9 00 00 35 04 06 00 E7 00 00 6B [12:52:51]Write i2c OK [12:52:51]MH_I2C_Read... [12:52:51]OFD Sender: No OFD packet to send [12:52:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:52:51]Read from MH i2c: E2 [12:52:51]MH_I2C_Read... [12:52:51]Read from MH i2c: E2 03 00 [12:52:51]MH_I2C_Read... [12:52:51]Read from MH i2c: E2 03 00 5E 11 00 90 00 E3 [12:52:51]RAPDU: 90 00 [12:52:51]wFMCommunicate OK [12:52:51]wFMCommunicate request_size=10 [12:52:51]MH_SAM_APDU [12:52:51]CAPDU: 80 0D 02 02 05 44 16 68 A3 48 [12:52:51]Write to MH i2c: E2 0D 00 5F 11 80 0D 02 02 05 00 44 16 68 A3 48 00 00 A1 [12:52:51]Write i2c OK [12:52:51]MH_I2C_Read... [12:52:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:52:51]Read from MH i2c: E2 [12:52:51]MH_I2C_Read... [12:52:51]Read from MH i2c: E2 03 00 [12:52:51]MH_I2C_Read... [12:52:51]Read from MH i2c: E2 03 00 5F 11 00 90 00 E4 [12:52:51]RAPDU: 90 00 [12:52:51]wFMCommunicate OK [12:52:51]wFMCommunicate request_size=4 [12:52:51]MH_SAM_APDU [12:52:51]CAPDU: 80 0D 03 02 [12:52:51]Write to MH i2c: E2 08 00 60 11 80 0D 03 02 00 00 00 00 EC [12:52:51]Write i2c OK [12:52:51]MH_I2C_Read... [12:52:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:52:52]Read from MH i2c: E2 [12:52:52]MH_I2C_Read... [12:52:52]Read from MH i2c: E2 0B 00 [12:52:52]MH_I2C_Read... [12:52:52]Read from MH i2c: E2 0B 00 60 11 00 91 4F D1 E3 11 1F 7A 5A 90 00 85 [12:52:52]RAPDU: 91 4F D1 E3 11 1F 7A 5A 90 00 [12:52:52]wFMCommunicate OK [12:52:52]SAM_PROTO_SignData done [12:52:52]FM_MakeSignedData done [12:52:52]CreateOFDProtocolMessage [12:52:52]wFMCommunicate request_size=4 [12:52:52]MH_SAM_APDU [12:52:52]CAPDU: 80 11 00 00 [12:52:52]Write to MH i2c: E2 08 00 61 11 80 11 00 00 00 00 00 00 EC [12:52:52]Write i2c OK [12:52:52]MH_I2C_Read... [12:52:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:52:52]Read from MH i2c: E2 [12:52:52]MH_I2C_Read... [12:52:52]Read from MH i2c: E2 17 00 [12:52:52]MH_I2C_Read... [12:52:52]Read from MH i2c: E2 17 00 61 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 3E [12:52:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [12:52:52]wFMCommunicate OK [12:52:52]CreateOFDProtocolMessage done [12:52:52]OFDSenderStorePacket 63807 [12:52:52]StoreOFDPacket docnum=63807 [12:52:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0F 01 00 00 36 00 07 01 52 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 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 A4 BC 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 3F F9 00 00 35 04 06 00 E7 44 16 68 A3 48 91 4F D1 E3 11 1F 7A 5A [12:52:52]CheckFolder [12:52:52]dirname=/storage/ofd_packets [12:52:52]CheckFolder done [12:52:52]ProducePacketName [12:52:52]name=ofd_packets/00063807 [12:52:52]NVStorageSaveData ofd_packets/00063807 [12:52:52]File name is /storage/ofd_packets/00063807 [12:52:52]Write 301 bytes [12:52:52]NVStorageSaveData done [12:52:52]OFDSenderStorePacket done [12:52:52]KKMCreateOFDPacket done [12:52:52]NVStorageSaveData kkm_last_timestamp [12:52:52]File name is /storage/kkm_last_timestamp [12:52:52]Write 4 bytes [12:52:52]NVStorageSaveData done [12:52:52]ExternCall_PrintAddStr [12:52:52]wPrintStart [12:52:52]Write to MH i2c: 01 00 00 62 11 73 [12:52:52]Write i2c OK [12:52:52]MH_I2C_Read... [12:52:52]Read from MH i2c: 01 [12:52:52]MH_I2C_Read... [12:52:52]Read from MH i2c: 01 07 00 [12:52:52]MH_I2C_Read... [12:52:52]Read from MH i2c: 01 07 00 62 11 00 00 00 00 00 FF 0F 88 [12:52:52]RasterBufferAndPrint [12:52:52]line Счет N : (1)543672 [12:52:52]line ИНН: 02508201610067 [12:52:52]line Контрольно-Кассовый Чек [12:52:52]line ПРОДАЖА [12:52:52]line ТРК (МРК, ГНК) : 42 [12:52:52]line Товар: 2710124130 [12:52:52]line Аи-92-К-5 [12:52:52]line 14.950 * 66.90 [12:52:52]line = 1000.16 [12:52:52]line НДС 12% НСП 1% [12:52:52]line > о реализуемом товаре [12:52:52]line ОКРУГЛЕНИЕ: -0.16 [12:52:52]line ИТОГО: 1000.00 [12:52:52]line Внесено: 1000.00 [12:52:52]line СДАЧА: 0.00 [12:52:52]line НСП 1% : 8.85 [12:52:52]line НДС 12% : 106.21 [12:52:52]line Наличными: 1000.00 [12:52:52]line Безнал.: 0.00 [12:52:52]line Место: АЗС № 117 "Партнер Нефть" [12:52:52]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [12:52:52]line СНО: Общий режим [12:52:52]line Чек 65 03.06.2024 12:52 [12:52:52]line Смена: 373 ФФД: 1.0 [12:52:52]line ЗНМ: 0300000031 [12:52:52]line РНМ: 0000000000092737 [12:52:52]line Версия ККМ: 001 [12:52:52]line ФМ: 0000000000875074 [12:52:52]line ФД: 63807 [12:52:52]line ФПД: 254279619748680 [12:52:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T125252&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63807&fm=254279619748680&tin=02508201610067®Number=0000000000092737&sum=100000 [12:52:52]OFD Sender: Processing packet 63807 [packets to send 14, broken 13] [12:52:52]ProducePacketName [12:52:52]name=ofd_packets/00063807 [12:52:52]OFD Sender: To server: pG, [12:52:52]CommunicateWithHost lk.salyk.kg:30040 [12:52:52]ConnectInit lk.salyk.kg [12:52:52]written 0, free lines is 4095 [12:52:52]Connected sock=10 [12:52:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0F 01 00 00 36 00 07 01 52 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 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 A4 BC 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 3F F9 00 00 35 04 06 00 E7 44 16 68 A3 48 91 4F D1 E3 11 1F 7A 5A [12:52:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 E5 B0 47 00 C5 F2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 3F F9 00 00 F4 03 04 00 76 68 5D 66 B6 04 01 00 00 55 C2 CF C1 4F 7B 00 67 [12:52:52]CommunicateWithHost err = 0 [12:52:52]CheckOFDResponse [12:52:52]1017 (14) - 77093643461234 [12:52:52]1041 (16) - 0000000000875074 [12:52:52]1040 (4) - 63807 [12:52:52]1012 (4) - 03.06.2024 06:53 [12:52:52]1206 (1) - 0 [12:52:52]OFD Sender: Remove packet 63807 [12:52:52]ProducePacketName [12:52:52]name=ofd_packets/00063807 [12:52:52]NVStorageDeleteData [12:52:52]Write to MH i2c: 01 00 00 8D 11 9E [12:52:52]Write i2c OK [12:52:52]MH_I2C_Read... [12:52:52]Read from MH i2c: 01 [12:52:52]MH_I2C_Read... [12:52:52]Read from MH i2c: 01 07 00 [12:52:52]MH_I2C_Read... [12:52:52]Read from MH i2c: 01 07 00 8D 11 00 00 00 00 00 D6 0C 87 [12:52:52]RasterBufferAndPrint [12:52:52]line [12:52:52]line [12:52:52]line [12:52:52]line [12:52:52]line [12:52:52]written 0, free lines is 3294 [12:52:52]MH_Cut [12:52:52]Write to MH i2c: D1 01 00 94 11 01 77 [12:52:52]Write i2c OK [12:52:52]MH_I2C_Read... [12:52:52]Read from MH i2c: D1 [12:52:52]MH_I2C_Read... [12:52:52]Read from MH i2c: D1 01 00 [12:52:52]MH_I2C_Read... [12:52:52]Read from MH i2c: D1 01 00 94 11 00 76 [12:52:52]Write to MH i2c: 01 00 00 95 11 A6 [12:52:52]Write i2c OK [12:52:52]MH_I2C_Read... [12:52:53]OFD Sender: No OFD packet to send [12:52:53]*** Cut start [12:52:53]*** Partial cut [12:52:53]*** CUTSNS_PIN = 1 [12:52:53]*** CUTSNS_PIN = 0 [12:52:53]*** Brake cut motor [12:52:54]Read from MH i2c: 01 [12:52:54]MH_I2C_Read... [12:52:54]*** Stop cut motor [12:52:54]*** Cut end [12:52:54]Read from MH i2c: 01 07 00 [12:52:54]MH_I2C_Read... [12:52:54]Read from MH i2c: 01 07 00 95 11 00 00 00 00 00 FF 0F BB [12:52:54]process_action close_receipt done [12:52:54]requested_data is exist [12:52:54]produce_requested_data [12:52:54]requested_item fm.sn is exist - process it [12:52:54]wFMCommunicate request_size=4 [12:52:54]MH_SAM_APDU [12:52:54]CAPDU: 80 11 00 00 [12:52:54]Write to MH i2c: E2 08 00 96 11 80 11 00 00 00 00 00 00 21 [12:52:54]Write i2c OK [12:52:54]MH_I2C_Read... [12:52:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:52:54]Read from MH i2c: E2 [12:52:54]MH_I2C_Read... [12:52:54]Read from MH i2c: E2 17 00 [12:52:54]MH_I2C_Read... [12:52:54]Read from MH i2c: E2 17 00 96 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 73 [12:52:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [12:52:54]wFMCommunicate OK [12:52:54]requested_item fd.num is exist - process it [12:52:54]SAM_PROTO_GetFieldsCounters [12:52:54]wFMCommunicate request_size=4 [12:52:54]MH_SAM_APDU [12:52:54]CAPDU: 80 13 00 00 [12:52:54]Write to MH i2c: E2 08 00 97 11 80 13 00 00 00 00 00 00 24 [12:52:54]Write i2c OK [12:52:54]MH_I2C_Read... [12:52:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:52:54]Read from MH i2c: E2 [12:52:54]MH_I2C_Read... [12:52:54]Read from MH i2c: E2 62 00 [12:52:54]MH_I2C_Read... [12:52:54]Read from MH i2c: E2 62 00 97 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 3F F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 B8 [12:52: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 3F F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:52:54]wFMCommunicate OK [12:52:54]SAM_PROTO_GetFieldsCounters done [12:52:54]requested_item shift.num is exist - process it [12:52:54]requested_item shift.opened is exist - process it [12:52:54]req_shift_opened [12:52:54]FM_GetShiftState [12:52:54]SAM_PROTO_GetShiftState [12:52:54]wFMCommunicate request_size=4 [12:52:54]MH_SAM_APDU [12:52:54]CAPDU: 80 13 01 00 [12:52:54]Write to MH i2c: E2 08 00 98 11 80 13 01 00 00 00 00 00 26 [12:52:54]Write i2c OK [12:52:54]MH_I2C_Read... [12:52:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:52:54]Read from MH i2c: E2 [12:52:54]MH_I2C_Read... [12:52:54]Read from MH i2c: E2 0E 00 [12:52:54]MH_I2C_Read... [12:52:54]Read from MH i2c: E2 0E 00 98 11 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 F2 [12:52:54]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [12:52:54]wFMCommunicate OK [12:52:54]SAM_PROTO_GetShiftState done [12:52:54]FM_GetShiftState done [12:52:54]req_shift_opened done [12:52:54]requested_item shift.open_date is exist - process it [12:52:54]req_shift_open_date [12:52:54]req_shift_open_date done [12:52:54]produce_requested_data done [12:52:54]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63807,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [12:52:54]process_action_free close_receipt [12:52:54]json_value_free [12:52:54]json_value_free done [12:52:54]process_json_proto returns [12:52:54]Send response to host [12:52:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63807,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [12:52:54]free response buf [12:52:54]execute_script done [12:52:54]execute_script returns [12:52:54]free content buf [12:52:54]Sock 7.Close socket [12:52:54]Sock 7.Thread stoped [12:52:58]OFD Sender: No OFD packet to send [12:53:03]OFD Sender: No OFD packet to send [12:53:08]OFD Sender: No OFD packet to send [12:53:13]OFD Sender: No OFD packet to send [12:53:18]OFD Sender: No OFD packet to send [12:53:23]OFD Sender: No OFD packet to send [12:53:28]OFD Sender: No OFD packet to send [12:53:33]OFD Sender: No OFD packet to send [12:53:38]OFD Sender: No OFD packet to send [12:53:43]OFD Sender: No OFD packet to send [12:53:43]accept exits with 9 [12:53:43]New connection [12:53:43]New thread 3067518308 created [12:53:43]Thread 3067374948 joined [12:53:43]Waiting for new connection... [12:53:43] Sock 9.Parse request [12:53:43]Sock 9.Check first char [12:53:43]Sock 9.First char is OK [12:53:43]request: POST /json_proto HTTP/1.0 [12:53:43]Method: POST [12:53:43]URL: /json_proto [12:53:43]Method is POST - this is cgi request [12:53:43]url: /json_proto [12:53:43]query_string will be loaded in cgi processing [12:53:43]execute_cgi json_proto POST (null) [12:53:43]execute_cgi path=json_proto method=POST [12:53:43]POST find Content-Length [12:53:43]Host: 172.17.60.69:8080 [12:53:43]Content-Length: 1759 [12:53:43]Content-Type: application/json [12:53:43] [12:53:43]POST finish read [12:53:43]Found Content-Length = 1759 [12:53:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73392", "tax_sys" : 0, "items" : [ { "code": "2000053020015", "name": "\u0411\u0443\u043C\u0430\u0436\u043D\u044B\u0435 \u0441\u0442\u0430\u043A\u0430\u043D\u044B 250\u043C\u043B 1\u0448\u0442", "price" : 7.00, "quantity" : 1.000, "sum" : 7.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160044", "name": "\u0412\u043E\u0434\u0430 \u042B\u0441\u0441\u044B\u043A \u0410\u0442\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607065001445", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A Snickers 50,5\u0433", "price" : 59.00, "quantity" : 3.000, "sum" : 177.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4600080322137", "name": "\u0412\u0430\u0444 \u041A\u043E\u0440\u043E\u0432\u043A\u0430 \u0441 \u0448\u043E\u043A \u043D\u0430\u0447\u0438\u043D\u043A\u043E\u0439 150\u0433", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 379.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:53:43]execute_script... [12:53:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73392", "tax_sys" : 0, "items" : [ { "code": "2000053020015", "name": "\u0411\u0443\u043C\u0430\u0436\u043D\u044B\u0435 \u0441\u0442\u0430\u043A\u0430\u043D\u044B 250\u043C\u043B 1\u0448\u0442", "price" : 7.00, "quantity" : 1.000, "sum" : 7.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160044", "name": "\u0412\u043E\u0434\u0430 \u042B\u0441\u0441\u044B\u043A \u0410\u0442\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607065001445", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A Snickers 50,5\u0433", "price" : 59.00, "quantity" : 3.000, "sum" : 177.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4600080322137", "name": "\u0412\u0430\u0444 \u041A\u043E\u0440\u043E\u0432\u043A\u0430 \u0441 \u0448\u043E\u043A \u043D\u0430\u0447\u0438\u043D\u043A\u043E\u0439 150\u0433", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 379.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:53:43]POST & json_proto [12:53:43]process_json_proto [12:53:43]json parsed OK: [12:53:43]protocol is kg_v1.0 [12:53:43]action value=close_receipt [12:53:43]process_action close_receipt [12:53:43]cmd_close_receipt [12:53:43]MH_GetDate [12:53:43]Write to MH i2c: F0 00 00 99 11 99 [12:53:43]Write i2c OK [12:53:43]MH_I2C_Read... [12:53:43]Read from MH i2c: F0 [12:53:43]MH_I2C_Read... [12:53:43]Read from MH i2c: F0 09 00 [12:53:43]MH_I2C_Read... [12:53:43]Read from MH i2c: F0 09 00 99 11 00 DA BC 5D 66 6A 96 4A 66 AB [12:53:43]GetLastDocTimeStamp 1717419172 [12:53:43]current date 1717419226 [12:53:43]FM_GetShiftState [12:53:43]SAM_PROTO_GetShiftState [12:53:43]wFMCommunicate request_size=4 [12:53:43]MH_SAM_APDU [12:53:43]CAPDU: 80 13 01 00 [12:53:43]Write to MH i2c: E2 08 00 9A 11 80 13 01 00 00 00 00 00 28 [12:53:43]Write i2c OK [12:53:43]MH_I2C_Read... [12:53:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:53:43]Read from MH i2c: E2 [12:53:43]MH_I2C_Read... [12:53:43]Read from MH i2c: E2 0E 00 [12:53:43]MH_I2C_Read... [12:53:43]Read from MH i2c: E2 0E 00 9A 11 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 F4 [12:53:43]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [12:53:43]wFMCommunicate OK [12:53:43]SAM_PROTO_GetShiftState done [12:53:43]FM_GetShiftState done [12:53:43]opened in 1717373173 [12:53:43]opened+sec_in_day 1717459573 [12:53:43]quantity*price = 700 [12:53:43]sum+1 = 701 [12:53:43]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160211 Вода Легенда 0,5л 1.000 * 40.00 = 40.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700000160044 Вода Ыссык Ата 0,5л 1.000 * 40.00 = 40.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4607065001445 Шок батончик Snickers 50,5г 3.000 * 59.00 = 177.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4600080322137 Ваф Коровка с шок начинкой 150г 1.000 * 115.00 = 115.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 379.00 НСП 1% : 3.35 НДС 12% : 40.25 Наличными: 379.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 66 03.06.2024 12:53 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63808 ФПД: 57444772933030 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T125346&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63808&fm=57444772933030&tin=02508201610067®Number=0000000000092737&sum=37900 0 [12:53:45]StoreToDocumentArchive [12:53:45]shift 373 fd 63808 [12:53:45]save to /storage/0373/doc_00063808 [12:53:45]save last doc name /storage/0373/doc_00063808 to /storage/kkm_last_doc_name [12:53:45]save OK [12:53:45]Clear old archive folders... [12:53:45]ProcessDocumentItem done err = 0, tmpTLVsize=729 [12:53:45]tlvbuf is 00D52FB0 [12:53:45]SAM_PROTO_ClearQueue [12:53:45]wFMCommunicate request_size=4 [12:53:45]MH_SAM_APDU [12:53:45]CAPDU: 80 09 00 00 [12:53:45]Write to MH i2c: E2 08 00 A7 11 80 09 00 00 00 00 00 00 2A [12:53:45]Write i2c OK [12:53:45]MH_I2C_Read... [12:53:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:53:45]Read from MH i2c: E2 [12:53:45]MH_I2C_Read... [12:53:45]Read from MH i2c: E2 03 00 [12:53:45]MH_I2C_Read... [12:53:45]Read from MH i2c: E2 03 00 A7 11 00 90 00 2C [12:53:45]RAPDU: 90 00 [12:53:45]wFMCommunicate OK [12:53:45]SAM_PROTO_ClearQueue done [12:53:45]KKMCreateOFDPacket [12:53:45]OFDProtocolAddRootSTLVToBuf [12:53:45]FM_MakeSignedData [12:53:45]FM_MakeSignedData [12:53:45]SAM_PROTO_SignData [12:53:45]wFMCommunicate request_size=4 [12:53:45]MH_SAM_APDU [12:53:45]CAPDU: 80 0D 01 02 [12:53:45]Write to MH i2c: E2 08 00 A8 11 80 0D 01 02 00 00 00 00 32 [12:53:45]Write i2c OK [12:53:45]MH_I2C_Read... [12:53:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:53:45]Read from MH i2c: E2 [12:53:45]MH_I2C_Read... [12:53:45]Read from MH i2c: E2 03 00 [12:53:45]MH_I2C_Read... [12:53:45]Read from MH i2c: E2 03 00 A8 11 00 90 00 2D [12:53:45]RAPDU: 90 00 [12:53:45]wFMCommunicate OK [12:53:45]wFMCommunicate request_size=255 [12:53:45]MH_SAM_APDU [12:53:45]CAPDU: 80 0D 02 02 FA 03 00 D9 02 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 BC 02 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 34 34 06 04 [12:53:45]Write to MH i2c: E2 02 01 A9 11 80 0D 02 02 FA 00 03 00 D9 02 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 BC 02 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 34 34 06 04 00 00 20 [12:53:45]Write i2c OK [12:53:45]MH_I2C_Read... [12:53:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:53:45]Read from MH i2c: E2 [12:53:45]MH_I2C_Read... [12:53:45]Read from MH i2c: E2 03 00 [12:53:45]MH_I2C_Read... [12:53:45]Read from MH i2c: E2 03 00 A9 11 00 90 00 2E [12:53:45]RAPDU: 90 00 [12:53:45]wFMCommunicate OK [12:53:45]wFMCommunicate request_size=255 [12:53:45]MH_SAM_APDU [12:53:45]CAPDU: 80 0D 02 02 FA 20 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AB D1 81 D1 81 D1 8B D0 BA 20 D0 90 D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 24 45 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 30 30 30 38 30 33 32 32 31 33 37 06 04 36 00 D0 92 D0 B0 D1 84 20 D0 9A D0 BE D1 80 D0 BE D0 B2 D0 BA D0 B0 20 D1 81 20 D1 88 D0 BE D0 BA 20 D0 [12:53:45]Write to MH i2c: E2 02 01 AA 11 80 0D 02 02 FA 00 20 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AB D1 81 D1 81 D1 8B D0 BA 20 D0 90 D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 24 45 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 30 30 30 38 30 33 32 32 31 33 37 06 04 36 00 D0 92 D0 B0 D1 84 20 D0 9A D0 BE D1 80 D0 BE D0 B2 D0 BA D0 B0 20 D1 81 20 D1 88 D0 BE D0 BA 20 D0 00 00 D1 [12:53:45]Write i2c OK [12:53:45]MH_I2C_Read... [12:53:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:53:45]Read from MH i2c: E2 [12:53:45]MH_I2C_Read... [12:53:45]Read from MH i2c: E2 03 00 [12:53:45]MH_I2C_Read... [12:53:45]Read from MH i2c: E2 03 00 AA 11 00 90 00 2F [12:53:45]RAPDU: 90 00 [12:53:45]wFMCommunicate OK [12:53:45]wFMCommunicate request_size=238 [12:53:45]MH_SAM_APDU [12:53:45]CAPDU: 80 0D 02 02 E9 BD D0 B0 D1 87 D0 B8 D0 BD D0 BA D0 BE D0 B9 20 31 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 94 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 0F 00 00 00 00 07 04 06 00 0C 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 42 00 00 00 F4 03 04 00 DA BC 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 40 F9 00 00 35 04 06 00 34 3E E7 48 ED A6 [12:53:45]Write to MH i2c: E2 F1 00 AB 11 80 0D 02 02 E9 00 BD D0 B0 D1 87 D0 B8 D0 BD D0 BA D0 BE D0 B9 20 31 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 94 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 0F 00 00 00 00 07 04 06 00 0C 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 42 00 00 00 F4 03 04 00 DA BC 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 40 F9 00 00 35 04 06 00 34 3E E7 48 ED A6 00 00 E0 [12:53:45]Write i2c OK [12:53:45]MH_I2C_Read... [12:53:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:53:46]Read from MH i2c: E2 [12:53:46]MH_I2C_Read... [12:53:46]Read from MH i2c: E2 03 00 [12:53:46]MH_I2C_Read... [12:53:46]Read from MH i2c: E2 03 00 AB 11 00 90 00 30 [12:53:46]RAPDU: 90 00 [12:53:46]wFMCommunicate OK [12:53:46]wFMCommunicate request_size=4 [12:53:46]MH_SAM_APDU [12:53:46]CAPDU: 80 0D 03 02 [12:53:46]Write to MH i2c: E2 08 00 AC 11 80 0D 03 02 00 00 00 00 38 [12:53:46]Write i2c OK [12:53:46]MH_I2C_Read... [12:53:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:53:46]Read from MH i2c: E2 [12:53:46]MH_I2C_Read... [12:53:46]Read from MH i2c: E2 0B 00 [12:53:46]MH_I2C_Read... [12:53:46]Read from MH i2c: E2 0B 00 AC 11 00 05 5E A9 3C BA FA 1B 77 90 00 C7 [12:53:46]RAPDU: 05 5E A9 3C BA FA 1B 77 90 00 [12:53:46]wFMCommunicate OK [12:53:46]SAM_PROTO_SignData done [12:53:46]FM_MakeSignedData done [12:53:46]CreateOFDProtocolMessage [12:53:46]wFMCommunicate request_size=4 [12:53:46]MH_SAM_APDU [12:53:46]CAPDU: 80 11 00 00 [12:53:46]Write to MH i2c: E2 08 00 AD 11 80 11 00 00 00 00 00 00 38 [12:53:46]Write i2c OK [12:53:46]MH_I2C_Read... [12:53:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:53:46]Read from MH i2c: E2 [12:53:46]MH_I2C_Read... [12:53:46]Read from MH i2c: E2 17 00 [12:53:46]MH_I2C_Read... [12:53:46]Read from MH i2c: E2 17 00 AD 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 8A [12:53:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [12:53:46]wFMCommunicate OK [12:53:46]CreateOFDProtocolMessage done [12:53:46]OFDSenderStorePacket 63808 [12:53:46]StoreOFDPacket docnum=63808 [12:53:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 ED 02 00 00 C0 0C E5 02 03 D1 5A 03 01 00 03 00 D9 02 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 BC 02 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 34 34 06 04 20 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AB D1 81 D1 81 D1 8B D0 BA 20 D0 90 D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 24 45 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 30 30 30 38 30 33 32 32 31 33 37 06 04 36 00 D0 92 D0 B0 D1 84 20 D0 9A D0 BE D1 80 D0 BE D0 B2 D0 BA D0 B0 20 D1 81 20 D1 88 D0 BE D0 BA 20 D0 BD D0 B0 D1 87 D0 B8 D0 BD D0 BA D0 BE D0 B9 20 31 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 94 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 0F 00 00 00 00 07 04 06 00 0C 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 42 00 00 00 F4 03 04 00 DA BC 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 40 F9 00 00 35 04 06 00 34 3E E7 48 ED A6 05 5E A9 3C BA FA 1B 77 [12:53:46]CheckFolder [12:53:46]dirname=/storage/ofd_packets [12:53:46]CheckFolder done [12:53:46]ProducePacketName [12:53:46]name=ofd_packets/00063808 [12:53:46]NVStorageSaveData ofd_packets/00063808 [12:53:46]File name is /storage/ofd_packets/00063808 [12:53:46]Write 779 bytes [12:53:46]NVStorageSaveData done [12:53:46]OFDSenderStorePacket done [12:53:46]KKMCreateOFDPacket done [12:53:46]NVStorageSaveData kkm_last_timestamp [12:53:46]File name is /storage/kkm_last_timestamp [12:53:46]Write 4 bytes [12:53:46]NVStorageSaveData done [12:53:46]ExternCall_PrintAddStr [12:53:46]wPrintStart [12:53:46]Write to MH i2c: 01 00 00 AE 11 BF [12:53:46]Write i2c OK [12:53:46]MH_I2C_Read... [12:53:46]Read from MH i2c: 01 [12:53:46]MH_I2C_Read... [12:53:46]Read from MH i2c: 01 07 00 [12:53:46]MH_I2C_Read... [12:53:46]Read from MH i2c: 01 07 00 AE 11 00 00 00 00 00 FF 0F D4 [12:53:46]RasterBufferAndPrint [12:53:46]line Счет N : (3)73392 [12:53:46]line ИНН: 02508201610067 [12:53:46]line Контрольно-Кассовый Чек [12:53:46]line ПРОДАЖА [12:53:46]line Товар: 2000053020015 [12:53:46]line Бумажные стаканы 250мл 1шт [12:53:46]line 1.000 * 7.00 [12:53:46]line = 7.00 [12:53:46]line НДС 12% НСП 1% [12:53:46]line > о реализуемом товаре [12:53:46]line Товар: 4700000160211 [12:53:46]line Вода Легенда 0,5л [12:53:46]line 1.000 * 40.00 [12:53:46]line = 40.00 [12:53:46]line НДС 12% НСП 1% [12:53:46]line > о реализуемом товаре [12:53:46]line Товар: 4700000160044 [12:53:46]line Вода Ыссык Ата 0,5л [12:53:46]line 1.000 * 40.00 [12:53:46]line = 40.00 [12:53:46]line НДС 12% НСП 1% [12:53:46]line > о реализуемом товаре [12:53:46]line Товар: 4607065001445 [12:53:46]line Шок батончик Snickers 50,5г [12:53:46]line 3.000 * 59.00 [12:53:46]line = 177.00 [12:53:46]line НДС 12% НСП 1% [12:53:46]line > о реализуемом товаре [12:53:46]line Товар: 4600080322137 [12:53:46]line Ваф Коровка с шок начинкой 150г [12:53:46]line 1.000 * 115.00 [12:53:46]line = 115.00 [12:53:46]line НДС 12% НСП 1% [12:53:46]line > о реализуемом товаре [12:53:46]line ИТОГО: 379.00 [12:53:46]line НСП 1% : 3.35 [12:53:46]line НДС 12% : 40.25 [12:53:46]line Наличными: 379.00 [12:53:46]line Безнал.: 0.00 [12:53:46]line Место: АЗС № 117 "Партнер Нефть" [12:53:46]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [12:53:46]line СНО: Общий режим [12:53:46]line Чек 66 03.06.2024 12:53 [12:53:46]line Смена: 373 ФФД: 1.0 [12:53:46]line ЗНМ: 0300000031 [12:53:46]line РНМ: 0000000000092737 [12:53:46]line Версия ККМ: 001 [12:53:46]line ФМ: 0000000000875074 [12:53:46]line ФД: 63808 [12:53:46]line ФПД: 57444772933030 [12:53:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T125346&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63808&fm=57444772933030&tin=02508201610067®Number=0000000000092737&sum=37900 [12:53:46]line 0 [12:53:46]written 0, free lines is 4095 [12:53:46]OFD Sender: Processing packet 63808 [packets to send 14, broken 13] [12:53:46]ProducePacketName [12:53:46]name=ofd_packets/00063808 [12:53:46]OFD Sender: To server: pG, [12:53:46]CommunicateWithHost lk.salyk.kg:30040 [12:53:46]ConnectInit lk.salyk.kg [12:53:46]Connected sock=10 [12:53:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 ED 02 00 00 C0 0C E5 02 03 D1 5A 03 01 00 03 00 D9 02 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 BC 02 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 34 34 06 04 20 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AB D1 81 D1 81 D1 8B D0 BA 20 D0 90 D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 24 45 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 30 30 30 38 30 33 32 32 31 33 37 06 04 36 00 D0 92 D0 B0 D1 84 20 D0 9A D0 BE D1 80 D0 BE D0 B2 D0 BA D0 B0 20 D1 81 20 D1 88 D0 BE D0 BA 20 D0 BD D0 B0 D1 87 D0 B8 D0 BD D0 BA D0 BE D0 B9 20 31 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 94 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 0F 00 00 00 00 07 04 06 00 0C 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 42 00 00 00 F4 03 04 00 DA BC 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 40 F9 00 00 35 04 06 00 34 3E E7 48 ED A6 05 5E A9 3C BA FA 1B 77 [12:53:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 74 81 47 00 01 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 35 30 37 34 10 04 04 00 40 F9 00 00 F4 03 04 00 AC 68 5D 66 B6 04 01 00 00 6A 42 09 B1 4E 15 8F E9 [12:53:46]CommunicateWithHost err = 0 [12:53:46]CheckOFDResponse [12:53:46]1017 (14) - 77093643461234 [12:53:46]1041 (16) - 0000000000875074 [12:53:46]1040 (4) - 63808 [12:53:46]1012 (4) - 03.06.2024 06:54 [12:53:46]1206 (1) - 0 [12:53:46]OFD Sender: Remove packet 63808 [12:53:46]ProducePacketName [12:53:46]name=ofd_packets/00063808 [12:53:46]NVStorageDeleteData [12:53:47]Write to MH i2c: 01 00 00 F0 11 01 [12:53:47]Write i2c OK [12:53:47]MH_I2C_Read... [12:53:47]Read from MH i2c: 01 [12:53:47]MH_I2C_Read... [12:53:47]Read from MH i2c: 01 07 00 [12:53:47]MH_I2C_Read... [12:53:47]Read from MH i2c: 01 07 00 F0 11 00 00 00 00 00 5C 0B 6F [12:53:47]RasterBufferAndPrint [12:53:47]line [12:53:47]line [12:53:47]line [12:53:47]line [12:53:47]line [12:53:47]written 0, free lines is 2916 [12:53:47]MH_Cut [12:53:47]Write to MH i2c: D1 01 00 F7 11 01 DA [12:53:47]Write i2c OK [12:53:47]MH_I2C_Read... [12:53:47]Read from MH i2c: D1 [12:53:47]MH_I2C_Read... [12:53:47]Read from MH i2c: D1 01 00 [12:53:47]MH_I2C_Read... [12:53:47]Read from MH i2c: D1 01 00 F7 11 00 D9 [12:53:47]Write to MH i2c: 01 00 00 F8 11 09 [12:53:47]Write i2c OK [12:53:47]MH_I2C_Read... [12:53:47]OFD Sender: No OFD packet to send [12:53:48]*** Cut start [12:53:48]*** Partial cut [12:53:48]*** CUTSNS_PIN = 1 [12:53:48]*** CUTSNS_PIN = 0 [12:53:48]*** Brake cut motor [12:53:48]Read from MH i2c: 01 [12:53:48]MH_I2C_Read... [12:53:48]*** Stop cut motor [12:53:48]*** Cut end [12:53:48]Read from MH i2c: 01 07 00 [12:53:48]MH_I2C_Read... [12:53:48]Read from MH i2c: 01 07 00 F8 11 00 00 00 00 00 FF 0F 1E [12:53:48]process_action close_receipt done [12:53:48]requested_data is exist [12:53:48]produce_requested_data [12:53:48]requested_item fm.sn is exist - process it [12:53:48]wFMCommunicate request_size=4 [12:53:48]MH_SAM_APDU [12:53:48]CAPDU: 80 11 00 00 [12:53:48]Write to MH i2c: E2 08 00 F9 11 80 11 00 00 00 00 00 00 84 [12:53:48]Write i2c OK [12:53:48]MH_I2C_Read... [12:53:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:53:48]Read from MH i2c: E2 [12:53:48]MH_I2C_Read... [12:53:48]Read from MH i2c: E2 17 00 [12:53:48]MH_I2C_Read... [12:53:48]Read from MH i2c: E2 17 00 F9 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 D6 [12:53:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [12:53:48]wFMCommunicate OK [12:53:48]requested_item fd.num is exist - process it [12:53:48]SAM_PROTO_GetFieldsCounters [12:53:48]wFMCommunicate request_size=4 [12:53:48]MH_SAM_APDU [12:53:48]CAPDU: 80 13 00 00 [12:53:48]Write to MH i2c: E2 08 00 FA 11 80 13 00 00 00 00 00 00 87 [12:53:48]Write i2c OK [12:53:48]MH_I2C_Read... [12:53:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:53:49]Read from MH i2c: E2 [12:53:49]MH_I2C_Read... [12:53:49]Read from MH i2c: E2 62 00 [12:53:49]MH_I2C_Read... [12:53:49]Read from MH i2c: E2 62 00 FA 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 40 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 1F [12:53: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 40 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:53:49]wFMCommunicate OK [12:53:49]SAM_PROTO_GetFieldsCounters done [12:53:49]requested_item shift.num is exist - process it [12:53:49]requested_item shift.opened is exist - process it [12:53:49]req_shift_opened [12:53:49]FM_GetShiftState [12:53:49]SAM_PROTO_GetShiftState [12:53:49]wFMCommunicate request_size=4 [12:53:49]MH_SAM_APDU [12:53:49]CAPDU: 80 13 01 00 [12:53:49]Write to MH i2c: E2 08 00 FB 11 80 13 01 00 00 00 00 00 89 [12:53:49]Write i2c OK [12:53:49]MH_I2C_Read... [12:53:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:53:49]Read from MH i2c: E2 [12:53:49]MH_I2C_Read... [12:53:49]Read from MH i2c: E2 0E 00 [12:53:49]MH_I2C_Read... [12:53:49]Read from MH i2c: E2 0E 00 FB 11 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 55 [12:53:49]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [12:53:49]wFMCommunicate OK [12:53:49]SAM_PROTO_GetShiftState done [12:53:49]FM_GetShiftState done [12:53:49]req_shift_opened done [12:53:49]requested_item shift.open_date is exist - process it [12:53:49]req_shift_open_date [12:53:49]req_shift_open_date done [12:53:49]produce_requested_data done [12:53:49]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63808,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [12:53:49]process_action_free close_receipt [12:53:49]json_value_free [12:53:49]json_value_free done [12:53:49]process_json_proto returns [12:53:49]Send response to host [12:53:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63808,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [12:53:49]free response buf [12:53:49]execute_script done [12:53:49]execute_script returns [12:53:49]free content buf [12:53:49]Sock 9.Close socket [12:53:49]Sock 9.Thread stoped [12:53:52]OFD Sender: No OFD packet to send [12:53:57]OFD Sender: No OFD packet to send [12:54:02]OFD Sender: No OFD packet to send [12:54:07]OFD Sender: No OFD packet to send [12:54:12]OFD Sender: No OFD packet to send [12:54:17]OFD Sender: No OFD packet to send [12:54:22]OFD Sender: No OFD packet to send [12:54:27]OFD Sender: No OFD packet to send [12:54:32]OFD Sender: No OFD packet to send [12:54:37]OFD Sender: No OFD packet to send [12:54:42]OFD Sender: No OFD packet to send [12:54:47]OFD Sender: No OFD packet to send [12:54:52]OFD Sender: No OFD packet to send [12:54:57]OFD Sender: No OFD packet to send [12:55:02]OFD Sender: No OFD packet to send [12:55:02]accept exits with 7 [12:55:02]New connection [12:55:02]New thread 3067374948 created [12:55:02]Thread 3067518308 joined [12:55:02]Waiting for new connection... [12:55:02] Sock 7.Parse request [12:55:02]Sock 7.Check first char [12:55:02]Sock 7.First char is OK [12:55:02]request: POST /json_proto HTTP/1.0 [12:55:02]Method: POST [12:55:02]URL: /json_proto [12:55:02]Method is POST - this is cgi request [12:55:02]url: /json_proto [12:55:02]query_string will be loaded in cgi processing [12:55:02]execute_cgi json_proto POST (null) [12:55:02]execute_cgi path=json_proto method=POST [12:55:02]POST find Content-Length [12:55:02]Host: 172.17.60.69:8080 [12:55:02]Content-Length: 670 [12:55:02]Content-Type: application/json [12:55:02] [12:55:02]POST finish read [12:55:02]Found Content-Length = 670 [12:55:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543675", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 67.90, "quantity" : 5.900, "sum" : 400.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:55:02]execute_script... [12:55: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)543675", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 67.90, "quantity" : 5.900, "sum" : 400.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:55:02]POST & json_proto [12:55:02]process_json_proto [12:55:02]json parsed OK: [12:55:02]protocol is kg_v1.0 [12:55:02]action value=close_receipt [12:55:02]process_action close_receipt [12:55:02]cmd_close_receipt [12:55:02]MH_GetDate [12:55:02]Write to MH i2c: F0 00 00 FC 11 FC [12:55:02]Write i2c OK [12:55:02]MH_I2C_Read... [12:55:02]Read from MH i2c: F0 [12:55:02]MH_I2C_Read... [12:55:02]Read from MH i2c: F0 09 00 [12:55:02]MH_I2C_Read... [12:55:02]Read from MH i2c: F0 09 00 FC 11 00 28 BD 5D 66 6A 96 4A 66 5D [12:55:02]GetLastDocTimeStamp 1717419226 [12:55:02]current date 1717419304 [12:55:02]FM_GetShiftState [12:55:02]SAM_PROTO_GetShiftState [12:55:02]wFMCommunicate request_size=4 [12:55:02]MH_SAM_APDU [12:55:02]CAPDU: 80 13 01 00 [12:55:02]Write to MH i2c: E2 08 00 FD 11 80 13 01 00 00 00 00 00 8B [12:55:02]Write i2c OK [12:55:02]MH_I2C_Read... [12:55:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:55:02]Read from MH i2c: E2 [12:55:02]MH_I2C_Read... [12:55:02]Read from MH i2c: E2 0E 00 [12:55:02]MH_I2C_Read... [12:55:02]Read from MH i2c: E2 0E 00 FD 11 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 57 [12:55:02]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [12:55:02]wFMCommunicate OK [12:55:02]SAM_PROTO_GetShiftState done [12:55:02]FM_GetShiftState done [12:55:02]opened in 1717373173 [12:55:02]opened+sec_in_day 1717459573 [12:55:02]quantity*price = 40061 [12:55:02]sum+1 = 40062 [12:55:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.61 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.54 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 67 03.06.2024 12:55 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63809 ФПД: 154936717129539 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T125504&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63809&fm=154936717129539&tin=02508201610067®Number=0000000000092737&sum=40000 [12:55:03]StoreToDocumentArchive [12:55:03]shift 373 fd 63809 [12:55:03]save to /storage/0373/doc_00063809 [12:55:03]save last doc name /storage/0373/doc_00063809 to /storage/kkm_last_doc_name [12:55:03]save OK [12:55:03]Clear old archive folders... [12:55:03]ProcessDocumentItem done err = 0, tmpTLVsize=252 [12:55:03]tlvbuf is 00D1E860 [12:55:03]SAM_PROTO_ClearQueue [12:55:03]wFMCommunicate request_size=4 [12:55:03]MH_SAM_APDU [12:55:03]CAPDU: 80 09 00 00 [12:55:03]Write to MH i2c: E2 08 00 0A 12 80 09 00 00 00 00 00 00 8E [12:55:03]Write i2c OK [12:55:03]MH_I2C_Read... [12:55:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:55:03]Read from MH i2c: E2 [12:55:03]MH_I2C_Read... [12:55:03]Read from MH i2c: E2 03 00 [12:55:03]MH_I2C_Read... [12:55:03]Read from MH i2c: E2 03 00 0A 12 00 90 00 90 [12:55:03]RAPDU: 90 00 [12:55:03]wFMCommunicate OK [12:55:03]SAM_PROTO_ClearQueue done [12:55:03]KKMCreateOFDPacket [12:55:03]OFDProtocolAddRootSTLVToBuf [12:55:03]FM_MakeSignedData [12:55:03]FM_MakeSignedData [12:55:03]SAM_PROTO_SignData [12:55:03]wFMCommunicate request_size=4 [12:55:03]MH_SAM_APDU [12:55:03]CAPDU: 80 0D 01 02 [12:55:03]Write to MH i2c: E2 08 00 0B 12 80 0D 01 02 00 00 00 00 96 [12:55:03]Write i2c OK [12:55:03]MH_I2C_Read... [12:55:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:55:03]Read from MH i2c: E2 [12:55:03]MH_I2C_Read... [12:55:03]Read from MH i2c: E2 03 00 [12:55:03]MH_I2C_Read... [12:55:03]Read from MH i2c: E2 03 00 0B 12 00 90 00 91 [12:55:03]RAPDU: 90 00 [12:55:03]wFMCommunicate OK [12:55:03]wFMCommunicate request_size=255 [12:55:03]MH_SAM_APDU [12:55:03]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 7D 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 9E 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 43 00 00 00 F4 03 04 00 28 BD 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 41 F9 00 00 35 04 06 00 [12:55:03]Write to MH i2c: E2 02 01 0C 12 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 7D 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 9E 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 43 00 00 00 F4 03 04 00 28 BD 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 41 F9 00 00 35 04 06 00 00 00 7F [12:55:03]Write i2c OK [12:55:03]MH_I2C_Read... [12:55:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:55:04]Read from MH i2c: E2 [12:55:04]MH_I2C_Read... [12:55:04]Read from MH i2c: E2 03 00 [12:55:04]MH_I2C_Read... [12:55:04]Read from MH i2c: E2 03 00 0C 12 00 90 00 92 [12:55:04]RAPDU: 90 00 [12:55:04]wFMCommunicate OK [12:55:04]wFMCommunicate request_size=11 [12:55:04]MH_SAM_APDU [12:55:04]CAPDU: 80 0D 02 02 06 8C EA 03 FC B7 43 [12:55:04]Write to MH i2c: E2 0E 00 0D 12 80 0D 02 02 06 00 8C EA 03 FC B7 43 00 00 14 [12:55:04]Write i2c OK [12:55:04]MH_I2C_Read... [12:55:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:55:04]Read from MH i2c: E2 [12:55:04]MH_I2C_Read... [12:55:04]Read from MH i2c: E2 03 00 [12:55:04]MH_I2C_Read... [12:55:04]Read from MH i2c: E2 03 00 0D 12 00 90 00 93 [12:55:04]RAPDU: 90 00 [12:55:04]wFMCommunicate OK [12:55:04]wFMCommunicate request_size=4 [12:55:04]MH_SAM_APDU [12:55:04]CAPDU: 80 0D 03 02 [12:55:04]Write to MH i2c: E2 08 00 0E 12 80 0D 03 02 00 00 00 00 9B [12:55:04]Write i2c OK [12:55:04]MH_I2C_Read... [12:55:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:55:04]Read from MH i2c: E2 [12:55:04]MH_I2C_Read... [12:55:04]Read from MH i2c: E2 0B 00 [12:55:04]MH_I2C_Read... [12:55:04]Read from MH i2c: E2 0B 00 0E 12 00 BD BB A3 77 9C BA 9E 79 90 00 9B [12:55:04]RAPDU: BD BB A3 77 9C BA 9E 79 90 00 [12:55:04]wFMCommunicate OK [12:55:04]SAM_PROTO_SignData done [12:55:04]FM_MakeSignedData done [12:55:04]CreateOFDProtocolMessage [12:55:04]wFMCommunicate request_size=4 [12:55:04]MH_SAM_APDU [12:55:04]CAPDU: 80 11 00 00 [12:55:04]Write to MH i2c: E2 08 00 0F 12 80 11 00 00 00 00 00 00 9B [12:55:04]Write i2c OK [12:55:04]MH_I2C_Read... [12:55:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:55:04]Read from MH i2c: E2 [12:55:04]MH_I2C_Read... [12:55:04]Read from MH i2c: E2 17 00 [12:55:04]MH_I2C_Read... [12:55:04]Read from MH i2c: E2 17 00 0F 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 ED [12:55:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [12:55:04]wFMCommunicate OK [12:55:04]CreateOFDProtocolMessage done [12:55:04]OFDSenderStorePacket 63809 [12:55:04]StoreOFDPacket docnum=63809 [12:55:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 01 00 00 D9 84 08 01 26 97 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 7D 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 9E 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 43 00 00 00 F4 03 04 00 28 BD 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 41 F9 00 00 35 04 06 00 8C EA 03 FC B7 43 BD BB A3 77 9C BA 9E 79 [12:55:04]CheckFolder [12:55:04]dirname=/storage/ofd_packets [12:55:04]CheckFolder done [12:55:04]ProducePacketName [12:55:04]name=ofd_packets/00063809 [12:55:04]NVStorageSaveData ofd_packets/00063809 [12:55:04]File name is /storage/ofd_packets/00063809 [12:55:04]Write 302 bytes [12:55:04]NVStorageSaveData done [12:55:04]OFDSenderStorePacket done [12:55:04]KKMCreateOFDPacket done [12:55:04]NVStorageSaveData kkm_last_timestamp [12:55:04]File name is /storage/kkm_last_timestamp [12:55:04]Write 4 bytes [12:55:04]NVStorageSaveData done [12:55:04]ExternCall_PrintAddStr [12:55:04]wPrintStart [12:55:04]Write to MH i2c: 01 00 00 10 12 22 [12:55:04]Write i2c OK [12:55:04]MH_I2C_Read... [12:55:04]Read from MH i2c: 01 [12:55:04]MH_I2C_Read... [12:55:04]Read from MH i2c: 01 07 00 [12:55:04]MH_I2C_Read... [12:55:04]Read from MH i2c: 01 07 00 10 12 00 00 00 00 00 FF 0F 37 [12:55:04]RasterBufferAndPrint [12:55:04]line Счет N : (1)543675 [12:55:04]line ИНН: 02508201610067 [12:55:04]line Контрольно-Кассовый Чек [12:55:04]line ПРОДАЖА [12:55:04]line ТРК (МРК, ГНК) : 34 [12:55:04]line Товар: 2710124130 [12:55:04]line SUPER 92-К-5 [12:55:04]line 5.900 * 67.90 [12:55:04]line = 400.61 [12:55:04]line НДС 12% НСП 1% [12:55:04]line > о реализуемом товаре [12:55:04]line ОКРУГЛЕНИЕ: -0.61 [12:55:04]line ИТОГО: 400.00 [12:55:04]line Внесено: 400.00 [12:55:04]line СДАЧА: 0.00 [12:55:04]line НСП 1% : 3.54 [12:55:04]line НДС 12% : 42.54 [12:55:04]line Наличными: 400.00 [12:55:04]line Безнал.: 0.00 [12:55:04]line Место: АЗС № 117 "Партнер Нефть" [12:55:04]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [12:55:04]line СНО: Общий режим [12:55:04]line Чек 67 03.06.2024 12:55 [12:55:04]line Смена: 373 ФФД: 1.0 [12:55:04]line ЗНМ: 0300000031 [12:55:04]line РНМ: 0000000000092737 [12:55:04]line Версия ККМ: 001 [12:55:04]line ФМ: 0000000000875074 [12:55:04]line ФД: 63809 [12:55:04]line ФПД: 154936717129539 [12:55:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T125504&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63809&fm=154936717129539&tin=02508201610067®Number=0000000000092737&sum=40000 [12:55:04]OFD Sender: Processing packet 63809 [packets to send 14, broken 13] [12:55:04]ProducePacketName [12:55:04]name=ofd_packets/00063809 [12:55:04]OFD Sender: To server: pG, [12:55:04]CommunicateWithHost lk.salyk.kg:30040 [12:55:04]ConnectInit lk.salyk.kg [12:55:04]written 0, free lines is 4095 [12:55:04]Connected sock=10 [12:55:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 01 00 00 D9 84 08 01 26 97 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 7D 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 9E 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 43 00 00 00 F4 03 04 00 28 BD 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 41 F9 00 00 35 04 06 00 8C EA 03 FC B7 43 BD BB A3 77 9C BA 9E 79 [12:55:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 0A 5C 47 00 87 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 35 30 37 34 10 04 04 00 41 F9 00 00 F4 03 04 00 FA 68 5D 66 B6 04 01 00 00 70 20 96 BA 76 76 2F 39 [12:55:04]CommunicateWithHost err = 0 [12:55:04]CheckOFDResponse [12:55:04]1017 (14) - 77093643461234 [12:55:04]1041 (16) - 0000000000875074 [12:55:04]1040 (4) - 63809 [12:55:04]1012 (4) - 03.06.2024 06:55 [12:55:04]1206 (1) - 0 [12:55:04]OFD Sender: Remove packet 63809 [12:55:04]ProducePacketName [12:55:04]name=ofd_packets/00063809 [12:55:04]NVStorageDeleteData [12:55:05]Write to MH i2c: 01 00 00 3B 12 4D [12:55:05]Write i2c OK [12:55:05]MH_I2C_Read... [12:55:05]Read from MH i2c: 01 [12:55:05]MH_I2C_Read... [12:55:05]Read from MH i2c: 01 07 00 [12:55:05]MH_I2C_Read... [12:55:05]Read from MH i2c: 01 07 00 3B 12 00 00 00 00 00 DC 0C 3C [12:55:05]RasterBufferAndPrint [12:55:05]line [12:55:05]line [12:55:05]line [12:55:05]line [12:55:05]line [12:55:05]written 0, free lines is 3299 [12:55:05]MH_Cut [12:55:05]Write to MH i2c: D1 01 00 42 12 01 26 [12:55:05]Write i2c OK [12:55:05]MH_I2C_Read... [12:55:05]Read from MH i2c: D1 [12:55:05]MH_I2C_Read... [12:55:05]Read from MH i2c: D1 01 00 [12:55:05]MH_I2C_Read... [12:55:05]Read from MH i2c: D1 01 00 42 12 00 25 [12:55:05]Write to MH i2c: 01 00 00 43 12 55 [12:55:05]Write i2c OK [12:55:05]MH_I2C_Read... [12:55:05]OFD Sender: No OFD packet to send [12:55:05]*** Cut start [12:55:05]*** Partial cut [12:55:05]*** CUTSNS_PIN = 1 [12:55:05]*** CUTSNS_PIN = 0 [12:55:06]*** Brake cut motor [12:55:06]Read from MH i2c: 01 *** Stop cut motor [12:55:06]*** Cut end [12:55:06] [12:55:06]MH_I2C_Read... [12:55:06]Read from MH i2c: 01 07 00 [12:55:06]MH_I2C_Read... [12:55:06]Read from MH i2c: 01 07 00 43 12 00 00 00 00 00 FF 0F 6A [12:55:06]process_action close_receipt done [12:55:06]requested_data is exist [12:55:06]produce_requested_data [12:55:06]requested_item fm.sn is exist - process it [12:55:06]wFMCommunicate request_size=4 [12:55:06]MH_SAM_APDU [12:55:06]CAPDU: 80 11 00 00 [12:55:06]Write to MH i2c: E2 08 00 44 12 80 11 00 00 00 00 00 00 D0 [12:55:06]Write i2c OK [12:55:06]MH_I2C_Read... [12:55:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:55:06]Read from MH i2c: E2 [12:55:06]MH_I2C_Read... [12:55:06]Read from MH i2c: E2 17 00 [12:55:06]MH_I2C_Read... [12:55:06]Read from MH i2c: E2 17 00 44 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 22 [12:55:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [12:55:06]wFMCommunicate OK [12:55:06]requested_item fd.num is exist - process it [12:55:06]SAM_PROTO_GetFieldsCounters [12:55:06]wFMCommunicate request_size=4 [12:55:06]MH_SAM_APDU [12:55:06]CAPDU: 80 13 00 00 [12:55:06]Write to MH i2c: E2 08 00 45 12 80 13 00 00 00 00 00 00 D3 [12:55:06]Write i2c OK [12:55:06]MH_I2C_Read... [12:55:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:55:06]Read from MH i2c: E2 [12:55:06]MH_I2C_Read... [12:55:06]Read from MH i2c: E2 62 00 [12:55:06]MH_I2C_Read... [12:55:06]Read from MH i2c: E2 62 00 45 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 41 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 6F [12:55: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 41 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:55:06]wFMCommunicate OK [12:55:06]SAM_PROTO_GetFieldsCounters done [12:55:06]requested_item shift.num is exist - process it [12:55:06]requested_item shift.opened is exist - process it [12:55:06]req_shift_opened [12:55:06]FM_GetShiftState [12:55:06]SAM_PROTO_GetShiftState [12:55:06]wFMCommunicate request_size=4 [12:55:06]MH_SAM_APDU [12:55:06]CAPDU: 80 13 01 00 [12:55:06]Write to MH i2c: E2 08 00 46 12 80 13 01 00 00 00 00 00 D5 [12:55:06]Write i2c OK [12:55:06]MH_I2C_Read... [12:55:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:55:06]Read from MH i2c: E2 [12:55:06]MH_I2C_Read... [12:55:06]Read from MH i2c: E2 0E 00 [12:55:06]MH_I2C_Read... [12:55:06]Read from MH i2c: E2 0E 00 46 12 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 A1 [12:55:06]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [12:55:06]wFMCommunicate OK [12:55:06]SAM_PROTO_GetShiftState done [12:55:06]FM_GetShiftState done [12:55:06]req_shift_opened done [12:55:06]requested_item shift.open_date is exist - process it [12:55:06]req_shift_open_date [12:55:06]req_shift_open_date done [12:55:06]produce_requested_data done [12:55:06]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63809,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [12:55:06]process_action_free close_receipt [12:55:06]json_value_free [12:55:06]json_value_free done [12:55:06]process_json_proto returns [12:55:06]Send response to host [12:55:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63809,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [12:55:06]free response buf [12:55:06]execute_script done [12:55:06]execute_script returns [12:55:06]free content buf [12:55:06]Sock 7.Close socket [12:55:06]Sock 7.Thread stoped [12:55:10]OFD Sender: No OFD packet to send [12:55:15]OFD Sender: No OFD packet to send [12:55:20]OFD Sender: No OFD packet to send [12:55:25]OFD Sender: No OFD packet to send [12:55:30]OFD Sender: No OFD packet to send [12:55:35]OFD Sender: No OFD packet to send [12:55:40]OFD Sender: No OFD packet to send [12:55:45]OFD Sender: No OFD packet to send [12:55:50]OFD Sender: No OFD packet to send [12:55:55]OFD Sender: No OFD packet to send [12:56:00]OFD Sender: No OFD packet to send [12:56:05]OFD Sender: No OFD packet to send [12:56:10]OFD Sender: No OFD packet to send [12:56:15]OFD Sender: No OFD packet to send [12:56:20]OFD Sender: No OFD packet to send [12:56:25]OFD Sender: No OFD packet to send [12:56:30]OFD Sender: No OFD packet to send [12:56:35]OFD Sender: No OFD packet to send [12:56:40]OFD Sender: No OFD packet to send [12:56:45]OFD Sender: No OFD packet to send [12:56:50]OFD Sender: No OFD packet to send [12:56:55]OFD Sender: No OFD packet to send [12:57:00]OFD Sender: No OFD packet to send [12:57:05]OFD Sender: No OFD packet to send [12:57:10]OFD Sender: No OFD packet to send [12:57:15]OFD Sender: No OFD packet to send [12:57:20]OFD Sender: No OFD packet to send [12:57:25]OFD Sender: No OFD packet to send [12:57:30]OFD Sender: No OFD packet to send [12:57:35]OFD Sender: No OFD packet to send [12:57:40]OFD Sender: No OFD packet to send [12:57:42]accept exits with 9 [12:57:42]New connection [12:57:42]New thread 3067518308 created [12:57:42]Thread 3067374948 joined [12:57:42]Waiting for new connection... [12:57:42] Sock 9.Parse request [12:57:42]Sock 9.Check first char [12:57:42]Sock 9.First char is OK [12:57:42]request: POST /json_proto HTTP/1.0 [12:57:42]Method: POST [12:57:42]URL: /json_proto [12:57:42]Method is POST - this is cgi request [12:57:42]url: /json_proto [12:57:42]query_string will be loaded in cgi processing [12:57:42]execute_cgi json_proto POST (null) [12:57:42]execute_cgi path=json_proto method=POST [12:57:42]POST find Content-Length [12:57:42]Host: 172.17.60.69:8080 [12:57:42]Content-Length: 1122 [12:57:42]Content-Type: application/json [12:57:42] [12:57:42]POST finish read [12:57:42]Found Content-Length = 1122 [12:57:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73393", "tax_sys" : 0, "items" : [ { "code": "4870002329913", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Lipton IceTea 0,5\u043B \u0437\u0435\u043B \u0447\u0430\u0439", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 200.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:57:42]execute_script... [12:57:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73393", "tax_sys" : 0, "items" : [ { "code": "4870002329913", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Lipton IceTea 0,5\u043B \u0437\u0435\u043B \u0447\u0430\u0439", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 200.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:57:42]POST & json_proto [12:57:42]process_json_proto [12:57:42]json parsed OK: [12:57:42]protocol is kg_v1.0 [12:57:42]action value=close_receipt [12:57:42]process_action close_receipt [12:57:42]cmd_close_receipt [12:57:42]MH_GetDate [12:57:42]Write to MH i2c: F0 00 00 47 12 48 [12:57:42]Write i2c OK [12:57:42]MH_I2C_Read... [12:57:42]Read from MH i2c: F0 [12:57:42]MH_I2C_Read... [12:57:42]Read from MH i2c: F0 09 00 [12:57:42]MH_I2C_Read... [12:57:42]Read from MH i2c: F0 09 00 47 12 00 C9 BD 5D 66 6A 96 4A 66 4A [12:57:42]GetLastDocTimeStamp 1717419304 [12:57:42]current date 1717419465 [12:57:42]FM_GetShiftState [12:57:42]SAM_PROTO_GetShiftState [12:57:42]wFMCommunicate request_size=4 [12:57:42]MH_SAM_APDU [12:57:42]CAPDU: 80 13 01 00 [12:57:42]Write to MH i2c: E2 08 00 48 12 80 13 01 00 00 00 00 00 D7 [12:57:42]Write i2c OK [12:57:42]MH_I2C_Read... [12:57:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:57:43]Read from MH i2c: E2 [12:57:43]MH_I2C_Read... [12:57:43]Read from MH i2c: E2 0E 00 [12:57:43]MH_I2C_Read... [12:57:43]Read from MH i2c: E2 0E 00 48 12 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 A3 [12:57:43]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [12:57:43]wFMCommunicate OK [12:57:43]SAM_PROTO_GetShiftState done [12:57:43]FM_GetShiftState done [12:57:43]opened in 1717373173 [12:57:43]opened+sec_in_day 1717459573 [12:57:43]quantity*price = 7500 [12:57:43]sum+1 = 7501 [12:57:43]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036220012 Кофе Капучино XL(GABB TRADE) 1.000 * 125.00 = 125.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 200.00 НСП 1% : 1.77 НДС 12% : 21.23 Наличными: 0.00 Безнал.: 200.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 68 03.06.2024 12:57 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000875074 ФД: 63810 ФПД: 45759134506349 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T125745&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63810&fm=45759134506349&tin=02508201610067®Number=0000000000092737&sum=20000 0 [12:57:44]StoreToDocumentArchive [12:57:44]shift 373 fd 63810 [12:57:44]save to /storage/0373/doc_00063810 [12:57:44]save last doc name /storage/0373/doc_00063810 to /storage/kkm_last_doc_name [12:57:44]save OK [12:57:44]Clear old archive folders... [12:57:44]ProcessDocumentItem done err = 0, tmpTLVsize=402 [12:57:44]tlvbuf is 00D97F60 [12:57:44]SAM_PROTO_ClearQueue [12:57:44]wFMCommunicate request_size=4 [12:57:44]MH_SAM_APDU [12:57:44]CAPDU: 80 09 00 00 [12:57:44]Write to MH i2c: E2 08 00 55 12 80 09 00 00 00 00 00 00 D9 [12:57:44]Write i2c OK [12:57:44]MH_I2C_Read... [12:57:44]Read from MH i2c: E2 [12:57:44]MH_I2C_Read... [12:57:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:57:44]Read from MH i2c: E2 03 00 [12:57:44]MH_I2C_Read... [12:57:44]Read from MH i2c: E2 03 00 55 12 00 90 00 DB [12:57:44]RAPDU: 90 00 [12:57:44]wFMCommunicate OK [12:57:44]SAM_PROTO_ClearQueue done [12:57:44]KKMCreateOFDPacket [12:57:44]OFDProtocolAddRootSTLVToBuf [12:57:44]FM_MakeSignedData [12:57:44]FM_MakeSignedData [12:57:44]SAM_PROTO_SignData [12:57:44]wFMCommunicate request_size=4 [12:57:44]MH_SAM_APDU [12:57:44]CAPDU: 80 0D 01 02 [12:57:44]Write to MH i2c: E2 08 00 56 12 80 0D 01 02 00 00 00 00 E1 [12:57:44]Write i2c OK [12:57:44]MH_I2C_Read... [12:57:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:57:44]Read from MH i2c: E2 [12:57:44]MH_I2C_Read... [12:57:44]Read from MH i2c: E2 03 00 [12:57:44]MH_I2C_Read... [12:57:44]Read from MH i2c: E2 03 00 56 12 00 90 00 DC [12:57:44]RAPDU: 90 00 [12:57:44]wFMCommunicate OK [12:57:44]wFMCommunicate request_size=255 [12:57:44]MH_SAM_APDU [12:57:44]CAPDU: 80 0D 02 02 FA 03 00 92 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 39 31 33 06 04 30 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 30 2C 35 D0 BB 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 [12:57:44]Write to MH i2c: E2 02 01 57 12 80 0D 02 02 FA 00 03 00 92 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 39 31 33 06 04 30 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 30 2C 35 D0 BB 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 00 14 [12:57:44]Write i2c OK [12:57:44]MH_I2C_Read... [12:57:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:57:44]Read from MH i2c: E2 [12:57:44]MH_I2C_Read... [12:57:44]Read from MH i2c: E2 03 00 [12:57:44]MH_I2C_Read... [12:57:44]Read from MH i2c: E2 03 00 57 12 00 90 00 DD [12:57:44]RAPDU: 90 00 [12:57:44]wFMCommunicate OK [12:57:44]wFMCommunicate request_size=161 [12:57:44]MH_SAM_APDU [12:57:44]CAPDU: 80 0D 02 02 9C 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4B 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 20 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 C9 BD 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 42 F9 00 00 35 04 06 00 29 9E 20 F5 1D 6D [12:57:44]Write to MH i2c: E2 A4 00 58 12 80 0D 02 02 9C 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4B 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 20 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 C9 BD 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 42 F9 00 00 35 04 06 00 29 9E 20 F5 1D 6D 00 00 71 [12:57:44]Write i2c OK [12:57:44]MH_I2C_Read... [12:57:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:57:44]Read from MH i2c: E2 [12:57:44]MH_I2C_Read... [12:57:44]Read from MH i2c: E2 03 00 [12:57:44]MH_I2C_Read... [12:57:44]Read from MH i2c: E2 03 00 58 12 00 90 00 DE [12:57:44]RAPDU: 90 00 [12:57:44]wFMCommunicate OK [12:57:44]wFMCommunicate request_size=4 [12:57:44]MH_SAM_APDU [12:57:44]CAPDU: 80 0D 03 02 [12:57:44]Write to MH i2c: E2 08 00 59 12 80 0D 03 02 00 00 00 00 E6 [12:57:44]Write i2c OK [12:57:44]MH_I2C_Read... [12:57:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:57:44]Read from MH i2c: E2 [12:57:44]MH_I2C_Read... [12:57:44]Read from MH i2c: E2 0B 00 [12:57:44]MH_I2C_Read... [12:57:44]Read from MH i2c: E2 0B 00 59 12 00 9E 84 E3 19 50 A5 BE 3B 90 00 F3 [12:57:44]RAPDU: 9E 84 E3 19 50 A5 BE 3B 90 00 [12:57:44]wFMCommunicate OK [12:57:44]SAM_PROTO_SignData done [12:57:44]FM_MakeSignedData done [12:57:44]CreateOFDProtocolMessage [12:57:44]wFMCommunicate request_size=4 [12:57:44]MH_SAM_APDU [12:57:44]CAPDU: 80 11 00 00 [12:57:44]Write to MH i2c: E2 08 00 5A 12 80 11 00 00 00 00 00 00 E6 [12:57:44]Write i2c OK [12:57:44]MH_I2C_Read... [12:57:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:57:44]Read from MH i2c: E2 [12:57:44]MH_I2C_Read... [12:57:44]Read from MH i2c: E2 17 00 [12:57:44]MH_I2C_Read... [12:57:44]Read from MH i2c: E2 17 00 5A 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 38 [12:57:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [12:57:44]wFMCommunicate OK [12:57:44]CreateOFDProtocolMessage done [12:57:44]OFDSenderStorePacket 63810 [12:57:44]StoreOFDPacket docnum=63810 [12:57:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 A6 01 00 00 E4 E8 9E 01 D1 36 5A 03 01 00 03 00 92 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 39 31 33 06 04 30 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 30 2C 35 D0 BB 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 4B 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 20 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 C9 BD 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 42 F9 00 00 35 04 06 00 29 9E 20 F5 1D 6D 9E 84 E3 19 50 A5 BE 3B [12:57:44]CheckFolder [12:57:44]dirname=/storage/ofd_packets [12:57:44]CheckFolder done [12:57:44]ProducePacketName [12:57:44]name=ofd_packets/00063810 [12:57:44]NVStorageSaveData ofd_packets/00063810 [12:57:44]File name is /storage/ofd_packets/00063810 [12:57:44]Write 452 bytes [12:57:44]NVStorageSaveData done [12:57:44]OFDSenderStorePacket done [12:57:44]KKMCreateOFDPacket done [12:57:44]NVStorageSaveData kkm_last_timestamp [12:57:45]File name is /storage/kkm_last_timestamp [12:57:45]Write 4 bytes [12:57:45]NVStorageSaveData done [12:57:45]ExternCall_PrintAddStr [12:57:45]wPrintStart [12:57:45]Write to MH i2c: 01 00 00 5B 12 6D [12:57:45]OFD Sender: Processing packet 63810 [packets to send 14, broken 13] [12:57:45]ProducePacketName [12:57:45]name=ofd_packets/00063810 [12:57:45]OFD Sender: To server: pG, [12:57:45]CommunicateWithHost lk.salyk.kg:30040 [12:57:45]ConnectInit lk.salyk.kg [12:57:45]Write i2c OK [12:57:45]MH_I2C_Read... [12:57:45]Read from MH i2c: 01 [12:57:45]MH_I2C_Read... [12:57:45]Read from MH i2c: 01 07 00 [12:57:45]MH_I2C_Read... [12:57:45]Read from MH i2c: 01 07 00 5B 12 00 00 00 00 00 FF 0F 82 [12:57:45]RasterBufferAndPrint [12:57:45]line Счет N : (3)73393 [12:57:45]line ИНН: 02508201610067 [12:57:45]line Контрольно-Кассовый Чек [12:57:45]line ПРОДАЖА [12:57:45]line Товар: 4870002329913 [12:57:45]line Напиток Lipton IceTea 0,5л зел чай [12:57:45]line 1.000 * 75.00 [12:57:45]line = 75.00 [12:57:45]line НДС 12% НСП 1% [12:57:45]line > о реализуемом товаре [12:57:45]line Товар: 2000036220012 [12:57:45]line Кофе Капучино XL(GABB TRADE) [12:57:45]line 1.000 * 125.00 [12:57:45]line = 125.00 [12:57:45]line НДС 12% НСП 1% [12:57:45]line > о реализуемом товаре [12:57:45]line ИТОГО: 200.00 [12:57:45]line НСП 1% : 1.77 [12:57:45]line НДС 12% : 21.23 [12:57:45]line Наличными: 0.00 [12:57:45]line Безнал.: 200.00 [12:57:45]line Место: АЗС № 117 "Партнер Нефть" [12:57:45]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [12:57:45]line СНО: Общий режим [12:57:45]line Чек 68 03.06.2024 12:57 [12:57:45]line Смена: 373 ФФД: 1.0 [12:57:45]line ЗНМ: 0300000031 [12:57:45]line РНМ: 0000000000092737 [12:57:45]line Версия ККМ: 001 [12:57:45]line Платежная система: АКБ Кыргызстан [12:57:45]line ФМ: 0000000000875074 [12:57:45]line ФД: 63810 [12:57:45]line ФПД: 45759134506349 [12:57:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T125745&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63810&fm=45759134506349&tin=02508201610067®Number=0000000000092737&sum=20000 [12:57:45]line 0 [12:57:45]written 0, free lines is 4095 [12:57:45]Connected sock=11 [12:57:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 A6 01 00 00 E4 E8 9E 01 D1 36 5A 03 01 00 03 00 92 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 39 31 33 06 04 30 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 30 2C 35 D0 BB 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 4B 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 20 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 C9 BD 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 42 F9 00 00 35 04 06 00 29 9E 20 F5 1D 6D 9E 84 E3 19 50 A5 BE 3B [12:57:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 CD 23 47 00 82 FA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 42 F9 00 00 F4 03 04 00 9A 69 5D 66 B6 04 01 00 00 DA EA E7 37 9A AC 07 7C [12:57:45]CommunicateWithHost err = 0 [12:57:45]CheckOFDResponse [12:57:45]1017 (14) - 77093643461234 [12:57:45]1041 (16) - 0000000000875074 [12:57:45]1040 (4) - 63810 [12:57:45]1012 (4) - 03.06.2024 06:58 [12:57:45]1206 (1) - 0 [12:57:45]OFD Sender: Remove packet 63810 [12:57:45]ProducePacketName [12:57:45]name=ofd_packets/00063810 [12:57:45]NVStorageDeleteData [12:57:45]Write to MH i2c: 01 00 00 8D 12 9F [12:57:45]Write i2c OK [12:57:45]MH_I2C_Read... [12:57:45]Read from MH i2c: 01 [12:57:45]MH_I2C_Read... [12:57:45]Read from MH i2c: 01 07 00 [12:57:45]MH_I2C_Read... [12:57:45]Read from MH i2c: 01 07 00 8D 12 00 00 00 00 00 58 0C 0A [12:57:45]RasterBufferAndPrint [12:57:45]line [12:57:45]line [12:57:45]line [12:57:45]line [12:57:45]line [12:57:45]written 0, free lines is 3166 [12:57:45]MH_Cut [12:57:45]Write to MH i2c: D1 01 00 94 12 01 78 [12:57:45]Write i2c OK [12:57:45]MH_I2C_Read... [12:57:45]Read from MH i2c: D1 [12:57:45]MH_I2C_Read... [12:57:45]Read from MH i2c: D1 01 00 [12:57:45]MH_I2C_Read... [12:57:45]Read from MH i2c: D1 01 00 94 12 00 77 [12:57:45]Write to MH i2c: 01 00 00 95 12 A7 [12:57:45]Write i2c OK [12:57:45]MH_I2C_Read... [12:57:45]OFD Sender: No OFD packet to send [12:57:46]*** Cut start [12:57:46]*** Partial cut [12:57:46]*** CUTSNS_PIN = 1 [12:57:46]*** CUTSNS_PIN = 0 [12:57:46]*** Brake cut motor [12:57:47]Read from MH i2c: 01 [12:57:47]MH_I2C_Read... [12:57:47]*** Stop cut motor [12:57:47]*** Cut end [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 95 12 00 00 00 00 00 FF 0F BC [12:57:47]process_action close_receipt done [12:57:47]requested_data is exist [12:57:47]produce_requested_data [12:57:47]requested_item fm.sn is exist - process it [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 96 12 80 11 00 00 00 00 00 00 22 [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 96 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 74 [12:57:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [12:57:47]wFMCommunicate OK [12:57:47]requested_item fd.num is exist - process it [12:57:47]SAM_PROTO_GetFieldsCounters [12:57:47]wFMCommunicate request_size=4 [12:57:47]MH_SAM_APDU [12:57:47]CAPDU: 80 13 00 00 [12:57:47]Write to MH i2c: E2 08 00 97 12 80 13 00 00 00 00 00 00 25 [12:57:47]Write i2c OK [12:57:47]MH_I2C_Read... [12:57:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:57:47]Read from MH i2c: E2 [12:57:47]MH_I2C_Read... [12:57:47]Read from MH i2c: E2 62 00 [12:57:47]MH_I2C_Read... [12:57:47]Read from MH i2c: E2 62 00 97 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 42 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 C5 [12:57: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 42 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:57:47]wFMCommunicate OK [12:57:47]SAM_PROTO_GetFieldsCounters done [12:57:47]requested_item shift.num is exist - process it [12:57:47]requested_item shift.opened is exist - process it [12:57:47]req_shift_opened [12:57:47]FM_GetShiftState [12:57:47]SAM_PROTO_GetShiftState [12:57:47]wFMCommunicate request_size=4 [12:57:47]MH_SAM_APDU [12:57:47]CAPDU: 80 13 01 00 [12:57:47]Write to MH i2c: E2 08 00 98 12 80 13 01 00 00 00 00 00 27 [12:57:47]Write i2c OK [12:57:47]MH_I2C_Read... [12:57:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:57:47]Read from MH i2c: E2 [12:57:47]MH_I2C_Read... [12:57:47]Read from MH i2c: E2 0E 00 [12:57:47]MH_I2C_Read... [12:57:47]Read from MH i2c: E2 0E 00 98 12 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 F3 [12:57:47]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [12:57:47]wFMCommunicate OK [12:57:47]SAM_PROTO_GetShiftState done [12:57:47]FM_GetShiftState done [12:57:47]req_shift_opened done [12:57:47]requested_item shift.open_date is exist - process it [12:57:47]req_shift_open_date [12:57:47]req_shift_open_date done [12:57:47]produce_requested_data done [12:57:47]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63810,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [12:57:47]process_action_free close_receipt [12:57:47]json_value_free [12:57:47]json_value_free done [12:57:47]process_json_proto returns [12:57:47]Send response to host [12:57:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63810,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [12:57:47]free response buf [12:57:47]execute_script done [12:57:47]execute_script returns [12:57:47]free content buf [12:57:47]Sock 9.Close socket [12:57:47]Sock 9.Thread stoped [12:57:51]OFD Sender: No OFD packet to send [12:57:56]OFD Sender: No OFD packet to send [12:58:01]OFD Sender: No OFD packet to send [12:58:06]OFD Sender: No OFD packet to send [12:58:06]accept exits with 7 [12:58:06]New connection [12:58:06]New thread 3067374948 created [12:58:06]Thread 3067518308 joined [12:58:06]Waiting for new connection... [12:58:06] Sock 7.Parse request [12:58:06]Sock 7.Check first char [12:58:06]Sock 7.First char is OK [12:58:06]request: POST /json_proto HTTP/1.0 [12:58:06]Method: POST [12:58:06]URL: /json_proto [12:58:06]Method is POST - this is cgi request [12:58:06]url: /json_proto [12:58:06]query_string will be loaded in cgi processing [12:58:06]execute_cgi json_proto POST (null) [12:58:06]execute_cgi path=json_proto method=POST [12:58:06]POST find Content-Length [12:58:06]Host: 172.17.60.69:8080 [12:58:06]Content-Length: 627 [12:58:06]Content-Type: application/json [12:58:06] [12:58:06]POST finish read [12:58:06]Found Content-Length = 627 [12:58:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73394", "tax_sys" : 0, "items" : [ { "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:58:06]execute_script... [12:58: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 : (3)73394", "tax_sys" : 0, "items" : [ { "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:58:06]POST & json_proto [12:58:06]process_json_proto [12:58:06]json parsed OK: [12:58:06]protocol is kg_v1.0 [12:58:06]action value=close_receipt [12:58:06]process_action close_receipt [12:58:06]cmd_close_receipt [12:58:06]MH_GetDate [12:58:06]Write to MH i2c: F0 00 00 99 12 9A [12:58:06]Write i2c OK [12:58:06]MH_I2C_Read... [12:58:06]Read from MH i2c: F0 [12:58:06]MH_I2C_Read... [12:58:06]Read from MH i2c: F0 09 00 [12:58:06]MH_I2C_Read... [12:58:06]Read from MH i2c: F0 09 00 99 12 00 E1 BD 5D 66 6A 96 4A 66 B4 [12:58:06]GetLastDocTimeStamp 1717419465 [12:58:06]current date 1717419489 [12:58:06]FM_GetShiftState [12:58:06]SAM_PROTO_GetShiftState [12:58:06]wFMCommunicate request_size=4 [12:58:06]MH_SAM_APDU [12:58:06]CAPDU: 80 13 01 00 [12:58:06]Write to MH i2c: E2 08 00 9A 12 80 13 01 00 00 00 00 00 29 [12:58:06]Write i2c OK [12:58:06]MH_I2C_Read... [12:58:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:58:06]Read from MH i2c: E2 [12:58:06]MH_I2C_Read... [12:58:06]Read from MH i2c: E2 0E 00 [12:58:06]MH_I2C_Read... [12:58:06]Read from MH i2c: E2 0E 00 9A 12 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 F5 [12:58:06]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [12:58:06]wFMCommunicate OK [12:58:06]SAM_PROTO_GetShiftState done [12:58:06]FM_GetShiftState done [12:58:06]opened in 1717373173 [12:58:06]opened+sec_in_day 1717459573 [12:58:06]quantity*price = 13000 [12:58:06]sum+1 = 13001 [12:58:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 69 03.06.2024 12:58 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63811 ФПД: 140653022008867 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T125809&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63811&fm=140653022008867&tin=02508201610067®Number=0000000000092737&sum=13000 0 [12:58:07]StoreToDocumentArchive [12:58:07]shift 373 fd 63811 [12:58:07]save to /storage/0373/doc_00063811 [12:58:07]save last doc name /storage/0373/doc_00063811 to /storage/kkm_last_doc_name [12:58:07]save OK [12:58:07]Clear old archive folders... [12:58:07]ProcessDocumentItem done err = 0, tmpTLVsize=276 [12:58:07]tlvbuf is 00D73630 [12:58:07]SAM_PROTO_ClearQueue [12:58:07]wFMCommunicate request_size=4 [12:58:07]MH_SAM_APDU [12:58:07]CAPDU: 80 09 00 00 [12:58:07]Write to MH i2c: E2 08 00 A7 12 80 09 00 00 00 00 00 00 2B [12:58:07]Write i2c OK [12:58:07]MH_I2C_Read... [12:58:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:58:07]Read from MH i2c: E2 [12:58:07]MH_I2C_Read... [12:58:07]Read from MH i2c: E2 03 00 [12:58:07]MH_I2C_Read... [12:58:07]Read from MH i2c: E2 03 00 A7 12 00 90 00 2D [12:58:07]RAPDU: 90 00 [12:58:07]wFMCommunicate OK [12:58:07]SAM_PROTO_ClearQueue done [12:58:07]KKMCreateOFDPacket [12:58:07]OFDProtocolAddRootSTLVToBuf [12:58:07]FM_MakeSignedData [12:58:07]FM_MakeSignedData [12:58:07]SAM_PROTO_SignData [12:58:07]wFMCommunicate request_size=4 [12:58:07]MH_SAM_APDU [12:58:07]CAPDU: 80 0D 01 02 [12:58:07]Write to MH i2c: E2 08 00 A8 12 80 0D 01 02 00 00 00 00 33 [12:58:07]Write i2c OK [12:58:07]MH_I2C_Read... [12:58:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:58:07]Read from MH i2c: E2 [12:58:07]MH_I2C_Read... [12:58:07]Read from MH i2c: E2 03 00 [12:58:07]MH_I2C_Read... [12:58:07]Read from MH i2c: E2 03 00 A8 12 00 90 00 2E [12:58:07]RAPDU: 90 00 [12:58:07]wFMCommunicate OK [12:58:07]wFMCommunicate request_size=255 [12:58:07]MH_SAM_APDU [12:58:07]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 E1 BD 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 [12:58:07]Write to MH i2c: E2 02 01 A9 12 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 E1 BD 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 00 00 6D [12:58:07]Write i2c OK [12:58:07]MH_I2C_Read... [12:58:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:58:08]Read from MH i2c: E2 [12:58:08]MH_I2C_Read... [12:58:08]Read from MH i2c: E2 03 00 [12:58:08]MH_I2C_Read... [12:58:08]Read from MH i2c: E2 03 00 A9 12 00 90 00 2F [12:58:08]RAPDU: 90 00 [12:58:08]wFMCommunicate OK [12:58:08]wFMCommunicate request_size=35 [12:58:08]MH_SAM_APDU [12:58:08]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 43 F9 00 00 35 04 06 00 7F EC 55 69 D6 23 [12:58:08]Write to MH i2c: E2 26 00 AA 12 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 43 F9 00 00 35 04 06 00 7F EC 55 69 D6 23 00 00 86 [12:58:08]Write i2c OK [12:58:08]MH_I2C_Read... [12:58:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:58:08]Read from MH i2c: E2 [12:58:08]MH_I2C_Read... [12:58:08]Read from MH i2c: E2 03 00 [12:58:08]MH_I2C_Read... [12:58:08]Read from MH i2c: E2 03 00 AA 12 00 90 00 30 [12:58:08]RAPDU: 90 00 [12:58:08]wFMCommunicate OK [12:58:08]wFMCommunicate request_size=4 [12:58:08]MH_SAM_APDU [12:58:08]CAPDU: 80 0D 03 02 [12:58:08]Write to MH i2c: E2 08 00 AB 12 80 0D 03 02 00 00 00 00 38 [12:58:08]Write i2c OK [12:58:08]MH_I2C_Read... [12:58:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:58:08]Read from MH i2c: E2 [12:58:08]MH_I2C_Read... [12:58:08]Read from MH i2c: E2 0B 00 [12:58:08]MH_I2C_Read... [12:58:08]Read from MH i2c: E2 0B 00 AB 12 00 F2 CF B3 BB 83 30 98 98 90 00 4B [12:58:08]RAPDU: F2 CF B3 BB 83 30 98 98 90 00 [12:58:08]wFMCommunicate OK [12:58:08]SAM_PROTO_SignData done [12:58:08]FM_MakeSignedData done [12:58:08]CreateOFDProtocolMessage [12:58:08]wFMCommunicate request_size=4 [12:58:08]MH_SAM_APDU [12:58:08]CAPDU: 80 11 00 00 [12:58:08]Write to MH i2c: E2 08 00 AC 12 80 11 00 00 00 00 00 00 38 [12:58:08]Write i2c OK [12:58:08]MH_I2C_Read... [12:58:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:58:08]Read from MH i2c: E2 [12:58:08]MH_I2C_Read... [12:58:08]Read from MH i2c: E2 17 00 [12:58:08]MH_I2C_Read... [12:58:08]Read from MH i2c: E2 17 00 AC 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 8A [12:58:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [12:58:08]wFMCommunicate OK [12:58:08]CreateOFDProtocolMessage done [12:58:08]OFDSenderStorePacket 63811 [12:58:08]StoreOFDPacket docnum=63811 [12:58:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 28 01 00 00 A7 C2 20 01 6E CE 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 E1 BD 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 43 F9 00 00 35 04 06 00 7F EC 55 69 D6 23 F2 CF B3 BB 83 30 98 98 [12:58:08]CheckFolder [12:58:08]dirname=/storage/ofd_packets [12:58:08]CheckFolder done [12:58:08]ProducePacketName [12:58:08]name=ofd_packets/00063811 [12:58:08]NVStorageSaveData ofd_packets/00063811 [12:58:08]File name is /storage/ofd_packets/00063811 [12:58:08]Write 326 bytes [12:58:08]NVStorageSaveData done [12:58:08]OFDSenderStorePacket done [12:58:08]KKMCreateOFDPacket done [12:58:08]NVStorageSaveData kkm_last_timestamp [12:58:08]File name is /storage/kkm_last_timestamp [12:58:08]Write 4 bytes [12:58:08]NVStorageSaveData done [12:58:08]ExternCall_PrintAddStr [12:58:08]wPrintStart [12:58:08]Write to MH i2c: 01 00 00 AD 12 BF [12:58:08]Write i2c OK [12:58:08]MH_I2C_Read... [12:58:08]Read from MH i2c: 01 [12:58:08]MH_I2C_Read... [12:58:08]Read from MH i2c: 01 07 00 [12:58:08]MH_I2C_Read... [12:58:08]Read from MH i2c: 01 07 00 AD 12 00 00 00 00 00 FF 0F D4 [12:58:08]RasterBufferAndPrint [12:58:08]line Счет N : (3)73394 [12:58:08]line ИНН: 02508201610067 [12:58:08]line Контрольно-Кассовый Чек [12:58:08]line ПРОДАЖА [12:58:08]line Товар: 2000036230011 [12:58:08]line Кофе Латте XL(GABB TRADE) [12:58:08]line 1.000 * 130.00 [12:58:08]line = 130.00 [12:58:08]line НДС 12% НСП 1% [12:58:08]line > о реализуемом товаре [12:58:08]line ИТОГО: 130.00 [12:58:08]line НСП 1% : 1.15 [12:58:08]line НДС 12% : 13.80 [12:58:08]line Наличными: 130.00 [12:58:08]line Безнал.: 0.00 [12:58:08]line Место: АЗС № 117 "Партнер Нефть" [12:58:08]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [12:58:08]line СНО: Общий режим [12:58:08]line Чек 69 03.06.2024 12:58 [12:58:08]line Смена: 373 ФФД: 1.0 [12:58:08]line ЗНМ: 0300000031 [12:58:08]line РНМ: 0000000000092737 [12:58:08]line Версия ККМ: 001 [12:58:08]line ФМ: 0000000000875074 [12:58:08]line ФД: 63811 [12:58:08]line ФПД: 140653022008867 [12:58:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T125809&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63811&fm=140653022008867&tin=02508201610067®Number=0000000000092737&sum=13000 [12:58:08]line 0 [12:58:08]OFD Sender: Processing packet 63811 [packets to send 14, broken 13] [12:58:08]ProducePacketName [12:58:08]name=ofd_packets/00063811 [12:58:08]OFD Sender: To server: pG, [12:58:08]CommunicateWithHost lk.salyk.kg:30040 [12:58:08]ConnectInit lk.salyk.kg [12:58:08]written 0, free lines is 4095 [12:58:08]Connected sock=10 [12:58:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 28 01 00 00 A7 C2 20 01 6E CE 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 E1 BD 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 43 F9 00 00 35 04 06 00 7F EC 55 69 D6 23 F2 CF B3 BB 83 30 98 98 [12:58:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 22 1E 47 00 62 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 35 30 37 34 10 04 04 00 43 F9 00 00 F4 03 04 00 B2 69 5D 66 B6 04 01 00 00 D2 16 5F 14 6E 83 B3 B5 [12:58:09]CommunicateWithHost err = 0 [12:58:09]CheckOFDResponse [12:58:09]1017 (14) - 77093643461234 [12:58:09]1041 (16) - 0000000000875074 [12:58:09]1040 (4) - 63811 [12:58:09]1012 (4) - 03.06.2024 06:58 [12:58:09]1206 (1) - 0 [12:58:09]OFD Sender: Remove packet 63811 [12:58:09]ProducePacketName [12:58:09]name=ofd_packets/00063811 [12:58:09]NVStorageDeleteData [12:58:09]Write to MH i2c: 01 00 00 D5 12 E7 [12:58:09]Write i2c OK [12:58:09]MH_I2C_Read... [12:58:09]Read from MH i2c: 01 [12:58:09]MH_I2C_Read... [12:58:09]Read from MH i2c: 01 07 00 [12:58:09]MH_I2C_Read... [12:58:09]Read from MH i2c: 01 07 00 D5 12 00 00 00 00 00 09 0D 04 [12:58:09]RasterBufferAndPrint [12:58:09]line [12:58:09]line [12:58:09]line [12:58:09]line [12:58:09]line [12:58:09]written 0, free lines is 3343 [12:58:09]MH_Cut [12:58:09]Write to MH i2c: D1 01 00 DC 12 01 C0 [12:58:09]Write i2c OK [12:58:09]MH_I2C_Read... [12:58:09]Read from MH i2c: D1 [12:58:09]MH_I2C_Read... [12:58:09]Read from MH i2c: D1 01 00 [12:58:09]MH_I2C_Read... [12:58:09]Read from MH i2c: D1 01 00 DC 12 00 BF [12:58:09]Write to MH i2c: 01 00 00 DD 12 EF [12:58:09]Write i2c OK [12:58:09]MH_I2C_Read... [12:58:09]OFD Sender: No OFD packet to send [12:58:09]*** Cut start [12:58:09]*** Partial cut [12:58:09]*** CUTSNS_PIN = 1 [12:58:10]*** CUTSNS_PIN = 0 [12:58:10]*** Brake cut motor [12:58:10]Read from MH i2c: 01 [12:58:10]MH_I2C_Read... [12:58:10]*** Stop cut motor [12:58:10]*** Cut end [12:58:10]Read from MH i2c: 01 07 00 [12:58:10]MH_I2C_Read... [12:58:10]Read from MH i2c: 01 07 00 DD 12 00 00 00 00 00 FF 0F 04 [12:58:10]process_action close_receipt done [12:58:10]requested_data is exist [12:58:10]produce_requested_data [12:58:10]requested_item fm.sn is exist - process it [12:58:10]wFMCommunicate request_size=4 [12:58:10]MH_SAM_APDU [12:58:10]CAPDU: 80 11 00 00 [12:58:10]Write to MH i2c: E2 08 00 DE 12 80 11 00 00 00 00 00 00 6A [12:58:10]Write i2c OK [12:58:10]MH_I2C_Read... [12:58:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:58:10]Read from MH i2c: E2 [12:58:10]MH_I2C_Read... [12:58:10]Read from MH i2c: E2 17 00 [12:58:10]MH_I2C_Read... [12:58:10]Read from MH i2c: E2 17 00 DE 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 BC [12:58:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [12:58:10]wFMCommunicate OK [12:58:10]requested_item fd.num is exist - process it [12:58:10]SAM_PROTO_GetFieldsCounters [12:58:10]wFMCommunicate request_size=4 [12:58:10]MH_SAM_APDU [12:58:10]CAPDU: 80 13 00 00 [12:58:10]Write to MH i2c: E2 08 00 DF 12 80 13 00 00 00 00 00 00 6D [12:58:10]Write i2c OK [12:58:10]MH_I2C_Read... [12:58:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:58:10]Read from MH i2c: E2 [12:58:10]MH_I2C_Read... [12:58:10]Read from MH i2c: E2 62 00 [12:58:10]MH_I2C_Read... [12:58:10]Read from MH i2c: E2 62 00 DF 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 43 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 11 [12:58:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 43 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:58:10]wFMCommunicate OK [12:58:10]SAM_PROTO_GetFieldsCounters done [12:58:10]requested_item shift.num is exist - process it [12:58:10]requested_item shift.opened is exist - process it [12:58:10]req_shift_opened [12:58:10]FM_GetShiftState [12:58:10]SAM_PROTO_GetShiftState [12:58:10]wFMCommunicate request_size=4 [12:58:10]MH_SAM_APDU [12:58:10]CAPDU: 80 13 01 00 [12:58:10]Write to MH i2c: E2 08 00 E0 12 80 13 01 00 00 00 00 00 6F [12:58:10]Write i2c OK [12:58:10]MH_I2C_Read... [12:58:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:58:10]Read from MH i2c: E2 [12:58:10]MH_I2C_Read... [12:58:10]Read from MH i2c: E2 0E 00 [12:58:10]MH_I2C_Read... [12:58:10]Read from MH i2c: E2 0E 00 E0 12 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 3B [12:58:10]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [12:58:10]wFMCommunicate OK [12:58:10]SAM_PROTO_GetShiftState done [12:58:10]FM_GetShiftState done [12:58:10]req_shift_opened done [12:58:10]requested_item shift.open_date is exist - process it [12:58:10]req_shift_open_date [12:58:10]req_shift_open_date done [12:58:10]produce_requested_data done [12:58:10]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63811,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [12:58:10]process_action_free close_receipt [12:58:10]json_value_free [12:58:10]json_value_free done [12:58:10]process_json_proto returns [12:58:10]Send response to host [12:58:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63811,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [12:58:10]free response buf [12:58:10]execute_script done [12:58:10]execute_script returns [12:58:10]free content buf [12:58:10]Sock 7.Close socket [12:58:10]Sock 7.Thread stoped [12:58:14]OFD Sender: No OFD packet to send [12:58:19]OFD Sender: No OFD packet to send [12:58:24]OFD Sender: No OFD packet to send [12:58:29]OFD Sender: No OFD packet to send [12:58:34]OFD Sender: No OFD packet to send [12:58:39]OFD Sender: No OFD packet to send [12:58:44]OFD Sender: No OFD packet to send [12:58:49]OFD Sender: No OFD packet to send [12:58:54]OFD Sender: No OFD packet to send [12:58:59]OFD Sender: No OFD packet to send [12:59:04]OFD Sender: No OFD packet to send [12:59:09]OFD Sender: No OFD packet to send [12:59:14]OFD Sender: No OFD packet to send [12:59:19]OFD Sender: No OFD packet to send [12:59:24]OFD Sender: No OFD packet to send [12:59:29]OFD Sender: No OFD packet to send [12:59:30]accept exits with 9 [12:59:30]New connection [12:59:30]New thread 3067518308 created [12:59:30]Thread 3067374948 joined [12:59:30]Waiting for new connection... [12:59:30] Sock 9.Parse request [12:59:30]Sock 9.Check first char [12:59:30]Sock 9.First char is OK [12:59:30]request: POST /json_proto HTTP/1.0 [12:59:30]Method: POST [12:59:30]URL: /json_proto [12:59:30]Method is POST - this is cgi request [12:59:30]url: /json_proto [12:59:30]query_string will be loaded in cgi processing [12:59:30]execute_cgi json_proto POST (null) [12:59:30]execute_cgi path=json_proto method=POST [12:59:30]POST find Content-Length [12:59:30]Host: 172.17.60.69:8080 [12:59:30]Content-Length: 677 [12:59:30]Content-Type: application/json [12:59:30] [12:59:30]POST finish read [12:59:30]Found Content-Length = 677 [12:59:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543682", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:59:30]execute_script... [12:59: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)543682", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:59:30]POST & json_proto [12:59:30]process_json_proto [12:59:30]json parsed OK: [12:59:30]protocol is kg_v1.0 [12:59:30]action value=close_receipt [12:59:30]process_action close_receipt [12:59:30]cmd_close_receipt [12:59:30]MH_GetDate [12:59:30]Write to MH i2c: F0 00 00 E1 12 E2 [12:59:30]Write i2c OK [12:59:30]MH_I2C_Read... [12:59:30]Read from MH i2c: F0 [12:59:30]MH_I2C_Read... [12:59:30]Read from MH i2c: F0 09 00 [12:59:30]MH_I2C_Read... [12:59:30]Read from MH i2c: F0 09 00 E1 12 00 34 BE 5D 66 6A 96 4A 66 50 [12:59:30]GetLastDocTimeStamp 1717419489 [12:59:30]current date 1717419572 [12:59:30]FM_GetShiftState [12:59:30]SAM_PROTO_GetShiftState [12:59:30]wFMCommunicate request_size=4 [12:59:30]MH_SAM_APDU [12:59:30]CAPDU: 80 13 01 00 [12:59:30]Write to MH i2c: E2 08 00 E2 12 80 13 01 00 00 00 00 00 71 [12:59:30]Write i2c OK [12:59:30]MH_I2C_Read... [12:59:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:59:30]Read from MH i2c: E2 [12:59:30]MH_I2C_Read... [12:59:30]Read from MH i2c: E2 0E 00 [12:59:30]MH_I2C_Read... [12:59:30]Read from MH i2c: E2 0E 00 E2 12 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 3D [12:59:30]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [12:59:30]wFMCommunicate OK [12:59:30]SAM_PROTO_GetShiftState done [12:59:30]FM_GetShiftState done [12:59:30]opened in 1717373173 [12:59:30]opened+sec_in_day 1717459573 [12:59:30]quantity*price = 50041 [12:59:30]sum+1 = 50042 [12:59:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 70 03.06.2024 12:59 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63812 ФПД: 22456086127351 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T125932&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63812&fm=22456086127351&tin=02508201610067®Number=0000000000092737&sum=50000 [12:59:31]StoreToDocumentArchive [12:59:31]shift 373 fd 63812 [12:59:31]save to /storage/0373/doc_00063812 [12:59:31]save last doc name /storage/0373/doc_00063812 to /storage/kkm_last_doc_name [12:59:31]save OK [12:59:31]Clear old archive folders... [12:59:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:59:31]tlvbuf is 00D2F470 [12:59:31]SAM_PROTO_ClearQueue [12:59:31]wFMCommunicate request_size=4 [12:59:31]MH_SAM_APDU [12:59:31]CAPDU: 80 09 00 00 [12:59:31]Write to MH i2c: E2 08 00 EF 12 80 09 00 00 00 00 00 00 73 [12:59:31]Write i2c OK [12:59:31]MH_I2C_Read... [12:59:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:59:31]Read from MH i2c: E2 [12:59:31]MH_I2C_Read... [12:59:31]Read from MH i2c: E2 03 00 [12:59:31]MH_I2C_Read... [12:59:31]Read from MH i2c: E2 03 00 EF 12 00 90 00 75 [12:59:31]RAPDU: 90 00 [12:59:31]wFMCommunicate OK [12:59:31]SAM_PROTO_ClearQueue done [12:59:31]KKMCreateOFDPacket [12:59:31]OFDProtocolAddRootSTLVToBuf [12:59:31]FM_MakeSignedData [12:59:31]FM_MakeSignedData [12:59:31]SAM_PROTO_SignData [12:59:31]wFMCommunicate request_size=4 [12:59:31]MH_SAM_APDU [12:59:31]CAPDU: 80 0D 01 02 [12:59:31]Write to MH i2c: E2 08 00 F0 12 80 0D 01 02 00 00 00 00 7B [12:59:31]Write i2c OK [12:59:31]MH_I2C_Read... [12:59:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:59:31]Read from MH i2c: E2 [12:59:31]MH_I2C_Read... [12:59:31]Read from MH i2c: E2 03 00 [12:59:31]MH_I2C_Read... [12:59:31]Read from MH i2c: E2 03 00 F0 12 00 90 00 76 [12:59:31]RAPDU: 90 00 [12:59:31]wFMCommunicate OK [12:59:31]wFMCommunicate request_size=255 [12:59:31]MH_SAM_APDU [12:59:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 34 BE 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 44 F9 00 00 35 04 06 00 14 [12:59:31]Write to MH i2c: E2 02 01 F1 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 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 34 BE 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 44 F9 00 00 35 04 06 00 14 00 00 CE [12:59:31]Write i2c OK [12:59:31]MH_I2C_Read... [12:59:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:59:31]Read from MH i2c: E2 [12:59:31]MH_I2C_Read... [12:59:31]Read from MH i2c: E2 03 00 [12:59:31]MH_I2C_Read... [12:59:31]Read from MH i2c: E2 03 00 F1 12 00 90 00 77 [12:59:31]RAPDU: 90 00 [12:59:31]wFMCommunicate OK [12:59:31]wFMCommunicate request_size=10 [12:59:31]MH_SAM_APDU [12:59:31]CAPDU: 80 0D 02 02 05 6C 77 09 62 F7 [12:59:31]Write to MH i2c: E2 0D 00 F2 12 80 0D 02 02 05 00 6C 77 09 62 F7 00 00 CD [12:59:31]Write i2c OK [12:59:31]MH_I2C_Read... [12:59:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:59:31]Read from MH i2c: E2 [12:59:31]MH_I2C_Read... [12:59:31]Read from MH i2c: E2 03 00 [12:59:31]MH_I2C_Read... [12:59:31]Read from MH i2c: E2 03 00 F2 12 00 90 00 78 [12:59:31]RAPDU: 90 00 [12:59:31]wFMCommunicate OK [12:59:31]wFMCommunicate request_size=4 [12:59:31]MH_SAM_APDU [12:59:31]CAPDU: 80 0D 03 02 [12:59:31]Write to MH i2c: E2 08 00 F3 12 80 0D 03 02 00 00 00 00 80 [12:59:31]Write i2c OK [12:59:31]MH_I2C_Read... [12:59:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:59:31]Read from MH i2c: E2 [12:59:31]MH_I2C_Read... [12:59:31]Read from MH i2c: E2 0B 00 [12:59:31]MH_I2C_Read... [12:59:31]Read from MH i2c: E2 0B 00 F3 12 00 BA 2C 6C 5E 42 E7 AA 96 90 00 9A [12:59:31]RAPDU: BA 2C 6C 5E 42 E7 AA 96 90 00 [12:59:31]wFMCommunicate OK [12:59:31]SAM_PROTO_SignData done [12:59:31]FM_MakeSignedData done [12:59:31]CreateOFDProtocolMessage [12:59:31]wFMCommunicate request_size=4 [12:59:31]MH_SAM_APDU [12:59:31]CAPDU: 80 11 00 00 [12:59:31]Write to MH i2c: E2 08 00 F4 12 80 11 00 00 00 00 00 00 80 [12:59:31]Write i2c OK [12:59:31]MH_I2C_Read... [12:59:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:59:31]Read from MH i2c: E2 [12:59:31]MH_I2C_Read... [12:59:31]Read from MH i2c: E2 17 00 [12:59:31]MH_I2C_Read... [12:59:31]Read from MH i2c: E2 17 00 F4 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 D2 [12:59:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [12:59:31]wFMCommunicate OK [12:59:31]CreateOFDProtocolMessage done [12:59:31]OFDSenderStorePacket 63812 [12:59:31]StoreOFDPacket docnum=63812 [12:59:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0F 01 00 00 2D A0 07 01 A6 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 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 34 BE 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 44 F9 00 00 35 04 06 00 14 6C 77 09 62 F7 BA 2C 6C 5E 42 E7 AA 96 [12:59:31]CheckFolder [12:59:31]dirname=/storage/ofd_packets [12:59:31]CheckFolder done [12:59:31]ProducePacketName [12:59:31]name=ofd_packets/00063812 [12:59:31]NVStorageSaveData ofd_packets/00063812 [12:59:31]File name is /storage/ofd_packets/00063812 [12:59:31]Write 301 bytes [12:59:31]NVStorageSaveData done [12:59:31]OFDSenderStorePacket done [12:59:31]KKMCreateOFDPacket done [12:59:31]NVStorageSaveData kkm_last_timestamp [12:59:31]File name is /storage/kkm_last_timestamp [12:59:31]Write 4 bytes [12:59:31]NVStorageSaveData done [12:59:31]ExternCall_PrintAddStr [12:59:31]wPrintStart [12:59:31]Write to MH i2c: 01 00 00 F5 12 07 [12:59:31]Write i2c OK [12:59:31]MH_I2C_Read... [12:59:31]Read from MH i2c: 01 [12:59:31]MH_I2C_Read... [12:59:31]Read from MH i2c: 01 07 00 [12:59:31]MH_I2C_Read... [12:59:31]Read from MH i2c: 01 07 00 F5 12 00 00 00 00 00 FF 0F 1C [12:59:31]RasterBufferAndPrint [12:59:31]line Счет N : (1)543682 [12:59:31]line ИНН: 02508201610067 [12:59:31]line Контрольно-Кассовый Чек [12:59:31]line ПРОДАЖА [12:59:31]line ТРК (МРК, ГНК) : 12 [12:59:31]line Товар: 2710124130 [12:59:31]line Аи-92-К-5 [12:59:31]line 7.480 * 66.90 [12:59:31]line = 500.41 [12:59:31]line НДС 12% НСП 1% [12:59:31]line > о реализуемом товаре [12:59:31]line ОКРУГЛЕНИЕ: -0.41 [12:59:31]line ИТОГО: 500.00 [12:59:31]line Внесено: 500.00 [12:59:31]line СДАЧА: 0.00 [12:59:31]line НСП 1% : 4.43 [12:59:31]line НДС 12% : 53.14 [12:59:31]line Наличными: 500.00 [12:59:31]line Безнал.: 0.00 [12:59:31]line Место: АЗС № 117 "Партнер Нефть" [12:59:31]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [12:59:31]line СНО: Общий режим [12:59:31]line Чек 70 03.06.2024 12:59 [12:59:31]line Смена: 373 ФФД: 1.0 [12:59:31]line ЗНМ: 0300000031 [12:59:31]line РНМ: 0000000000092737 [12:59:31]line Версия ККМ: 001 [12:59:31]line ФМ: 0000000000875074 [12:59:31]line ФД: 63812 [12:59:31]line ФПД: 22456086127351 [12:59:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T125932&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63812&fm=22456086127351&tin=02508201610067®Number=0000000000092737&sum=50000 [12:59:32]OFD Sender: Processing packet 63812 [packets to send 14, broken 13] [12:59:32]ProducePacketName [12:59:32]name=ofd_packets/00063812 [12:59:32]OFD Sender: To server: pG, [12:59:32]CommunicateWithHost lk.salyk.kg:30040 [12:59:32]ConnectInit lk.salyk.kg [12:59:32]written 0, free lines is 4095 [12:59:32]Connected sock=10 [12:59:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0F 01 00 00 2D A0 07 01 A6 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 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 34 BE 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 44 F9 00 00 35 04 06 00 14 6C 77 09 62 F7 BA 2C 6C 5E 42 E7 AA 96 [12:59:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 14 E7 47 00 E9 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 35 30 37 34 10 04 04 00 44 F9 00 00 F4 03 04 00 06 6A 5D 66 B6 04 01 00 00 91 64 A1 63 BC 75 47 EE [12:59:32]CommunicateWithHost err = 0 [12:59:32]CheckOFDResponse [12:59:32]1017 (14) - 77093643461234 [12:59:32]1041 (16) - 0000000000875074 [12:59:32]1040 (4) - 63812 [12:59:32]1012 (4) - 03.06.2024 07:00 [12:59:32]1206 (1) - 0 [12:59:32]OFD Sender: Remove packet 63812 [12:59:32]ProducePacketName [12:59:32]name=ofd_packets/00063812 [12:59:32]NVStorageDeleteData [12:59:32]Write to MH i2c: 01 00 00 20 13 33 [12:59:32]Write i2c OK [12:59:32]MH_I2C_Read... [12:59:32]Read from MH i2c: 01 [12:59:32]MH_I2C_Read... [12:59:32]Read from MH i2c: 01 07 00 [12:59:32]MH_I2C_Read... [12:59:32]Read from MH i2c: 01 07 00 20 13 00 00 00 00 00 D4 0C 1A [12:59:32]RasterBufferAndPrint [12:59:32]line [12:59:32]line [12:59:32]line [12:59:32]line [12:59:32]line [12:59:32]written 0, free lines is 3292 [12:59:32]MH_Cut [12:59:32]Write to MH i2c: D1 01 00 27 13 01 0C [12:59:32]Write i2c OK [12:59:32]MH_I2C_Read... [12:59:32]Read from MH i2c: D1 [12:59:32]MH_I2C_Read... [12:59:32]Read from MH i2c: D1 01 00 [12:59:32]MH_I2C_Read... [12:59:32]Read from MH i2c: D1 01 00 27 13 00 0B [12:59:32]Write to MH i2c: 01 00 00 28 13 3B [12:59:32]Write i2c OK [12:59:32]MH_I2C_Read... [12:59:33]OFD Sender: No OFD packet to send [12:59:33]*** Cut start [12:59:33]*** Partial cut [12:59:33]*** CUTSNS_PIN = 1 [12:59:33]*** CUTSNS_PIN = 0 [12:59:33]*** Brake cut motor [12:59:34]Read from MH i2c: 01 [12:59:34]MH_I2C_Read... [12:59:34]*** Stop cut motor [12:59:34]*** Cut end [12:59:34]Read from MH i2c: 01 07 00 [12:59:34]MH_I2C_Read... [12:59:34]Read from MH i2c: 01 07 00 28 13 00 00 00 00 00 FF 0F 50 [12:59:34]process_action close_receipt done [12:59:34]requested_data is exist [12:59:34]produce_requested_data [12:59:34]requested_item fm.sn is exist - process it [12:59:34]wFMCommunicate request_size=4 [12:59:34]MH_SAM_APDU [12:59:34]CAPDU: 80 11 00 00 [12:59:34]Write to MH i2c: E2 08 00 29 13 80 11 00 00 00 00 00 00 B6 [12:59:34]Write i2c OK [12:59:34]MH_I2C_Read... [12:59:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:59:34]Read from MH i2c: E2 [12:59:34]MH_I2C_Read... [12:59:34]Read from MH i2c: E2 17 00 [12:59:34]MH_I2C_Read... [12:59:34]Read from MH i2c: E2 17 00 29 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 08 [12:59:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [12:59:34]wFMCommunicate OK [12:59:34]requested_item fd.num is exist - process it [12:59:34]SAM_PROTO_GetFieldsCounters [12:59:34]wFMCommunicate request_size=4 [12:59:34]MH_SAM_APDU [12:59:34]CAPDU: 80 13 00 00 [12:59:34]Write to MH i2c: E2 08 00 2A 13 80 13 00 00 00 00 00 00 B9 [12:59:34]Write i2c OK [12:59:34]MH_I2C_Read... [12:59:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:59:34]Read from MH i2c: E2 [12:59:34]MH_I2C_Read... [12:59:34]Read from MH i2c: E2 62 00 [12:59:34]MH_I2C_Read... [12:59:34]Read from MH i2c: E2 62 00 2A 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 44 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 61 [12:59: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 44 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:59:34]wFMCommunicate OK [12:59:34]SAM_PROTO_GetFieldsCounters done [12:59:34]requested_item shift.num is exist - process it [12:59:34]requested_item shift.opened is exist - process it [12:59:34]req_shift_opened [12:59:34]FM_GetShiftState [12:59:34]SAM_PROTO_GetShiftState [12:59:34]wFMCommunicate request_size=4 [12:59:34]MH_SAM_APDU [12:59:34]CAPDU: 80 13 01 00 [12:59:34]Write to MH i2c: E2 08 00 2B 13 80 13 01 00 00 00 00 00 BB [12:59:34]Write i2c OK [12:59:34]MH_I2C_Read... [12:59:34]Read from MH i2c: E2 [12:59:34]MH_I2C_Read... [12:59:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:59:34]Read from MH i2c: E2 0E 00 [12:59:34]MH_I2C_Read... [12:59:34]Read from MH i2c: E2 0E 00 2B 13 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 87 [12:59:34]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [12:59:34]wFMCommunicate OK [12:59:34]SAM_PROTO_GetShiftState done [12:59:34]FM_GetShiftState done [12:59:34]req_shift_opened done [12:59:34]requested_item shift.open_date is exist - process it [12:59:34]req_shift_open_date [12:59:34]req_shift_open_date done [12:59:34]produce_requested_data done [12:59:34]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63812,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [12:59:34]process_action_free close_receipt [12:59:34]json_value_free [12:59:34]json_value_free done [12:59:34]process_json_proto returns [12:59:34]Send response to host [12:59:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63812,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [12:59:34]free response buf [12:59:34]execute_script done [12:59:34]execute_script returns [12:59:34]free content buf [12:59:34]Sock 9.Close socket [12:59:34]Sock 9.Thread stoped [12:59:38]OFD Sender: No OFD packet to send [12:59:43]OFD Sender: No OFD packet to send [12:59:48]OFD Sender: No OFD packet to send [12:59:53]OFD Sender: No OFD packet to send [12:59:58]OFD Sender: No OFD packet to send [13:00:03]OFD Sender: No OFD packet to send [13:00:08]OFD Sender: No OFD packet to send [13:00:13]OFD Sender: No OFD packet to send [13:00:18]OFD Sender: No OFD packet to send [13:00:23]OFD Sender: No OFD packet to send [13:00:28]OFD Sender: No OFD packet to send [13:00:33]OFD Sender: No OFD packet to send [13:00:38]OFD Sender: No OFD packet to send [13:00:43]OFD Sender: No OFD packet to send [13:00:48]OFD Sender: No OFD packet to send [13:00:53]OFD Sender: No OFD packet to send [13:00:58]OFD Sender: No OFD packet to send [13:01:03]OFD Sender: No OFD packet to send [13:01:08]OFD Sender: No OFD packet to send [13:01:13]OFD Sender: No OFD packet to send [13:01:18]OFD Sender: No OFD packet to send [13:01:23]OFD Sender: No OFD packet to send [13:01:28]OFD Sender: No OFD packet to send [13:01:33]OFD Sender: No OFD packet to send [13:01:38]OFD Sender: No OFD packet to send [13:01:43]OFD Sender: No OFD packet to send [13:01:48]OFD Sender: No OFD packet to send [13:01:53]OFD Sender: No OFD packet to send [13:01:58]OFD Sender: No OFD packet to send [13:02:03]OFD Sender: No OFD packet to send [13:02:08]OFD Sender: No OFD packet to send [13:02:13]OFD Sender: No OFD packet to send [13:02:18]OFD Sender: No OFD packet to send [13:02:23]OFD Sender: No OFD packet to send [13:02:28]OFD Sender: No OFD packet to send [13:02:33]OFD Sender: No OFD packet to send [13:02:38]OFD Sender: No OFD packet to send [13:02:43]OFD Sender: No OFD packet to send [13:02:48]OFD Sender: No OFD packet to send [13:02:53]OFD Sender: No OFD packet to send [13:02:58]OFD Sender: No OFD packet to send [13:03:03]OFD Sender: No OFD packet to send [13:03:08]OFD Sender: No OFD packet to send [13:03:13]OFD Sender: No OFD packet to send [13:03:18]OFD Sender: No OFD packet to send [13:03:23]OFD Sender: No OFD packet to send [13:03:28]OFD Sender: No OFD packet to send [13:03:33]OFD Sender: No OFD packet to send [13:03:38]OFD Sender: No OFD packet to send [13:03:43]OFD Sender: No OFD packet to send [13:03:48]OFD Sender: No OFD packet to send [13:03:53]OFD Sender: No OFD packet to send [13:03:58]OFD Sender: No OFD packet to send [13:04:03]OFD Sender: No OFD packet to send [13:04:08]OFD Sender: No OFD packet to send [13:04:13]OFD Sender: No OFD packet to send [13:04:18]OFD Sender: No OFD packet to send [13:04:23]OFD Sender: No OFD packet to send [13:04:28]OFD Sender: No OFD packet to send [13:04:33]OFD Sender: No OFD packet to send [13:04:38]OFD Sender: No OFD packet to send [13:04:43]OFD Sender: No OFD packet to send [13:04:48]OFD Sender: No OFD packet to send [13:04:53]OFD Sender: No OFD packet to send [13:04:58]OFD Sender: No OFD packet to send [13:05:03]OFD Sender: No OFD packet to send [13:05:08]OFD Sender: No OFD packet to send [13:05:13]OFD Sender: No OFD packet to send [13:05:18]OFD Sender: No OFD packet to send [13:05:23]OFD Sender: No OFD packet to send [13:05:28]OFD Sender: No OFD packet to send [13:05:33]OFD Sender: No OFD packet to send [13:05:38]OFD Sender: No OFD packet to send [13:05:43]OFD Sender: No OFD packet to send [13:05:48]OFD Sender: No OFD packet to send [13:05:53]OFD Sender: No OFD packet to send [13:05:58]OFD Sender: No OFD packet to send [13:06:03]OFD Sender: No OFD packet to send [13:06:08]OFD Sender: No OFD packet to send [13:06:13]OFD Sender: No OFD packet to send [13:06:18]OFD Sender: No OFD packet to send [13:06:23]OFD Sender: No OFD packet to send [13:06:28]OFD Sender: No OFD packet to send [13:06:33]OFD Sender: No OFD packet to send [13:06:38]OFD Sender: No OFD packet to send [13:06:43]OFD Sender: No OFD packet to send [13:06:48]OFD Sender: No OFD packet to send [13:06:53]OFD Sender: No OFD packet to send [13:06:58]OFD Sender: No OFD packet to send [13:07:03]OFD Sender: No OFD packet to send [13:07:08]OFD Sender: No OFD packet to send [13:07:13]OFD Sender: No OFD packet to send [13:07:18]OFD Sender: No OFD packet to send [13:07:23]OFD Sender: No OFD packet to send [13:07:28]OFD Sender: No OFD packet to send [13:07:33]OFD Sender: No OFD packet to send [13:07:38]OFD Sender: No OFD packet to send [13:07:43]OFD Sender: No OFD packet to send [13:07:48]OFD Sender: No OFD packet to send [13:07:53]OFD Sender: No OFD packet to send [13:07:58]OFD Sender: No OFD packet to send [13:08:03]OFD Sender: No OFD packet to send [13:08:08]OFD Sender: No OFD packet to send [13:08:13]OFD Sender: No OFD packet to send [13:08:18]OFD Sender: No OFD packet to send [13:08:23]OFD Sender: No OFD packet to send [13:08:28]OFD Sender: No OFD packet to send [13:08:33]OFD Sender: No OFD packet to send [13:08:38]OFD Sender: No OFD packet to send [13:08:43]OFD Sender: No OFD packet to send [13:08:48]OFD Sender: No OFD packet to send [13:08:53]OFD Sender: No OFD packet to send [13:08:58]OFD Sender: No OFD packet to send [13:09:03]OFD Sender: No OFD packet to send [13:09:08]OFD Sender: No OFD packet to send [13:09:13]OFD Sender: No OFD packet to send [13:09:18]OFD Sender: No OFD packet to send [13:09:23]OFD Sender: No OFD packet to send [13:09:28]OFD Sender: No OFD packet to send [13:09:33]OFD Sender: No OFD packet to send [13:09:38]OFD Sender: No OFD packet to send [13:09:43]OFD Sender: No OFD packet to send [13:09:48]OFD Sender: No OFD packet to send [13:09:53]OFD Sender: No OFD packet to send [13:09:58]OFD Sender: No OFD packet to send [13:10:03]OFD Sender: No OFD packet to send [13:10:08]OFD Sender: No OFD packet to send [13:10:13]OFD Sender: No OFD packet to send [13:10:18]OFD Sender: No OFD packet to send [13:10:23]OFD Sender: No OFD packet to send [13:10:28]OFD Sender: No OFD packet to send [13:10:33]OFD Sender: No OFD packet to send [13:10:38]OFD Sender: No OFD packet to send [13:10:43]OFD Sender: No OFD packet to send [13:10:48]OFD Sender: No OFD packet to send [13:10:53]OFD Sender: No OFD packet to send [13:10:58]OFD Sender: No OFD packet to send [13:11:03]OFD Sender: No OFD packet to send [13:11:08]OFD Sender: No OFD packet to send [13:11:13]OFD Sender: No OFD packet to send [13:11:18]OFD Sender: No OFD packet to send [13:11:23]OFD Sender: No OFD packet to send [13:11:28]OFD Sender: No OFD packet to send [13:11:33]OFD Sender: No OFD packet to send [13:11:38]OFD Sender: No OFD packet to send [13:11:43]OFD Sender: No OFD packet to send [13:11:48]OFD Sender: No OFD packet to send [13:11:53]OFD Sender: No OFD packet to send [13:11:58]OFD Sender: No OFD packet to send [13:12:03]OFD Sender: No OFD packet to send [13:12:08]OFD Sender: No OFD packet to send [13:12:13]OFD Sender: No OFD packet to send [13:12:18]OFD Sender: No OFD packet to send [13:12:23]OFD Sender: No OFD packet to send [13:12:28]OFD Sender: No OFD packet to send [13:12:33]OFD Sender: No OFD packet to send [13:12:38]OFD Sender: No OFD packet to send [13:12:43]OFD Sender: No OFD packet to send [13:12:48]OFD Sender: No OFD packet to send [13:12:53]OFD Sender: No OFD packet to send [13:12:58]OFD Sender: No OFD packet to send [13:13:03]OFD Sender: No OFD packet to send [13:13:08]OFD Sender: No OFD packet to send [13:13:13]OFD Sender: No OFD packet to send [13:13:18]OFD Sender: No OFD packet to send [13:13:23]OFD Sender: No OFD packet to send [13:13:28]OFD Sender: No OFD packet to send [13:13:33]OFD Sender: No OFD packet to send [13:13:38]OFD Sender: No OFD packet to send [13:13:43]OFD Sender: No OFD packet to send [13:13:48]OFD Sender: No OFD packet to send [13:13:53]OFD Sender: No OFD packet to send [13:13:58]OFD Sender: No OFD packet to send [13:14:03]OFD Sender: No OFD packet to send [13:14:08]OFD Sender: No OFD packet to send [13:14:13]OFD Sender: No OFD packet to send [13:14:18]OFD Sender: No OFD packet to send [13:14:23]OFD Sender: No OFD packet to send [13:14:28]OFD Sender: No OFD packet to send [13:14:33]OFD Sender: No OFD packet to send [13:14:38]OFD Sender: No OFD packet to send [13:14:43]OFD Sender: No OFD packet to send [13:14:48]OFD Sender: No OFD packet to send [13:14:53]OFD Sender: No OFD packet to send [13:14:58]OFD Sender: No OFD packet to send [13:15:03]OFD Sender: No OFD packet to send [13:15:08]OFD Sender: No OFD packet to send [13:15:13]OFD Sender: No OFD packet to send [13:15:18]OFD Sender: No OFD packet to send [13:15:23]OFD Sender: No OFD packet to send [13:15:28]OFD Sender: No OFD packet to send [13:15:33]OFD Sender: No OFD packet to send [13:15:38]OFD Sender: No OFD packet to send [13:15:43]OFD Sender: No OFD packet to send [13:15:48]OFD Sender: No OFD packet to send [13:15:53]OFD Sender: No OFD packet to send [13:15:58]OFD Sender: No OFD packet to send [13:16:03]OFD Sender: No OFD packet to send [13:16:08]OFD Sender: No OFD packet to send [13:16:13]OFD Sender: No OFD packet to send [13:16:18]OFD Sender: No OFD packet to send [13:16:23]OFD Sender: No OFD packet to send [13:16:28]OFD Sender: No OFD packet to send [13:16:33]OFD Sender: No OFD packet to send [13:16:38]OFD Sender: No OFD packet to send [13:16:43]OFD Sender: No OFD packet to send [13:16:48]OFD Sender: No OFD packet to send [13:16:53]OFD Sender: No OFD packet to send [13:16:58]OFD Sender: No OFD packet to send [13:17:03]OFD Sender: No OFD packet to send [13:17:08]OFD Sender: No OFD packet to send [13:17:13]OFD Sender: No OFD packet to send [13:17:18]OFD Sender: No OFD packet to send [13:17:23]OFD Sender: No OFD packet to send [13:17:28]OFD Sender: No OFD packet to send [13:17:33]OFD Sender: No OFD packet to send [13:17:38]OFD Sender: No OFD packet to send [13:17:43]OFD Sender: No OFD packet to send [13:17:48]OFD Sender: No OFD packet to send [13:17:53]OFD Sender: No OFD packet to send [13:17:59]OFD Sender: No OFD packet to send [13:18:04]OFD Sender: No OFD packet to send [13:18:09]OFD Sender: No OFD packet to send [13:18:14]OFD Sender: No OFD packet to send [13:18:19]OFD Sender: No OFD packet to send [13:18:24]OFD Sender: No OFD packet to send [13:18:29]OFD Sender: No OFD packet to send [13:18:34]OFD Sender: No OFD packet to send [13:18:39]OFD Sender: No OFD packet to send [13:18:44]OFD Sender: No OFD packet to send [13:18:49]OFD Sender: No OFD packet to send [13:18:54]OFD Sender: No OFD packet to send [13:18:59]OFD Sender: No OFD packet to send [13:19:04]OFD Sender: No OFD packet to send [13:19:09]OFD Sender: No OFD packet to send [13:19:14]OFD Sender: No OFD packet to send [13:19:19]OFD Sender: No OFD packet to send [13:19:24]OFD Sender: No OFD packet to send [13:19:29]OFD Sender: No OFD packet to send [13:19:33]accept exits with 7 [13:19:33]New connection [13:19:33]New thread 3067374948 created [13:19:33]Thread 3067518308 joined [13:19:33]Waiting for new connection... [13:19:33] Sock 7.Parse request [13:19:33]Sock 7.Check first char [13:19:33]Sock 7.First char is OK [13:19:33]request: POST /json_proto HTTP/1.0 [13:19:33]Method: POST [13:19:33]URL: /json_proto [13:19:33]Method is POST - this is cgi request [13:19:33]url: /json_proto [13:19:33]query_string will be loaded in cgi processing [13:19:33]execute_cgi json_proto POST (null) [13:19:33]execute_cgi path=json_proto method=POST [13:19:33]POST find Content-Length [13:19:33]Host: 172.17.60.69:8080 [13:19:33]Content-Length: 909 [13:19:33]Content-Type: application/json [13:19:33] [13:19:33]POST finish read [13:19:33]Found Content-Length = 909 [13:19:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73395", "tax_sys" : 0, "items" : [ { "code": "4700000480302", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u043C\u0430\u043D\u0433\u043E-\u043A\u043B\u0443\u0431 0.45 \u0436/\u0431", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:19:33]execute_script... [13:19:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73395", "tax_sys" : 0, "items" : [ { "code": "4700000480302", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u043C\u0430\u043D\u0433\u043E-\u043A\u043B\u0443\u0431 0.45 \u0436/\u0431", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:19:33]POST & json_proto [13:19:33]process_json_proto [13:19:33]json parsed OK: [13:19:33]protocol is kg_v1.0 [13:19:33]action value=close_receipt [13:19:33]process_action close_receipt [13:19:33]cmd_close_receipt [13:19:33]MH_GetDate [13:19:33]Write to MH i2c: F0 00 00 2C 13 2E [13:19:33]Write i2c OK [13:19:33]MH_I2C_Read... [13:19:33]Read from MH i2c: F0 [13:19:33]MH_I2C_Read... [13:19:33]Read from MH i2c: F0 09 00 [13:19:33]MH_I2C_Read... [13:19:33]Read from MH i2c: F0 09 00 2C 13 00 E8 C2 5D 66 6A 96 4A 66 54 [13:19:33]GetLastDocTimeStamp 1717419572 [13:19:33]current date 1717420776 [13:19:33]FM_GetShiftState [13:19:33]SAM_PROTO_GetShiftState [13:19:33]wFMCommunicate request_size=4 [13:19:33]MH_SAM_APDU [13:19:33]CAPDU: 80 13 01 00 [13:19:33]Write to MH i2c: E2 08 00 2D 13 80 13 01 00 00 00 00 00 BD [13:19:33]Write i2c OK [13:19:33]MH_I2C_Read... [13:19:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:19:33]Read from MH i2c: E2 [13:19:33]MH_I2C_Read... [13:19:33]Read from MH i2c: E2 0E 00 [13:19:33]MH_I2C_Read... [13:19:33]Read from MH i2c: E2 0E 00 2D 13 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 89 [13:19:33]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [13:19:33]wFMCommunicate OK [13:19:33]SAM_PROTO_GetShiftState done [13:19:33]FM_GetShiftState done [13:19:33]opened in 1717373173 [13:19:33]opened+sec_in_day 1717459573 [13:19:33]quantity*price = 9500 [13:19:33]sum+1 = 9501 [13:19:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 0.00 Безнал.: 95.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 71 03.06.2024 13:19 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000875074 ФД: 63813 ФПД: 160606552719777 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T131936&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63813&fm=160606552719777&tin=02508201610067®Number=0000000000092737&sum=9500 0 [13:19:35]StoreToDocumentArchive [13:19:35]shift 373 fd 63813 [13:19:35]save to /storage/0373/doc_00063813 [13:19:35]save last doc name /storage/0373/doc_00063813 to /storage/kkm_last_doc_name [13:19:35]save OK [13:19:35]Clear old archive folders... [13:19:35]ProcessDocumentItem done err = 0, tmpTLVsize=304 [13:19:35]tlvbuf is B6F32090 [13:19:35]SAM_PROTO_ClearQueue [13:19:35]wFMCommunicate request_size=4 [13:19:35]MH_SAM_APDU [13:19:35]CAPDU: 80 09 00 00 [13:19:35]Write to MH i2c: E2 08 00 3A 13 80 09 00 00 00 00 00 00 BF [13:19:35]Write i2c OK [13:19:35]MH_I2C_Read... [13:19:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:19:35]Read from MH i2c: E2 [13:19:35]MH_I2C_Read... [13:19:35]Read from MH i2c: E2 03 00 [13:19:35]MH_I2C_Read... [13:19:35]Read from MH i2c: E2 03 00 3A 13 00 90 00 C1 [13:19:35]RAPDU: 90 00 [13:19:35]wFMCommunicate OK [13:19:35]SAM_PROTO_ClearQueue done [13:19:35]KKMCreateOFDPacket [13:19:35]OFDProtocolAddRootSTLVToBuf [13:19:35]FM_MakeSignedData [13:19:35]FM_MakeSignedData [13:19:35]SAM_PROTO_SignData [13:19:35]wFMCommunicate request_size=4 [13:19:35]MH_SAM_APDU [13:19:35]CAPDU: 80 0D 01 02 [13:19:35]Write to MH i2c: E2 08 00 3B 13 80 0D 01 02 00 00 00 00 C7 [13:19:35]Write i2c OK [13:19:35]MH_I2C_Read... [13:19:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:19:35]Read from MH i2c: E2 [13:19:35]MH_I2C_Read... [13:19:35]Read from MH i2c: E2 03 00 [13:19:35]MH_I2C_Read... [13:19:35]Read from MH i2c: E2 03 00 3B 13 00 90 00 C2 [13:19:35]RAPDU: 90 00 [13:19:35]wFMCommunicate OK [13:19:35]wFMCommunicate request_size=255 [13:19:35]MH_SAM_APDU [13:19:35]CAPDU: 80 0D 02 02 FA 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 30 32 06 04 3E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BB D1 83 D0 B1 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C 25 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 E8 C2 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 [13:19:35]Write to MH i2c: E2 02 01 3C 13 80 0D 02 02 FA 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 30 32 06 04 3E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BB D1 83 D0 B1 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C 25 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 E8 C2 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 00 00 37 [13:19:35]Write i2c OK [13:19:35]MH_I2C_Read... [13:19:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:19:35]Read from MH i2c: E2 [13:19:35]MH_I2C_Read... [13:19:35]Read from MH i2c: E2 03 00 [13:19:35]MH_I2C_Read... [13:19:35]Read from MH i2c: E2 03 00 3C 13 00 90 00 C3 [13:19:35]RAPDU: 90 00 [13:19:35]wFMCommunicate OK [13:19:35]wFMCommunicate request_size=63 [13:19:35]MH_SAM_APDU [13:19:35]CAPDU: 80 0D 02 02 3A 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 45 F9 00 00 35 04 06 00 92 12 20 86 01 A1 [13:19:35]Write to MH i2c: E2 42 00 3D 13 80 0D 02 02 3A 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 45 F9 00 00 35 04 06 00 92 12 20 86 01 A1 00 00 40 [13:19:35]Write i2c OK [13:19:35]MH_I2C_Read... [13:19:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:19:35]Read from MH i2c: E2 [13:19:35]MH_I2C_Read... [13:19:35]Read from MH i2c: E2 03 00 [13:19:35]MH_I2C_Read... [13:19:35]Read from MH i2c: E2 03 00 3D 13 00 90 00 C4 [13:19:35]RAPDU: 90 00 [13:19:35]wFMCommunicate OK [13:19:35]wFMCommunicate request_size=4 [13:19:35]MH_SAM_APDU [13:19:35]CAPDU: 80 0D 03 02 [13:19:35]Write to MH i2c: E2 08 00 3E 13 80 0D 03 02 00 00 00 00 CC [13:19:35]Write i2c OK [13:19:35]MH_I2C_Read... [13:19:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:19:35]Read from MH i2c: E2 [13:19:35]MH_I2C_Read... [13:19:35]Read from MH i2c: E2 0B 00 [13:19:35]MH_I2C_Read... [13:19:35]Read from MH i2c: E2 0B 00 3E 13 00 28 CB 31 82 D7 D0 10 FA 90 00 24 [13:19:35]RAPDU: 28 CB 31 82 D7 D0 10 FA 90 00 [13:19:35]wFMCommunicate OK [13:19:35]SAM_PROTO_SignData done [13:19:35]FM_MakeSignedData done [13:19:35]CreateOFDProtocolMessage [13:19:35]wFMCommunicate request_size=4 [13:19:35]MH_SAM_APDU [13:19:35]CAPDU: 80 11 00 00 [13:19:35]Write to MH i2c: E2 08 00 3F 13 80 11 00 00 00 00 00 00 CC [13:19:35]Write i2c OK [13:19:35]MH_I2C_Read... [13:19:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:19:35]Read from MH i2c: E2 [13:19:35]MH_I2C_Read... [13:19:35]Read from MH i2c: E2 17 00 [13:19:35]MH_I2C_Read... [13:19:35]Read from MH i2c: E2 17 00 3F 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 1E [13:19:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [13:19:35]wFMCommunicate OK [13:19:35]CreateOFDProtocolMessage done [13:19:35]OFDSenderStorePacket 63813 [13:19:35]StoreOFDPacket docnum=63813 [13:19:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 44 01 00 00 42 C3 3C 01 D8 7C 5A 03 01 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 30 32 06 04 3E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BB D1 83 D0 B1 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C 25 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 E8 C2 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 45 F9 00 00 35 04 06 00 92 12 20 86 01 A1 28 CB 31 82 D7 D0 10 FA [13:19:35]CheckFolder [13:19:35]dirname=/storage/ofd_packets [13:19:35]CheckFolder done [13:19:35]ProducePacketName [13:19:35]name=ofd_packets/00063813 [13:19:35]NVStorageSaveData ofd_packets/00063813 [13:19:35]File name is /storage/ofd_packets/00063813 [13:19:35]Write 354 bytes [13:19:35]NVStorageSaveData done [13:19:35]OFDSenderStorePacket done [13:19:35]KKMCreateOFDPacket done [13:19:35]NVStorageSaveData kkm_last_timestamp [13:19:35]File name is /storage/kkm_last_timestamp [13:19:35]Write 4 bytes [13:19:35]NVStorageSaveData done [13:19:35]ExternCall_PrintAddStr [13:19:35]wPrintStart [13:19:35]Write to MH i2c: 01 00 00 40 13 53 [13:19:35]Write i2c OK [13:19:35]MH_I2C_Read... [13:19:35]Read from MH i2c: 01 [13:19:35]MH_I2C_Read... [13:19:35]Read from MH i2c: 01 07 00 [13:19:35]MH_I2C_Read... [13:19:35]Read from MH i2c: 01 07 00 40 13 00 00 00 00 00 FF 0F 68 [13:19:35]RasterBufferAndPrint [13:19:35]line Счет N : (3)73395 [13:19:35]line ИНН: 02508201610067 [13:19:35]line Контрольно-Кассовый Чек [13:19:35]line ПРОДАЖА [13:19:35]line Товар: 4700000480302 [13:19:35]line Напиток энерг Nitro манго-клуб 0.45 ж/б [13:19:35]line 1.000 * 95.00 [13:19:35]line = 95.00 [13:19:35]line НДС 12% НСП 1% [13:19:35]line > о реализуемом товаре [13:19:35]line ИТОГО: 95.00 [13:19:35]line НСП 1% : 0.84 [13:19:35]line НДС 12% : 10.09 [13:19:35]line Наличными: 0.00 [13:19:35]line Безнал.: 95.00 [13:19:35]line Место: АЗС № 117 "Партнер Нефть" [13:19:35]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [13:19:35]line СНО: Общий режим [13:19:35]line Чек 71 03.06.2024 13:19 [13:19:35]line Смена: 373 ФФД: 1.0 [13:19:35]line ЗНМ: 0300000031 [13:19:35]line РНМ: 0000000000092737 [13:19:35]line Версия ККМ: 001 [13:19:35]line Платежная система: АКБ Кыргызстан [13:19:35]line ФМ: 0000000000875074 [13:19:35]line ФД: 63813 [13:19:35]line ФПД: 160606552719777 [13:19:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T131936&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63813&fm=160606552719777&tin=02508201610067®Number=0000000000092737&sum=9500 [13:19:35]line 0 [13:19:35]OFD Sender: Processing packet 63813 [packets to send 14, broken 13] [13:19:35]ProducePacketName [13:19:35]name=ofd_packets/00063813 [13:19:35]OFD Sender: To server: pG, [13:19:35]CommunicateWithHost lk.salyk.kg:30040 [13:19:35]ConnectInit lk.salyk.kg [13:19:35]written 0, free lines is 4095 [13:19:35]Connected sock=10 [13:19:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 44 01 00 00 42 C3 3C 01 D8 7C 5A 03 01 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 30 32 06 04 3E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BB D1 83 D0 B1 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C 25 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 E8 C2 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 45 F9 00 00 35 04 06 00 92 12 20 86 01 A1 28 CB 31 82 D7 D0 10 FA [13:19:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 73 23 47 00 A3 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 35 30 37 34 10 04 04 00 45 F9 00 00 F4 03 04 00 B9 6E 5D 66 B6 04 01 00 00 D0 55 3D B5 B6 51 1A F7 [13:19:36]CommunicateWithHost err = 0 [13:19:36]CheckOFDResponse [13:19:36]1017 (14) - 77093643461234 [13:19:36]1041 (16) - 0000000000875074 [13:19:36]1040 (4) - 63813 [13:19:36]1012 (4) - 03.06.2024 07:20 [13:19:36]1206 (1) - 0 [13:19:36]OFD Sender: Remove packet 63813 [13:19:36]ProducePacketName [13:19:36]name=ofd_packets/00063813 [13:19:36]NVStorageDeleteData [13:19:36]Write to MH i2c: 01 00 00 6B 13 7E [13:19:36]Write i2c OK [13:19:36]MH_I2C_Read... [13:19:36]Read from MH i2c: 01 [13:19:36]MH_I2C_Read... [13:19:36]Read from MH i2c: 01 07 00 [13:19:36]MH_I2C_Read... [13:19:36]Read from MH i2c: 01 07 00 6B 13 00 00 00 00 00 C9 0C 5A [13:19:36]RasterBufferAndPrint [13:19:36]line [13:19:36]line [13:19:36]line [13:19:36]line [13:19:36]line [13:19:36]written 0, free lines is 3280 [13:19:36]MH_Cut [13:19:36]Write to MH i2c: D1 01 00 72 13 01 57 [13:19:36]Write i2c OK [13:19:36]MH_I2C_Read... [13:19:36]Read from MH i2c: D1 [13:19:36]MH_I2C_Read... [13:19:36]Read from MH i2c: D1 01 00 [13:19:36]MH_I2C_Read... [13:19:36]Read from MH i2c: D1 01 00 72 13 00 56 [13:19:36]Write to MH i2c: 01 00 00 73 13 86 [13:19:36]Write i2c OK [13:19:36]MH_I2C_Read... [13:19:36]OFD Sender: No OFD packet to send [13:19:37]*** Cut start [13:19:37]*** Partial cut [13:19:37]*** CUTSNS_PIN = 1 [13:19:37]*** CUTSNS_PIN = 0 [13:19:37]*** Brake cut motor [13:19:37]Read from MH i2c: 01 [13:19:37]MH_I2C_Read... [13:19:37]*** Stop cut motor [13:19:37]*** Cut end [13:19:37]Read from MH i2c: 01 07 00 [13:19:37]MH_I2C_Read... [13:19:37]Read from MH i2c: 01 07 00 73 13 00 00 00 00 00 FF 0F 9B [13:19:37]process_action close_receipt done [13:19:37]requested_data is exist [13:19:37]produce_requested_data [13:19:37]requested_item fm.sn is exist - process it [13:19:37]wFMCommunicate request_size=4 [13:19:37]MH_SAM_APDU [13:19:37]CAPDU: 80 11 00 00 [13:19:37]Write to MH i2c: E2 08 00 74 13 80 11 00 00 00 00 00 00 01 [13:19:37]Write i2c OK [13:19:37]MH_I2C_Read... [13:19:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:19:37]Read from MH i2c: E2 [13:19:37]MH_I2C_Read... [13:19:37]Read from MH i2c: E2 17 00 [13:19:37]MH_I2C_Read... [13:19:37]Read from MH i2c: E2 17 00 74 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 53 [13:19:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [13:19:37]wFMCommunicate OK [13:19:37]requested_item fd.num is exist - process it [13:19:37]SAM_PROTO_GetFieldsCounters [13:19:37]wFMCommunicate request_size=4 [13:19:37]MH_SAM_APDU [13:19:37]CAPDU: 80 13 00 00 [13:19:37]Write to MH i2c: E2 08 00 75 13 80 13 00 00 00 00 00 00 04 [13:19:37]Write i2c OK [13:19:37]MH_I2C_Read... [13:19:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:19:38]Read from MH i2c: E2 [13:19:38]MH_I2C_Read... [13:19:38]Read from MH i2c: E2 62 00 [13:19:38]MH_I2C_Read... [13:19:38]Read from MH i2c: E2 62 00 75 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 45 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 B0 [13:19: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 45 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:19:38]wFMCommunicate OK [13:19:38]SAM_PROTO_GetFieldsCounters done [13:19:38]requested_item shift.num is exist - process it [13:19:38]requested_item shift.opened is exist - process it [13:19:38]req_shift_opened [13:19:38]FM_GetShiftState [13:19:38]SAM_PROTO_GetShiftState [13:19:38]wFMCommunicate request_size=4 [13:19:38]MH_SAM_APDU [13:19:38]CAPDU: 80 13 01 00 [13:19:38]Write to MH i2c: E2 08 00 76 13 80 13 01 00 00 00 00 00 06 [13:19:38]Write i2c OK [13:19:38]MH_I2C_Read... [13:19:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:19:38]Read from MH i2c: E2 [13:19:38]MH_I2C_Read... [13:19:38]Read from MH i2c: E2 0E 00 [13:19:38]MH_I2C_Read... [13:19:38]Read from MH i2c: E2 0E 00 76 13 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 D2 [13:19:38]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [13:19:38]wFMCommunicate OK [13:19:38]SAM_PROTO_GetShiftState done [13:19:38]FM_GetShiftState done [13:19:38]req_shift_opened done [13:19:38]requested_item shift.open_date is exist - process it [13:19:38]req_shift_open_date [13:19:38]req_shift_open_date done [13:19:38]produce_requested_data done [13:19:38]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63813,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [13:19:38]process_action_free close_receipt [13:19:38]json_value_free [13:19:38]json_value_free done [13:19:38]process_json_proto returns [13:19:38]Send response to host [13:19:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63813,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [13:19:38]free response buf [13:19:38]execute_script done [13:19:38]execute_script returns [13:19:38]free content buf [13:19:38]Sock 7.Close socket [13:19:38]Sock 7.Thread stoped [13:19:41]OFD Sender: No OFD packet to send [13:19:46]OFD Sender: No OFD packet to send [13:19:51]OFD Sender: No OFD packet to send [13:19:56]OFD Sender: No OFD packet to send [13:20:01]OFD Sender: No OFD packet to send [13:20:06]OFD Sender: No OFD packet to send [13:20:11]OFD Sender: No OFD packet to send [13:20:16]OFD Sender: No OFD packet to send [13:20:21]OFD Sender: No OFD packet to send [13:20:26]OFD Sender: No OFD packet to send [13:20:31]OFD Sender: No OFD packet to send [13:20:36]OFD Sender: No OFD packet to send [13:20:41]OFD Sender: No OFD packet to send [13:20:46]OFD Sender: No OFD packet to send [13:20:51]OFD Sender: No OFD packet to send [13:20:56]OFD Sender: No OFD packet to send [13:21:01]OFD Sender: No OFD packet to send [13:21:06]OFD Sender: No OFD packet to send [13:21:11]OFD Sender: No OFD packet to send [13:21:16]OFD Sender: No OFD packet to send [13:21:21]OFD Sender: No OFD packet to send [13:21:26]OFD Sender: No OFD packet to send [13:21:31]OFD Sender: No OFD packet to send [13:21:36]OFD Sender: No OFD packet to send [13: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]OFD Sender: No OFD packet to send [13:23:16]OFD Sender: No OFD packet to send [13:23:21]OFD Sender: No OFD packet to send [13:23:26]OFD Sender: No OFD packet to send [13:23:31]OFD Sender: No OFD packet to send [13:23:36]OFD Sender: No OFD packet to send [13:23:41]OFD Sender: No OFD packet to send [13:23:46]OFD Sender: No OFD packet to send [13:23:51]OFD Sender: No OFD packet to send [13:23:56]OFD Sender: No OFD packet to send [13:24:01]OFD Sender: No OFD packet to send [13:24:06]OFD Sender: No OFD packet to send [13:24:11]OFD Sender: No OFD packet to send [13:24:16]OFD Sender: No OFD packet to send [13:24:21]OFD Sender: No OFD packet to send [13:24:26]OFD Sender: No OFD packet to send [13:24:31]OFD Sender: No OFD packet to send [13:24:36]OFD Sender: No OFD packet to send [13:24:41]OFD Sender: No OFD packet to send [13:24:46]OFD Sender: No OFD packet to send [13:24:51]OFD Sender: No OFD packet to send [13:24:56]OFD Sender: No OFD packet to send [13:25:01]OFD Sender: No OFD packet to send [13:25:06]OFD Sender: No OFD packet to send [13:25:11]OFD Sender: No OFD packet to send [13:25:16]OFD Sender: No OFD packet to send [13:25:21]OFD Sender: No OFD packet to send [13:25:26]OFD Sender: No OFD packet to send [13:25:31]OFD Sender: No OFD packet to send [13:25:37]OFD Sender: No OFD packet to send [13:25:42]OFD Sender: No OFD packet to send [13:25:47]OFD Sender: No OFD packet to send [13:25:52]OFD Sender: No OFD packet to send [13:25:57]OFD Sender: No OFD packet to send [13:26:02]OFD Sender: No OFD packet to send [13:26:07]OFD Sender: No OFD packet to send [13:26:12]OFD Sender: No OFD packet to send [13:26:17]OFD Sender: No OFD packet to send [13:26:22]OFD Sender: No OFD packet to send [13:26:27]OFD Sender: No OFD packet to send [13:26:32]OFD Sender: No OFD packet to send [13:26:37]OFD Sender: No OFD packet to send [13:26:42]OFD Sender: No OFD packet to send [13:26:47]OFD Sender: No OFD packet to send [13:26:52]OFD Sender: No OFD packet to send [13:26:57]OFD Sender: No OFD packet to send [13:27:02]OFD Sender: No OFD packet to send [13:27:07]OFD Sender: No OFD packet to send [13:27:12]OFD Sender: No OFD packet to send [13:27:17]OFD Sender: No OFD packet to send [13:27:22]OFD Sender: No OFD packet to send [13:27:27]OFD Sender: No OFD packet to send [13:27:32]OFD Sender: No OFD packet to send [13:27:37]OFD Sender: No OFD packet to send [13:27:42]OFD Sender: No OFD packet to send [13:27:47]OFD Sender: No OFD packet to send [13:27:52]OFD Sender: No OFD packet to send [13:27:57]OFD Sender: No OFD packet to send [13:28:02]OFD Sender: No OFD packet to send [13:28:07]OFD Sender: No OFD packet to send [13:28:12]OFD Sender: No OFD packet to send [13:28:17]OFD Sender: No OFD packet to send [13:28:22]OFD Sender: No OFD packet to send [13:28:27]OFD Sender: No OFD packet to send [13:28:32]OFD Sender: No OFD packet to send [13:28:37]OFD Sender: No OFD packet to send [13:28:42]OFD Sender: No OFD packet to send [13:28:47]OFD Sender: No OFD packet to send [13:28:52]OFD Sender: No OFD packet to send [13:28:57]OFD Sender: No OFD packet to send [13:29:02]OFD Sender: No OFD packet to send [13:29:07]OFD Sender: No OFD packet to send [13:29:12]OFD Sender: No OFD packet to send [13:29:17]OFD Sender: No OFD packet to send [13:29:22]OFD Sender: No OFD packet to send [13:29:27]OFD Sender: No OFD packet to send [13:29:32]OFD Sender: No OFD packet to send [13:29:37]OFD Sender: No OFD packet to send [13:29:42]OFD Sender: No OFD packet to send [13:29:47]OFD Sender: No OFD packet to send [13:29:52]OFD Sender: No OFD packet to send [13:29:57]OFD Sender: No OFD packet to send [13:30:02]OFD Sender: No OFD packet to send [13:30:07]OFD Sender: No OFD packet to send [13:30:12]OFD Sender: No OFD packet to send [13:30:17]OFD Sender: No OFD packet to send [13:30:22]OFD Sender: No OFD packet to send [13:30:27]OFD Sender: No OFD packet to send [13:30:32]OFD Sender: No OFD packet to send [13:30:37]OFD Sender: No OFD packet to send [13:30:42]OFD Sender: No OFD packet to send [13:30:47]OFD Sender: No OFD packet to send [13:30:52]OFD Sender: No OFD packet to send [13:30:57]OFD Sender: No OFD packet to send [13:31:02]OFD Sender: No OFD packet to send [13:31:07]OFD Sender: No OFD packet to send [13:31:12]OFD Sender: No OFD packet to send [13:31:17]OFD Sender: No OFD packet to send [13:31:22]OFD Sender: No OFD packet to send [13:31:27]OFD Sender: No OFD packet to send [13:31:32]OFD Sender: No OFD packet to send [13:31:37]OFD Sender: No OFD packet to send [13:31:42]OFD Sender: No OFD packet to send [13:31:47]OFD Sender: No OFD packet to send [13:31:52]OFD Sender: No OFD packet to send [13:31:57]OFD Sender: No OFD packet to send [13:32:02]OFD Sender: No OFD packet to send [13:32:07]OFD Sender: No OFD packet to send [13:32:12]OFD Sender: No OFD packet to send [13:32:17]OFD Sender: No OFD packet to send [13:32:22]OFD Sender: No OFD packet to send [13:32:27]OFD Sender: No OFD packet to send [13:32:32]OFD Sender: No OFD packet to send [13:32:37]OFD Sender: No OFD packet to send [13:32:42]OFD Sender: No OFD packet to send [13:32:47]OFD Sender: No OFD packet to send [13:32:52]OFD Sender: No OFD packet to send [13:32:57]OFD Sender: No OFD packet to send [13:33:02]OFD Sender: No OFD packet to send [13:33:07]OFD Sender: No OFD packet to send [13:33:12]OFD Sender: No OFD packet to send [13:33:17]OFD Sender: No OFD packet to send [13:33:22]OFD Sender: No OFD packet to send [13:33:27]OFD Sender: No OFD packet to send [13:33:32]OFD Sender: No OFD packet to send [13:33:37]OFD Sender: No OFD packet to send [13:33:42]OFD Sender: No OFD packet to send [13:33:47]OFD Sender: No OFD packet to send [13:33:52]OFD Sender: No OFD packet to send [13:33:57]OFD Sender: No OFD packet to send [13:34:02]OFD Sender: No OFD packet to send [13:34:07]OFD Sender: No OFD packet to send [13:34:12]OFD Sender: No OFD packet to send [13:34:17]OFD Sender: No OFD packet to send [13:34:22]OFD Sender: No OFD packet to send [13:34:27]OFD Sender: No OFD packet to send [13:34:32]OFD Sender: No OFD packet to send [13:34:37]OFD Sender: No OFD packet to send [13:34:42]OFD Sender: No OFD packet to send [13:34:47]OFD Sender: No OFD packet to send [13:34:52]OFD Sender: No OFD packet to send [13:34:57]OFD Sender: No OFD packet to send [13:35:02]OFD Sender: No OFD packet to send [13:35:07]OFD Sender: No OFD packet to send [13:35:12]OFD Sender: No OFD packet to send [13:35:17]OFD Sender: No OFD packet to send [13:35:22]OFD Sender: No OFD packet to send [13:35:27]OFD Sender: No OFD packet to send [13:35:32]OFD Sender: No OFD packet to send [13:35:37]OFD Sender: No OFD packet to send [13:35:42]OFD Sender: No OFD packet to send [13:35:47]OFD Sender: No OFD packet to send [13:35:52]OFD Sender: No OFD packet to send [13:35:57]OFD Sender: No OFD packet to send [13:36:02]OFD Sender: No OFD packet to send [13:36:07]OFD Sender: No OFD packet to send [13:36:12]OFD Sender: No OFD packet to send [13:36:17]OFD Sender: No OFD packet to send [13:36:21]accept exits with 9 [13:36:21]New connection [13:36:21]New thread 3067518308 created [13:36:21]Thread 3067374948 joined [13:36:21]Waiting for new connection... [13:36:21] Sock 9.Parse request [13:36:21]Sock 9.Check first char [13:36:21]Sock 9.First char is OK [13:36:21]request: POST /json_proto HTTP/1.0 [13:36:21]Method: POST [13:36:21]URL: /json_proto [13:36:21]Method is POST - this is cgi request [13:36:21]url: /json_proto [13:36:21]query_string will be loaded in cgi processing [13:36:21]execute_cgi json_proto POST (null) [13:36:21]execute_cgi path=json_proto method=POST [13:36:21]POST find Content-Length [13:36:21]Host: 172.17.60.69:8080 [13:36:21]Content-Length: 1927 [13:36:21]Content-Type: application/json [13:36:21] [13:36:21]POST finish read [13:36:21]Found Content-Length = 1927 [13:36:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73396", "tax_sys" : 0, "items" : [ { "code": "4870202521216", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u0437\u0435\u043B.\u043B\u0438\u043C\u043E\u043D (\u043D\u043E\u0432\u044B\u0439)", "price" : 113.00, "quantity" : 1.000, "sum" : 113.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 3.000, "sum" : 345.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4680036914937", "name": "Gorilla \u044D\u043D \u043D\u0430\u043F 0,275\u043B", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4603290004879", "name": "\u041F\u0435\u0447.\u0441\u0430\u0445.FORSITE \u0421\u044D\u043D\u0434.\u043A\u043E\u043A\u043E\u0441.\u0432\u043A", "price" : 93.00, "quantity" : 1.000, "sum" : 93.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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 691.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:36:21]execute_script... [13:36:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73396", "tax_sys" : 0, "items" : [ { "code": "4870202521216", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u0437\u0435\u043B.\u043B\u0438\u043C\u043E\u043D (\u043D\u043E\u0432\u044B\u0439)", "price" : 113.00, "quantity" : 1.000, "sum" : 113.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 3.000, "sum" : 345.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4680036914937", "name": "Gorilla \u044D\u043D \u043D\u0430\u043F 0,275\u043B", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4603290004879", "name": "\u041F\u0435\u0447.\u0441\u0430\u0445.FORSITE \u0421\u044D\u043D\u0434.\u043A\u043E\u043A\u043E\u0441.\u0432\u043A", "price" : 93.00, "quantity" : 1.000, "sum" : 93.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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 691.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:36:22]POST & json_proto [13:36:22]process_json_proto [13:36:22]json parsed OK: [13:36:22]protocol is kg_v1.0 [13:36:22]action value=close_receipt [13:36:22]process_action close_receipt [13:36:22]cmd_close_receipt [13:36:22]MH_GetDate [13:36:22]Write to MH i2c: F0 00 00 77 13 79 [13:36:22]Write i2c OK [13:36:22]MH_I2C_Read... [13:36:22]Read from MH i2c: F0 [13:36:22]MH_I2C_Read... [13:36:22]Read from MH i2c: F0 09 00 [13:36:22]MH_I2C_Read... [13:36:22]Read from MH i2c: F0 09 00 77 13 00 D8 C6 5D 66 6A 96 4A 66 93 [13:36:22]GetLastDocTimeStamp 1717420776 [13:36:22]current date 1717421784 [13:36:22]FM_GetShiftState [13:36:22]SAM_PROTO_GetShiftState [13:36:22]wFMCommunicate request_size=4 [13:36:22]MH_SAM_APDU [13:36:22]CAPDU: 80 13 01 00 [13:36:22]Write to MH i2c: E2 08 00 78 13 80 13 01 00 00 00 00 00 08 [13:36:22]Write i2c OK [13:36:22]MH_I2C_Read... [13:36:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:36:22]Read from MH i2c: E2 [13:36:22]MH_I2C_Read... [13:36:22]Read from MH i2c: E2 0E 00 [13:36:22]MH_I2C_Read... [13:36:22]Read from MH i2c: E2 0E 00 78 13 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 D4 [13:36:22]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [13:36:22]wFMCommunicate OK [13:36:22]SAM_PROTO_GetShiftState done [13:36:22]FM_GetShiftState done [13:36:22]opened in 1717373173 [13:36:22]opened+sec_in_day 1717459573 [13:36:22]quantity*price = 11300 [13:36:22]sum+1 = 11301 [13:36:22]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160358 Вода Легенда 1л 1.000 * 50.00 = 50.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000036210013 Кофе Капучино (GABB TRADE) 3.000 * 115.00 = 345.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4680036914937 Gorilla эн нап 0,275л 1.000 * 90.00 = 90.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4603290004879 Печ.сах.FORSITE Сэнд.кокос.вк 1.000 * 93.00 = 93.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 691.00 НСП 1% : 6.11 НДС 12% : 73.39 Наличными: 0.00 Безнал.: 691.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 72 03.06.2024 13:36 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000875074 ФД: 63814 ФПД: 150050716196480 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T133624&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63814&fm=150050716196480&tin=02508201610067®Number=0000000000092737&sum=69100 0 [13:36:23]StoreToDocumentArchive [13:36:23]shift 373 fd 63814 [13:36:23]save to /storage/0373/doc_00063814 [13:36:23]save last doc name /storage/0373/doc_00063814 to /storage/kkm_last_doc_name [13:36:23]save OK [13:36:23]Clear old archive folders... [13:36:23]ProcessDocumentItem done err = 0, tmpTLVsize=729 [13:36:23]tlvbuf is 00D64210 [13:36:23]SAM_PROTO_ClearQueue [13:36:23]wFMCommunicate request_size=4 [13:36:23]MH_SAM_APDU [13:36:23]CAPDU: 80 09 00 00 [13:36:23]Write to MH i2c: E2 08 00 85 13 80 09 00 00 00 00 00 00 0A [13:36:23]Write i2c OK [13:36:23]MH_I2C_Read... [13:36:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:36:23]Read from MH i2c: E2 [13:36:23]MH_I2C_Read... [13:36:23]Read from MH i2c: E2 03 00 [13:36:23]MH_I2C_Read... [13:36:23]Read from MH i2c: E2 03 00 85 13 00 90 00 0C [13:36:23]RAPDU: 90 00 [13:36:23]wFMCommunicate OK [13:36:23]SAM_PROTO_ClearQueue done [13:36:23]KKMCreateOFDPacket [13:36:23]OFDProtocolAddRootSTLVToBuf [13:36:23]FM_MakeSignedData [13:36:23]FM_MakeSignedData [13:36:23]SAM_PROTO_SignData [13:36:23]wFMCommunicate request_size=4 [13:36:23]MH_SAM_APDU [13:36:23]CAPDU: 80 0D 01 02 [13:36:23]Write to MH i2c: E2 08 00 86 13 80 0D 01 02 00 00 00 00 12 [13:36:23]Write i2c OK [13:36:23]MH_I2C_Read... [13:36:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:36:23]Read from MH i2c: E2 [13:36:23]MH_I2C_Read... [13:36:23]Read from MH i2c: E2 03 00 [13:36:23]MH_I2C_Read... [13:36:23]Read from MH i2c: E2 03 00 86 13 00 90 00 0D [13:36:23]RAPDU: 90 00 [13:36:23]wFMCommunicate OK [13:36:23]wFMCommunicate request_size=255 [13:36:23]MH_SAM_APDU [13:36:23]CAPDU: 80 0D 02 02 FA 03 00 D9 02 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 31 36 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 B7 D0 B5 D0 BB 2E D0 BB D0 B8 D0 BC D0 BE D0 BD 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 [13:36:23]Write to MH i2c: E2 02 01 87 13 80 0D 02 02 FA 00 03 00 D9 02 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 31 36 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 B7 D0 B5 D0 BB 2E D0 BB D0 B8 D0 BC D0 BE D0 BD 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 00 00 46 [13:36:23]Write i2c OK [13:36:23]MH_I2C_Read... [13:36:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:36:23]Read from MH i2c: E2 [13:36:23]MH_I2C_Read... [13:36:23]Read from MH i2c: E2 03 00 [13:36:23]MH_I2C_Read... [13:36:23]Read from MH i2c: E2 03 00 87 13 00 90 00 0E [13:36:23]RAPDU: 90 00 [13:36:23]wFMCommunicate OK [13:36:23]wFMCommunicate request_size=255 [13:36:23]MH_SAM_APDU [13:36:23]CAPDU: 80 0D 02 02 FA 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 C4 86 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 36 38 30 30 33 36 39 31 34 39 33 37 06 04 1B 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 30 2C 32 37 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 72 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 37 39 06 04 2E 00 D0 9F D0 B5 D1 87 2E D1 81 D0 B0 D1 85 2E 46 4F 52 53 49 54 45 20 D0 A1 D1 [13:36:23]Write to MH i2c: E2 02 01 88 13 80 0D 02 02 FA 00 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 C4 86 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 36 38 30 30 33 36 39 31 34 39 33 37 06 04 1B 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 30 2C 32 37 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 72 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 37 39 06 04 2E 00 D0 9F D0 B5 D1 87 2E D1 81 D0 B0 D1 85 2E 46 4F 52 53 49 54 45 20 D0 A1 D1 00 00 BB [13:36:23]Write i2c OK [13:36:23]MH_I2C_Read... [13:36:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:36:24]Read from MH i2c: E2 [13:36:24]MH_I2C_Read... [13:36:24]Read from MH i2c: E2 03 00 [13:36:24]MH_I2C_Read... [13:36:24]Read from MH i2c: E2 03 00 88 13 00 90 00 0F [13:36:24]RAPDU: 90 00 [13:36:24]wFMCommunicate OK [13:36:24]wFMCommunicate request_size=238 [13:36:24]MH_SAM_APDU [13:36:24]CAPDU: 80 0D 02 02 E9 8D D0 BD D0 B4 2E D0 BA D0 BE D0 BA D0 BE D1 81 2E D0 B2 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 24 00 00 00 00 13 04 06 00 54 24 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 0D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AB 1C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EC 0D 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 D8 C6 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 46 F9 00 00 35 04 06 00 88 78 67 A3 1E 80 [13:36:24]Write to MH i2c: E2 F1 00 89 13 80 0D 02 02 E9 00 8D D0 BD D0 B4 2E D0 BA D0 BE D0 BA D0 BE D1 81 2E D0 B2 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 24 00 00 00 00 13 04 06 00 54 24 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 0D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AB 1C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EC 0D 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 D8 C6 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 46 F9 00 00 35 04 06 00 88 78 67 A3 1E 80 00 00 D4 [13:36:24]Write i2c OK [13:36:24]MH_I2C_Read... [13:36:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:36:24]Read from MH i2c: E2 [13:36:24]MH_I2C_Read... [13:36:24]Read from MH i2c: E2 03 00 [13:36:24]MH_I2C_Read... [13:36:24]Read from MH i2c: E2 03 00 89 13 00 90 00 10 [13:36:24]RAPDU: 90 00 [13:36:24]wFMCommunicate OK [13:36:24]wFMCommunicate request_size=4 [13:36:24]MH_SAM_APDU [13:36:24]CAPDU: 80 0D 03 02 [13:36:24]Write to MH i2c: E2 08 00 8A 13 80 0D 03 02 00 00 00 00 18 [13:36:24]Write i2c OK [13:36:24]MH_I2C_Read... [13:36:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:36:24]Read from MH i2c: E2 [13:36:24]MH_I2C_Read... [13:36:24]Read from MH i2c: E2 0B 00 [13:36:24]MH_I2C_Read... [13:36:24]Read from MH i2c: E2 0B 00 8A 13 00 E2 78 82 72 44 F8 F8 27 90 00 C2 [13:36:24]RAPDU: E2 78 82 72 44 F8 F8 27 90 00 [13:36:24]wFMCommunicate OK [13:36:24]SAM_PROTO_SignData done [13:36:24]FM_MakeSignedData done [13:36:24]CreateOFDProtocolMessage [13:36:24]wFMCommunicate request_size=4 [13:36:24]MH_SAM_APDU [13:36:24]CAPDU: 80 11 00 00 [13:36:24]Write to MH i2c: E2 08 00 8B 13 80 11 00 00 00 00 00 00 18 [13:36:24]Write i2c OK [13:36:24]MH_I2C_Read... [13:36:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:36:24]Read from MH i2c: E2 [13:36:24]MH_I2C_Read... [13:36:24]Read from MH i2c: E2 17 00 [13:36:24]MH_I2C_Read... [13:36:24]Read from MH i2c: E2 17 00 8B 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 6A [13:36:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [13:36:24]wFMCommunicate OK [13:36:24]CreateOFDProtocolMessage done [13:36:24]OFDSenderStorePacket 63814 [13:36:24]StoreOFDPacket docnum=63814 [13:36:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 ED 02 00 00 63 50 E5 02 08 AF 5A 03 01 00 03 00 D9 02 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 31 36 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 B7 D0 B5 D0 BB 2E D0 BB D0 B8 D0 BC D0 BE D0 BD 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 C4 86 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 36 38 30 30 33 36 39 31 34 39 33 37 06 04 1B 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 30 2C 32 37 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 72 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 37 39 06 04 2E 00 D0 9F D0 B5 D1 87 2E D1 81 D0 B0 D1 85 2E 46 4F 52 53 49 54 45 20 D0 A1 D1 8D D0 BD D0 B4 2E D0 BA D0 BE D0 BA D0 BE D1 81 2E D0 B2 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 24 00 00 00 00 13 04 06 00 54 24 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 0D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AB 1C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EC 0D 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 D8 C6 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 46 F9 00 00 35 04 06 00 88 78 67 A3 1E 80 E2 78 82 72 44 F8 F8 27 [13:36:24]CheckFolder [13:36:24]dirname=/storage/ofd_packets [13:36:24]CheckFolder done [13:36:24]ProducePacketName [13:36:24]name=ofd_packets/00063814 [13:36:24]NVStorageSaveData ofd_packets/00063814 [13:36:24]File name is /storage/ofd_packets/00063814 [13:36:24]Write 779 bytes [13:36:24]NVStorageSaveData done [13:36:24]OFDSenderStorePacket done [13:36:24]KKMCreateOFDPacket done [13:36:24]NVStorageSaveData kkm_last_timestamp [13:36:24]File name is /storage/kkm_last_timestamp [13:36:24]Write 4 bytes [13:36:24]NVStorageSaveData done [13:36:24]ExternCall_PrintAddStr [13:36:24]wPrintStart [13:36:24]Write to MH i2c: 01 00 00 8C 13 9F [13:36:24]Write i2c OK [13:36:24]MH_I2C_Read... [13:36:24]Read from MH i2c: 01 [13:36:24]MH_I2C_Read... [13:36:24]Read from MH i2c: 01 07 00 [13:36:24]MH_I2C_Read... [13:36:24]Read from MH i2c: 01 07 00 8C 13 00 00 00 00 00 FF 0F B4 [13:36:24]RasterBufferAndPrint [13:36:24]line Счет N : (3)73396 [13:36:24]line ИНН: 02508201610067 [13:36:24]line Контрольно-Кассовый Чек [13:36:24]line ПРОДАЖА [13:36:24]line Товар: 4870202521216 [13:36:24]line Напиток MAXI чай 1,2 зел.лимон (новый) [13:36:24]line 1.000 * 113.00 [13:36:24]line = 113.00 [13:36:24]line НДС 12% НСП 1% [13:36:24]line > о реализуемом товаре [13:36:24]line Товар: 4700000160358 [13:36:24]line Вода Легенда 1л [13:36:24]line 1.000 * 50.00 [13:36:24]line = 50.00 [13:36:24]line НДС 12% НСП 1% [13:36:24]line > о реализуемом товаре [13:36:24]line Товар: 2000036210013 [13:36:24]line Кофе Капучино (GABB TRADE) [13:36:24]line 3.000 * 115.00 [13:36:24]line = 345.00 [13:36:24]line НДС 12% НСП 1% [13:36:24]line > о реализуемом товаре [13:36:24]line Товар: 4680036914937 [13:36:24]line Gorilla эн нап 0,275л [13:36:24]line 1.000 * 90.00 [13:36:24]line = 90.00 [13:36:24]line НДС 12% НСП 1% [13:36:24]line > о реализуемом товаре [13:36:24]line Товар: 4603290004879 [13:36:24]line Печ.сах.FORSITE Сэнд.кокос.вк [13:36:24]line 1.000 * 93.00 [13:36:24]line = 93.00 [13:36:24]line НДС 12% НСП 1% [13:36:24]line > о реализуемом товаре [13:36:24]line ИТОГО: 691.00 [13:36:24]line НСП 1% : 6.11 [13:36:24]line НДС 12% : 73.39 [13:36:24]line Наличными: 0.00 [13:36:24]line Безнал.: 691.00 [13:36:24]line Место: АЗС № 117 "Партнер Нефть" [13:36:24]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [13:36:24]line СНО: Общий режим [13:36:24]line Чек 72 03.06.2024 13:36 [13:36:24]line Смена: 373 ФФД: 1.0 [13:36:24]line ЗНМ: 0300000031 [13:36:24]line РНМ: 0000000000092737 [13:36:24]line Версия ККМ: 001 [13:36:24]line Платежная система: АКБ Кыргызстан [13:36:24]line ФМ: 0000000000875074 [13:36:24]line ФД: 63814 [13:36:24]line ФПД: 150050716196480 [13:36:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T133624&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63814&fm=150050716196480&tin=02508201610067®Number=0000000000092737&sum=69100 [13:36:24]line 0 [13:36:24]OFD Sender: Processing packet 63814 [packets to send 14, broken 13] [13:36:24]ProducePacketName [13:36:24]name=ofd_packets/00063814 [13:36:24]OFD Sender: To server: pG, [13:36:24]CommunicateWithHost lk.salyk.kg:30040 [13:36:24]ConnectInit lk.salyk.kg [13:36:24]written 0, free lines is 4095 [13:36:24]Connected sock=10 [13:36:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 ED 02 00 00 63 50 E5 02 08 AF 5A 03 01 00 03 00 D9 02 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 31 36 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 B7 D0 B5 D0 BB 2E D0 BB D0 B8 D0 BC D0 BE D0 BD 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 C4 86 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 36 38 30 30 33 36 39 31 34 39 33 37 06 04 1B 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 30 2C 32 37 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 72 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 37 39 06 04 2E 00 D0 9F D0 B5 D1 87 2E D1 81 D0 B0 D1 85 2E 46 4F 52 53 49 54 45 20 D0 A1 D1 8D D0 BD D0 B4 2E D0 BA D0 BE D0 BA D0 BE D1 81 2E D0 B2 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 24 00 00 00 00 13 04 06 00 54 24 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 0D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AB 1C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EC 0D 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 D8 C6 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 46 F9 00 00 35 04 06 00 88 78 67 A3 1E 80 E2 78 82 72 44 F8 F8 27 [13:36:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 C8 02 47 00 56 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 35 30 37 34 10 04 04 00 46 F9 00 00 F4 03 04 00 AA 72 5D 66 B6 04 01 00 00 23 00 5F 81 13 2D D5 8B [13:36:25]CommunicateWithHost err = 0 [13:36:25]CheckOFDResponse [13:36:25]1017 (14) - 77093643461234 [13:36:25]1041 (16) - 0000000000875074 [13:36:25]1040 (4) - 63814 [13:36:25]1012 (4) - 03.06.2024 07:37 [13:36:25]1206 (1) - 0 [13:36:25]OFD Sender: Remove packet 63814 [13:36:25]ProducePacketName [13:36:25]name=ofd_packets/00063814 [13:36:25]NVStorageDeleteData [13:36:25]Write to MH i2c: 01 00 00 CF 13 E2 [13:36:25]Write i2c OK [13:36:25]MH_I2C_Read... [13:36:25]Read from MH i2c: 01 [13:36:25]MH_I2C_Read... [13:36:25]Read from MH i2c: 01 07 00 [13:36:25]MH_I2C_Read... [13:36:25]Read from MH i2c: 01 07 00 CF 13 00 00 00 00 00 99 0B 8D [13:36:25]RasterBufferAndPrint [13:36:25]line [13:36:25]line [13:36:25]line [13:36:25]line [13:36:25]line [13:36:25]written 0, free lines is 2980 [13:36:25]MH_Cut [13:36:25]Write to MH i2c: D1 01 00 D6 13 01 BB [13:36:25]Write i2c OK [13:36:25]MH_I2C_Read... [13:36:25]Read from MH i2c: D1 [13:36:25]MH_I2C_Read... [13:36:25]Read from MH i2c: D1 01 00 [13:36:25]MH_I2C_Read... [13:36:25]Read from MH i2c: D1 01 00 D6 13 00 BA [13:36:25]Write to MH i2c: 01 00 00 D7 13 EA [13:36:25]Write i2c OK [13:36:25]MH_I2C_Read... [13:36:25]OFD Sender: No OFD packet to send [13:36:26]*** Cut start [13:36:26]*** Partial cut [13:36:26]*** CUTSNS_PIN = 1 [13:36:26]*** CUTSNS_PIN = 0 [13:36:26]*** Brake cut motor [13:36:27]Read from MH i2c: 01 [13:36:27]MH_I2C_Read... [13:36:27]*** Stop cut motor [13:36:27]*** Cut end [13:36:27]Read from MH i2c: 01 07 00 [13:36:27]MH_I2C_Read... [13:36:27]Read from MH i2c: 01 07 00 D7 13 00 00 00 00 00 FF 0F FF [13:36:27]process_action close_receipt done [13:36:27]requested_data is exist [13:36:27]produce_requested_data [13:36:27]requested_item fm.sn is exist - process it [13:36:27]wFMCommunicate request_size=4 [13:36:27]MH_SAM_APDU [13:36:27]CAPDU: 80 11 00 00 [13:36:27]Write to MH i2c: E2 08 00 D8 13 80 11 00 00 00 00 00 00 65 [13:36:27]Write i2c OK [13:36:27]MH_I2C_Read... [13:36:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:36:27]Read from MH i2c: E2 [13:36:27]MH_I2C_Read... [13:36:27]Read from MH i2c: E2 17 00 [13:36:27]MH_I2C_Read... [13:36:27]Read from MH i2c: E2 17 00 D8 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 B7 [13:36:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [13:36:27]wFMCommunicate OK [13:36:27]requested_item fd.num is exist - process it [13:36:27]SAM_PROTO_GetFieldsCounters [13:36:27]wFMCommunicate request_size=4 [13:36:27]MH_SAM_APDU [13:36:27]CAPDU: 80 13 00 00 [13:36:27]Write to MH i2c: E2 08 00 D9 13 80 13 00 00 00 00 00 00 68 [13:36:27]Write i2c OK [13:36:27]MH_I2C_Read... [13:36:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:36:27]Read from MH i2c: E2 [13:36:27]MH_I2C_Read... [13:36:27]Read from MH i2c: E2 62 00 [13:36:27]MH_I2C_Read... [13:36:27]Read from MH i2c: E2 62 00 D9 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 46 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 18 [13:36: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 46 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:36:27]wFMCommunicate OK [13:36:27]SAM_PROTO_GetFieldsCounters done [13:36:27]requested_item shift.num is exist - process it [13:36:27]requested_item shift.opened is exist - process it [13:36:27]req_shift_opened [13:36:27]FM_GetShiftState [13:36:27]SAM_PROTO_GetShiftState [13:36:27]wFMCommunicate request_size=4 [13:36:27]MH_SAM_APDU [13:36:27]CAPDU: 80 13 01 00 [13:36:27]Write to MH i2c: E2 08 00 DA 13 80 13 01 00 00 00 00 00 6A [13:36:27]Write i2c OK [13:36:27]MH_I2C_Read... [13:36:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:36:27]Read from MH i2c: E2 [13:36:27]MH_I2C_Read... [13:36:27]Read from MH i2c: E2 0E 00 [13:36:27]MH_I2C_Read... [13:36:27]Read from MH i2c: E2 0E 00 DA 13 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 36 [13:36:27]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [13:36:27]wFMCommunicate OK [13:36:27]SAM_PROTO_GetShiftState done [13:36:27]FM_GetShiftState done [13:36:27]req_shift_opened done [13:36:27]requested_item shift.open_date is exist - process it [13:36:27]req_shift_open_date [13:36:27]req_shift_open_date done [13:36:27]produce_requested_data done [13:36:27]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63814,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [13:36:27]process_action_free close_receipt [13:36:27]json_value_free [13:36:27]json_value_free done [13:36:27]process_json_proto returns [13:36:27]Send response to host [13:36:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63814,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [13:36:27]free response buf [13:36:27]execute_script done [13:36:27]execute_script returns [13:36:27]free content buf [13:36:27]Sock 9.Close socket [13:36:27]Sock 9.Thread stoped [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: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:20]OFD Sender: No OFD packet to send [13:38:25]OFD Sender: No OFD packet to send [13:38:29]accept exits with 7 [13:38:29]New connection [13:38:29]New thread 3067374948 created [13:38:29]Thread 3067518308 joined [13:38:29]Waiting for new connection... [13:38:29] Sock 7.Parse request [13:38:29]Sock 7.Check first char [13:38:29]Sock 7.First char is OK [13:38:29]request: POST /json_proto HTTP/1.0 [13:38:29]Method: POST [13:38:29]URL: /json_proto [13:38:29]Method is POST - this is cgi request [13:38:29]url: /json_proto [13:38:29]query_string will be loaded in cgi processing [13:38:29]execute_cgi json_proto POST (null) [13:38:29]execute_cgi path=json_proto method=POST [13:38:29]POST find Content-Length [13:38:29]Host: 172.17.60.69:8080 [13:38:29]Content-Length: 662 [13:38:29]Content-Type: application/json [13:38:29] [13:38:29]POST finish read [13:38:29]Found Content-Length = 662 [13:38:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73397", "tax_sys" : 0, "items" : [ { "code": "5449000176448", "name": "\u0421\u043E\u043A Piko Pulpy \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D \u041F\u042D\u0422 1\u043B", "price" : 180.00, "quantity" : 1.000, "sum" : 180.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 180.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:38:29]execute_script... [13:38:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73397", "tax_sys" : 0, "items" : [ { "code": "5449000176448", "name": "\u0421\u043E\u043A Piko Pulpy \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D \u041F\u042D\u0422 1\u043B", "price" : 180.00, "quantity" : 1.000, "sum" : 180.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 180.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:38:29]POST & json_proto [13:38:29]process_json_proto [13:38:29]json parsed OK: [13:38:29]protocol is kg_v1.0 [13:38:29]action value=close_receipt [13:38:29]process_action close_receipt [13:38:29]cmd_close_receipt [13:38:29]MH_GetDate [13:38:29]Write to MH i2c: F0 00 00 DB 13 DD [13:38:29]Write i2c OK [13:38:29]MH_I2C_Read... [13:38:29]Read from MH i2c: F0 [13:38:29]MH_I2C_Read... [13:38:29]Read from MH i2c: F0 09 00 [13:38:29]MH_I2C_Read... [13:38:29]Read from MH i2c: F0 09 00 DB 13 00 58 C7 5D 66 6A 96 4A 66 78 [13:38:29]GetLastDocTimeStamp 1717421784 [13:38:29]current date 1717421912 [13:38:29]FM_GetShiftState [13:38:29]SAM_PROTO_GetShiftState [13:38:29]wFMCommunicate request_size=4 [13:38:29]MH_SAM_APDU [13:38:29]CAPDU: 80 13 01 00 [13:38:29]Write to MH i2c: E2 08 00 DC 13 80 13 01 00 00 00 00 00 6C [13:38:29]Write i2c OK [13:38:29]MH_I2C_Read... [13:38:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:38:29]Read from MH i2c: E2 [13:38:29]MH_I2C_Read... [13:38:29]Read from MH i2c: E2 0E 00 [13:38:29]MH_I2C_Read... [13:38:29]Read from MH i2c: E2 0E 00 DC 13 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 38 [13:38:29]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [13:38:29]wFMCommunicate OK [13:38:29]SAM_PROTO_GetShiftState done [13:38:29]FM_GetShiftState done [13:38:29]opened in 1717373173 [13:38:29]opened+sec_in_day 1717459573 [13:38:29]quantity*price = 18000 [13:38:29]sum+1 = 18001 [13:38:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 180.00 НСП 1% : 1.59 НДС 12% : 19.11 Наличными: 180.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 73 03.06.2024 13:38 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63815 ФПД: 13674960904181 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T133832&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63815&fm=13674960904181&tin=02508201610067®Number=0000000000092737&sum=18000 0 [13:38:30]StoreToDocumentArchive [13:38:30]shift 373 fd 63815 [13:38:30]save to /storage/0373/doc_00063815 [13:38:30]save last doc name /storage/0373/doc_00063815 to /storage/kkm_last_doc_name [13:38:30]save OK [13:38:30]Clear old archive folders... [13:38:30]ProcessDocumentItem done err = 0, tmpTLVsize=287 [13:38:30]tlvbuf is 00D5D050 [13:38:30]SAM_PROTO_ClearQueue [13:38:30]wFMCommunicate request_size=4 [13:38:30]MH_SAM_APDU [13:38:30]CAPDU: 80 09 00 00 [13:38:30]Write to MH i2c: E2 08 00 E9 13 80 09 00 00 00 00 00 00 6E [13:38:30]Write i2c OK [13:38:30]MH_I2C_Read... [13:38:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:38:31]Read from MH i2c: E2 [13:38:31]MH_I2C_Read... [13:38:31]Read from MH i2c: E2 03 00 [13:38:31]MH_I2C_Read... [13:38:31]Read from MH i2c: E2 03 00 E9 13 00 90 00 70 [13:38:31]RAPDU: 90 00 [13:38:31]wFMCommunicate OK [13:38:31]SAM_PROTO_ClearQueue done [13:38:31]KKMCreateOFDPacket [13:38:31]OFDProtocolAddRootSTLVToBuf [13:38:31]FM_MakeSignedData [13:38:31]FM_MakeSignedData [13:38:31]SAM_PROTO_SignData [13:38:31]wFMCommunicate request_size=4 [13:38:31]MH_SAM_APDU [13:38:31]CAPDU: 80 0D 01 02 [13:38:31]Write to MH i2c: E2 08 00 EA 13 80 0D 01 02 00 00 00 00 76 [13:38:31]Write i2c OK [13:38:31]MH_I2C_Read... [13:38:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:38:31]Read from MH i2c: E2 [13:38:31]MH_I2C_Read... [13:38:31]Read from MH i2c: E2 03 00 [13:38:31]MH_I2C_Read... [13:38:31]Read from MH i2c: E2 03 00 EA 13 00 90 00 71 [13:38:31]RAPDU: 90 00 [13:38:31]wFMCommunicate OK [13:38:31]wFMCommunicate request_size=255 [13:38:31]MH_SAM_APDU [13:38:31]CAPDU: 80 0D 02 02 FA 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 50 46 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 07 00 00 00 00 07 04 06 00 50 46 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 58 C7 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 [13:38:31]Write to MH i2c: E2 02 01 EB 13 80 0D 02 02 FA 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 50 46 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 07 00 00 00 00 07 04 06 00 50 46 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 58 C7 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 00 00 BD [13:38:31]Write i2c OK [13:38:31]MH_I2C_Read... [13:38:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:38:31]Read from MH i2c: E2 [13:38:31]MH_I2C_Read... [13:38:31]Read from MH i2c: E2 03 00 [13:38:31]MH_I2C_Read... [13:38:31]Read from MH i2c: E2 03 00 EB 13 00 90 00 72 [13:38:31]RAPDU: 90 00 [13:38:31]wFMCommunicate OK [13:38:31]wFMCommunicate request_size=46 [13:38:31]MH_SAM_APDU [13:38:31]CAPDU: 80 0D 02 02 29 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 47 F9 00 00 35 04 06 00 0C 6F F3 2F DF F5 [13:38:31]Write to MH i2c: E2 31 00 EC 13 80 0D 02 02 29 00 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 47 F9 00 00 35 04 06 00 0C 6F F3 2F DF F5 00 00 B8 [13:38:31]Write i2c OK [13:38:31]MH_I2C_Read... [13:38:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:38:31]Read from MH i2c: E2 [13:38:31]MH_I2C_Read... [13:38:31]Read from MH i2c: E2 03 00 [13:38:31]MH_I2C_Read... [13:38:31]Read from MH i2c: E2 03 00 EC 13 00 90 00 73 [13:38:31]RAPDU: 90 00 [13:38:31]wFMCommunicate OK [13:38:31]wFMCommunicate request_size=4 [13:38:31]MH_SAM_APDU [13:38:31]CAPDU: 80 0D 03 02 [13:38:31]Write to MH i2c: E2 08 00 ED 13 80 0D 03 02 00 00 00 00 7B [13:38:31]Write i2c OK [13:38:31]MH_I2C_Read... [13:38:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:38:31]Read from MH i2c: E2 [13:38:31]MH_I2C_Read... [13:38:31]Read from MH i2c: E2 0B 00 [13:38:31]MH_I2C_Read... [13:38:31]Read from MH i2c: E2 0B 00 ED 13 00 0C 20 8C 9A 4A D5 69 8E 90 00 E4 [13:38:31]RAPDU: 0C 20 8C 9A 4A D5 69 8E 90 00 [13:38:31]wFMCommunicate OK [13:38:31]SAM_PROTO_SignData done [13:38:31]FM_MakeSignedData done [13:38:31]CreateOFDProtocolMessage [13:38:31]wFMCommunicate request_size=4 [13:38:31]MH_SAM_APDU [13:38:31]CAPDU: 80 11 00 00 [13:38:31]Write to MH i2c: E2 08 00 EE 13 80 11 00 00 00 00 00 00 7B [13:38:31]Write i2c OK [13:38:31]MH_I2C_Read... [13:38:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:38:31]Read from MH i2c: E2 [13:38:31]MH_I2C_Read... [13:38:31]Read from MH i2c: E2 17 00 [13:38:31]MH_I2C_Read... [13:38:31]Read from MH i2c: E2 17 00 EE 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 CD [13:38:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [13:38:31]wFMCommunicate OK [13:38:31]CreateOFDProtocolMessage done [13:38:31]OFDSenderStorePacket 63815 [13:38:31]StoreOFDPacket docnum=63815 [13:38:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 33 01 00 00 F9 E1 2B 01 E1 14 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 50 46 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 07 00 00 00 00 07 04 06 00 50 46 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 58 C7 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 47 F9 00 00 35 04 06 00 0C 6F F3 2F DF F5 0C 20 8C 9A 4A D5 69 8E [13:38:31]CheckFolder [13:38:31]dirname=/storage/ofd_packets [13:38:31]CheckFolder done [13:38:31]ProducePacketName [13:38:31]name=ofd_packets/00063815 [13:38:31]NVStorageSaveData ofd_packets/00063815 [13:38:31]File name is /storage/ofd_packets/00063815 [13:38:31]Write 337 bytes [13:38:31]NVStorageSaveData done [13:38:31]OFDSenderStorePacket done [13:38:31]KKMCreateOFDPacket done [13:38:31]NVStorageSaveData kkm_last_timestamp [13:38:31]File name is /storage/kkm_last_timestamp [13:38:31]Write 4 bytes [13:38:31]NVStorageSaveData done [13:38:31]ExternCall_PrintAddStr [13:38:31]wPrintStart [13:38:31]Write to MH i2c: 01 00 00 EF 13 02 [13:38:31]Write i2c OK [13:38:31]MH_I2C_Read... [13:38:31]Read from MH i2c: 01 [13:38:31]MH_I2C_Read... [13:38:31]Read from MH i2c: 01 07 00 [13:38:31]MH_I2C_Read... [13:38:31]Read from MH i2c: 01 07 00 EF 13 00 00 00 00 00 FF 0F 17 [13:38:31]RasterBufferAndPrint [13:38:31]line Счет N : (3)73397 [13:38:31]line ИНН: 02508201610067 [13:38:31]line Контрольно-Кассовый Чек [13:38:31]line ПРОДАЖА [13:38:31]line Товар: 5449000176448 [13:38:31]line Сок Piko Pulpy апельсин ПЭТ 1л [13:38:31]line 1.000 * 180.00 [13:38:31]line = 180.00 [13:38:31]line НДС 12% НСП 1% [13:38:31]line > о реализуемом товаре [13:38:31]line ИТОГО: 180.00 [13:38:31]line НСП 1% : 1.59 [13:38:31]line НДС 12% : 19.11 [13:38:31]line Наличными: 180.00 [13:38:31]line Безнал.: 0.00 [13:38:31]line Место: АЗС № 117 "Партнер Нефть" [13:38:31]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [13:38:31]line СНО: Общий режим [13:38:31]line Чек 73 03.06.2024 13:38 [13:38:31]line Смена: 373 ФФД: 1.0 [13:38:31]line ЗНМ: 0300000031 [13:38:31]line РНМ: 0000000000092737 [13:38:31]line Версия ККМ: 001 [13:38:31]line ФМ: 0000000000875074 [13:38:31]line ФД: 63815 [13:38:31]line ФПД: 13674960904181 [13:38:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T133832&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63815&fm=13674960904181&tin=02508201610067®Number=0000000000092737&sum=18000 [13:38:31]line 0 [13:38:31]OFD Sender: Processing packet 63815 [packets to send 14, broken 13] [13:38:31]ProducePacketName [13:38:31]name=ofd_packets/00063815 [13:38:31]OFD Sender: To server: pG, [13:38:31]CommunicateWithHost lk.salyk.kg:30040 [13:38:31]ConnectInit lk.salyk.kg [13:38:31]written 0, free lines is 4095 [13:38:32]Connected sock=10 [13:38:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 33 01 00 00 F9 E1 2B 01 E1 14 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 50 46 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 07 00 00 00 00 07 04 06 00 50 46 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 58 C7 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 47 F9 00 00 35 04 06 00 0C 6F F3 2F DF F5 0C 20 8C 9A 4A D5 69 8E [13:38:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 49 6D 47 00 4E CE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 47 F9 00 00 F4 03 04 00 29 73 5D 66 B6 04 01 00 00 99 E7 02 71 9D 42 96 41 [13:38:32]CommunicateWithHost err = 0 [13:38:32]CheckOFDResponse [13:38:32]1017 (14) - 77093643461234 [13:38:32]1041 (16) - 0000000000875074 [13:38:32]1040 (4) - 63815 [13:38:32]1012 (4) - 03.06.2024 07:39 [13:38:32]1206 (1) - 0 [13:38:32]OFD Sender: Remove packet 63815 [13:38:32]ProducePacketName [13:38:32]name=ofd_packets/00063815 [13:38:32]NVStorageDeleteData [13:38:32]Write to MH i2c: 01 00 00 18 14 2C [13:38:32]Write i2c OK [13:38:32]MH_I2C_Read... [13:38:32]Read from MH i2c: 01 [13:38:32]MH_I2C_Read... [13:38:32]Read from MH i2c: 01 07 00 [13:38:32]MH_I2C_Read... [13:38:32]Read from MH i2c: 01 07 00 18 14 00 00 00 00 00 E9 0C 28 [13:38:32]RasterBufferAndPrint [13:38:32]line [13:38:32]line [13:38:32]line [13:38:32]line [13:38:32]line [13:38:32]written 0, free lines is 3311 [13:38:32]MH_Cut [13:38:32]Write to MH i2c: D1 01 00 1F 14 01 05 [13:38:32]Write i2c OK [13:38:32]MH_I2C_Read... [13:38:32]Read from MH i2c: D1 [13:38:32]MH_I2C_Read... [13:38:32]Read from MH i2c: D1 01 00 [13:38:32]MH_I2C_Read... [13:38:32]Read from MH i2c: D1 01 00 1F 14 00 04 [13:38:32]Write to MH i2c: 01 00 00 20 14 34 [13:38:32]Write i2c OK [13:38:32]MH_I2C_Read... [13:38:32]OFD Sender: No OFD packet to send [13:38:33]*** Cut start [13:38:33]*** Partial cut [13:38:33]*** CUTSNS_PIN = 1 [13:38:33]*** CUTSNS_PIN = 0 [13:38:33]*** Brake cut motor [13:38:33]Read from MH i2c: 01 [13:38:33]MH_I2C_Read... [13:38:33]*** Stop cut motor [13:38:33]*** Cut end [13:38:33]Read from MH i2c: 01 07 00 [13:38:33]MH_I2C_Read... [13:38:33]Read from MH i2c: 01 07 00 20 14 00 00 00 00 00 FF 0F 49 [13:38:33]process_action close_receipt done [13:38:33]requested_data is exist [13:38:33]produce_requested_data [13:38:33]requested_item fm.sn is exist - process it [13:38:33]wFMCommunicate request_size=4 [13:38:33]MH_SAM_APDU [13:38:33]CAPDU: 80 11 00 00 [13:38:33]Write to MH i2c: E2 08 00 21 14 80 11 00 00 00 00 00 00 AF [13:38:33]Write i2c OK [13:38:33]MH_I2C_Read... [13:38:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:38:33]Read from MH i2c: E2 [13:38:33]MH_I2C_Read... [13:38:33]Read from MH i2c: E2 17 00 [13:38:33]MH_I2C_Read... [13:38:33]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 35 30 37 34 90 00 01 [13:38:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [13:38:33]wFMCommunicate OK [13:38:33]requested_item fd.num is exist - process it [13:38:33]SAM_PROTO_GetFieldsCounters [13:38:33]wFMCommunicate request_size=4 [13:38:33]MH_SAM_APDU [13:38:33]CAPDU: 80 13 00 00 [13:38:33]Write to MH i2c: E2 08 00 22 14 80 13 00 00 00 00 00 00 B2 [13:38:33]Write i2c OK [13:38:33]MH_I2C_Read... [13:38:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:38:33]Read from MH i2c: E2 [13:38:33]MH_I2C_Read... [13:38:33]Read from MH i2c: E2 62 00 [13:38:33]MH_I2C_Read... [13:38:33]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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 47 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 66 [13:38: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 47 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:38:33]wFMCommunicate OK [13:38:33]SAM_PROTO_GetFieldsCounters done [13:38:33]requested_item shift.num is exist - process it [13:38:33]requested_item shift.opened is exist - process it [13:38:33]req_shift_opened [13:38:33]FM_GetShiftState [13:38:33]SAM_PROTO_GetShiftState [13:38:33]wFMCommunicate request_size=4 [13:38:33]MH_SAM_APDU [13:38:33]CAPDU: 80 13 01 00 [13:38:33]Write to MH i2c: E2 08 00 23 14 80 13 01 00 00 00 00 00 B4 [13:38:33]Write i2c OK [13:38:33]MH_I2C_Read... [13:38:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:38:34]Read from MH i2c: E2 [13:38:34]MH_I2C_Read... [13:38:34]Read from MH i2c: E2 0E 00 [13:38:34]MH_I2C_Read... [13:38:34]Read from MH i2c: E2 0E 00 23 14 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 80 [13:38:34]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [13:38:34]wFMCommunicate OK [13:38:34]SAM_PROTO_GetShiftState done [13:38:34]FM_GetShiftState done [13:38:34]req_shift_opened done [13:38:34]requested_item shift.open_date is exist - process it [13:38:34]req_shift_open_date [13:38:34]req_shift_open_date done [13:38:34]produce_requested_data done [13:38:34]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63815,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [13:38:34]process_action_free close_receipt [13:38:34]json_value_free [13:38:34]json_value_free done [13:38:34]process_json_proto returns [13:38:34]Send response to host [13:38:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63815,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [13:38:34]free response buf [13:38:34]execute_script done [13:38:34]execute_script returns [13:38:34]free content buf [13:38:34]Sock 7.Close socket [13:38:34]Sock 7.Thread stoped [13:38:37]OFD Sender: No OFD packet to send [13:38:42]OFD Sender: No OFD packet to send [13:38:47]OFD Sender: No OFD packet to send [13:38:49]accept exits with 9 [13:38:49]New connection [13:38:49]New thread 3067518308 created [13:38:49]Thread 3067374948 joined [13:38:49]Waiting for new connection... [13:38:49] Sock 9.Parse request [13:38:49]Sock 9.Check first char [13:38:49]Sock 9.First char is OK [13:38:49]request: POST /json_proto HTTP/1.0 [13:38:49]Method: POST [13:38:49]URL: /json_proto [13:38:49]Method is POST - this is cgi request [13:38:49]url: /json_proto [13:38:49]query_string will be loaded in cgi processing [13:38:49]execute_cgi json_proto POST (null) [13:38:49]execute_cgi path=json_proto method=POST [13:38:49]POST find Content-Length [13:38:49]Host: 172.17.60.69:8080 [13:38:49]Content-Length: 689 [13:38:49]Content-Type: application/json [13:38:49] [13:38:49]POST finish read [13:38:49]Found Content-Length = 689 [13:38:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73398", "tax_sys" : 0, "items" : [ { "code": "4870202521247", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u0447\u0435\u0440\u043D.\u043F\u0435\u0440\u0441\u0438\u043A", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:38:49]execute_script... [13:38:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73398", "tax_sys" : 0, "items" : [ { "code": "4870202521247", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u0447\u0435\u0440\u043D.\u043F\u0435\u0440\u0441\u0438\u043A", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:38:49]POST & json_proto [13:38:49]process_json_proto [13:38:49]json parsed OK: [13:38:49]protocol is kg_v1.0 [13:38:49]action value=close_receipt [13:38:49]process_action close_receipt [13:38:49]cmd_close_receipt [13:38:49]MH_GetDate [13:38:49]Write to MH i2c: F0 00 00 24 14 27 [13:38:49]Write i2c OK [13:38:49]MH_I2C_Read... [13:38:49]Read from MH i2c: F0 [13:38:49]MH_I2C_Read... [13:38:49]Read from MH i2c: F0 09 00 [13:38:49]MH_I2C_Read... [13:38:49]Read from MH i2c: F0 09 00 24 14 00 6C C7 5D 66 6A 96 4A 66 D6 [13:38:49]GetLastDocTimeStamp 1717421912 [13:38:49]current date 1717421932 [13:38:49]FM_GetShiftState [13:38:49]SAM_PROTO_GetShiftState [13:38:49]wFMCommunicate request_size=4 [13:38:49]MH_SAM_APDU [13:38:49]CAPDU: 80 13 01 00 [13:38:49]Write to MH i2c: E2 08 00 25 14 80 13 01 00 00 00 00 00 B6 [13:38:49]Write i2c OK [13:38:49]MH_I2C_Read... [13:38:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:38:49]Read from MH i2c: E2 [13:38:49]MH_I2C_Read... [13:38:49]Read from MH i2c: E2 0E 00 [13:38:49]MH_I2C_Read... [13:38:49]Read from MH i2c: E2 0E 00 25 14 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 82 [13:38:49]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [13:38:49]wFMCommunicate OK [13:38:49]SAM_PROTO_GetShiftState done [13:38:49]FM_GetShiftState done [13:38:49]opened in 1717373173 [13:38:49]opened+sec_in_day 1717459573 [13:38:49]quantity*price = 12500 [13:38:49]sum+1 = 12501 [13:38:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 125.00 НСП 1% : 1.11 НДС 12% : 13.27 Наличными: 125.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 74 03.06.2024 13:38 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63816 ФПД: 184572016228441 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T133852&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63816&fm=184572016228441&tin=02508201610067®Number=0000000000092737&sum=12500 0 [13:38:50]StoreToDocumentArchive [13:38:50]shift 373 fd 63816 [13:38:50]save to /storage/0373/doc_00063816 [13:38:50]save last doc name /storage/0373/doc_00063816 to /storage/kkm_last_doc_name [13:38:50]save OK [13:38:50]Clear old archive folders... [13:38:50]ProcessDocumentItem done err = 0, tmpTLVsize=294 [13:38:50]tlvbuf is 00D1E220 [13:38:50]SAM_PROTO_ClearQueue [13:38:50]wFMCommunicate request_size=4 [13:38:50]MH_SAM_APDU [13:38:50]CAPDU: 80 09 00 00 [13:38:50]Write to MH i2c: E2 08 00 32 14 80 09 00 00 00 00 00 00 B8 [13:38:50]Write i2c OK [13:38:50]MH_I2C_Read... [13:38:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:38:50]Read from MH i2c: E2 [13:38:50]MH_I2C_Read... [13:38:50]Read from MH i2c: E2 03 00 [13:38:50]MH_I2C_Read... [13:38:50]Read from MH i2c: E2 03 00 32 14 00 90 00 BA [13:38:50]RAPDU: 90 00 [13:38:50]wFMCommunicate OK [13:38:50]SAM_PROTO_ClearQueue done [13:38:50]KKMCreateOFDPacket [13:38:50]OFDProtocolAddRootSTLVToBuf [13:38:50]FM_MakeSignedData [13:38:50]FM_MakeSignedData [13:38:50]SAM_PROTO_SignData [13:38:50]wFMCommunicate request_size=4 [13:38:50]MH_SAM_APDU [13:38:50]CAPDU: 80 0D 01 02 [13:38:50]Write to MH i2c: E2 08 00 33 14 80 0D 01 02 00 00 00 00 C0 [13:38:50]Write i2c OK [13:38:50]MH_I2C_Read... [13:38:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:38:51]Read from MH i2c: E2 [13:38:51]MH_I2C_Read... [13:38:51]Read from MH i2c: E2 03 00 [13:38:51]MH_I2C_Read... [13:38:51]Read from MH i2c: E2 03 00 33 14 00 90 00 BB [13:38:51]RAPDU: 90 00 [13:38:51]wFMCommunicate OK [13:38:51]wFMCommunicate request_size=255 [13:38:51]MH_SAM_APDU [13:38:51]CAPDU: 80 0D 02 02 FA 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 34 37 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D1 87 D0 B5 D1 80 D0 BD 2E D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 6C C7 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 [13:38:51]Write to MH i2c: E2 02 01 34 14 80 0D 02 02 FA 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 34 37 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D1 87 D0 B5 D1 80 D0 BD 2E D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 6C C7 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 00 00 F9 [13:38:51]Write i2c OK [13:38:51]MH_I2C_Read... [13:38:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:38:51]Read from MH i2c: E2 [13:38:51]MH_I2C_Read... [13:38:51]Read from MH i2c: E2 03 00 [13:38:51]MH_I2C_Read... [13:38:51]Read from MH i2c: E2 03 00 34 14 00 90 00 BC [13:38:51]RAPDU: 90 00 [13:38:51]wFMCommunicate OK [13:38:51]wFMCommunicate request_size=53 [13:38:51]MH_SAM_APDU [13:38:51]CAPDU: 80 0D 02 02 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 48 F9 00 00 35 04 06 00 A7 DE 05 76 78 59 [13:38:51]Write to MH i2c: E2 38 00 35 14 80 0D 02 02 30 00 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 48 F9 00 00 35 04 06 00 A7 DE 05 76 78 59 00 00 CC [13:38:51]Write i2c OK [13:38:51]MH_I2C_Read... [13:38:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:38:51]Read from MH i2c: E2 [13:38:51]MH_I2C_Read... [13:38:51]Read from MH i2c: E2 03 00 [13:38:51]MH_I2C_Read... [13:38:51]Read from MH i2c: E2 03 00 35 14 00 90 00 BD [13:38:51]RAPDU: 90 00 [13:38:51]wFMCommunicate OK [13:38:51]wFMCommunicate request_size=4 [13:38:51]MH_SAM_APDU [13:38:51]CAPDU: 80 0D 03 02 [13:38:51]Write to MH i2c: E2 08 00 36 14 80 0D 03 02 00 00 00 00 C5 [13:38:51]Write i2c OK [13:38:51]MH_I2C_Read... [13:38:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:38:51]Read from MH i2c: E2 [13:38:51]MH_I2C_Read... [13:38:51]Read from MH i2c: E2 0B 00 [13:38:51]MH_I2C_Read... [13:38:51]Read from MH i2c: E2 0B 00 36 14 00 34 40 C0 77 A9 EB 74 BE 90 00 37 [13:38:51]RAPDU: 34 40 C0 77 A9 EB 74 BE 90 00 [13:38:51]wFMCommunicate OK [13:38:51]SAM_PROTO_SignData done [13:38:51]FM_MakeSignedData done [13:38:51]CreateOFDProtocolMessage [13:38:51]wFMCommunicate request_size=4 [13:38:51]MH_SAM_APDU [13:38:51]CAPDU: 80 11 00 00 [13:38:51]Write to MH i2c: E2 08 00 37 14 80 11 00 00 00 00 00 00 C5 [13:38:51]Write i2c OK [13:38:51]MH_I2C_Read... [13:38:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:38:51]Read from MH i2c: E2 [13:38:51]MH_I2C_Read... [13:38:51]Read from MH i2c: E2 17 00 [13:38:51]MH_I2C_Read... [13:38:51]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 35 30 37 34 90 00 17 [13:38:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [13:38:51]wFMCommunicate OK [13:38:51]CreateOFDProtocolMessage done [13:38:51]OFDSenderStorePacket 63816 [13:38:51]StoreOFDPacket docnum=63816 [13:38:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 3A 01 00 00 9D 25 32 01 0D 38 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 34 37 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D1 87 D0 B5 D1 80 D0 BD 2E D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 6C C7 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 48 F9 00 00 35 04 06 00 A7 DE 05 76 78 59 34 40 C0 77 A9 EB 74 BE [13:38:51]CheckFolder [13:38:51]dirname=/storage/ofd_packets [13:38:51]CheckFolder done [13:38:51]ProducePacketName [13:38:51]name=ofd_packets/00063816 [13:38:51]NVStorageSaveData ofd_packets/00063816 [13:38:51]File name is /storage/ofd_packets/00063816 [13:38:51]Write 344 bytes [13:38:51]NVStorageSaveData done [13:38:51]OFDSenderStorePacket done [13:38:51]KKMCreateOFDPacket done [13:38:51]NVStorageSaveData kkm_last_timestamp [13:38:51]File name is /storage/kkm_last_timestamp [13:38:51]Write 4 bytes [13:38:51]NVStorageSaveData done [13:38:51]ExternCall_PrintAddStr [13:38:51]wPrintStart [13:38:51]Write to MH i2c: 01 00 00 38 14 4C [13:38:51]OFD Sender: Processing packet 63816 [packets to send 14, broken 13] [13:38:51]ProducePacketName [13:38:51]name=ofd_packets/00063816 [13:38:51]OFD Sender: To server: pG, [13:38:51]CommunicateWithHost lk.salyk.kg:30040 [13:38:51]ConnectInit lk.salyk.kg [13:38:51]Write i2c OK [13:38:51]MH_I2C_Read... [13:38:51]Read from MH i2c: 01 [13:38:51]MH_I2C_Read... [13:38:51]Read from MH i2c: 01 07 00 [13:38:51]MH_I2C_Read... [13:38:51]Read from MH i2c: 01 07 00 38 14 00 00 00 00 00 FF 0F 61 [13:38:51]RasterBufferAndPrint [13:38:51]line Счет N : (3)73398 [13:38:51]line ИНН: 02508201610067 [13:38:51]line Контрольно-Кассовый Чек [13:38:51]line ПРОДАЖА [13:38:51]line Товар: 4870202521247 [13:38:51]line Напиток MAXI чай 1,2 черн.персик [13:38:51]line 1.000 * 125.00 [13:38:51]line = 125.00 [13:38:51]line НДС 12% НСП 1% [13:38:51]line > о реализуемом товаре [13:38:51]line ИТОГО: 125.00 [13:38:51]line НСП 1% : 1.11 [13:38:51]line НДС 12% : 13.27 [13:38:51]line Наличными: 125.00 [13:38:51]line Безнал.: 0.00 [13:38:51]line Место: АЗС № 117 "Партнер Нефть" [13:38:51]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [13:38:51]line СНО: Общий режим [13:38:51]line Чек 74 03.06.2024 13:38 [13:38:51]line Смена: 373 ФФД: 1.0 [13:38:51]line ЗНМ: 0300000031 [13:38:51]line РНМ: 0000000000092737 [13:38:51]line Версия ККМ: 001 [13:38:51]line ФМ: 0000000000875074 [13:38:51]line ФД: 63816 [13:38:51]line ФПД: 184572016228441 [13:38:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T133852&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63816&fm=184572016228441&tin=02508201610067®Number=0000000000092737&sum=12500 [13:38:51]line 0 [13:38:51]Connected sock=10 [13:38:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 3A 01 00 00 9D 25 32 01 0D 38 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 34 37 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D1 87 D0 B5 D1 80 D0 BD 2E D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 6C C7 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 48 F9 00 00 35 04 06 00 A7 DE 05 76 78 59 34 40 C0 77 A9 EB 74 BE [13:38:51]written 0, free lines is 4095 [13:38:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 29 B9 47 00 4D 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 35 30 37 34 10 04 04 00 48 F9 00 00 F4 03 04 00 3D 73 5D 66 B6 04 01 00 00 F4 B9 99 A8 6E 54 98 60 [13:38:52]CommunicateWithHost err = 0 [13:38:52]CheckOFDResponse [13:38:52]1017 (14) - 77093643461234 [13:38:52]1041 (16) - 0000000000875074 [13:38:52]1040 (4) - 63816 [13:38:52]1012 (4) - 03.06.2024 07:39 [13:38:52]1206 (1) - 0 [13:38:52]OFD Sender: Remove packet 63816 [13:38:52]ProducePacketName [13:38:52]name=ofd_packets/00063816 [13:38:52]NVStorageDeleteData [13:38:52]Write to MH i2c: 01 00 00 61 14 75 [13:38:52]Write i2c OK [13:38:52]MH_I2C_Read... [13:38:52]Read from MH i2c: 01 [13:38:52]MH_I2C_Read... [13:38:52]Read from MH i2c: 01 07 00 [13:38:52]MH_I2C_Read... [13:38:52]Read from MH i2c: 01 07 00 61 14 00 00 00 00 00 DA 0C 62 [13:38:52]RasterBufferAndPrint [13:38:52]line [13:38:52]line [13:38:52]line [13:38:52]line [13:38:52]line [13:38:52]written 0, free lines is 3298 [13:38:52]MH_Cut [13:38:52]Write to MH i2c: D1 01 00 68 14 01 4E [13:38:52]Write i2c OK [13:38:52]MH_I2C_Read... [13:38:52]Read from MH i2c: D1 [13:38:52]MH_I2C_Read... [13:38:52]Read from MH i2c: D1 01 00 [13:38:52]MH_I2C_Read... [13:38:52]Read from MH i2c: D1 01 00 68 14 00 4D [13:38:52]Write to MH i2c: 01 00 00 69 14 7D [13:38:52]Write i2c OK [13:38:52]MH_I2C_Read... [13:38:52]OFD Sender: No OFD packet to send [13:38:53]*** Cut start [13:38:53]*** Partial cut [13:38:53]*** CUTSNS_PIN = 1 [13:38:53]*** CUTSNS_PIN = 0 [13:38:53]*** Brake cut motor [13:38:53]Read from MH i2c: 01 [13:38:53]MH_I2C_Read... [13:38:53]*** Stop cut motor [13:38:53]*** Cut end [13:38:53]Read from MH i2c: 01 07 00 [13:38:53]MH_I2C_Read... [13:38:53]Read from MH i2c: 01 07 00 69 14 00 00 00 00 00 FF 0F 92 [13:38:53]process_action close_receipt done [13:38:53]requested_data is exist [13:38:53]produce_requested_data [13:38:53]requested_item fm.sn is exist - process it [13:38:53]wFMCommunicate request_size=4 [13:38:53]MH_SAM_APDU [13:38:53]CAPDU: 80 11 00 00 [13:38:53]Write to MH i2c: E2 08 00 6A 14 80 11 00 00 00 00 00 00 F8 [13:38:53]Write i2c OK [13:38:53]MH_I2C_Read... [13:38:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:38:53]Read from MH i2c: E2 [13:38:53]MH_I2C_Read... [13:38:53]Read from MH i2c: E2 17 00 [13:38:53]MH_I2C_Read... [13:38:53]Read from MH i2c: E2 17 00 6A 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 4A [13:38:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [13:38:53]wFMCommunicate OK [13:38:53]requested_item fd.num is exist - process it [13:38:53]SAM_PROTO_GetFieldsCounters [13:38:53]wFMCommunicate request_size=4 [13:38:53]MH_SAM_APDU [13:38:53]CAPDU: 80 13 00 00 [13:38:53]Write to MH i2c: E2 08 00 6B 14 80 13 00 00 00 00 00 00 FB [13:38:53]Write i2c OK [13:38:53]MH_I2C_Read... [13:38:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:38:53]Read from MH i2c: E2 [13:38:53]MH_I2C_Read... [13:38:53]Read from MH i2c: E2 62 00 [13:38:53]MH_I2C_Read... [13:38:53]Read from MH i2c: E2 62 00 6B 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 48 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 B3 [13:38: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 48 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:38:53]wFMCommunicate OK [13:38:53]SAM_PROTO_GetFieldsCounters done [13:38:53]requested_item shift.num is exist - process it [13:38:53]requested_item shift.opened is exist - process it [13:38:53]req_shift_opened [13:38:53]FM_GetShiftState [13:38:53]SAM_PROTO_GetShiftState [13:38:53]wFMCommunicate request_size=4 [13:38:53]MH_SAM_APDU [13:38:53]CAPDU: 80 13 01 00 [13:38:53]Write to MH i2c: E2 08 00 6C 14 80 13 01 00 00 00 00 00 FD [13:38:53]Write i2c OK [13:38:53]MH_I2C_Read... [13:38:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:38:53]Read from MH i2c: E2 [13:38:53]MH_I2C_Read... [13:38:53]Read from MH i2c: E2 0E 00 [13:38:53]MH_I2C_Read... [13:38:53]Read from MH i2c: E2 0E 00 6C 14 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 C9 [13:38:53]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [13:38:53]wFMCommunicate OK [13:38:53]SAM_PROTO_GetShiftState done [13:38:53]FM_GetShiftState done [13:38:53]req_shift_opened done [13:38:53]requested_item shift.open_date is exist - process it [13:38:53]req_shift_open_date [13:38:53]req_shift_open_date done [13:38:53]produce_requested_data done [13:38:53]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63816,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [13:38:53]process_action_free close_receipt [13:38:53]json_value_free [13:38:53]json_value_free done [13:38:53]process_json_proto returns [13:38:53]Send response to host [13:38:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63816,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [13:38:53]free response buf [13:38:53]execute_script done [13:38:53]execute_script returns [13:38:53]free content buf [13:38:53]Sock 9.Close socket [13:38:53]Sock 9.Thread stoped [13:38:57]OFD Sender: No OFD packet to send [13:39:02]OFD Sender: No OFD packet to send [13:39:07]OFD Sender: No OFD packet to send [13:39:12]OFD Sender: No OFD packet to send [13:39:17]OFD Sender: No OFD packet to send [13:39:22]OFD Sender: No OFD packet to send [13:39:27]OFD Sender: No OFD packet to send [13:39:32]OFD Sender: No OFD packet to send [13:39:37]OFD Sender: No OFD packet to send [13:39:42]OFD Sender: No OFD packet to send [13:39:47]OFD Sender: No OFD packet to send [13:39:52]OFD Sender: No OFD packet to send [13:39:57]OFD Sender: No OFD packet to send [13:40:02]OFD Sender: No OFD packet to send [13:40:07]OFD Sender: No OFD packet to send [13:40:12]OFD Sender: No OFD packet to send [13:40:17]OFD Sender: No OFD packet to send [13:40:22]OFD Sender: No OFD packet to send [13:40:27]OFD Sender: No OFD packet to send [13:40:32]OFD Sender: No OFD packet to send [13:40:37]OFD Sender: No OFD packet to send [13:40:42]OFD Sender: No OFD packet to send [13:40:47]OFD Sender: No OFD packet to send [13:40:52]OFD Sender: No OFD packet to send [13:40:57]OFD Sender: No OFD packet to send [13:41:02]OFD Sender: No OFD packet to send [13:41:07]OFD Sender: No OFD packet to send [13:41:12]OFD Sender: No OFD packet to send [13:41:17]OFD Sender: No OFD packet to send [13:41:22]OFD Sender: No OFD packet to send [13:41:27]OFD Sender: No OFD packet to send [13:41:32]OFD Sender: No OFD packet to send [13:41:37]OFD Sender: No OFD packet to send [13:41:42]OFD Sender: No OFD packet to send [13:41:47]OFD Sender: No OFD packet to send [13:41:52]OFD Sender: No OFD packet to send [13:41:57]OFD Sender: No OFD packet to send [13:42:02]OFD Sender: No OFD packet to send [13:42:07]OFD Sender: No OFD packet to send [13:42:12]OFD Sender: No OFD packet to send [13:42:17]OFD Sender: No OFD packet to send [13:42:22]OFD Sender: No OFD packet to send [13:42:27]OFD Sender: No OFD packet to send [13:42:32]OFD Sender: No OFD packet to send [13:42:37]OFD Sender: No OFD packet to send [13:42:42]OFD Sender: No OFD packet to send [13:42:47]OFD Sender: No OFD packet to send [13:42:52]OFD Sender: No OFD packet to send [13:42:57]OFD Sender: No OFD packet to send [13:43:02]OFD Sender: No OFD packet to send [13:43:07]OFD Sender: No OFD packet to send [13:43:12]OFD Sender: No OFD packet to send [13:43:17]OFD Sender: No OFD packet to send [13:43:22]OFD Sender: No OFD packet to send [13:43:27]OFD Sender: No OFD packet to send [13:43:32]OFD Sender: No OFD packet to send [13:43:37]OFD Sender: No OFD packet to send [13:43:42]OFD Sender: No OFD packet to send [13:43:47]OFD Sender: No OFD packet to send [13:43:52]OFD Sender: No OFD packet to send [13:43:57]OFD Sender: No OFD packet to send [13:44:02]OFD Sender: No OFD packet to send [13:44:07]OFD Sender: No OFD packet to send [13:44:12]OFD Sender: No OFD packet to send [13:44:17]OFD Sender: No OFD packet to send [13:44:22]OFD Sender: No OFD packet to send [13:44:27]OFD Sender: No OFD packet to send [13:44:32]OFD Sender: No OFD packet to send [13:44:37]OFD Sender: No OFD packet to send [13:44:42]OFD Sender: No OFD packet to send [13:44:47]OFD Sender: No OFD packet to send [13:44:52]OFD Sender: No OFD packet to send [13:44:57]OFD Sender: No OFD packet to send [13:45:02]OFD Sender: No OFD packet to send [13:45:07]OFD Sender: No OFD packet to send [13:45:12]OFD Sender: No OFD packet to send [13:45:17]OFD Sender: No OFD packet to send [13:45:22]OFD Sender: No OFD packet to send [13:45:27]OFD Sender: No OFD packet to send [13:45:32]OFD Sender: No OFD packet to send [13:45:37]OFD Sender: No OFD packet to send [13:45:42]OFD Sender: No OFD packet to send [13:45:47]OFD Sender: No OFD packet to send [13:45:51]accept exits with 7 [13:45:51]New connection [13:45:51]New thread 3067374948 created [13:45:51]Thread 3067518308 joined [13:45:51]Waiting for new connection... [13:45:51] Sock 7.Parse request [13:45:51]Sock 7.Check first char [13:45:51]Sock 7.First char is OK [13:45:51]request: POST /json_proto HTTP/1.0 [13:45:51]Method: POST [13:45:51]URL: /json_proto [13:45:51]Method is POST - this is cgi request [13:45:51]url: /json_proto [13:45:51]query_string will be loaded in cgi processing [13:45:51]execute_cgi json_proto POST (null) [13:45:51]execute_cgi path=json_proto method=POST [13:45:51]POST find Content-Length [13:45:51]Host: 172.17.60.69:8080 [13:45:51]Content-Length: 746 [13:45:51]Content-Type: application/json [13:45:51] [13:45:51]POST finish read [13:45:51]Found Content-Length = 746 [13:45:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73399", "tax_sys" : 0, "items" : [ { "code": "2000028410025", "name": "\u041E\u0447\u043A\u0438 \u0441\u043E\u043B\u043D\u0446\u0435\u0437\u0430\u0449\u0438\u0442\u043D\u044B\u0435 \u0432 \u0430\u0441\u0441\u043E\u0440\u0442\u0438\u043C\u0435\u043D\u0442\u0435", "price" : 502.00, "quantity" : 1.000, "sum" : 502.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 502.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:45:51]execute_script... [13:45:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73399", "tax_sys" : 0, "items" : [ { "code": "2000028410025", "name": "\u041E\u0447\u043A\u0438 \u0441\u043E\u043B\u043D\u0446\u0435\u0437\u0430\u0449\u0438\u0442\u043D\u044B\u0435 \u0432 \u0430\u0441\u0441\u043E\u0440\u0442\u0438\u043C\u0435\u043D\u0442\u0435", "price" : 502.00, "quantity" : 1.000, "sum" : 502.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 502.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:45:51]POST & json_proto [13:45:51]process_json_proto [13:45:51]json parsed OK: [13:45:51]protocol is kg_v1.0 [13:45:51]action value=close_receipt [13:45:51]process_action close_receipt [13:45:51]cmd_close_receipt [13:45:51]MH_GetDate [13:45:51]Write to MH i2c: F0 00 00 6D 14 70 [13:45:51]Write i2c OK [13:45:51]MH_I2C_Read... [13:45:51]Read from MH i2c: F0 [13:45:51]MH_I2C_Read... [13:45:51]Read from MH i2c: F0 09 00 [13:45:51]MH_I2C_Read... [13:45:51]Read from MH i2c: F0 09 00 6D 14 00 12 C9 5D 66 6A 96 4A 66 C7 [13:45:51]GetLastDocTimeStamp 1717421932 [13:45:51]current date 1717422354 [13:45:51]FM_GetShiftState [13:45:51]SAM_PROTO_GetShiftState [13:45:51]wFMCommunicate request_size=4 [13:45:51]MH_SAM_APDU [13:45:51]CAPDU: 80 13 01 00 [13:45:51]Write to MH i2c: E2 08 00 6E 14 80 13 01 00 00 00 00 00 FF [13:45:51]Write i2c OK [13:45:51]MH_I2C_Read... [13:45:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:45:51]Read from MH i2c: E2 [13:45:51]MH_I2C_Read... [13:45:51]Read from MH i2c: E2 0E 00 [13:45:51]MH_I2C_Read... [13:45:51]Read from MH i2c: E2 0E 00 6E 14 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 CB [13:45:51]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [13:45:51]wFMCommunicate OK [13:45:51]SAM_PROTO_GetShiftState done [13:45:51]FM_GetShiftState done [13:45:51]opened in 1717373173 [13:45:51]opened+sec_in_day 1717459573 [13:45:51]quantity*price = 50200 [13:45:51]sum+1 = 50201 [13:45:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 502.00 НСП 1% : 4.44 НДС 12% : 53.31 Наличными: 502.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 75 03.06.2024 13:45 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63817 ФПД: 16350484594713 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T134554&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63817&fm=16350484594713&tin=02508201610067®Number=0000000000092737&sum=50200 0 [13:45:53]StoreToDocumentArchive [13:45:53]shift 373 fd 63817 [13:45:53]save to /storage/0373/doc_00063817 [13:45:53]save last doc name /storage/0373/doc_00063817 to /storage/kkm_last_doc_name [13:45:53]save OK [13:45:53]Clear old archive folders... [13:45:53]ProcessDocumentItem done err = 0, tmpTLVsize=307 [13:45:53]tlvbuf is 00D3D490 [13:45:53]SAM_PROTO_ClearQueue [13:45:53]wFMCommunicate request_size=4 [13:45:53]MH_SAM_APDU [13:45:53]CAPDU: 80 09 00 00 [13:45:53]Write to MH i2c: E2 08 00 7B 14 80 09 00 00 00 00 00 00 01 [13:45:53]Write i2c OK [13:45:53]MH_I2C_Read... [13:45:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:45:53]Read from MH i2c: E2 [13:45:53]MH_I2C_Read... [13:45:53]Read from MH i2c: E2 03 00 [13:45:53]MH_I2C_Read... [13:45:53]Read from MH i2c: E2 03 00 7B 14 00 90 00 03 [13:45:53]RAPDU: 90 00 [13:45:53]wFMCommunicate OK [13:45:53]SAM_PROTO_ClearQueue done [13:45:53]KKMCreateOFDPacket [13:45:53]OFDProtocolAddRootSTLVToBuf [13:45:53]FM_MakeSignedData [13:45:53]FM_MakeSignedData [13:45:53]SAM_PROTO_SignData [13:45:53]wFMCommunicate request_size=4 [13:45:53]MH_SAM_APDU [13:45:53]CAPDU: 80 0D 01 02 [13:45:53]Write to MH i2c: E2 08 00 7C 14 80 0D 01 02 00 00 00 00 09 [13:45:53]Write i2c OK [13:45:53]MH_I2C_Read... [13:45:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:45:53]Read from MH i2c: E2 [13:45:53]MH_I2C_Read... [13:45:53]Read from MH i2c: E2 03 00 [13:45:53]MH_I2C_Read... [13:45:53]Read from MH i2c: E2 03 00 7C 14 00 90 00 04 [13:45:53]RAPDU: 90 00 [13:45:53]wFMCommunicate OK [13:45:53]wFMCommunicate request_size=255 [13:45:53]MH_SAM_APDU [13:45:53]CAPDU: 80 0D 02 02 FA 03 00 33 01 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 32 30 30 30 30 32 38 34 31 30 30 32 35 06 04 41 00 D0 9E D1 87 D0 BA D0 B8 20 D1 81 D0 BE D0 BB D0 BD D1 86 D0 B5 D0 B7 D0 B0 D1 89 D0 B8 D1 82 D0 BD D1 8B D0 B5 20 D0 B2 20 D0 B0 D1 81 D1 81 D0 BE D1 80 D1 82 D0 B8 D0 BC D0 B5 D0 BD D1 82 D0 B5 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 18 C4 00 00 00 00 13 04 06 00 18 C4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 C4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BC 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 14 00 00 00 00 07 04 06 00 18 C4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 12 C9 5D 66 0E 04 04 00 75 01 00 00 B9 04 [13:45:53]Write to MH i2c: E2 02 01 7D 14 80 0D 02 02 FA 00 03 00 33 01 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 32 30 30 30 30 32 38 34 31 30 30 32 35 06 04 41 00 D0 9E D1 87 D0 BA D0 B8 20 D1 81 D0 BE D0 BB D0 BD D1 86 D0 B5 D0 B7 D0 B0 D1 89 D0 B8 D1 82 D0 BD D1 8B D0 B5 20 D0 B2 20 D0 B0 D1 81 D1 81 D0 BE D1 80 D1 82 D0 B8 D0 BC D0 B5 D0 BD D1 82 D0 B5 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 18 C4 00 00 00 00 13 04 06 00 18 C4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 C4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BC 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 14 00 00 00 00 07 04 06 00 18 C4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 12 C9 5D 66 0E 04 04 00 75 01 00 00 B9 04 00 00 E8 [13:45:53]Write i2c OK [13:45:53]MH_I2C_Read... [13:45:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:45:53]Read from MH i2c: E2 [13:45:53]MH_I2C_Read... [13:45:53]Read from MH i2c: E2 03 00 [13:45:53]MH_I2C_Read... [13:45:53]Read from MH i2c: E2 03 00 7D 14 00 90 00 05 [13:45:53]RAPDU: 90 00 [13:45:53]wFMCommunicate OK [13:45:53]wFMCommunicate request_size=66 [13:45:53]MH_SAM_APDU [13:45:53]CAPDU: 80 0D 02 02 3D 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 49 F9 00 00 35 04 06 00 0E DE E4 D3 80 19 [13:45:53]Write to MH i2c: E2 45 00 7E 14 80 0D 02 02 3D 00 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 49 F9 00 00 35 04 06 00 0E DE E4 D3 80 19 00 00 DE [13:45:53]Write i2c OK [13:45:53]MH_I2C_Read... [13:45:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:45:53]Read from MH i2c: E2 [13:45:53]MH_I2C_Read... [13:45:53]Read from MH i2c: E2 03 00 [13:45:53]MH_I2C_Read... [13:45:53]Read from MH i2c: E2 03 00 7E 14 00 90 00 06 [13:45:53]RAPDU: 90 00 [13:45:53]wFMCommunicate OK [13:45:53]wFMCommunicate request_size=4 [13:45:53]MH_SAM_APDU [13:45:53]CAPDU: 80 0D 03 02 [13:45:53]Write to MH i2c: E2 08 00 7F 14 80 0D 03 02 00 00 00 00 0E [13:45:53]Write i2c OK [13:45:53]MH_I2C_Read... [13:45:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:45:53]Read from MH i2c: E2 [13:45:53]MH_I2C_Read... [13:45:53]Read from MH i2c: E2 0B 00 [13:45:53]MH_I2C_Read... [13:45:53]Read from MH i2c: E2 0B 00 7F 14 00 A0 8A 9E 4C 0F 87 07 54 90 00 14 [13:45:53]RAPDU: A0 8A 9E 4C 0F 87 07 54 90 00 [13:45:53]wFMCommunicate OK [13:45:53]SAM_PROTO_SignData done [13:45:53]FM_MakeSignedData done [13:45:53]CreateOFDProtocolMessage [13:45:53]wFMCommunicate request_size=4 [13:45:53]MH_SAM_APDU [13:45:53]CAPDU: 80 11 00 00 [13:45:53]Write to MH i2c: E2 08 00 80 14 80 11 00 00 00 00 00 00 0E [13:45:53]Write i2c OK [13:45:53]MH_I2C_Read... [13:45:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:45:53]Read from MH i2c: E2 [13:45:53]MH_I2C_Read... [13:45:53]Read from MH i2c: E2 17 00 [13:45:53]MH_I2C_Read... [13:45:53]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 35 30 37 34 90 00 60 [13:45:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [13:45:53]wFMCommunicate OK [13:45:53]CreateOFDProtocolMessage done [13:45:53]OFDSenderStorePacket 63817 [13:45:53]StoreOFDPacket docnum=63817 [13:45:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 47 01 00 00 2B A6 3F 01 7E 53 5A 03 01 00 03 00 33 01 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 32 30 30 30 30 32 38 34 31 30 30 32 35 06 04 41 00 D0 9E D1 87 D0 BA D0 B8 20 D1 81 D0 BE D0 BB D0 BD D1 86 D0 B5 D0 B7 D0 B0 D1 89 D0 B8 D1 82 D0 BD D1 8B D0 B5 20 D0 B2 20 D0 B0 D1 81 D1 81 D0 BE D1 80 D1 82 D0 B8 D0 BC D0 B5 D0 BD D1 82 D0 B5 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 18 C4 00 00 00 00 13 04 06 00 18 C4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 C4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BC 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 14 00 00 00 00 07 04 06 00 18 C4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 12 C9 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 49 F9 00 00 35 04 06 00 0E DE E4 D3 80 19 A0 8A 9E 4C 0F 87 07 54 [13:45:53]CheckFolder [13:45:53]dirname=/storage/ofd_packets [13:45:53]CheckFolder done [13:45:53]ProducePacketName [13:45:53]name=ofd_packets/00063817 [13:45:53]NVStorageSaveData ofd_packets/00063817 [13:45:53]File name is /storage/ofd_packets/00063817 [13:45:53]Write 357 bytes [13:45:53]NVStorageSaveData done [13:45:53]OFDSenderStorePacket done [13:45:53]KKMCreateOFDPacket done [13:45:53]NVStorageSaveData kkm_last_timestamp [13:45:53]File name is /storage/kkm_last_timestamp [13:45:53]Write 4 bytes [13:45:53]NVStorageSaveData done [13:45:53]ExternCall_PrintAddStr [13:45:53]wPrintStart [13:45:53]Write to MH i2c: 01 00 00 81 14 95 [13:45:53]Write i2c OK [13:45:53]MH_I2C_Read... [13:45:53]Read from MH i2c: 01 [13:45:53]MH_I2C_Read... [13:45:53]Read from MH i2c: 01 07 00 [13:45:53]MH_I2C_Read... [13:45:53]Read from MH i2c: 01 07 00 81 14 00 00 00 00 00 FF 0F AA [13:45:53]RasterBufferAndPrint [13:45:53]line Счет N : (3)73399 [13:45:53]line ИНН: 02508201610067 [13:45:53]line Контрольно-Кассовый Чек [13:45:53]line ПРОДАЖА [13:45:53]line Товар: 2000028410025 [13:45:53]line Очки солнцезащитные в ассортименте [13:45:53]line 1.000 * 502.00 [13:45:53]line = 502.00 [13:45:53]line НДС 12% НСП 1% [13:45:53]line > о реализуемом товаре [13:45:53]line ИТОГО: 502.00 [13:45:53]line НСП 1% : 4.44 [13:45:53]line НДС 12% : 53.31 [13:45:53]line Наличными: 502.00 [13:45:53]line Безнал.: 0.00 [13:45:53]line Место: АЗС № 117 "Партнер Нефть" [13:45:53]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [13:45:53]line СНО: Общий режим [13:45:53]line Чек 75 03.06.2024 13:45 [13:45:53]line Смена: 373 ФФД: 1.0 [13:45:53]line ЗНМ: 0300000031 [13:45:53]line РНМ: 0000000000092737 [13:45:53]line Версия ККМ: 001 [13:45:53]line ФМ: 0000000000875074 [13:45:53]line ФД: 63817 [13:45:53]line ФПД: 16350484594713 [13:45:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T134554&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63817&fm=16350484594713&tin=02508201610067®Number=0000000000092737&sum=50200 [13:45:53]line 0 [13:45:53]OFD Sender: Processing packet 63817 [packets to send 14, broken 13] [13:45:53]ProducePacketName [13:45:53]name=ofd_packets/00063817 [13:45:53]OFD Sender: To server: pG, [13:45:53]CommunicateWithHost lk.salyk.kg:30040 [13:45:53]ConnectInit lk.salyk.kg [13:45:53]written 0, free lines is 4095 [13:45:54]Connected sock=10 [13:45:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 47 01 00 00 2B A6 3F 01 7E 53 5A 03 01 00 03 00 33 01 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 32 30 30 30 30 32 38 34 31 30 30 32 35 06 04 41 00 D0 9E D1 87 D0 BA D0 B8 20 D1 81 D0 BE D0 BB D0 BD D1 86 D0 B5 D0 B7 D0 B0 D1 89 D0 B8 D1 82 D0 BD D1 8B D0 B5 20 D0 B2 20 D0 B0 D1 81 D1 81 D0 BE D1 80 D1 82 D0 B8 D0 BC D0 B5 D0 BD D1 82 D0 B5 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 18 C4 00 00 00 00 13 04 06 00 18 C4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 C4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BC 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 14 00 00 00 00 07 04 06 00 18 C4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 12 C9 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 49 F9 00 00 35 04 06 00 0E DE E4 D3 80 19 A0 8A 9E 4C 0F 87 07 54 [13:45:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 3F 82 47 00 1D 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 35 30 37 34 10 04 04 00 49 F9 00 00 F4 03 04 00 E3 74 5D 66 B6 04 01 00 00 92 F7 16 8C B3 EA 8E 26 [13:45:54]CommunicateWithHost err = 0 [13:45:54]CheckOFDResponse [13:45:54]1017 (14) - 77093643461234 [13:45:54]1041 (16) - 0000000000875074 [13:45:54]1040 (4) - 63817 [13:45:54]1012 (4) - 03.06.2024 07:46 [13:45:54]1206 (1) - 0 [13:45:54]OFD Sender: Remove packet 63817 [13:45:54]ProducePacketName [13:45:54]name=ofd_packets/00063817 [13:45:54]NVStorageDeleteData [13:45:54]Write to MH i2c: 01 00 00 AA 14 BE [13:45:54]Write i2c OK [13:45:54]MH_I2C_Read... [13:45:54]Read from MH i2c: 01 [13:45:54]MH_I2C_Read... [13:45:54]Read from MH i2c: 01 07 00 [13:45:54]MH_I2C_Read... [13:45:54]Read from MH i2c: 01 07 00 AA 14 00 00 00 00 00 D3 0C A4 [13:45:54]RasterBufferAndPrint [13:45:54]line [13:45:54]line [13:45:54]line [13:45:54]line [13:45:54]line [13:45:54]written 0, free lines is 3289 [13:45:54]MH_Cut [13:45:54]Write to MH i2c: D1 01 00 B1 14 01 97 [13:45:54]Write i2c OK [13:45:54]MH_I2C_Read... [13:45:54]Read from MH i2c: D1 [13:45:54]MH_I2C_Read... [13:45:54]Read from MH i2c: D1 01 00 [13:45:54]MH_I2C_Read... [13:45:54]Read from MH i2c: D1 01 00 B1 14 00 96 [13:45:54]Write to MH i2c: 01 00 00 B2 14 C6 [13:45:54]Write i2c OK [13:45:54]MH_I2C_Read... [13:45:54]OFD Sender: No OFD packet to send [13:45:55]*** Cut start [13:45:55]*** Partial cut [13:45:55]*** CUTSNS_PIN = 1 [13:45:55]*** CUTSNS_PIN = 0 [13:45:55]*** Brake cut motor [13:45:55]Read from MH i2c: 01 [13:45:55]MH_I2C_Read... [13:45:55]*** Stop cut motor [13:45:55]*** Cut end [13:45:55]Read from MH i2c: 01 07 00 [13:45:55]MH_I2C_Read... [13:45:55]Read from MH i2c: 01 07 00 B2 14 00 00 00 00 00 FF 0F DB [13:45:55]process_action close_receipt done [13:45:55]requested_data is exist [13:45:55]produce_requested_data [13:45:55]requested_item fm.sn is exist - process it [13:45:55]wFMCommunicate request_size=4 [13:45:55]MH_SAM_APDU [13:45:55]CAPDU: 80 11 00 00 [13:45:55]Write to MH i2c: E2 08 00 B3 14 80 11 00 00 00 00 00 00 41 [13:45:55]Write i2c OK [13:45:55]MH_I2C_Read... [13:45:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:45:55]Read from MH i2c: E2 [13:45:55]MH_I2C_Read... [13:45:55]Read from MH i2c: E2 17 00 [13:45:55]MH_I2C_Read... [13:45:55]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 35 30 37 34 90 00 93 [13:45:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [13:45:55]wFMCommunicate OK [13:45:55]requested_item fd.num is exist - process it [13:45:55]SAM_PROTO_GetFieldsCounters [13:45:55]wFMCommunicate request_size=4 [13:45:55]MH_SAM_APDU [13:45:55]CAPDU: 80 13 00 00 [13:45:55]Write to MH i2c: E2 08 00 B4 14 80 13 00 00 00 00 00 00 44 [13:45:55]Write i2c OK [13:45:55]MH_I2C_Read... [13:45:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:45:56]Read from MH i2c: E2 [13:45:56]MH_I2C_Read... [13:45:56]Read from MH i2c: E2 62 00 [13:45:56]MH_I2C_Read... [13:45:56]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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 49 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 00 [13: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 49 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:45:56]wFMCommunicate OK [13:45:56]SAM_PROTO_GetFieldsCounters done [13:45:56]requested_item shift.num is exist - process it [13:45:56]requested_item shift.opened is exist - process it [13:45:56]req_shift_opened [13:45:56]FM_GetShiftState [13:45:56]SAM_PROTO_GetShiftState [13:45:56]wFMCommunicate request_size=4 [13:45:56]MH_SAM_APDU [13:45:56]CAPDU: 80 13 01 00 [13:45:56]Write to MH i2c: E2 08 00 B5 14 80 13 01 00 00 00 00 00 46 [13:45:56]Write i2c OK [13:45:56]MH_I2C_Read... [13:45:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:45:56]Read from MH i2c: E2 [13:45:56]MH_I2C_Read... [13:45:56]Read from MH i2c: E2 0E 00 [13:45:56]MH_I2C_Read... [13:45:56]Read from MH i2c: E2 0E 00 B5 14 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 12 [13:45:56]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [13:45:56]wFMCommunicate OK [13:45:56]SAM_PROTO_GetShiftState done [13:45:56]FM_GetShiftState done [13:45:56]req_shift_opened done [13:45:56]requested_item shift.open_date is exist - process it [13:45:56]req_shift_open_date [13:45:56]req_shift_open_date done [13:45:56]produce_requested_data done [13:45:56]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63817,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [13:45:56]process_action_free close_receipt [13:45:56]json_value_free [13:45:56]json_value_free done [13:45:56]process_json_proto returns [13:45:56]Send response to host [13:45:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63817,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [13:45:56]free response buf [13:45:56]execute_script done [13:45:56]execute_script returns [13:45:56]free content buf [13:45:56]Sock 7.Close socket [13:45:56]Sock 7.Thread stoped [13:45:59]OFD Sender: No OFD packet to send [13:46:04]OFD Sender: No OFD packet to send [13:46:09]OFD Sender: No OFD packet to send [13:46:14]OFD Sender: No OFD packet to send [13:46:19]OFD Sender: No OFD packet to send [13:46:24]OFD Sender: No OFD packet to send [13:46:29]OFD Sender: No OFD packet to send [13:46:34]OFD Sender: No OFD packet to send [13:46:39]OFD Sender: No OFD packet to send [13:46:44]OFD Sender: No OFD packet to send [13:46:49]OFD Sender: No OFD packet to send [13:46:54]OFD Sender: No OFD packet to send [13:46:59]OFD Sender: No OFD packet to send [13:47:04]OFD Sender: No OFD packet to send [13:47:09]OFD Sender: No OFD packet to send [13:47:14]OFD Sender: No OFD packet to send [13:47:19]OFD Sender: No OFD packet to send [13:47:24]OFD Sender: No OFD packet to send [13:47:29]OFD Sender: No OFD packet to send [13:47:34]OFD Sender: No OFD packet to send [13:47:39]OFD Sender: No OFD packet to send [13:47:44]OFD Sender: No OFD packet to send [13:47:49]OFD Sender: No OFD packet to send [13:47:54]OFD Sender: No OFD packet to send [13:47:59]OFD Sender: No OFD packet to send [13:48:04]OFD Sender: No OFD packet to send [13:48:09]OFD Sender: No OFD packet to send [13:48:14]OFD Sender: No OFD packet to send [13:48:19]OFD Sender: No OFD packet to send [13:48:24]OFD Sender: No OFD packet to send [13:48:29]OFD Sender: No OFD packet to send [13:48:34]OFD Sender: No OFD packet to send [13:48:39]OFD Sender: No OFD packet to send [13:48:44]OFD Sender: No OFD packet to send [13:48:49]OFD Sender: No OFD packet to send [13:48:54]OFD Sender: No OFD packet to send [13:48:59]OFD Sender: No OFD packet to send [13:49:04]OFD Sender: No OFD packet to send [13:49:09]OFD Sender: No OFD packet to send [13:49:14]OFD Sender: No OFD packet to send [13:49:19]OFD Sender: No OFD packet to send [13:49:24]OFD Sender: No OFD packet to send [13:49:29]OFD Sender: No OFD packet to send [13:49:34]OFD Sender: No OFD packet to send [13:49:39]OFD Sender: No OFD packet to send [13:49:44]OFD Sender: No OFD packet to send [13:49:49]OFD Sender: No OFD packet to send [13:49:54]OFD Sender: No OFD packet to send [13:49:59]OFD Sender: No OFD packet to send [13:50:04]OFD Sender: No OFD packet to send [13:50:09]OFD Sender: No OFD packet to send [13:50:14]OFD Sender: No OFD packet to send [13:50:19]OFD Sender: No OFD packet to send [13:50:24]OFD Sender: No OFD packet to send [13:50:29]OFD Sender: No OFD packet to send [13:50:34]OFD Sender: No OFD packet to send [13:50:39]OFD Sender: No OFD packet to send [13:50:44]OFD Sender: No OFD packet to send [13:50:49]OFD Sender: No OFD packet to send [13:50:54]OFD Sender: No OFD packet to send [13:50:59]OFD Sender: No OFD packet to send [13:51:04]OFD Sender: No OFD packet to send [13:51:09]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:30]OFD Sender: No OFD packet to send [13:54:35]OFD Sender: No OFD packet to send [13:54:40]OFD Sender: No OFD packet to send [13:54:45]OFD Sender: No OFD packet to send [13:54:50]OFD Sender: No OFD packet to send [13:54:55]OFD Sender: No OFD packet to send [13:55:00]OFD Sender: No OFD packet to send [13:55:05]OFD Sender: No OFD packet to send [13:55:10]OFD Sender: No OFD packet to send [13:55:15]OFD Sender: No OFD packet to send [13:55:20]OFD Sender: No OFD packet to send [13:55:25]OFD Sender: No OFD packet to send [13:55:30]OFD Sender: No OFD packet to send [13:55:35]OFD Sender: No OFD packet to send [13:55:40]OFD Sender: No OFD packet to send [13:55:45]OFD Sender: No OFD packet to send [13:55:50]OFD Sender: No OFD packet to send [13:55:55]OFD Sender: No OFD packet to send [13:56:00]OFD Sender: No OFD packet to send [13:56:05]OFD Sender: No OFD packet to send [13:56:10]OFD Sender: No OFD packet to send [13:56:15]OFD Sender: No OFD packet to send [13:56:20]OFD Sender: No OFD packet to send [13:56:25]OFD Sender: No OFD packet to send [13:56:30]OFD Sender: No OFD packet to send [13:56:35]OFD Sender: No OFD packet to send [13:56:40]OFD Sender: No OFD packet to send [13:56:45]OFD Sender: No OFD packet to send [13:56:50]OFD Sender: No OFD packet to send [13:56:55]OFD Sender: No OFD packet to send [13:57:00]OFD Sender: No OFD packet to send [13:57:05]OFD Sender: No OFD packet to send [13:57:10]OFD Sender: No OFD packet to send [13:57:15]OFD Sender: No OFD packet to send [13:57:20]OFD Sender: No OFD packet to send [13:57:25]OFD Sender: No OFD packet to send [13:57:30]OFD Sender: No OFD packet to send [13:57:33]accept exits with 9 [13:57:33]New connection [13:57:33]New thread 3067518308 created [13:57:33]Thread 3067374948 joined [13:57:33]Waiting for new connection... [13:57:33] Sock 9.Parse request [13:57:33]Sock 9.Check first char [13:57:33]Sock 9.First char is OK [13:57:33]request: POST /json_proto HTTP/1.0 [13:57:33]Method: POST [13:57:33]URL: /json_proto [13:57:33]Method is POST - this is cgi request [13:57:33]url: /json_proto [13:57:33]query_string will be loaded in cgi processing [13:57:33]execute_cgi json_proto POST (null) [13:57:33]execute_cgi path=json_proto method=POST [13:57:33]POST find Content-Length [13:57:33]Host: 172.17.60.69:8080 [13:57:33]Content-Length: 1269 [13:57:33]Content-Type: application/json [13:57:33] [13:57:33]POST finish read [13:57:33]Found Content-Length = 1269 [13:57:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73400", "tax_sys" : 0, "items" : [ { "code": "2000032780025", "name": "\u0421\u043E\u0441\u0438\u0441\u043A\u0430 \u0432 \u0442\u0435\u0441\u0442\u0435 DC 110\u0433", "price" : 60.00, "quantity" : 3.000, "sum" : 180.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001570057", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 0,5\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "47803152", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Mevius Revo", "price" : 155.00, "quantity" : 1.000, "sum" : 155.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 415.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:57:33]execute_script... [13:57:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73400", "tax_sys" : 0, "items" : [ { "code": "2000032780025", "name": "\u0421\u043E\u0441\u0438\u0441\u043A\u0430 \u0432 \u0442\u0435\u0441\u0442\u0435 DC 110\u0433", "price" : 60.00, "quantity" : 3.000, "sum" : 180.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001570057", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 0,5\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "47803152", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Mevius Revo", "price" : 155.00, "quantity" : 1.000, "sum" : 155.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 415.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:57:33]POST & json_proto [13:57:33]process_json_proto [13:57:33]json parsed OK: [13:57:33]protocol is kg_v1.0 [13:57:33]action value=close_receipt [13:57:33]process_action close_receipt [13:57:33]cmd_close_receipt [13:57:33]MH_GetDate [13:57:33]Write to MH i2c: F0 00 00 B6 14 B9 [13:57:33]Write i2c OK [13:57:33]MH_I2C_Read... [13:57:33]Read from MH i2c: F0 [13:57:33]MH_I2C_Read... [13:57:33]Read from MH i2c: F0 09 00 [13:57:33]MH_I2C_Read... [13:57:33]Read from MH i2c: F0 09 00 B6 14 00 D0 CB 5D 66 6A 96 4A 66 D0 [13:57:33]GetLastDocTimeStamp 1717422354 [13:57:33]current date 1717423056 [13:57:33]FM_GetShiftState [13:57:33]SAM_PROTO_GetShiftState [13:57:33]wFMCommunicate request_size=4 [13:57:33]MH_SAM_APDU [13:57:33]CAPDU: 80 13 01 00 [13:57:33]Write to MH i2c: E2 08 00 B7 14 80 13 01 00 00 00 00 00 48 [13:57:33]Write i2c OK [13:57:33]MH_I2C_Read... [13:57:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:57:33]Read from MH i2c: E2 [13:57:33]MH_I2C_Read... [13:57:33]Read from MH i2c: E2 0E 00 [13:57:33]MH_I2C_Read... [13:57:33]Read from MH i2c: E2 0E 00 B7 14 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 14 [13:57:33]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [13:57:33]wFMCommunicate OK [13:57:33]SAM_PROTO_GetShiftState done [13:57:33]FM_GetShiftState done [13:57:33]opened in 1717373173 [13:57:33]opened+sec_in_day 1717459573 [13:57:33]quantity*price = 18000 [13:57:33]sum+1 = 18001 [13:57:33]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870001570057 Напиток Pepsi 0,5л 1.000 * 80.00 = 80.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 47803152 Сигареты Mevius Revo 1.000 * 155.00 = 155.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 415.00 НСП 1% : 3.67 НДС 12% : 44.07 Наличными: 0.00 Безнал.: 415.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 76 03.06.2024 13:57 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875074 ФД: 63818 ФПД: 104941143964604 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T135736&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63818&fm=104941143964604&tin=02508201610067®Number=0000000000092737&sum=41500 0 [13:57:34]StoreToDocumentArchive [13:57:34]shift 373 fd 63818 [13:57:34]save to /storage/0373/doc_00063818 [13:57:34]save last doc name /storage/0373/doc_00063818 to /storage/kkm_last_doc_name [13:57:34]save OK [13:57:34]Clear old archive folders... [13:57:34]ProcessDocumentItem done err = 0, tmpTLVsize=472 [13:57:34]tlvbuf is 00D64AC0 [13:57:34]SAM_PROTO_ClearQueue [13:57:34]wFMCommunicate request_size=4 [13:57:34]MH_SAM_APDU [13:57:34]CAPDU: 80 09 00 00 [13:57:34]Write to MH i2c: E2 08 00 C4 14 80 09 00 00 00 00 00 00 4A [13:57:34]Write i2c OK [13:57:34]MH_I2C_Read... [13:57:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:57:34]Read from MH i2c: E2 [13:57:34]MH_I2C_Read... [13:57:34]Read from MH i2c: E2 03 00 [13:57:34]MH_I2C_Read... [13:57:34]Read from MH i2c: E2 03 00 C4 14 00 90 00 4C [13:57:34]RAPDU: 90 00 [13:57:34]wFMCommunicate OK [13:57:34]SAM_PROTO_ClearQueue done [13:57:34]KKMCreateOFDPacket [13:57:34]OFDProtocolAddRootSTLVToBuf [13:57:34]FM_MakeSignedData [13:57:34]FM_MakeSignedData [13:57:34]SAM_PROTO_SignData [13:57:34]wFMCommunicate request_size=4 [13:57:34]MH_SAM_APDU [13:57:34]CAPDU: 80 0D 01 02 [13:57:34]Write to MH i2c: E2 08 00 C5 14 80 0D 01 02 00 00 00 00 52 [13:57:34]Write i2c OK [13:57:34]MH_I2C_Read... [13:57:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:57:34]Read from MH i2c: E2 [13:57:34]MH_I2C_Read... [13:57:34]Read from MH i2c: E2 03 00 [13:57:34]MH_I2C_Read... [13:57:34]Read from MH i2c: E2 03 00 C5 14 00 90 00 4D [13:57:34]RAPDU: 90 00 [13:57:34]wFMCommunicate OK [13:57:34]wFMCommunicate request_size=255 [13:57:34]MH_SAM_APDU [13:57:34]CAPDU: 80 0D 02 02 FA 03 00 D8 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 32 35 06 04 25 00 D0 A1 D0 BE D1 81 D0 B8 D1 81 D0 BA D0 B0 20 D0 B2 20 D1 82 D0 B5 D1 81 D1 82 D0 B5 20 44 43 20 31 31 30 D0 B3 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5B 00 8A 04 08 00 34 37 38 30 33 31 35 32 06 04 1C 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 [13:57:35]Write to MH i2c: E2 02 01 C6 14 80 0D 02 02 FA 00 03 00 D8 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 32 35 06 04 25 00 D0 A1 D0 BE D1 81 D0 B8 D1 81 D0 BA D0 B0 20 D0 B2 20 D1 82 D0 B5 D1 81 D1 82 D0 B5 20 44 43 20 31 31 30 D0 B3 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5B 00 8A 04 08 00 34 37 38 30 33 31 35 32 06 04 1C 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 00 00 79 [13:57:35]Write i2c OK [13:57:35]MH_I2C_Read... [13:57:35]OFD Sender: No OFD packet to send [13:57:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:57:35]Read from MH i2c: E2 [13:57:35]MH_I2C_Read... [13:57:35]Read from MH i2c: E2 03 00 [13:57:35]MH_I2C_Read... [13:57:35]Read from MH i2c: E2 03 00 C6 14 00 90 00 4E [13:57:35]RAPDU: 90 00 [13:57:35]wFMCommunicate OK [13:57:35]wFMCommunicate request_size=231 [13:57:35]MH_SAM_APDU [13:57:35]CAPDU: 80 0D 02 02 E2 D1 8B 20 4D 65 76 69 75 73 20 52 65 76 6F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C A2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 11 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C A2 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 D0 CB 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 4A F9 00 00 35 04 06 00 5F 71 83 9B BB BC [13:57:35]Write to MH i2c: E2 EA 00 C7 14 80 0D 02 02 E2 00 D1 8B 20 4D 65 76 69 75 73 20 52 65 76 6F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C A2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 11 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C A2 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 D0 CB 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 4A F9 00 00 35 04 06 00 5F 71 83 9B BB BC 00 00 A4 [13:57:35]Write i2c OK [13:57:35]MH_I2C_Read... [13:57:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:57:35]Read from MH i2c: E2 [13:57:35]MH_I2C_Read... [13:57:35]Read from MH i2c: E2 03 00 [13:57:35]MH_I2C_Read... [13:57:35]Read from MH i2c: E2 03 00 C7 14 00 90 00 4F [13:57:35]RAPDU: 90 00 [13:57:35]wFMCommunicate OK [13:57:35]wFMCommunicate request_size=4 [13:57:35]MH_SAM_APDU [13:57:35]CAPDU: 80 0D 03 02 [13:57:35]Write to MH i2c: E2 08 00 C8 14 80 0D 03 02 00 00 00 00 57 [13:57:35]Write i2c OK [13:57:35]MH_I2C_Read... [13:57:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:57:35]Read from MH i2c: E2 [13:57:35]MH_I2C_Read... [13:57:35]Read from MH i2c: E2 0B 00 [13:57:35]MH_I2C_Read... [13:57:35]Read from MH i2c: E2 0B 00 C8 14 00 35 71 92 BE 47 09 65 08 90 00 0B [13:57:35]RAPDU: 35 71 92 BE 47 09 65 08 90 00 [13:57:35]wFMCommunicate OK [13:57:35]SAM_PROTO_SignData done [13:57:35]FM_MakeSignedData done [13:57:35]CreateOFDProtocolMessage [13:57:35]wFMCommunicate request_size=4 [13:57:35]MH_SAM_APDU [13:57:35]CAPDU: 80 11 00 00 [13:57:35]Write to MH i2c: E2 08 00 C9 14 80 11 00 00 00 00 00 00 57 [13:57:35]Write i2c OK [13:57:35]MH_I2C_Read... [13:57:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:57:35]Read from MH i2c: E2 [13:57:35]MH_I2C_Read... [13:57:35]Read from MH i2c: E2 17 00 [13:57:35]MH_I2C_Read... [13:57:35]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 35 30 37 34 90 00 A9 [13:57:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [13:57:35]wFMCommunicate OK [13:57:35]CreateOFDProtocolMessage done [13:57:35]OFDSenderStorePacket 63818 [13:57:35]StoreOFDPacket docnum=63818 [13:57:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 EC 01 00 00 C7 8D E4 01 F0 BC 5A 03 01 00 03 00 D8 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 32 35 06 04 25 00 D0 A1 D0 BE D1 81 D0 B8 D1 81 D0 BA D0 B0 20 D0 B2 20 D1 82 D0 B5 D1 81 D1 82 D0 B5 20 44 43 20 31 31 30 D0 B3 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5B 00 8A 04 08 00 34 37 38 30 33 31 35 32 06 04 1C 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 65 76 69 75 73 20 52 65 76 6F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C A2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 11 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C A2 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 D0 CB 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 4A F9 00 00 35 04 06 00 5F 71 83 9B BB BC 35 71 92 BE 47 09 65 08 [13:57:35]CheckFolder [13:57:35]dirname=/storage/ofd_packets [13:57:35]CheckFolder done [13:57:35]ProducePacketName [13:57:35]name=ofd_packets/00063818 [13:57:35]NVStorageSaveData ofd_packets/00063818 [13:57:35]File name is /storage/ofd_packets/00063818 [13:57:35]Write 522 bytes [13:57:35]NVStorageSaveData done [13:57:35]OFDSenderStorePacket done [13:57:35]KKMCreateOFDPacket done [13:57:35]NVStorageSaveData kkm_last_timestamp [13:57:35]File name is /storage/kkm_last_timestamp [13:57:35]Write 4 bytes [13:57:35]NVStorageSaveData done [13:57:35]ExternCall_PrintAddStr [13:57:35]wPrintStart [13:57:35]Write to MH i2c: 01 00 00 CA 14 DE [13:57:35]Write i2c OK [13:57:35]MH_I2C_Read... [13:57:35]Read from MH i2c: 01 [13:57:35]MH_I2C_Read... [13:57:35]Read from MH i2c: 01 07 00 [13:57:35]MH_I2C_Read... [13:57:35]Read from MH i2c: 01 07 00 CA 14 00 00 00 00 00 FF 0F F3 [13:57:35]RasterBufferAndPrint [13:57:35]line Счет N : (3)73400 [13:57:35]line ИНН: 02508201610067 [13:57:35]line Контрольно-Кассовый Чек [13:57:35]line ПРОДАЖА [13:57:35]line Товар: 2000032780025 [13:57:35]line Сосиска в тесте DC 110г [13:57:35]line 3.000 * 60.00 [13:57:35]line = 180.00 [13:57:35]line НДС 12% НСП 1% [13:57:35]line > о реализуемом товаре [13:57:35]line Товар: 4870001570057 [13:57:35]line Напиток Pepsi 0,5л [13:57:35]line 1.000 * 80.00 [13:57:35]line = 80.00 [13:57:35]line НДС 12% НСП 1% [13:57:35]line > о реализуемом товаре [13:57:35]line Товар: 47803152 [13:57:35]line Сигареты Mevius Revo [13:57:35]line 1.000 * 155.00 [13:57:35]line = 155.00 [13:57:35]line НДС 12% НСП 1% [13:57:35]line > о реализуемом товаре [13:57:35]line ИТОГО: 415.00 [13:57:35]line НСП 1% : 3.67 [13:57:35]line НДС 12% : 44.07 [13:57:35]line Наличными: 0.00 [13:57:35]line Безнал.: 415.00 [13:57:35]line Место: АЗС № 117 "Партнер Нефть" [13:57:35]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [13:57:35]line СНО: Общий режим [13:57:35]line Чек 76 03.06.2024 13:57 [13:57:35]line Смена: 373 ФФД: 1.0 [13:57:35]line ЗНМ: 0300000031 [13:57:35]line РНМ: 0000000000092737 [13:57:35]line Версия ККМ: 001 [13:57:35]line Платежная система: O! деньги [13:57:35]line ФМ: 0000000000875074 [13:57:35]line ФД: 63818 [13:57:35]line ФПД: 104941143964604 [13:57:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T135736&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63818&fm=104941143964604&tin=02508201610067®Number=0000000000092737&sum=41500 [13:57:35]line 0 [13:57:35]OFD Sender: Processing packet 63818 [packets to send 14, broken 13] [13:57:35]ProducePacketName [13:57:35]name=ofd_packets/00063818 [13:57:35]OFD Sender: To server: pG, [13:57:35]CommunicateWithHost lk.salyk.kg:30040 [13:57:35]ConnectInit lk.salyk.kg [13:57:35]written 0, free lines is 4095 [13:57:36]Write to MH i2c: 01 00 00 00 15 15 [13:57:36]Write i2c OK [13:57:36]MH_I2C_Read... [13:57:36]Read from MH i2c: 01 [13:57:36]MH_I2C_Read... [13:57:36]Read from MH i2c: 01 07 00 [13:57:36]MH_I2C_Read... [13:57:36]Read from MH i2c: 01 07 00 00 15 00 00 00 00 00 14 0C 3C [13:57:36]RasterBufferAndPrint [13:57:36]line [13:57:36]line [13:57:36]line [13:57:36]line [13:57:36]line [13:57:36]written 0, free lines is 3096 [13:57:36]MH_Cut [13:57:36]Write to MH i2c: D1 01 00 07 15 01 EE [13:57:36]Write i2c OK [13:57:36]MH_I2C_Read... [13:57:36]Read from MH i2c: D1 [13:57:36]MH_I2C_Read... [13:57:36]Read from MH i2c: D1 01 00 [13:57:36]MH_I2C_Read... [13:57:36]Read from MH i2c: D1 01 00 07 15 00 ED [13:57:36]Write to MH i2c: 01 00 00 08 15 1D [13:57:36]Write i2c OK [13:57:36]MH_I2C_Read... [13:57:37]*** Cut start [13:57:37]*** Partial cut [13:57:37]*** CUTSNS_PIN = 1 [13:57:37]*** CUTSNS_PIN = 0 [13:57:37]*** Brake cut motor [13:57:37]Read from MH i2c: 01 [13:57:37]MH_I2C_Read... [13:57:37]*** Stop cut motor [13:57:37]*** Cut end [13:57:37]Read from MH i2c: 01 07 00 [13:57:37]MH_I2C_Read... [13:57:37]Read from MH i2c: 01 07 00 08 15 00 00 00 00 00 FF 0F 32 [13:57:37]process_action close_receipt done [13:57:37]requested_data is exist [13:57:37]produce_requested_data [13:57:37]requested_item fm.sn is exist - process it [13:57:37]wFMCommunicate request_size=4 [13:57:37]MH_SAM_APDU [13:57:37]CAPDU: 80 11 00 00 [13:57:37]Write to MH i2c: E2 08 00 09 15 80 11 00 00 00 00 00 00 98 [13:57:38]Write i2c OK [13:57:38]MH_I2C_Read... [13:57:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:57:38]Read from MH i2c: E2 [13:57:38]MH_I2C_Read... [13:57:38]Read from MH i2c: E2 17 00 [13:57:38]MH_I2C_Read... [13:57:38]Read from MH i2c: E2 17 00 09 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 EA [13:57:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [13:57:38]wFMCommunicate OK [13:57:38]requested_item fd.num is exist - process it [13:57:38]SAM_PROTO_GetFieldsCounters [13:57:38]wFMCommunicate request_size=4 [13:57:38]MH_SAM_APDU [13:57:38]CAPDU: 80 13 00 00 [13:57:38]Write to MH i2c: E2 08 00 0A 15 80 13 00 00 00 00 00 00 9B [13:57:38]Write i2c OK [13:57:38]MH_I2C_Read... [13:57:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:57:38]Read from MH i2c: E2 [13:57:38]MH_I2C_Read... [13:57:38]Read from MH i2c: E2 62 00 [13:57:38]MH_I2C_Read... [13:57:38]Read from MH i2c: E2 62 00 0A 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 4A F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 5B [13:57: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 4A F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:57:38]wFMCommunicate OK [13:57:38]SAM_PROTO_GetFieldsCounters done [13:57:38]requested_item shift.num is exist - process it [13:57:38]requested_item shift.opened is exist - process it [13:57:38]req_shift_opened [13:57:38]FM_GetShiftState [13:57:38]SAM_PROTO_GetShiftState [13:57:38]wFMCommunicate request_size=4 [13:57:38]MH_SAM_APDU [13:57:38]CAPDU: 80 13 01 00 [13:57:38]Write to MH i2c: E2 08 00 0B 15 80 13 01 00 00 00 00 00 9D [13:57:38]Write i2c OK [13:57:38]MH_I2C_Read... [13:57:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:57:38]Read from MH i2c: E2 [13:57:38]MH_I2C_Read... [13:57:38]Read from MH i2c: E2 0E 00 [13:57:38]MH_I2C_Read... [13:57:38]Read from MH i2c: E2 0E 00 0B 15 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 69 [13:57:38]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [13:57:38]wFMCommunicate OK [13:57:38]SAM_PROTO_GetShiftState done [13:57:38]FM_GetShiftState done [13:57:38]req_shift_opened done [13:57:38]requested_item shift.open_date is exist - process it [13:57:38]req_shift_open_date [13:57:38]req_shift_open_date done [13:57:38]produce_requested_data done [13:57:38]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63818,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [13:57:38]process_action_free close_receipt [13:57:38]json_value_free [13:57:38]json_value_free done [13:57:38]process_json_proto returns [13:57:38]Send response to host [13:57:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63818,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [13:57:38]free response buf [13:57:38]execute_script done [13:57:38]execute_script returns [13:57:38]free content buf [13:57:38]Sock 9.Close socket [13:57:38]Sock 9.Thread stoped [13:59:49]ConnectInit Can't connect to host [13:59:49]CommunicateWithHost connect error [13:59:49]CommunicateWithHost err = -1 [13:59:49]OFD Sender: Server communicate error [13:59:54]OFD Sender: Processing packet 63818 [packets to send 14, broken 13] [13:59:54]ProducePacketName [13:59:54]name=ofd_packets/00063818 [13:59:54]OFD Sender: To server: pG, [13:59:54]CommunicateWithHost lk.salyk.kg:30040 [13:59:54]ConnectInit lk.salyk.kg [13:59:54]Connected sock=9 [13:59:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 EC 01 00 00 C7 8D E4 01 F0 BC 5A 03 01 00 03 00 D8 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 32 35 06 04 25 00 D0 A1 D0 BE D1 81 D0 B8 D1 81 D0 BA D0 B0 20 D0 B2 20 D1 82 D0 B5 D1 81 D1 82 D0 B5 20 44 43 20 31 31 30 D0 B3 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5B 00 8A 04 08 00 34 37 38 30 33 31 35 32 06 04 1C 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 65 76 69 75 73 20 52 65 76 6F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C A2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 11 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C A2 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 D0 CB 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 4A F9 00 00 35 04 06 00 5F 71 83 9B BB BC 35 71 92 BE 47 09 65 08 [13:59:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 D7 DB 47 00 24 8C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 4A F9 00 00 F4 03 04 00 2C 78 5D 66 B6 04 01 00 00 A1 C8 22 DF C1 02 E6 E4 [13:59:55]CommunicateWithHost err = 0 [13:59:55]CheckOFDResponse [13:59:55]1017 (14) - 77093643461234 [13:59:55]1041 (16) - 0000000000875074 [13:59:55]1040 (4) - 63818 [13:59:55]1012 (4) - 03.06.2024 08:00 [13:59:55]1206 (1) - 0 [13:59:55]OFD Sender: Remove packet 63818 [13:59:55]ProducePacketName [13:59:55]name=ofd_packets/00063818 [13:59:55]NVStorageDeleteData [13:59:55]OFD Sender: No OFD packet to send [14:00:00]OFD Sender: No OFD packet to send [14:00:05]OFD Sender: No OFD packet to send [14:00:10]OFD Sender: No OFD packet to send [14:00:15]OFD Sender: No OFD packet to send [14:00:20]OFD Sender: No OFD packet to send [14:00:25]OFD Sender: No OFD packet to send [14:00:30]OFD Sender: No OFD packet to send [14:00:35]OFD Sender: No OFD packet to send [14:00:40]OFD Sender: No OFD packet to send [14:00:45]OFD Sender: No OFD packet to send [14:00:50]OFD Sender: No OFD packet to send [14:00:55]OFD Sender: No OFD packet to send [14:01:00]OFD Sender: No OFD packet to send [14:01:05]OFD Sender: No OFD packet to send [14:01: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:02]accept exits with 7 [14:06:02]New connection [14:06:02]New thread 3067374948 created [14:06:02]Thread 3067518308 joined [14:06:02]Waiting for new connection... [14:06:02] Sock 7.Parse request [14:06:02]Sock 7.Check first char [14:06:02]Sock 7.First char is OK [14:06:02]request: POST /json_proto HTTP/1.0 [14:06:02]Method: POST [14:06:02]URL: /json_proto [14:06:02]Method is POST - this is cgi request [14:06:02]url: /json_proto [14:06:02]query_string will be loaded in cgi processing [14:06:02]execute_cgi json_proto POST (null) [14:06:02]execute_cgi path=json_proto method=POST [14:06:02]POST find Content-Length [14:06:02]Host: 172.17.60.69:8080 [14:06:02]Content-Length: 713 [14:06:02]Content-Type: application/json [14:06:02] [14:06:02]POST finish read [14:06:02]Found Content-Length = 713 [14:06:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73403", "tax_sys" : 0, "items" : [ { "code": "4860019001810", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u0440\u0436\u043E\u043C\u0438 \u043C\u0438\u043D\u0435\u0440\u0430\u043B\u044C\u043D\u0430\u044F \u0436/\u0431 0,33\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 80.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:06:02]execute_script... [14:06: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 : (3)73403", "tax_sys" : 0, "items" : [ { "code": "4860019001810", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u0440\u0436\u043E\u043C\u0438 \u043C\u0438\u043D\u0435\u0440\u0430\u043B\u044C\u043D\u0430\u044F \u0436/\u0431 0,33\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 80.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:06:02]POST & json_proto [14:06:02]process_json_proto [14:06:02]json parsed OK: [14:06:02]protocol is kg_v1.0 [14:06:02]action value=close_receipt [14:06:02]process_action close_receipt [14:06:02]cmd_close_receipt [14:06:02]MH_GetDate [14:06:02]Write to MH i2c: F0 00 00 0C 15 10 [14:06:02]Write i2c OK [14:06:02]MH_I2C_Read... [14:06:02]Read from MH i2c: F0 [14:06:02]MH_I2C_Read... [14:06:02]Read from MH i2c: F0 09 00 [14:06:02]MH_I2C_Read... [14:06:02]Read from MH i2c: F0 09 00 0C 15 00 CD CD 5D 66 6A 96 4A 66 26 [14:06:02]GetLastDocTimeStamp 1717423056 [14:06:02]current date 1717423565 [14:06:02]FM_GetShiftState [14:06:02]SAM_PROTO_GetShiftState [14:06:02]wFMCommunicate request_size=4 [14:06:02]MH_SAM_APDU [14:06:02]CAPDU: 80 13 01 00 [14:06:02]Write to MH i2c: E2 08 00 0D 15 80 13 01 00 00 00 00 00 9F [14:06:02]Write i2c OK [14:06:02]MH_I2C_Read... [14:06:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:06:02]Read from MH i2c: E2 [14:06:02]MH_I2C_Read... [14:06:02]Read from MH i2c: E2 0E 00 [14:06:02]MH_I2C_Read... [14:06:02]Read from MH i2c: E2 0E 00 0D 15 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 6B [14:06:02]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [14:06:02]wFMCommunicate OK [14:06:02]SAM_PROTO_GetShiftState done [14:06:02]FM_GetShiftState done [14:06:02]opened in 1717373173 [14:06:02]opened+sec_in_day 1717459573 [14:06:02]quantity*price = 8000 [14:06:02]sum+1 = 8001 [14:06:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 80.00 НСП 1% : 0.71 НДС 12% : 8.50 Наличными: 80.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 77 03.06.2024 14:06 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63819 ФПД: 226677764415053 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T140605&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63819&fm=226677764415053&tin=02508201610067®Number=0000000000092737&sum=8000 0 [14:06:04]StoreToDocumentArchive [14:06:04]shift 373 fd 63819 [14:06:04]save to /storage/0373/doc_00063819 [14:06:04]save last doc name /storage/0373/doc_00063819 to /storage/kkm_last_doc_name [14:06:04]save OK [14:06:04]Clear old archive folders... [14:06:04]ProcessDocumentItem done err = 0, tmpTLVsize=301 [14:06:04]tlvbuf is 00D3D550 [14:06:04]SAM_PROTO_ClearQueue [14:06:04]wFMCommunicate request_size=4 [14:06:04]MH_SAM_APDU [14:06:04]CAPDU: 80 09 00 00 [14:06:04]Write to MH i2c: E2 08 00 1A 15 80 09 00 00 00 00 00 00 A1 [14:06:04]Write i2c OK [14:06:04]MH_I2C_Read... [14:06:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:06:04]Read from MH i2c: E2 [14:06:04]MH_I2C_Read... [14:06:04]Read from MH i2c: E2 03 00 [14:06:04]MH_I2C_Read... [14:06:04]Read from MH i2c: E2 03 00 1A 15 00 90 00 A3 [14:06:04]RAPDU: 90 00 [14:06:04]wFMCommunicate OK [14:06:04]SAM_PROTO_ClearQueue done [14:06:04]KKMCreateOFDPacket [14:06:04]OFDProtocolAddRootSTLVToBuf [14:06:04]FM_MakeSignedData [14:06:04]FM_MakeSignedData [14:06:04]SAM_PROTO_SignData [14:06:04]wFMCommunicate request_size=4 [14:06:04]MH_SAM_APDU [14:06:04]CAPDU: 80 0D 01 02 [14:06:04]Write to MH i2c: E2 08 00 1B 15 80 0D 01 02 00 00 00 00 A9 [14:06:04]Write i2c OK [14:06:04]MH_I2C_Read... [14:06:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:06:04]Read from MH i2c: E2 [14:06:04]MH_I2C_Read... [14:06:04]Read from MH i2c: E2 03 00 [14:06:04]MH_I2C_Read... [14:06:04]Read from MH i2c: E2 03 00 1B 15 00 90 00 A4 [14:06:04]RAPDU: 90 00 [14:06:04]wFMCommunicate OK [14:06:04]wFMCommunicate request_size=255 [14:06:04]MH_SAM_APDU [14:06:04]CAPDU: 80 0D 02 02 FA 03 00 2D 01 1E 04 01 00 01 23 04 7F 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 38 31 30 06 04 3B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 D0 BC D0 B8 D0 BD D0 B5 D1 80 D0 B0 D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 B6 2F D0 B1 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 CD CD 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 [14:06:04]Write to MH i2c: E2 02 01 1C 15 80 0D 02 02 FA 00 03 00 2D 01 1E 04 01 00 01 23 04 7F 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 38 31 30 06 04 3B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 D0 BC D0 B8 D0 BD D0 B5 D1 80 D0 B0 D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 B6 2F D0 B1 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 CD CD 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 00 8B [14:06:04]Write i2c OK [14:06:04]MH_I2C_Read... [14:06:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:06:04]Read from MH i2c: E2 [14:06:04]MH_I2C_Read... [14:06:04]Read from MH i2c: E2 03 00 [14:06:04]MH_I2C_Read... [14:06:04]Read from MH i2c: E2 03 00 1C 15 00 90 00 A5 [14:06:04]RAPDU: 90 00 [14:06:04]wFMCommunicate OK [14:06:04]wFMCommunicate request_size=60 [14:06:04]MH_SAM_APDU [14:06:04]CAPDU: 80 0D 02 02 37 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 4B F9 00 00 35 04 06 00 CE 29 87 A0 5E 4D [14:06:04]Write to MH i2c: E2 3F 00 1D 15 80 0D 02 02 37 00 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 4B F9 00 00 35 04 06 00 CE 29 87 A0 5E 4D 00 00 DE [14:06:04]Write i2c OK [14:06:04]MH_I2C_Read... [14:06:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:06:04]Read from MH i2c: E2 [14:06:04]MH_I2C_Read... [14:06:04]Read from MH i2c: E2 03 00 [14:06:04]MH_I2C_Read... [14:06:04]Read from MH i2c: E2 03 00 1D 15 00 90 00 A6 [14:06:04]RAPDU: 90 00 [14:06:04]wFMCommunicate OK [14:06:04]wFMCommunicate request_size=4 [14:06:04]MH_SAM_APDU [14:06:04]CAPDU: 80 0D 03 02 [14:06:04]Write to MH i2c: E2 08 00 1E 15 80 0D 03 02 00 00 00 00 AE [14:06:04]Write i2c OK [14:06:04]MH_I2C_Read... [14:06:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:06:04]Read from MH i2c: E2 [14:06:04]MH_I2C_Read... [14:06:04]Read from MH i2c: E2 0B 00 [14:06:04]MH_I2C_Read... [14:06:04]Read from MH i2c: E2 0B 00 1E 15 00 35 67 D8 56 32 77 65 18 90 00 9F [14:06:04]RAPDU: 35 67 D8 56 32 77 65 18 90 00 [14:06:04]wFMCommunicate OK [14:06:04]SAM_PROTO_SignData done [14:06:04]FM_MakeSignedData done [14:06:04]CreateOFDProtocolMessage [14:06:04]wFMCommunicate request_size=4 [14:06:04]MH_SAM_APDU [14:06:04]CAPDU: 80 11 00 00 [14:06:04]Write to MH i2c: E2 08 00 1F 15 80 11 00 00 00 00 00 00 AE [14:06:04]Write i2c OK [14:06:04]MH_I2C_Read... [14:06:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:06:04]Read from MH i2c: E2 [14:06:04]MH_I2C_Read... [14:06:04]Read from MH i2c: E2 17 00 [14:06:04]MH_I2C_Read... [14:06:04]Read from MH i2c: E2 17 00 1F 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 00 [14:06:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [14:06:04]wFMCommunicate OK [14:06:04]CreateOFDProtocolMessage done [14:06:04]OFDSenderStorePacket 63819 [14:06:04]StoreOFDPacket docnum=63819 [14:06:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 41 01 00 00 B5 C8 39 01 42 DD 5A 03 01 00 03 00 2D 01 1E 04 01 00 01 23 04 7F 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 38 31 30 06 04 3B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 D0 BC D0 B8 D0 BD D0 B5 D1 80 D0 B0 D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 B6 2F D0 B1 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 CD CD 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 4B F9 00 00 35 04 06 00 CE 29 87 A0 5E 4D 35 67 D8 56 32 77 65 18 [14:06:04]CheckFolder [14:06:04]dirname=/storage/ofd_packets [14:06:04]CheckFolder done [14:06:04]ProducePacketName [14:06:04]name=ofd_packets/00063819 [14:06:04]NVStorageSaveData ofd_packets/00063819 [14:06:04]File name is /storage/ofd_packets/00063819 [14:06:04]Write 351 bytes [14:06:04]NVStorageSaveData done [14:06:04]OFDSenderStorePacket done [14:06:04]KKMCreateOFDPacket done [14:06:04]NVStorageSaveData kkm_last_timestamp [14:06:04]File name is /storage/kkm_last_timestamp [14:06:04]Write 4 bytes [14:06:04]NVStorageSaveData done [14:06:04]ExternCall_PrintAddStr [14:06:04]wPrintStart [14:06:04]Write to MH i2c: 01 00 00 20 15 35 [14:06:04]Write i2c OK [14:06:04]MH_I2C_Read... [14:06:04]Read from MH i2c: 01 [14:06:04]MH_I2C_Read... [14:06:04]Read from MH i2c: 01 07 00 [14:06:04]MH_I2C_Read... [14:06:04]Read from MH i2c: 01 07 00 20 15 00 00 00 00 00 FF 0F 4A [14:06:04]RasterBufferAndPrint [14:06:04]line Счет N : (3)73403 [14:06:04]line ИНН: 02508201610067 [14:06:04]line Контрольно-Кассовый Чек [14:06:04]line ПРОДАЖА [14:06:04]line Товар: 4860019001810 [14:06:04]line Вода Боржоми минеральная ж/б 0,33л [14:06:04]line 1.000 * 80.00 [14:06:04]line = 80.00 [14:06:04]line НДС 12% НСП 1% [14:06:04]line > о реализуемом товаре [14:06:04]line ИТОГО: 80.00 [14:06:04]line НСП 1% : 0.71 [14:06:04]line НДС 12% : 8.50 [14:06:04]line Наличными: 80.00 [14:06:04]line Безнал.: 0.00 [14:06:04]line Место: АЗС № 117 "Партнер Нефть" [14:06:04]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [14:06:04]line СНО: Общий режим [14:06:04]line Чек 77 03.06.2024 14:06 [14:06:04]line Смена: 373 ФФД: 1.0 [14:06:04]line ЗНМ: 0300000031 [14:06:04]line РНМ: 0000000000092737 [14:06:04]line Версия ККМ: 001 [14:06:04]line ФМ: 0000000000875074 [14:06:04]line ФД: 63819 [14:06:04]line ФПД: 226677764415053 [14:06:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T140605&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63819&fm=226677764415053&tin=02508201610067®Number=0000000000092737&sum=8000 [14:06:04]line 0 [14:06:04]OFD Sender: Processing packet 63819 [packets to send 14, broken 13] [14:06:04]ProducePacketName [14:06:04]name=ofd_packets/00063819 [14:06:04]OFD Sender: To server: pG, [14:06:04]CommunicateWithHost lk.salyk.kg:30040 [14:06:04]ConnectInit lk.salyk.kg [14:06:04]written 0, free lines is 4095 [14:06:05]Connected sock=10 [14:06:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 41 01 00 00 B5 C8 39 01 42 DD 5A 03 01 00 03 00 2D 01 1E 04 01 00 01 23 04 7F 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 38 31 30 06 04 3B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 D0 BC D0 B8 D0 BD D0 B5 D1 80 D0 B0 D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 B6 2F D0 B1 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 CD CD 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 4B F9 00 00 35 04 06 00 CE 29 87 A0 5E 4D 35 67 D8 56 32 77 65 18 [14:06:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 74 C5 47 00 DE 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 35 30 37 34 10 04 04 00 4B F9 00 00 F4 03 04 00 9E 79 5D 66 B6 04 01 00 00 99 08 BD B6 85 F6 F2 30 [14:06:05]CommunicateWithHost err = 0 [14:06:05]CheckOFDResponse [14:06:05]1017 (14) - 77093643461234 [14:06:05]1041 (16) - 0000000000875074 [14:06:05]1040 (4) - 63819 [14:06:05]1012 (4) - 03.06.2024 08:06 [14:06:05]1206 (1) - 0 [14:06:05]OFD Sender: Remove packet 63819 [14:06:05]ProducePacketName [14:06:05]name=ofd_packets/00063819 [14:06:05]NVStorageDeleteData [14:06:05]Write to MH i2c: 01 00 00 49 15 5E [14:06:05]Write i2c OK [14:06:05]MH_I2C_Read... [14:06:05]Read from MH i2c: 01 [14:06:05]MH_I2C_Read... [14:06:05]Read from MH i2c: 01 07 00 [14:06:05]MH_I2C_Read... [14:06:05]Read from MH i2c: 01 07 00 49 15 00 00 00 00 00 CB 0C 3C [14:06:05]RasterBufferAndPrint [14:06:05]line [14:06:05]line [14:06:05]line [14:06:05]line [14:06:05]line [14:06:05]written 0, free lines is 3282 [14:06:05]MH_Cut [14:06:05]Write to MH i2c: D1 01 00 50 15 01 37 [14:06:05]Write i2c OK [14:06:05]MH_I2C_Read... [14:06:05]Read from MH i2c: D1 [14:06:05]MH_I2C_Read... [14:06:05]Read from MH i2c: D1 01 00 [14:06:05]MH_I2C_Read... [14:06:05]Read from MH i2c: D1 01 00 50 15 00 36 [14:06:05]Write to MH i2c: 01 00 00 51 15 66 [14:06:05]Write i2c OK [14:06:05]MH_I2C_Read... [14:06:05]OFD Sender: No OFD packet to send [14:06:06]*** Cut start [14:06:06]*** Partial cut [14:06:06]*** CUTSNS_PIN = 1 [14:06:06]*** CUTSNS_PIN = 0 [14:06:06]*** Brake cut motor [14:06:06]Read from MH i2c: 01 [14:06:06]MH_I2C_Read... [14:06:06]*** Stop cut motor [14:06:06]*** Cut end [14:06:06]Read from MH i2c: 01 07 00 [14:06:06]MH_I2C_Read... [14:06:06]Read from MH i2c: 01 07 00 51 15 00 00 00 00 00 FF 0F 7B [14:06:06]process_action close_receipt done [14:06:06]requested_data is exist [14:06:06]produce_requested_data [14:06:06]requested_item fm.sn is exist - process it [14:06:06]wFMCommunicate request_size=4 [14:06:06]MH_SAM_APDU [14:06:06]CAPDU: 80 11 00 00 [14:06:06]Write to MH i2c: E2 08 00 52 15 80 11 00 00 00 00 00 00 E1 [14:06:06]Write i2c OK [14:06:06]MH_I2C_Read... [14:06:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:06:06]Read from MH i2c: E2 [14:06:06]MH_I2C_Read... [14:06:06]Read from MH i2c: E2 17 00 [14:06:06]MH_I2C_Read... [14:06:06]Read from MH i2c: E2 17 00 52 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 33 [14:06:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [14:06:06]wFMCommunicate OK [14:06:06]requested_item fd.num is exist - process it [14:06:06]SAM_PROTO_GetFieldsCounters [14:06:06]wFMCommunicate request_size=4 [14:06:06]MH_SAM_APDU [14:06:06]CAPDU: 80 13 00 00 [14:06:06]Write to MH i2c: E2 08 00 53 15 80 13 00 00 00 00 00 00 E4 [14:06:06]Write i2c OK [14:06:06]MH_I2C_Read... [14:06:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:06:07]Read from MH i2c: E2 [14:06:07]MH_I2C_Read... [14:06:07]Read from MH i2c: E2 62 00 [14:06:07]MH_I2C_Read... [14:06:07]Read from MH i2c: E2 62 00 53 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 4B F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 A8 [14:06: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 4B F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:06:07]wFMCommunicate OK [14:06:07]SAM_PROTO_GetFieldsCounters done [14:06:07]requested_item shift.num is exist - process it [14:06:07]requested_item shift.opened is exist - process it [14:06:07]req_shift_opened [14:06:07]FM_GetShiftState [14:06:07]SAM_PROTO_GetShiftState [14:06:07]wFMCommunicate request_size=4 [14:06:07]MH_SAM_APDU [14:06:07]CAPDU: 80 13 01 00 [14:06:07]Write to MH i2c: E2 08 00 54 15 80 13 01 00 00 00 00 00 E6 [14:06:07]Write i2c OK [14:06:07]MH_I2C_Read... [14:06:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:06:07]Read from MH i2c: E2 [14:06:07]MH_I2C_Read... [14:06:07]Read from MH i2c: E2 0E 00 [14:06:07]MH_I2C_Read... [14:06:07]Read from MH i2c: E2 0E 00 54 15 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 B2 [14:06:07]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [14:06:07]wFMCommunicate OK [14:06:07]SAM_PROTO_GetShiftState done [14:06:07]FM_GetShiftState done [14:06:07]req_shift_opened done [14:06:07]requested_item shift.open_date is exist - process it [14:06:07]req_shift_open_date [14:06:07]req_shift_open_date done [14:06:07]produce_requested_data done [14:06:07]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63819,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [14:06:07]process_action_free close_receipt [14:06:07]json_value_free [14:06:07]json_value_free done [14:06:07]process_json_proto returns [14:06:07]Send response to host [14:06:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63819,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [14:06:07]free response buf [14:06:07]execute_script done [14:06:07]execute_script returns [14:06:07]free content buf [14:06:07]Sock 7.Close socket [14:06:07]Sock 7.Thread stoped [14:06:10]OFD Sender: No OFD packet to send [14:06:15]OFD Sender: No OFD packet to send [14:06:20]OFD Sender: No OFD packet to send [14:06:25]OFD Sender: No OFD packet to send [14:06:30]OFD Sender: No OFD packet to send [14:06:35]OFD Sender: No OFD packet to send [14:06:40]OFD Sender: No OFD packet to send [14:06:45]OFD Sender: No OFD packet to send [14:06:50]OFD Sender: No OFD packet to send [14:06:55]OFD Sender: No OFD packet to send [14:07:00]OFD Sender: No OFD packet to send [14:07:05]OFD Sender: No OFD packet to send [14:07:10]OFD Sender: No OFD packet to send [14:07:15]OFD Sender: No OFD packet to send [14:07:20]OFD Sender: No OFD packet to send [14:07:25]OFD Sender: No OFD packet to send [14:07:30]OFD Sender: No OFD packet to send [14:07:35]OFD Sender: No OFD packet to send [14:07:40]OFD Sender: No OFD packet to send [14:07:45]OFD Sender: No OFD packet to send [14:07:50]OFD Sender: No OFD packet to send [14:07:55]OFD Sender: No OFD packet to send [14:08:00]OFD Sender: No OFD packet to send [14:08:05]OFD Sender: No OFD packet to send [14:08:10]OFD Sender: No OFD packet to send [14:08:15]OFD Sender: No OFD packet to send [14:08:20]OFD Sender: No OFD packet to send [14:08:25]OFD Sender: No OFD packet to send [14:08:30]OFD Sender: No OFD packet to send [14:08:35]OFD Sender: No OFD packet to send [14:08:40]OFD Sender: No OFD packet to send [14:08:45]OFD Sender: No OFD packet to send [14:08:50]OFD Sender: No OFD packet to send [14:08:55]OFD Sender: No OFD packet to send [14:09:00]OFD Sender: No OFD packet to send [14:09:05]OFD Sender: No OFD packet to send [14:09:10]OFD Sender: No OFD packet to send [14:09:15]OFD Sender: No OFD packet to send [14:09:20]OFD Sender: No OFD packet to send [14:09:25]OFD Sender: No OFD packet to send [14:09:30]OFD Sender: No OFD packet to send [14:09:35]OFD Sender: No OFD packet to send [14:09: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:51]OFD Sender: No OFD packet to send [14:10:56]OFD Sender: No OFD packet to send [14:11:01]OFD Sender: No OFD packet to send [14:11:06]OFD Sender: No OFD packet to send [14:11:11]OFD Sender: No OFD packet to send [14:11:16]OFD Sender: No OFD packet to send [14:11:21]OFD Sender: No OFD packet to send [14:11:26]OFD Sender: No OFD packet to send [14:11:31]OFD Sender: No OFD packet to send [14:11:36]OFD Sender: No OFD packet to send [14:11:41]OFD Sender: No OFD packet to send [14:11:46]OFD Sender: No OFD packet to send [14:11:51]OFD Sender: No OFD packet to send [14:11:56]OFD Sender: No OFD packet to send [14:12:01]OFD Sender: No OFD packet to send [14:12:06]OFD Sender: No OFD packet to send [14:12:11]OFD Sender: No OFD packet to send [14:12:16]OFD Sender: No OFD packet to send [14:12:21]OFD Sender: No OFD packet to send [14:12:26]OFD Sender: No OFD packet to send [14:12:31]OFD Sender: No OFD packet to send [14:12:36]OFD Sender: No OFD packet to send [14:12:41]OFD Sender: No OFD packet to send [14:12:46]OFD Sender: No OFD packet to send [14:12:51]OFD Sender: No OFD packet to send [14:12:56]OFD Sender: No OFD packet to send [14:13:01]OFD Sender: No OFD packet to send [14:13:06]OFD Sender: No OFD packet to send [14:13:11]OFD Sender: No OFD packet to send [14:13:16]OFD Sender: No OFD packet to send [14:13:21]OFD Sender: No OFD packet to send [14:13:26]OFD Sender: No OFD packet to send [14:13:31]OFD Sender: No OFD packet to send [14:13:36]OFD Sender: No OFD packet to send [14:13:41]OFD Sender: No OFD packet to send [14:13:46]OFD Sender: No OFD packet to send [14:13:51]OFD Sender: No OFD packet to send [14:13:56]OFD Sender: No OFD packet to send [14:14:01]OFD Sender: No OFD packet to send [14:14:06]OFD Sender: No OFD packet to send [14:14:11]OFD Sender: No OFD packet to send [14:14:16]OFD Sender: No OFD packet to send [14:14:21]OFD Sender: No OFD packet to send [14:14:26]OFD Sender: No OFD packet to send [14:14:31]OFD Sender: No OFD packet to send [14:14:36]OFD Sender: No OFD packet to send [14:14:41]OFD Sender: No OFD packet to send [14:14:46]OFD Sender: No OFD packet to send [14:14:51]OFD Sender: No OFD packet to send [14:14:56]OFD Sender: No OFD packet to send [14:15:01]OFD Sender: No OFD packet to send [14:15:06]OFD Sender: No OFD packet to send [14:15:11]OFD Sender: No OFD packet to send [14:15:16]OFD Sender: No OFD packet to send [14:15:21]OFD Sender: No OFD packet to send [14:15:26]OFD Sender: No OFD packet to send [14:15:31]OFD Sender: No OFD packet to send [14:15:36]OFD Sender: No OFD packet to send [14:15:41]OFD Sender: No OFD packet to send [14:15:46]OFD Sender: No OFD packet to send [14:15:51]OFD Sender: No OFD packet to send [14:15:56]OFD Sender: No OFD packet to send [14:16:01]OFD Sender: No OFD packet to send [14:16:06]OFD Sender: No OFD packet to send [14:16:11]OFD Sender: No OFD packet to send [14:16:16]OFD Sender: No OFD packet to send [14:16:21]OFD Sender: No OFD packet to send [14:16:26]OFD Sender: No OFD packet to send [14:16:31]OFD Sender: No OFD packet to send [14:16:36]OFD Sender: No OFD packet to send [14:16:41]OFD Sender: No OFD packet to send [14:16:46]OFD Sender: No OFD packet to send [14:16:51]OFD Sender: No OFD packet to send [14:16:56]OFD Sender: No OFD packet to send [14:17:01]OFD Sender: No OFD packet to send [14:17:06]OFD Sender: No OFD packet to send [14:17:11]OFD Sender: No OFD packet to send [14:17:16]OFD Sender: No OFD packet to send [14:17:21]OFD Sender: No OFD packet to send [14:17:26]OFD Sender: No OFD packet to send [14:17:31]OFD Sender: No OFD packet to send [14:17:36]OFD Sender: No OFD packet to send [14:17:41]OFD Sender: No OFD packet to send [14:17:46]OFD Sender: No OFD packet to send [14:17:51]OFD Sender: No OFD packet to send [14:17:56]OFD Sender: No OFD packet to send [14:18:01]OFD Sender: No OFD packet to send [14:18:06]OFD Sender: No OFD packet to send [14:18:11]OFD Sender: No OFD packet to send [14:18:16]OFD Sender: No OFD packet to send [14:18:21]OFD Sender: No OFD packet to send [14:18:26]OFD Sender: No OFD packet to send [14:18:31]OFD Sender: No OFD packet to send [14:18:36]OFD Sender: No OFD packet to send [14:18:41]OFD Sender: No OFD packet to send [14:18:46]OFD Sender: No OFD packet to send [14:18:51]OFD Sender: No OFD packet to send [14:18:56]OFD Sender: No OFD packet to send [14:19:01]OFD Sender: No OFD packet to send [14:19:06]OFD Sender: No OFD packet to send [14:19:11]OFD Sender: No OFD packet to send [14:19:13]accept exits with 9 [14:19:13]New connection [14:19:13]New thread 3067518308 created [14:19:13]Thread 3067374948 joined [14:19:13]Waiting for new connection... [14:19:13] Sock 9.Parse request [14:19:13]Sock 9.Check first char [14:19:13]Sock 9.First char is OK [14:19:13]request: POST /json_proto HTTP/1.0 [14:19:13]Method: POST [14:19:13]URL: /json_proto [14:19:13]Method is POST - this is cgi request [14:19:13]url: /json_proto [14:19:13]query_string will be loaded in cgi processing [14:19:13]execute_cgi json_proto POST (null) [14:19:13]execute_cgi path=json_proto method=POST [14:19:13]POST find Content-Length [14:19:13]Host: 172.17.60.69:8080 [14:19:13]Content-Length: 677 [14:19:13]Content-Type: application/json [14:19:13] [14:19:13]POST finish read [14:19:13]Found Content-Length = 677 [14:19:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543774", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:19:13]execute_script... [14: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)543774", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:19:13]POST & json_proto [14:19:13]process_json_proto [14:19:13]json parsed OK: [14:19:13]protocol is kg_v1.0 [14:19:13]action value=close_receipt [14:19:13]process_action close_receipt [14:19:13]cmd_close_receipt [14:19:13]MH_GetDate [14:19:13]Write to MH i2c: F0 00 00 55 15 59 [14:19:13]Write i2c OK [14:19:13]MH_I2C_Read... [14:19:13]Read from MH i2c: F0 [14:19:13]MH_I2C_Read... [14:19:13]Read from MH i2c: F0 09 00 [14:19:13]MH_I2C_Read... [14:19:13]Read from MH i2c: F0 09 00 55 15 00 E4 D0 5D 66 6A 96 4A 66 89 [14:19:13]GetLastDocTimeStamp 1717423565 [14:19:13]current date 1717424356 [14:19:13]FM_GetShiftState [14:19:13]SAM_PROTO_GetShiftState [14:19:13]wFMCommunicate request_size=4 [14:19:13]MH_SAM_APDU [14:19:13]CAPDU: 80 13 01 00 [14:19:13]Write to MH i2c: E2 08 00 56 15 80 13 01 00 00 00 00 00 E8 [14:19:13]Write i2c OK [14:19:13]MH_I2C_Read... [14:19:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:19:13]Read from MH i2c: E2 [14:19:13]MH_I2C_Read... [14:19:13]Read from MH i2c: E2 0E 00 [14:19:13]MH_I2C_Read... [14:19:13]Read from MH i2c: E2 0E 00 56 15 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 B4 [14:19:13]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [14:19:13]wFMCommunicate OK [14:19:13]SAM_PROTO_GetShiftState done [14:19:13]FM_GetShiftState done [14:19:13]opened in 1717373173 [14:19:13]opened+sec_in_day 1717459573 [14:19:13]quantity*price = 50041 [14:19:13]sum+1 = 50042 [14:19:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 78 03.06.2024 14:19 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63820 ФПД: 75917738735154 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T141916&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63820&fm=75917738735154&tin=02508201610067®Number=0000000000092737&sum=50000 [14:19:14]StoreToDocumentArchive [14:19:14]shift 373 fd 63820 [14:19:14]save to /storage/0373/doc_00063820 [14:19:14]save last doc name /storage/0373/doc_00063820 to /storage/kkm_last_doc_name [14:19:14]save OK [14:19:14]Clear old archive folders... [14:19:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:19:14]tlvbuf is B6F32220 [14:19:14]SAM_PROTO_ClearQueue [14:19:14]wFMCommunicate request_size=4 [14:19:14]MH_SAM_APDU [14:19:14]CAPDU: 80 09 00 00 [14:19:14]Write to MH i2c: E2 08 00 63 15 80 09 00 00 00 00 00 00 EA [14:19:14]Write i2c OK [14:19:14]MH_I2C_Read... [14:19:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:19:14]Read from MH i2c: E2 [14:19:14]MH_I2C_Read... [14:19:14]Read from MH i2c: E2 03 00 [14:19:14]MH_I2C_Read... [14:19:14]Read from MH i2c: E2 03 00 63 15 00 90 00 EC [14:19:14]RAPDU: 90 00 [14:19:14]wFMCommunicate OK [14:19:14]SAM_PROTO_ClearQueue done [14:19:14]KKMCreateOFDPacket [14:19:14]OFDProtocolAddRootSTLVToBuf [14:19:14]FM_MakeSignedData [14:19:14]FM_MakeSignedData [14:19:14]SAM_PROTO_SignData [14:19:14]wFMCommunicate request_size=4 [14:19:14]MH_SAM_APDU [14:19:14]CAPDU: 80 0D 01 02 [14:19:14]Write to MH i2c: E2 08 00 64 15 80 0D 01 02 00 00 00 00 F2 [14:19:14]Write i2c OK [14:19:14]MH_I2C_Read... [14:19:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:19:14]Read from MH i2c: E2 [14:19:14]MH_I2C_Read... [14:19:14]Read from MH i2c: E2 03 00 [14:19:14]MH_I2C_Read... [14:19:14]Read from MH i2c: E2 03 00 64 15 00 90 00 ED [14:19:14]RAPDU: 90 00 [14:19:14]wFMCommunicate OK [14:19:14]wFMCommunicate request_size=255 [14:19:14]MH_SAM_APDU [14:19:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 E4 D0 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 4C F9 00 00 35 04 06 00 45 [14:19:14]Write to MH i2c: E2 02 01 65 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 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 E4 D0 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 4C F9 00 00 35 04 06 00 45 00 00 48 [14:19:14]Write i2c OK [14:19:14]MH_I2C_Read... [14:19:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:19:15]Read from MH i2c: E2 [14:19:15]MH_I2C_Read... [14:19:15]Read from MH i2c: E2 03 00 [14:19:15]MH_I2C_Read... [14:19:15]Read from MH i2c: E2 03 00 65 15 00 90 00 EE [14:19:15]RAPDU: 90 00 [14:19:15]wFMCommunicate OK [14:19:15]wFMCommunicate request_size=10 [14:19:15]MH_SAM_APDU [14:19:15]CAPDU: 80 0D 02 02 05 0B F9 D9 76 32 [14:19:15]Write to MH i2c: E2 0D 00 66 15 80 0D 02 02 05 00 0B F9 D9 76 32 00 00 84 [14:19:15]Write i2c OK [14:19:15]MH_I2C_Read... [14:19:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:19:15]Read from MH i2c: E2 [14:19:15]MH_I2C_Read... [14:19:15]Read from MH i2c: E2 03 00 [14:19:15]MH_I2C_Read... [14:19:15]Read from MH i2c: E2 03 00 66 15 00 90 00 EF [14:19:15]RAPDU: 90 00 [14:19:15]wFMCommunicate OK [14:19:15]wFMCommunicate request_size=4 [14:19:15]MH_SAM_APDU [14:19:15]CAPDU: 80 0D 03 02 [14:19:15]Write to MH i2c: E2 08 00 67 15 80 0D 03 02 00 00 00 00 F7 [14:19:15]Write i2c OK [14:19:15]MH_I2C_Read... [14:19:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:19:15]Read from MH i2c: E2 [14:19:15]MH_I2C_Read... [14:19:15]Read from MH i2c: E2 0B 00 [14:19:15]MH_I2C_Read... [14:19:15]Read from MH i2c: E2 0B 00 67 15 00 D7 B7 57 AB FD 74 66 B5 90 00 14 [14:19:15]RAPDU: D7 B7 57 AB FD 74 66 B5 90 00 [14:19:15]wFMCommunicate OK [14:19:15]SAM_PROTO_SignData done [14:19:15]FM_MakeSignedData done [14:19:15]CreateOFDProtocolMessage [14:19:15]wFMCommunicate request_size=4 [14:19:15]MH_SAM_APDU [14:19:15]CAPDU: 80 11 00 00 [14:19:15]Write to MH i2c: E2 08 00 68 15 80 11 00 00 00 00 00 00 F7 [14:19:15]Write i2c OK [14:19:15]MH_I2C_Read... [14:19:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:19:15]Read from MH i2c: E2 [14:19:15]MH_I2C_Read... [14:19:15]Read from MH i2c: E2 17 00 [14:19:15]MH_I2C_Read... [14:19:15]Read from MH i2c: E2 17 00 68 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 49 [14:19:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [14:19:15]wFMCommunicate OK [14:19:15]CreateOFDProtocolMessage done [14:19:15]OFDSenderStorePacket 63820 [14:19:15]StoreOFDPacket docnum=63820 [14:19:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0F 01 00 00 B4 FA 07 01 B3 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 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 E4 D0 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 4C F9 00 00 35 04 06 00 45 0B F9 D9 76 32 D7 B7 57 AB FD 74 66 B5 [14:19:15]CheckFolder [14:19:15]dirname=/storage/ofd_packets [14:19:15]CheckFolder done [14:19:15]ProducePacketName [14:19:15]name=ofd_packets/00063820 [14:19:15]NVStorageSaveData ofd_packets/00063820 [14:19:15]File name is /storage/ofd_packets/00063820 [14:19:15]Write 301 bytes [14:19:15]NVStorageSaveData done [14:19:15]OFDSenderStorePacket done [14:19:15]KKMCreateOFDPacket done [14:19:15]NVStorageSaveData kkm_last_timestamp [14:19:15]File name is /storage/kkm_last_timestamp [14:19:15]Write 4 bytes [14:19:15]NVStorageSaveData done [14:19:15]ExternCall_PrintAddStr [14:19:15]wPrintStart [14:19:15]Write to MH i2c: 01 00 00 69 15 7E [14:19:15]Write i2c OK [14:19:15]MH_I2C_Read... [14:19:15]Read from MH i2c: 01 [14:19:15]MH_I2C_Read... [14:19:15]Read from MH i2c: 01 07 00 [14:19:15]MH_I2C_Read... [14:19:15]Read from MH i2c: 01 07 00 69 15 00 00 00 00 00 FF 0F 93 [14:19:15]RasterBufferAndPrint [14:19:15]line Счет N : (1)543774 [14:19:15]line ИНН: 02508201610067 [14:19:15]line Контрольно-Кассовый Чек [14:19:15]line ПРОДАЖА [14:19:15]line ТРК (МРК, ГНК) : 32 [14:19:15]line Товар: 2710124130 [14:19:15]line Аи-92-К-5 [14:19:15]line 7.480 * 66.90 [14:19:15]line = 500.41 [14:19:15]line НДС 12% НСП 1% [14:19:15]line > о реализуемом товаре [14:19:15]line ОКРУГЛЕНИЕ: -0.41 [14:19:15]line ИТОГО: 500.00 [14:19:15]line Внесено: 500.00 [14:19:15]line СДАЧА: 0.00 [14:19:15]line НСП 1% : 4.43 [14:19:15]line НДС 12% : 53.14 [14:19:15]line Наличными: 500.00 [14:19:15]line Безнал.: 0.00 [14:19:15]line Место: АЗС № 117 "Партнер Нефть" [14:19:15]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [14:19:15]line СНО: Общий режим [14:19:15]line Чек 78 03.06.2024 14:19 [14:19:15]line Смена: 373 ФФД: 1.0 [14:19:15]line ЗНМ: 0300000031 [14:19:15]line РНМ: 0000000000092737 [14:19:15]line Версия ККМ: 001 [14:19:15]line ФМ: 0000000000875074 [14:19:15]line ФД: 63820 [14:19:15]line ФПД: 75917738735154 [14:19:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T141916&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63820&fm=75917738735154&tin=02508201610067®Number=0000000000092737&sum=50000 [14:19:15]written 0, free lines is 4095 [14:19:15]OFD Sender: Processing packet 63820 [packets to send 14, broken 13] [14:19:15]ProducePacketName [14:19:15]name=ofd_packets/00063820 [14:19:15]OFD Sender: To server: pG, [14:19:15]CommunicateWithHost lk.salyk.kg:30040 [14:19:15]ConnectInit lk.salyk.kg [14:19:15]Connected sock=10 [14:19:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0F 01 00 00 B4 FA 07 01 B3 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 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 E4 D0 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 4C F9 00 00 35 04 06 00 45 0B F9 D9 76 32 D7 B7 57 AB FD 74 66 B5 [14:19:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 80 15 47 00 A6 03 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 4C F9 00 00 F4 03 04 00 B5 7C 5D 66 B6 04 01 00 00 30 07 AC 82 91 EE 18 6A [14:19:15]CommunicateWithHost err = 0 [14:19:15]CheckOFDResponse [14:19:15]1017 (14) - 77093643461234 [14:19:15]1041 (16) - 0000000000875074 [14:19:15]1040 (4) - 63820 [14:19:15]1012 (4) - 03.06.2024 08:20 [14:19:15]1206 (1) - 0 [14:19:15]OFD Sender: Remove packet 63820 [14:19:15]ProducePacketName [14:19:15]name=ofd_packets/00063820 [14:19:15]NVStorageDeleteData [14:19:15]Write to MH i2c: 01 00 00 94 15 A9 [14:19:15]Write i2c OK [14:19:15]MH_I2C_Read... [14:19:15]Read from MH i2c: 01 [14:19:15]MH_I2C_Read... [14:19:15]Read from MH i2c: 01 07 00 [14:19:15]MH_I2C_Read... [14:19:15]Read from MH i2c: 01 07 00 94 15 00 00 00 00 00 DA 0C 96 [14:19:15]RasterBufferAndPrint [14:19:15]line [14:19:15]line [14:19:15]line [14:19:15]line [14:19:15]line [14:19:15]written 0, free lines is 3297 [14:19:15]MH_Cut [14:19:15]Write to MH i2c: D1 01 00 9B 15 01 82 [14:19:15]Write i2c OK [14:19:15]MH_I2C_Read... [14:19:15]Read from MH i2c: D1 [14:19:15]MH_I2C_Read... [14:19:15]Read from MH i2c: D1 01 00 [14:19:15]MH_I2C_Read... [14:19:15]Read from MH i2c: D1 01 00 9B 15 00 81 [14:19:15]Write to MH i2c: 01 00 00 9C 15 B1 [14:19:15]Write i2c OK [14:19:15]MH_I2C_Read... [14:19:16]OFD Sender: No OFD packet to send [14:19:16]*** Cut start [14:19:16]*** Partial cut [14:19:16]*** CUTSNS_PIN = 1 [14:19:16]*** CUTSNS_PIN = 0 [14:19:16]*** Brake cut motor [14:19:17]Read from MH i2c: 01 [14:19:17]MH_I2C_Read... [14:19:17]*** Stop cut motor [14:19:17]*** Cut end [14:19:17]Read from MH i2c: 01 07 00 [14:19:17]MH_I2C_Read... [14:19:17]Read from MH i2c: 01 07 00 9C 15 00 00 00 00 00 FF 0F C6 [14:19:17]process_action close_receipt done [14:19:17]requested_data is exist [14:19:17]produce_requested_data [14:19:17]requested_item fm.sn is exist - process it [14:19:17]wFMCommunicate request_size=4 [14:19:17]MH_SAM_APDU [14:19:17]CAPDU: 80 11 00 00 [14:19:17]Write to MH i2c: E2 08 00 9D 15 80 11 00 00 00 00 00 00 2C [14:19:17]Write i2c OK [14:19:17]MH_I2C_Read... [14:19:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:19:17]Read from MH i2c: E2 [14:19:17]MH_I2C_Read... [14:19:17]Read from MH i2c: E2 17 00 [14:19:17]MH_I2C_Read... [14:19:17]Read from MH i2c: E2 17 00 9D 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 7E [14:19:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [14:19:17]wFMCommunicate OK [14:19:17]requested_item fd.num is exist - process it [14:19:17]SAM_PROTO_GetFieldsCounters [14:19:17]wFMCommunicate request_size=4 [14:19:17]MH_SAM_APDU [14:19:17]CAPDU: 80 13 00 00 [14:19:17]Write to MH i2c: E2 08 00 9E 15 80 13 00 00 00 00 00 00 2F [14:19:17]Write i2c OK [14:19:17]MH_I2C_Read... [14:19:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:19:17]Read from MH i2c: E2 [14:19:17]MH_I2C_Read... [14:19:17]Read from MH i2c: E2 62 00 [14:19:17]MH_I2C_Read... [14:19:17]Read from MH i2c: E2 62 00 9E 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 4C F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 F7 [14: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 4C F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:19:17]wFMCommunicate OK [14:19:17]SAM_PROTO_GetFieldsCounters done [14:19:17]requested_item shift.num is exist - process it [14:19:17]requested_item shift.opened is exist - process it [14:19:17]req_shift_opened [14:19:17]FM_GetShiftState [14:19:17]SAM_PROTO_GetShiftState [14:19:17]wFMCommunicate request_size=4 [14:19:17]MH_SAM_APDU [14:19:17]CAPDU: 80 13 01 00 [14:19:17]Write to MH i2c: E2 08 00 9F 15 80 13 01 00 00 00 00 00 31 [14:19:17]Write i2c OK [14:19:17]MH_I2C_Read... [14:19:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:19:17]Read from MH i2c: E2 [14:19:17]MH_I2C_Read... [14:19:17]Read from MH i2c: E2 0E 00 [14:19:17]MH_I2C_Read... [14:19:17]Read from MH i2c: E2 0E 00 9F 15 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 FD [14:19:17]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [14:19:17]wFMCommunicate OK [14:19:17]SAM_PROTO_GetShiftState done [14:19:17]FM_GetShiftState done [14:19:17]req_shift_opened done [14:19:17]requested_item shift.open_date is exist - process it [14:19:17]req_shift_open_date [14:19:17]req_shift_open_date done [14:19:17]produce_requested_data done [14:19:17]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63820,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [14:19:17]process_action_free close_receipt [14:19:17]json_value_free [14:19:17]json_value_free done [14:19:17]process_json_proto returns [14:19:17]Send response to host [14:19:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63820,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [14:19:17]free response buf [14:19:17]execute_script done [14:19:17]execute_script returns [14:19:17]free content buf [14:19:17]Sock 9.Close socket [14:19:17]Sock 9.Thread stoped [14:19:21]OFD Sender: No OFD packet to send [14:19:26]OFD Sender: No OFD packet to send [14:19:31]OFD Sender: No OFD packet to send [14:19:36]OFD Sender: No OFD packet to send [14:19:41]OFD Sender: No OFD packet to send [14:19:46]OFD Sender: No OFD packet to send [14:19:51]OFD Sender: No OFD packet to send [14:19:56]OFD Sender: No OFD packet to send [14:20:01]OFD Sender: No OFD packet to send [14:20:06]OFD Sender: No OFD packet to send [14:20:11]OFD Sender: No OFD packet to send [14:20:16]OFD Sender: No OFD packet to send [14:20:21]OFD Sender: No OFD packet to send [14:20:26]OFD Sender: No OFD packet to send [14:20:31]OFD Sender: No OFD packet to send [14:20:36]OFD Sender: No OFD packet to send [14:20:41]OFD Sender: No OFD packet to send [14:20:46]OFD Sender: No OFD packet to send [14:20:51]OFD Sender: No OFD packet to send [14:20:56]OFD Sender: No OFD packet to send [14:21:01]OFD Sender: No OFD packet to send [14:21:03]accept exits with 7 [14:21:03]New connection [14:21:03]New thread 3067374948 created [14:21:03]Thread 3067518308 joined [14:21:03]Waiting for new connection... [14:21:03] Sock 7.Parse request [14:21:03]Sock 7.Check first char [14:21:03]Sock 7.First char is OK [14:21:03]request: POST /json_proto HTTP/1.0 [14:21:03]Method: POST [14:21:03]URL: /json_proto [14:21:03]Method is POST - this is cgi request [14:21:03]url: /json_proto [14:21:03]query_string will be loaded in cgi processing [14:21:03]execute_cgi json_proto POST (null) [14:21:03]execute_cgi path=json_proto method=POST [14:21:03]POST find Content-Length [14:21:03]Host: 172.17.60.69:8080 [14:21:03]Content-Length: 966 [14:21:03]Content-Type: application/json [14:21:03] [14:21:03]POST finish read [14:21:03]Found Content-Length = 966 [14:21:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543775", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 66.90, "quantity" : 24.530, "sum" : 1641.06, "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\u000AS-92\u000A\u043D\u043E\u043C\u0435\u0440 117\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 24.53 \u0441\u043E\u043C", "deposit" : 2000.00, "total" : 1641.00, "payments": [ { "type": 0, "sum" : 1641.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:21:03]execute_script... [14:21: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)543775", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 66.90, "quantity" : 24.530, "sum" : 1641.06, "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\u000AS-92\u000A\u043D\u043E\u043C\u0435\u0440 117\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 24.53 \u0441\u043E\u043C", "deposit" : 2000.00, "total" : 1641.00, "payments": [ { "type": 0, "sum" : 1641.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:21:03]POST & json_proto [14:21:03]process_json_proto [14:21:03]json parsed OK: [14:21:03]protocol is kg_v1.0 [14:21:03]action value=close_receipt [14:21:03]process_action close_receipt [14:21:03]cmd_close_receipt [14:21:03]MH_GetDate [14:21:03]Write to MH i2c: F0 00 00 A0 15 A4 [14:21:03]Write i2c OK [14:21:03]MH_I2C_Read... [14:21:03]Read from MH i2c: F0 [14:21:03]MH_I2C_Read... [14:21:03]Read from MH i2c: F0 09 00 [14:21:03]MH_I2C_Read... [14:21:03]Read from MH i2c: F0 09 00 A0 15 00 52 D1 5D 66 6A 96 4A 66 43 [14:21:03]GetLastDocTimeStamp 1717424356 [14:21:03]current date 1717424466 [14:21:03]FM_GetShiftState [14:21:03]SAM_PROTO_GetShiftState [14:21:03]wFMCommunicate request_size=4 [14:21:03]MH_SAM_APDU [14:21:03]CAPDU: 80 13 01 00 [14:21:03]Write to MH i2c: E2 08 00 A1 15 80 13 01 00 00 00 00 00 33 [14:21:03]Write i2c OK [14:21:03]MH_I2C_Read... [14:21:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:21:03]Read from MH i2c: E2 [14:21:03]MH_I2C_Read... [14:21:03]Read from MH i2c: E2 0E 00 [14:21:03]MH_I2C_Read... [14:21:03]Read from MH i2c: E2 0E 00 A1 15 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 FF [14:21:03]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [14:21:03]wFMCommunicate OK [14:21:03]SAM_PROTO_GetShiftState done [14:21:03]FM_GetShiftState done [14:21:03]opened in 1717373173 [14:21:03]opened+sec_in_day 1717459573 [14:21:03]quantity*price = 164105 [14:21:03]sum+1 = 164107 [14:21:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 1641.00 Внесено: 2000.00 СДАЧА: 359.00 НСП 1% : 14.52 НДС 12% : 174.27 Наличными: 1641.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 79 03.06.2024 14:21 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 Дисконтная программа S-92 номер 117 сэкономлено 24.53 сом ФМ: 0000000000875074 ФД: 63821 ФПД: 6313478611956 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T142106&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63821&fm=6313478611956&tin=02508201610067®Number=0000000000092737&sum=164100 [14:21:04]StoreToDocumentArchive [14:21:04]shift 373 fd 63821 [14:21:04]save to /storage/0373/doc_00063821 [14:21:04]save last doc name /storage/0373/doc_00063821 to /storage/kkm_last_doc_name [14:21:04]save OK [14:21:04]Clear old archive folders... [14:21:04]ProcessDocumentItem done err = 0, tmpTLVsize=252 [14:21:04]tlvbuf is B6F4B370 [14:21:04]SAM_PROTO_ClearQueue [14:21:04]wFMCommunicate request_size=4 [14:21:04]MH_SAM_APDU [14:21:04]CAPDU: 80 09 00 00 [14:21:04]Write to MH i2c: E2 08 00 AE 15 80 09 00 00 00 00 00 00 35 [14:21:04]Write i2c OK [14:21:04]MH_I2C_Read... [14:21:04]Read from MH i2c: E2 [14:21:04]MH_I2C_Read... [14:21:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:21:04]Read from MH i2c: E2 03 00 [14:21:04]MH_I2C_Read... [14:21:04]Read from MH i2c: E2 03 00 AE 15 00 90 00 37 [14:21:04]RAPDU: 90 00 [14:21:04]wFMCommunicate OK [14:21:04]SAM_PROTO_ClearQueue done [14:21:04]KKMCreateOFDPacket [14:21:04]OFDProtocolAddRootSTLVToBuf [14:21:04]FM_MakeSignedData [14:21:04]FM_MakeSignedData [14:21:04]SAM_PROTO_SignData [14:21:04]wFMCommunicate request_size=4 [14:21:04]MH_SAM_APDU [14:21:04]CAPDU: 80 0D 01 02 [14:21:04]Write to MH i2c: E2 08 00 AF 15 80 0D 01 02 00 00 00 00 3D [14:21:04]Write i2c OK [14:21:04]MH_I2C_Read... [14:21:04]Read from MH i2c: E2 [14:21:04]MH_I2C_Read... [14:21:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:21:04]Read from MH i2c: E2 03 00 [14:21:04]MH_I2C_Read... [14:21:04]Read from MH i2c: E2 03 00 AF 15 00 90 00 38 [14:21:04]RAPDU: 90 00 [14:21:04]wFMCommunicate OK [14:21:04]wFMCommunicate request_size=255 [14:21:04]MH_SAM_APDU [14:21:04]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D2 5F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0A 81 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 81 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AC 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 44 00 00 00 00 07 04 06 00 04 81 02 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 52 D1 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 4D F9 00 00 35 04 06 00 [14:21:04]Write to MH i2c: E2 02 01 B0 15 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D2 5F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0A 81 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 81 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AC 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 44 00 00 00 00 07 04 06 00 04 81 02 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 52 D1 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 4D F9 00 00 35 04 06 00 00 00 E7 [14:21:04]Write i2c OK [14:21:04]MH_I2C_Read... [14:21:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:21:04]Read from MH i2c: E2 [14:21:04]MH_I2C_Read... [14:21:04]Read from MH i2c: E2 03 00 [14:21:04]MH_I2C_Read... [14:21:04]Read from MH i2c: E2 03 00 B0 15 00 90 00 39 [14:21:04]RAPDU: 90 00 [14:21:04]wFMCommunicate OK [14:21:04]wFMCommunicate request_size=11 [14:21:04]MH_SAM_APDU [14:21:04]CAPDU: 80 0D 02 02 06 05 BD F8 A6 63 F4 [14:21:04]Write to MH i2c: E2 0E 00 B1 15 80 0D 02 02 06 00 05 BD F8 A6 63 F4 00 00 03 [14:21:04]Write i2c OK [14:21:04]MH_I2C_Read... [14:21:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:21:04]Read from MH i2c: E2 [14:21:04]MH_I2C_Read... [14:21:04]Read from MH i2c: E2 03 00 [14:21:04]MH_I2C_Read... [14:21:04]Read from MH i2c: E2 03 00 B1 15 00 90 00 3A [14:21:04]RAPDU: 90 00 [14:21:04]wFMCommunicate OK [14:21:04]wFMCommunicate request_size=4 [14:21:04]MH_SAM_APDU [14:21:04]CAPDU: 80 0D 03 02 [14:21:04]Write to MH i2c: E2 08 00 B2 15 80 0D 03 02 00 00 00 00 42 [14:21:04]Write i2c OK [14:21:04]MH_I2C_Read... [14:21:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:21:05]Read from MH i2c: E2 [14:21:05]MH_I2C_Read... [14:21:05]Read from MH i2c: E2 0B 00 [14:21:05]MH_I2C_Read... [14:21:05]Read from MH i2c: E2 0B 00 B2 15 00 CB 7C 71 A8 8F 93 3E 37 90 00 3A [14:21:05]RAPDU: CB 7C 71 A8 8F 93 3E 37 90 00 [14:21:05]wFMCommunicate OK [14:21:05]SAM_PROTO_SignData done [14:21:05]FM_MakeSignedData done [14:21:05]CreateOFDProtocolMessage [14:21:05]wFMCommunicate request_size=4 [14:21:05]MH_SAM_APDU [14:21:05]CAPDU: 80 11 00 00 [14:21:05]Write to MH i2c: E2 08 00 B3 15 80 11 00 00 00 00 00 00 42 [14:21:05]Write i2c OK [14:21:05]MH_I2C_Read... [14:21:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:21:05]Read from MH i2c: E2 [14:21:05]MH_I2C_Read... [14:21:05]Read from MH i2c: E2 17 00 [14:21:05]MH_I2C_Read... [14:21:05]Read from MH i2c: E2 17 00 B3 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 94 [14:21:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [14:21:05]wFMCommunicate OK [14:21:05]CreateOFDProtocolMessage done [14:21:05]OFDSenderStorePacket 63821 [14:21:05]StoreOFDPacket docnum=63821 [14:21:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 01 00 00 80 65 08 01 00 B7 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D2 5F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0A 81 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 81 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AC 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 44 00 00 00 00 07 04 06 00 04 81 02 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 52 D1 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 4D F9 00 00 35 04 06 00 05 BD F8 A6 63 F4 CB 7C 71 A8 8F 93 3E 37 [14:21:05]CheckFolder [14:21:05]dirname=/storage/ofd_packets [14:21:05]CheckFolder done [14:21:05]ProducePacketName [14:21:05]name=ofd_packets/00063821 [14:21:05]NVStorageSaveData ofd_packets/00063821 [14:21:05]File name is /storage/ofd_packets/00063821 [14:21:05]Write 302 bytes [14:21:05]NVStorageSaveData done [14:21:05]OFDSenderStorePacket done [14:21:05]KKMCreateOFDPacket done [14:21:05]NVStorageSaveData kkm_last_timestamp [14:21:05]File name is /storage/kkm_last_timestamp [14:21:05]Write 4 bytes [14:21:05]NVStorageSaveData done [14:21:05]ExternCall_PrintAddStr [14:21:05]wPrintStart [14:21:05]Write to MH i2c: 01 00 00 B4 15 C9 [14:21:05]Write i2c OK [14:21:05]MH_I2C_Read... [14:21:05]Read from MH i2c: 01 [14:21:05]MH_I2C_Read... [14:21:05]Read from MH i2c: 01 07 00 [14:21:05]MH_I2C_Read... [14:21:05]Read from MH i2c: 01 07 00 B4 15 00 00 00 00 00 FF 0F DE [14:21:05]RasterBufferAndPrint [14:21:05]line Счет N : (1)543775 [14:21:05]line ИНН: 02508201610067 [14:21:05]line Контрольно-Кассовый Чек [14:21:05]line ПРОДАЖА [14:21:05]line ТРК (МРК, ГНК) : 14 [14:21:05]line Товар: 2710124130 [14:21:05]line SUPER 92-К-5 [14:21:05]line 24.530 * 66.90 [14:21:05]line = 1641.06 [14:21:05]line НДС 12% НСП 1% [14:21:05]line > о реализуемом товаре [14:21:05]line ОКРУГЛЕНИЕ: -0.06 [14:21:05]line ИТОГО: 1641.00 [14:21:05]line Внесено: 2000.00 [14:21:05]line СДАЧА: 359.00 [14:21:05]line НСП 1% : 14.52 [14:21:05]line НДС 12% : 174.27 [14:21:05]line Наличными: 1641.00 [14:21:05]line Безнал.: 0.00 [14:21:05]line Место: АЗС № 117 "Партнер Нефть" [14:21:05]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [14:21:05]line СНО: Общий режим [14:21:05]line Чек 79 03.06.2024 14:21 [14:21:05]line Смена: 373 ФФД: 1.0 [14:21:05]line ЗНМ: 0300000031 [14:21:05]line РНМ: 0000000000092737 [14:21:05]line Версия ККМ: 001 [14:21:05]line [14:21:05]line Дисконтная программа [14:21:05]line S-92 [14:21:05]line номер 117 [14:21:05]line сэкономлено 24.53 сом [14:21:05]line ФМ: 0000000000875074 [14:21:05]line ФД: 63821 [14:21:05]line ФПД: 6313478611956 [14:21:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T142106&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63821&fm=6313478611956&tin=02508201610067®Number=0000000000092737&sum=164100 [14:21:05]OFD Sender: Processing packet 63821 [packets to send 14, broken 13] [14:21:05]ProducePacketName [14:21:05]name=ofd_packets/00063821 [14:21:05]OFD Sender: To server: pG, [14:21:05]CommunicateWithHost lk.salyk.kg:30040 [14:21:05]ConnectInit lk.salyk.kg [14:21:05]written 0, free lines is 4095 [14:21:05]Connected sock=10 [14:21:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 01 00 00 80 65 08 01 00 B7 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D2 5F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0A 81 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 81 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AC 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 44 00 00 00 00 07 04 06 00 04 81 02 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 52 D1 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 4D F9 00 00 35 04 06 00 05 BD F8 A6 63 F4 CB 7C 71 A8 8F 93 3E 37 [14:21:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 BF DC 47 00 3C 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 35 30 37 34 10 04 04 00 4D F9 00 00 F4 03 04 00 23 7D 5D 66 B6 04 01 00 00 5E 5F 40 C2 65 5E 46 77 [14:21:05]CommunicateWithHost err = 0 [14:21:05]CheckOFDResponse [14:21:05]1017 (14) - 77093643461234 [14:21:05]1041 (16) - 0000000000875074 [14:21:05]1040 (4) - 63821 [14:21:05]1012 (4) - 03.06.2024 08:21 [14:21:05]1206 (1) - 0 [14:21:05]OFD Sender: Remove packet 63821 [14:21:05]ProducePacketName [14:21:05]name=ofd_packets/00063821 [14:21:05]NVStorageDeleteData [14:21:05]Write to MH i2c: 01 00 00 E4 15 F9 [14:21:05]Write i2c OK [14:21:05]MH_I2C_Read... [14:21:05]Read from MH i2c: 01 [14:21:05]MH_I2C_Read... [14:21:05]Read from MH i2c: 01 07 00 [14:21:05]MH_I2C_Read... [14:21:05]Read from MH i2c: 01 07 00 E4 15 00 00 00 00 00 8A 0C 96 [14:21:05]RasterBufferAndPrint [14:21:05]line [14:21:05]line [14:21:05]line [14:21:05]line [14:21:05]line [14:21:05]written 0, free lines is 3217 [14:21:05]MH_Cut [14:21:05]Write to MH i2c: D1 01 00 EB 15 01 D2 [14:21:05]Write i2c OK [14:21:05]MH_I2C_Read... [14:21:05]Read from MH i2c: D1 [14:21:05]MH_I2C_Read... [14:21:05]Read from MH i2c: D1 01 00 [14:21:05]MH_I2C_Read... [14:21:05]Read from MH i2c: D1 01 00 EB 15 00 D1 [14:21:05]Write to MH i2c: 01 00 00 EC 15 01 [14:21:05]Write i2c OK [14:21:05]MH_I2C_Read... [14:21:06]OFD Sender: No OFD packet to send [14:21:06]*** Cut start [14:21:06]*** Partial cut [14:21:06]*** CUTSNS_PIN = 1 [14:21:06]*** CUTSNS_PIN = 0 [14:21:07]*** Brake cut motor [14:21:07]Read from MH i2c: 01 [14:21:07]MH_I2C_Read... [14:21:07]*** Stop cut motor [14:21:07]*** Cut end [14:21:07]Read from MH i2c: 01 07 00 [14:21:07]MH_I2C_Read... [14:21:07]Read from MH i2c: 01 07 00 EC 15 00 00 00 00 00 FF 0F 16 [14:21:07]process_action close_receipt done [14:21:07]requested_data is exist [14:21:07]produce_requested_data [14:21:07]requested_item fm.sn is exist - process it [14:21:07]wFMCommunicate request_size=4 [14:21:07]MH_SAM_APDU [14:21:07]CAPDU: 80 11 00 00 [14:21:07]Write to MH i2c: E2 08 00 ED 15 80 11 00 00 00 00 00 00 7C [14:21:07]Write i2c OK [14:21:07]MH_I2C_Read... [14:21:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:21:07]Read from MH i2c: E2 [14:21:07]MH_I2C_Read... [14:21:07]Read from MH i2c: E2 17 00 [14:21:07]MH_I2C_Read... [14:21:07]Read from MH i2c: E2 17 00 ED 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 CE [14:21:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [14:21:07]wFMCommunicate OK [14:21:07]requested_item fd.num is exist - process it [14:21:07]SAM_PROTO_GetFieldsCounters [14:21:07]wFMCommunicate request_size=4 [14:21:07]MH_SAM_APDU [14:21:07]CAPDU: 80 13 00 00 [14:21:07]Write to MH i2c: E2 08 00 EE 15 80 13 00 00 00 00 00 00 7F [14:21:07]Write i2c OK [14:21:07]MH_I2C_Read... [14:21:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:21:07]Read from MH i2c: E2 [14:21:07]MH_I2C_Read... [14:21:07]Read from MH i2c: E2 62 00 [14:21:07]MH_I2C_Read... [14:21:07]Read from MH i2c: E2 62 00 EE 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 4D F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 4B [14: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 4D F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:21:07]wFMCommunicate OK [14:21:07]SAM_PROTO_GetFieldsCounters done [14:21:07]requested_item shift.num is exist - process it [14:21:07]requested_item shift.opened is exist - process it [14:21:07]req_shift_opened [14:21:07]FM_GetShiftState [14:21:07]SAM_PROTO_GetShiftState [14:21:07]wFMCommunicate request_size=4 [14:21:07]MH_SAM_APDU [14:21:07]CAPDU: 80 13 01 00 [14:21:07]Write to MH i2c: E2 08 00 EF 15 80 13 01 00 00 00 00 00 81 [14:21:07]Write i2c OK [14:21:07]MH_I2C_Read... [14:21:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:21:07]Read from MH i2c: E2 [14:21:07]MH_I2C_Read... [14:21:07]Read from MH i2c: E2 0E 00 [14:21:07]MH_I2C_Read... [14:21:07]Read from MH i2c: E2 0E 00 EF 15 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 4D [14:21:07]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [14:21:07]wFMCommunicate OK [14:21:07]SAM_PROTO_GetShiftState done [14:21:07]FM_GetShiftState done [14:21:07]req_shift_opened done [14:21:07]requested_item shift.open_date is exist - process it [14:21:07]req_shift_open_date [14:21:07]req_shift_open_date done [14:21:07]produce_requested_data done [14:21:07]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63821,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [14:21:07]process_action_free close_receipt [14:21:07]json_value_free [14:21:07]json_value_free done [14:21:07]process_json_proto returns [14:21:07]Send response to host [14:21:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63821,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [14:21:07]free response buf [14:21:07]execute_script done [14:21:07]execute_script returns [14:21:07]free content buf [14:21:07]Sock 7.Close socket [14:21:07]Sock 7.Thread stoped [14:21:11]OFD Sender: No OFD packet to send [14:21:16]OFD Sender: No OFD packet to send [14:21:21]OFD Sender: No OFD packet to send [14:21:26]OFD Sender: No OFD packet to send [14:21:31]OFD Sender: No OFD packet to send [14:21:36]OFD Sender: No OFD packet to send [14:21:41]OFD Sender: No OFD packet to send [14:21:46]OFD Sender: No OFD packet to send [14:21:51]OFD Sender: No OFD packet to send [14:21:56]OFD Sender: No OFD packet to send [14:22:01]OFD Sender: No OFD packet to send [14:22:06]OFD Sender: No OFD packet to send [14:22:11]OFD Sender: No OFD packet to send [14:22:16]OFD Sender: No OFD packet to send [14:22:21]OFD Sender: No OFD packet to send [14:22:26]OFD Sender: No OFD packet to send [14:22:31]OFD Sender: No OFD packet to send [14:22:36]OFD Sender: No OFD packet to send [14:22:41]OFD Sender: No OFD packet to send [14:22:46]OFD Sender: No OFD packet to send [14:22:51]OFD Sender: No OFD packet to send [14:22:56]OFD Sender: No OFD packet to send [14:23:01]OFD Sender: No OFD packet to send [14:23:06]OFD Sender: No OFD packet to send [14:23:11]OFD Sender: No OFD packet to send [14:23:16]OFD Sender: No OFD packet to send [14:23:21]OFD Sender: No OFD packet to send [14:23:23]accept exits with 9 [14:23:23]New connection [14:23:23]New thread 3067518308 created [14:23:23]Thread 3067374948 joined [14:23:23]Waiting for new connection... [14:23:23] Sock 9.Parse request [14:23:23]Sock 9.Check first char [14:23:23]Sock 9.First char is OK [14:23:23]request: POST /json_proto HTTP/1.0 [14:23:23]Method: POST [14:23:23]URL: /json_proto [14:23:23]Method is POST - this is cgi request [14:23:23]url: /json_proto [14:23:23]query_string will be loaded in cgi processing [14:23:23]execute_cgi json_proto POST (null) [14:23:23]execute_cgi path=json_proto method=POST [14:23:23]POST find Content-Length [14:23:23]Host: 172.17.60.69:8080 [14:23:23]Content-Length: 670 [14:23:23]Content-Type: application/json [14:23:23] [14:23:23]POST finish read [14:23:23]Found Content-Length = 670 [14:23:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543780", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 67.90, "quantity" : 8.840, "sum" : 600.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:23:23]execute_script... [14: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)543780", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 67.90, "quantity" : 8.840, "sum" : 600.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:23:23]POST & json_proto [14:23:23]process_json_proto [14:23:23]json parsed OK: [14:23:23]protocol is kg_v1.0 [14:23:23]action value=close_receipt [14:23:23]process_action close_receipt [14:23:23]cmd_close_receipt [14:23:23]MH_GetDate [14:23:23]Write to MH i2c: F0 00 00 F0 15 F4 [14:23:23]Write i2c OK [14:23:23]MH_I2C_Read... [14:23:23]Read from MH i2c: F0 [14:23:23]MH_I2C_Read... [14:23:23]Read from MH i2c: F0 09 00 [14:23:23]MH_I2C_Read... [14:23:23]Read from MH i2c: F0 09 00 F0 15 00 DD D1 5D 66 6A 96 4A 66 1E [14:23:23]GetLastDocTimeStamp 1717424466 [14:23:23]current date 1717424605 [14:23:23]FM_GetShiftState [14:23:23]SAM_PROTO_GetShiftState [14:23:23]wFMCommunicate request_size=4 [14:23:23]MH_SAM_APDU [14:23:23]CAPDU: 80 13 01 00 [14:23:23]Write to MH i2c: E2 08 00 F1 15 80 13 01 00 00 00 00 00 83 [14:23:23]Write i2c OK [14:23:23]MH_I2C_Read... [14:23:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:23:23]Read from MH i2c: E2 [14:23:23]MH_I2C_Read... [14:23:23]Read from MH i2c: E2 0E 00 [14:23:23]MH_I2C_Read... [14:23:23]Read from MH i2c: E2 0E 00 F1 15 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 4F [14:23:23]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [14:23:23]wFMCommunicate OK [14:23:23]SAM_PROTO_GetShiftState done [14:23:23]FM_GetShiftState done [14:23:23]opened in 1717373173 [14:23:23]opened+sec_in_day 1717459573 [14:23:23]quantity*price = 60023 [14:23:23]sum+1 = 60025 [14:23:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.74 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 80 03.06.2024 14:23 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63822 ФПД: 181937144512642 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T142325&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63822&fm=181937144512642&tin=02508201610067®Number=0000000000092737&sum=60000 [14:23:24]StoreToDocumentArchive [14:23:24]shift 373 fd 63822 [14:23:24]save to /storage/0373/doc_00063822 [14:23:24]save last doc name /storage/0373/doc_00063822 to /storage/kkm_last_doc_name [14:23:24]save OK [14:23:24]Clear old archive folders... [14:23:24]ProcessDocumentItem done err = 0, tmpTLVsize=252 [14:23:24]tlvbuf is B6F4B2D0 [14:23:24]SAM_PROTO_ClearQueue [14:23:24]wFMCommunicate request_size=4 [14:23:24]MH_SAM_APDU [14:23:24]CAPDU: 80 09 00 00 [14:23:24]Write to MH i2c: E2 08 00 FE 15 80 09 00 00 00 00 00 00 85 [14:23:24]Write i2c OK [14:23:24]MH_I2C_Read... [14:23:24]Read from MH i2c: E2 [14:23:24]MH_I2C_Read... [14:23:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:23:24]Read from MH i2c: E2 03 00 [14:23:24]MH_I2C_Read... [14:23:24]Read from MH i2c: E2 03 00 FE 15 00 90 00 87 [14:23:24]RAPDU: 90 00 [14:23:24]wFMCommunicate OK [14:23:24]SAM_PROTO_ClearQueue done [14:23:24]KKMCreateOFDPacket [14:23:24]OFDProtocolAddRootSTLVToBuf [14:23:24]FM_MakeSignedData [14:23:24]FM_MakeSignedData [14:23:24]SAM_PROTO_SignData [14:23:24]wFMCommunicate request_size=4 [14:23:24]MH_SAM_APDU [14:23:24]CAPDU: 80 0D 01 02 [14:23:24]Write to MH i2c: E2 08 00 FF 15 80 0D 01 02 00 00 00 00 8D [14:23:24]Write i2c OK [14:23:24]MH_I2C_Read... [14:23:24]Read from MH i2c: E2 [14:23:24]MH_I2C_Read... [14:23:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:23:24]Read from MH i2c: E2 03 00 [14:23:24]MH_I2C_Read... [14:23:24]Read from MH i2c: E2 03 00 FF 15 00 90 00 88 [14:23:24]RAPDU: 90 00 [14:23:24]wFMCommunicate OK [14:23:24]wFMCommunicate request_size=255 [14:23:24]MH_SAM_APDU [14:23:24]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 22 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 78 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 E6 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 50 00 00 00 F4 03 04 00 DD D1 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 4E F9 00 00 35 04 06 00 [14:23:24]Write to MH i2c: E2 02 01 00 16 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 22 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 78 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 E6 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 50 00 00 00 F4 03 04 00 DD D1 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 4E F9 00 00 35 04 06 00 00 00 08 [14:23:24]Write i2c OK [14:23:24]MH_I2C_Read... [14:23:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:23:24]Read from MH i2c: E2 [14:23:24]MH_I2C_Read... [14:23:24]Read from MH i2c: E2 03 00 [14:23:24]MH_I2C_Read... [14:23:24]Read from MH i2c: E2 03 00 00 16 00 90 00 8A [14:23:24]RAPDU: 90 00 [14:23:24]wFMCommunicate OK [14:23:24]wFMCommunicate request_size=11 [14:23:24]MH_SAM_APDU [14:23:24]CAPDU: 80 0D 02 02 06 A5 78 8A DE C0 82 [14:23:24]Write to MH i2c: E2 0E 00 01 16 80 0D 02 02 06 00 A5 78 8A DE C0 82 00 00 64 [14:23:24]Write i2c OK [14:23:24]MH_I2C_Read... [14:23:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:23:24]Read from MH i2c: E2 [14:23:24]MH_I2C_Read... [14:23:24]Read from MH i2c: E2 03 00 [14:23:24]MH_I2C_Read... [14:23:24]Read from MH i2c: E2 03 00 01 16 00 90 00 8B [14:23:24]RAPDU: 90 00 [14:23:24]wFMCommunicate OK [14:23:24]wFMCommunicate request_size=4 [14:23:24]MH_SAM_APDU [14:23:24]CAPDU: 80 0D 03 02 [14:23:24]Write to MH i2c: E2 08 00 02 16 80 0D 03 02 00 00 00 00 93 [14:23:24]Write i2c OK [14:23:24]MH_I2C_Read... [14:23:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:23:24]Read from MH i2c: E2 [14:23:24]MH_I2C_Read... [14:23:24]Read from MH i2c: E2 0B 00 [14:23:24]MH_I2C_Read... [14:23:24]Read from MH i2c: E2 0B 00 02 16 00 BE 84 B1 33 59 F2 8F 4A 90 00 DE [14:23:24]RAPDU: BE 84 B1 33 59 F2 8F 4A 90 00 [14:23:24]wFMCommunicate OK [14:23:24]SAM_PROTO_SignData done [14:23:24]FM_MakeSignedData done [14:23:24]CreateOFDProtocolMessage [14:23:24]wFMCommunicate request_size=4 [14:23:24]MH_SAM_APDU [14:23:24]CAPDU: 80 11 00 00 [14:23:24]Write to MH i2c: E2 08 00 03 16 80 11 00 00 00 00 00 00 93 [14:23:24]Write i2c OK [14:23:24]MH_I2C_Read... [14:23:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:23:24]Read from MH i2c: E2 [14:23:24]MH_I2C_Read... [14:23:24]Read from MH i2c: E2 17 00 [14:23:24]MH_I2C_Read... [14:23:24]Read from MH i2c: E2 17 00 03 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 E5 [14:23:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [14:23:24]wFMCommunicate OK [14:23:24]CreateOFDProtocolMessage done [14:23:24]OFDSenderStorePacket 63822 [14:23:24]StoreOFDPacket docnum=63822 [14:23:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 01 00 00 6C 97 08 01 A1 53 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 22 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 78 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 E6 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 50 00 00 00 F4 03 04 00 DD D1 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 4E F9 00 00 35 04 06 00 A5 78 8A DE C0 82 BE 84 B1 33 59 F2 8F 4A [14:23:24]CheckFolder [14:23:24]dirname=/storage/ofd_packets [14:23:24]CheckFolder done [14:23:24]ProducePacketName [14:23:24]name=ofd_packets/00063822 [14:23:24]NVStorageSaveData ofd_packets/00063822 [14:23:24]File name is /storage/ofd_packets/00063822 [14:23:24]Write 302 bytes [14:23:24]NVStorageSaveData done [14:23:24]OFDSenderStorePacket done [14:23:24]KKMCreateOFDPacket done [14:23:24]NVStorageSaveData kkm_last_timestamp [14:23:24]File name is /storage/kkm_last_timestamp [14:23:24]Write 4 bytes [14:23:24]NVStorageSaveData done [14:23:24]ExternCall_PrintAddStr [14:23:24]wPrintStart [14:23:24]Write to MH i2c: 01 00 00 04 16 1A [14:23:24]Write i2c OK [14:23:24]MH_I2C_Read... [14:23:24]Read from MH i2c: 01 [14:23:24]MH_I2C_Read... [14:23:24]Read from MH i2c: 01 07 00 [14:23:24]MH_I2C_Read... [14:23:24]Read from MH i2c: 01 07 00 04 16 00 00 00 00 00 FF 0F 2F [14:23:24]RasterBufferAndPrint [14:23:24]line Счет N : (1)543780 [14:23:24]line ИНН: 02508201610067 [14:23:24]line Контрольно-Кассовый Чек [14:23:24]line ПРОДАЖА [14:23:24]line ТРК (МРК, ГНК) : 24 [14:23:24]line Товар: 2710124130 [14:23:24]line SUPER 92-К-5 [14:23:24]line 8.840 * 67.90 [14:23:24]line = 600.24 [14:23:24]line НДС 12% НСП 1% [14:23:24]line > о реализуемом товаре [14:23:24]line ОКРУГЛЕНИЕ: -0.24 [14:23:24]line ИТОГО: 600.00 [14:23:24]line Внесено: 600.00 [14:23:24]line СДАЧА: 0.00 [14:23:24]line НСП 1% : 5.31 [14:23:24]line НДС 12% : 63.74 [14:23:24]line Наличными: 600.00 [14:23:24]line Безнал.: 0.00 [14:23:24]line Место: АЗС № 117 "Партнер Нефть" [14:23:24]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [14:23:24]line СНО: Общий режим [14:23:24]line Чек 80 03.06.2024 14:23 [14:23:24]line Смена: 373 ФФД: 1.0 [14:23:24]line ЗНМ: 0300000031 [14:23:24]line РНМ: 0000000000092737 [14:23:24]line Версия ККМ: 001 [14:23:24]line ФМ: 0000000000875074 [14:23:24]line ФД: 63822 [14:23:24]line ФПД: 181937144512642 [14:23:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T142325&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63822&fm=181937144512642&tin=02508201610067®Number=0000000000092737&sum=60000 [14:23:25]OFD Sender: Processing packet 63822 [packets to send 14, broken 13] [14:23:25]ProducePacketName [14:23:25]name=ofd_packets/00063822 [14:23:25]OFD Sender: To server: pG, [14:23:25]CommunicateWithHost lk.salyk.kg:30040 [14:23:25]ConnectInit lk.salyk.kg [14:23:25]written 0, free lines is 4095 [14:23:25]Connected sock=10 [14:23:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 01 00 00 6C 97 08 01 A1 53 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 22 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 78 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 E6 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 50 00 00 00 F4 03 04 00 DD D1 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 4E F9 00 00 35 04 06 00 A5 78 8A DE C0 82 BE 84 B1 33 59 F2 8F 4A [14:23:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 4B 27 47 00 AC 3C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 4E F9 00 00 F4 03 04 00 AE 7D 5D 66 B6 04 01 00 00 B2 EF DD 03 F4 E9 AA 01 [14:23:25]CommunicateWithHost err = 0 [14:23:25]CheckOFDResponse [14:23:25]1017 (14) - 77093643461234 [14:23:25]1041 (16) - 0000000000875074 [14:23:25]1040 (4) - 63822 [14:23:25]1012 (4) - 03.06.2024 08:24 [14:23:25]1206 (1) - 0 [14:23:25]OFD Sender: Remove packet 63822 [14:23:25]ProducePacketName [14:23:25]name=ofd_packets/00063822 [14:23:25]NVStorageDeleteData [14:23:25]Write to MH i2c: 01 00 00 2F 16 45 [14:23:25]Write i2c OK [14:23:25]MH_I2C_Read... [14:23:25]Read from MH i2c: 01 [14:23:25]MH_I2C_Read... [14:23:25]Read from MH i2c: 01 07 00 [14:23:25]MH_I2C_Read... [14:23:25]Read from MH i2c: 01 07 00 2F 16 00 00 00 00 00 E4 0C 3C [14:23:25]RasterBufferAndPrint [14:23:25]line [14:23:25]line [14:23:25]line [14:23:25]line [14:23:25]line [14:23:25]written 0, free lines is 3306 [14:23:25]MH_Cut [14:23:25]Write to MH i2c: D1 01 00 36 16 01 1E [14:23:25]Write i2c OK [14:23:25]MH_I2C_Read... [14:23:25]Read from MH i2c: D1 [14:23:25]MH_I2C_Read... [14:23:25]Read from MH i2c: D1 01 00 [14:23:25]MH_I2C_Read... [14:23:25]Read from MH i2c: D1 01 00 36 16 00 1D [14:23:25]Write to MH i2c: 01 00 00 37 16 4D [14:23:25]Write i2c OK [14:23:25]MH_I2C_Read... [14:23:25]OFD Sender: No OFD packet to send [14:23:26]*** Cut start [14:23:26]*** Partial cut [14:23:26]*** CUTSNS_PIN = 1 [14:23:26]*** CUTSNS_PIN = 0 [14:23:26]*** Brake cut motor [14:23:26]Read from MH i2c: 01 [14:23:26]MH_I2C_Read... [14:23:26]*** Stop cut motor [14:23:26]*** Cut end [14:23:26]Read from MH i2c: 01 07 00 [14:23:26]MH_I2C_Read... [14:23:26]Read from MH i2c: 01 07 00 37 16 00 00 00 00 00 FF 0F 62 [14:23:26]process_action close_receipt done [14:23:26]requested_data is exist [14:23:26]produce_requested_data [14:23:26]requested_item fm.sn is exist - process it [14:23:26]wFMCommunicate request_size=4 [14:23:26]MH_SAM_APDU [14:23:26]CAPDU: 80 11 00 00 [14:23:26]Write to MH i2c: E2 08 00 38 16 80 11 00 00 00 00 00 00 C8 [14:23:26]Write i2c OK [14:23:26]MH_I2C_Read... [14:23:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:23:27]Read from MH i2c: E2 [14:23:27]MH_I2C_Read... [14:23:27]Read from MH i2c: E2 17 00 [14:23:27]MH_I2C_Read... [14:23:27]Read from MH i2c: E2 17 00 38 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 1A [14:23:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [14:23:27]wFMCommunicate OK [14:23:27]requested_item fd.num is exist - process it [14:23:27]SAM_PROTO_GetFieldsCounters [14:23:27]wFMCommunicate request_size=4 [14:23:27]MH_SAM_APDU [14:23:27]CAPDU: 80 13 00 00 [14:23:27]Write to MH i2c: E2 08 00 39 16 80 13 00 00 00 00 00 00 CB [14:23:27]Write i2c OK [14:23:27]MH_I2C_Read... [14:23:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:23:27]Read from MH i2c: E2 [14:23:27]MH_I2C_Read... [14:23:27]Read from MH i2c: E2 62 00 [14:23:27]MH_I2C_Read... [14:23:27]Read from MH i2c: E2 62 00 39 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 4E F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 9B [14: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 4E F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:23:27]wFMCommunicate OK [14:23:27]SAM_PROTO_GetFieldsCounters done [14:23:27]requested_item shift.num is exist - process it [14:23:27]requested_item shift.opened is exist - process it [14:23:27]req_shift_opened [14:23:27]FM_GetShiftState [14:23:27]SAM_PROTO_GetShiftState [14:23:27]wFMCommunicate request_size=4 [14:23:27]MH_SAM_APDU [14:23:27]CAPDU: 80 13 01 00 [14:23:27]Write to MH i2c: E2 08 00 3A 16 80 13 01 00 00 00 00 00 CD [14:23:27]Write i2c OK [14:23:27]MH_I2C_Read... [14:23:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:23:27]Read from MH i2c: E2 [14:23:27]MH_I2C_Read... [14:23:27]Read from MH i2c: E2 0E 00 [14:23:27]MH_I2C_Read... [14:23:27]Read from MH i2c: E2 0E 00 3A 16 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 99 [14:23:27]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [14:23:27]wFMCommunicate OK [14:23:27]SAM_PROTO_GetShiftState done [14:23:27]FM_GetShiftState done [14:23:27]req_shift_opened done [14:23:27]requested_item shift.open_date is exist - process it [14:23:27]req_shift_open_date [14:23:27]req_shift_open_date done [14:23:27]produce_requested_data done [14:23:27]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63822,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [14:23:27]process_action_free close_receipt [14:23:27]json_value_free [14:23:27]json_value_free done [14:23:27]process_json_proto returns [14:23:27]Send response to host [14:23:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63822,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [14:23:27]free response buf [14:23:27]execute_script done [14:23:27]execute_script returns [14:23:27]free content buf [14:23:27]Sock 9.Close socket [14:23:27]Sock 9.Thread stoped [14:23:27]accept exits with 7 [14:23:27]New connection [14:23:27]New thread 3067374948 created [14:23:27]Thread 3067518308 joined [14:23:27]Waiting for new connection... [14:23:27] Sock 7.Parse request [14:23:27]Sock 7.Check first char [14:23:27]Sock 7.First char is OK [14:23:27]request: POST /json_proto HTTP/1.0 [14:23:27]Method: POST [14:23:27]URL: /json_proto [14:23:27]Method is POST - this is cgi request [14:23:27]url: /json_proto [14:23:27]query_string will be loaded in cgi processing [14:23:27]execute_cgi json_proto POST (null) [14:23:27]execute_cgi path=json_proto method=POST [14:23:27]POST find Content-Length [14:23:27]Host: 172.17.60.69:8080 [14:23:27]Content-Length: 682 [14:23:27]Content-Type: application/json [14:23:27] [14:23:27]POST finish read [14:23:27]Found Content-Length = 682 [14:23:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543778", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 27.070, "sum" : 2000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:23:27]execute_script... [14: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)543778", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 27.070, "sum" : 2000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:23:27]POST & json_proto [14:23:27]process_json_proto [14:23:27]json parsed OK: [14:23:27]protocol is kg_v1.0 [14:23:27]action value=close_receipt [14:23:27]process_action close_receipt [14:23:27]cmd_close_receipt [14:23:27]MH_GetDate [14:23:27]Write to MH i2c: F0 00 00 3B 16 40 [14:23:27]Write i2c OK [14:23:27]MH_I2C_Read... [14:23:27]Read from MH i2c: F0 [14:23:27]MH_I2C_Read... [14:23:27]Read from MH i2c: F0 09 00 [14:23:27]MH_I2C_Read... [14:23:27]Read from MH i2c: F0 09 00 3B 16 00 E2 D1 5D 66 6A 96 4A 66 6F [14:23:27]GetLastDocTimeStamp 1717424605 [14:23:27]current date 1717424610 [14:23:27]FM_GetShiftState [14:23:27]SAM_PROTO_GetShiftState [14:23:27]wFMCommunicate request_size=4 [14:23:27]MH_SAM_APDU [14:23:27]CAPDU: 80 13 01 00 [14:23:27]Write to MH i2c: E2 08 00 3C 16 80 13 01 00 00 00 00 00 CF [14:23:27]Write i2c OK [14:23:27]MH_I2C_Read... [14:23:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:23:27]Read from MH i2c: E2 [14:23:27]MH_I2C_Read... [14:23:27]Read from MH i2c: E2 0E 00 [14:23:27]MH_I2C_Read... [14:23:27]Read from MH i2c: E2 0E 00 3C 16 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 9B [14:23:27]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [14:23:27]wFMCommunicate OK [14:23:27]SAM_PROTO_GetShiftState done [14:23:27]FM_GetShiftState done [14:23:27]opened in 1717373173 [14:23:27]opened+sec_in_day 1717459573 [14:23:27]quantity*price = 200047 [14:23:27]sum+1 = 200048 [14:23:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.44 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 81 03.06.2024 14:23 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63823 ФПД: 57144278072980 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T142330&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63823&fm=57144278072980&tin=02508201610067®Number=0000000000092737&sum=200000 [14:23:28]StoreToDocumentArchive [14:23:28]shift 373 fd 63823 [14:23:28]save to /storage/0373/doc_00063823 [14:23:28]save last doc name /storage/0373/doc_00063823 to /storage/kkm_last_doc_name [14:23:28]save OK [14:23:28]Clear old archive folders... [14:23:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:23:28]tlvbuf is 00D73370 [14:23:28]SAM_PROTO_ClearQueue [14:23:28]wFMCommunicate request_size=4 [14:23:28]MH_SAM_APDU [14:23:28]CAPDU: 80 09 00 00 [14:23:28]Write to MH i2c: E2 08 00 49 16 80 09 00 00 00 00 00 00 D1 [14:23:28]Write i2c OK [14:23:28]MH_I2C_Read... [14:23:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:23:28]Read from MH i2c: E2 [14:23:28]MH_I2C_Read... [14:23:28]Read from MH i2c: E2 03 00 [14:23:28]MH_I2C_Read... [14:23:28]Read from MH i2c: E2 03 00 49 16 00 90 00 D3 [14:23:28]RAPDU: 90 00 [14:23:28]wFMCommunicate OK [14:23:28]SAM_PROTO_ClearQueue done [14:23:28]KKMCreateOFDPacket [14:23:28]OFDProtocolAddRootSTLVToBuf [14:23:28]FM_MakeSignedData [14:23:28]FM_MakeSignedData [14:23:28]SAM_PROTO_SignData [14:23:28]wFMCommunicate request_size=4 [14:23:28]MH_SAM_APDU [14:23:28]CAPDU: 80 0D 01 02 [14:23:28]Write to MH i2c: E2 08 00 4A 16 80 0D 01 02 00 00 00 00 D9 [14:23:28]Write i2c OK [14:23:28]MH_I2C_Read... [14:23:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:23:28]Read from MH i2c: E2 [14:23:28]MH_I2C_Read... [14:23:28]Read from MH i2c: E2 03 00 [14:23:28]MH_I2C_Read... [14:23:28]Read from MH i2c: E2 03 00 4A 16 00 90 00 D4 [14:23:28]RAPDU: 90 00 [14:23:28]wFMCommunicate OK [14:23:28]wFMCommunicate request_size=255 [14:23:28]MH_SAM_APDU [14: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 BE 69 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6F 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 FC 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 51 00 00 00 F4 03 04 00 E2 D1 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 4F F9 00 00 35 04 06 00 33 [14:23:28]Write to MH i2c: E2 02 01 4B 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 BE 69 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6F 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 FC 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 51 00 00 00 F4 03 04 00 E2 D1 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 4F F9 00 00 35 04 06 00 33 00 00 1F [14:23:28]Write i2c OK [14:23:28]MH_I2C_Read... [14:23:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:23:29]Read from MH i2c: E2 [14:23:29]MH_I2C_Read... [14:23:29]Read from MH i2c: E2 03 00 [14:23:29]MH_I2C_Read... [14:23:29]Read from MH i2c: E2 03 00 4B 16 00 90 00 D5 [14:23:29]RAPDU: 90 00 [14:23:29]wFMCommunicate OK [14:23:29]wFMCommunicate request_size=10 [14:23:29]MH_SAM_APDU [14:23:29]CAPDU: 80 0D 02 02 05 F8 F0 65 3E 94 [14:23:29]Write to MH i2c: E2 0D 00 4C 16 80 0D 02 02 05 00 F8 F0 65 3E 94 00 00 05 [14:23:29]Write i2c OK [14:23:29]MH_I2C_Read... [14:23:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:23:29]Read from MH i2c: E2 [14:23:29]MH_I2C_Read... [14:23:29]Read from MH i2c: E2 03 00 [14:23:29]MH_I2C_Read... [14:23:29]Read from MH i2c: E2 03 00 4C 16 00 90 00 D6 [14:23:29]RAPDU: 90 00 [14:23:29]wFMCommunicate OK [14:23:29]wFMCommunicate request_size=4 [14:23:29]MH_SAM_APDU [14:23:29]CAPDU: 80 0D 03 02 [14:23:29]Write to MH i2c: E2 08 00 4D 16 80 0D 03 02 00 00 00 00 DE [14:23:29]Write i2c OK [14:23:29]MH_I2C_Read... [14:23:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:23:29]Read from MH i2c: E2 [14:23:29]MH_I2C_Read... [14:23:29]Read from MH i2c: E2 0B 00 [14:23:29]MH_I2C_Read... [14:23:29]Read from MH i2c: E2 0B 00 4D 16 00 B3 1E 04 7A AE FC 1C FF 90 00 F3 [14:23:29]RAPDU: B3 1E 04 7A AE FC 1C FF 90 00 [14:23:29]wFMCommunicate OK [14:23:29]SAM_PROTO_SignData done [14:23:29]FM_MakeSignedData done [14:23:29]CreateOFDProtocolMessage [14:23:29]wFMCommunicate request_size=4 [14:23:29]MH_SAM_APDU [14:23:29]CAPDU: 80 11 00 00 [14:23:29]Write to MH i2c: E2 08 00 4E 16 80 11 00 00 00 00 00 00 DE [14:23:29]Write i2c OK [14:23:29]MH_I2C_Read... [14:23:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:23:29]Read from MH i2c: E2 [14:23:29]MH_I2C_Read... [14:23:29]Read from MH i2c: E2 17 00 [14:23:29]MH_I2C_Read... [14:23:29]Read from MH i2c: E2 17 00 4E 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 30 [14:23:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [14:23:29]wFMCommunicate OK [14:23:29]CreateOFDProtocolMessage done [14:23:29]OFDSenderStorePacket 63823 [14:23:29]StoreOFDPacket docnum=63823 [14:23:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0F 01 00 00 82 C6 07 01 AB 4C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 BE 69 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6F 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 FC 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 51 00 00 00 F4 03 04 00 E2 D1 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 4F F9 00 00 35 04 06 00 33 F8 F0 65 3E 94 B3 1E 04 7A AE FC 1C FF [14:23:29]CheckFolder [14:23:29]dirname=/storage/ofd_packets [14:23:29]CheckFolder done [14:23:29]ProducePacketName [14:23:29]name=ofd_packets/00063823 [14:23:29]NVStorageSaveData ofd_packets/00063823 [14:23:29]File name is /storage/ofd_packets/00063823 [14:23:29]Write 301 bytes [14:23:29]NVStorageSaveData done [14:23:29]OFDSenderStorePacket done [14:23:29]KKMCreateOFDPacket done [14:23:29]NVStorageSaveData kkm_last_timestamp [14:23:29]File name is /storage/kkm_last_timestamp [14:23:29]Write 4 bytes [14:23:29]NVStorageSaveData done [14:23:29]ExternCall_PrintAddStr [14:23:29]wPrintStart [14:23:29]Write to MH i2c: 01 00 00 4F 16 65 [14:23:29]Write i2c OK [14:23:29]MH_I2C_Read... [14:23:29]Read from MH i2c: 01 [14:23:29]MH_I2C_Read... [14:23:29]Read from MH i2c: 01 07 00 [14:23:29]MH_I2C_Read... [14:23:29]Read from MH i2c: 01 07 00 4F 16 00 00 00 00 00 FF 0F 7A [14:23:29]RasterBufferAndPrint [14:23:29]line Счет N : (1)543778 [14:23:29]line ИНН: 02508201610067 [14:23:29]line Контрольно-Кассовый Чек [14:23:29]line ПРОДАЖА [14:23:29]line ТРК (МРК, ГНК) : 33 [14:23:29]line Товар: 2710124500 [14:23:29]line Аи-95-К-5 [14:23:29]line 27.070 * 73.90 [14:23:29]line = 2000.47 [14:23:29]line НДС 12% НСП 1% [14:23:29]line > о реализуемом товаре [14:23:29]line ОКРУГЛЕНИЕ: -0.47 [14:23:29]line ИТОГО: 2000.00 [14:23:29]line Внесено: 2000.00 [14:23:29]line СДАЧА: 0.00 [14:23:29]line НСП 1% : 17.70 [14:23:29]line НДС 12% : 212.44 [14:23:29]line Наличными: 2000.00 [14:23:29]line Безнал.: 0.00 [14:23:29]line Место: АЗС № 117 "Партнер Нефть" [14:23:29]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [14:23:29]line СНО: Общий режим [14:23:29]line Чек 81 03.06.2024 14:23 [14:23:29]line Смена: 373 ФФД: 1.0 [14:23:29]line ЗНМ: 0300000031 [14:23:29]line РНМ: 0000000000092737 [14:23:29]line Версия ККМ: 001 [14:23:29]line ФМ: 0000000000875074 [14:23:29]line ФД: 63823 [14:23:29]line ФПД: 57144278072980 [14:23:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T142330&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63823&fm=57144278072980&tin=02508201610067®Number=0000000000092737&sum=200000 [14:23:29]OFD Sender: Processing packet 63823 [packets to send 14, broken 13] [14:23:29]ProducePacketName [14:23:29]name=ofd_packets/00063823 [14:23:29]OFD Sender: To server: pG, [14:23:29]CommunicateWithHost lk.salyk.kg:30040 [14:23:29]ConnectInit lk.salyk.kg [14:23:29]written 0, free lines is 4095 [14:23:30]Write to MH i2c: 01 00 00 7A 16 90 [14:23:30]Write i2c OK [14:23:30]MH_I2C_Read... [14:23:30]Read from MH i2c: 01 [14:23:30]MH_I2C_Read... [14:23:30]Read from MH i2c: 01 07 00 [14:23:30]MH_I2C_Read... [14:23:30]Read from MH i2c: 01 07 00 7A 16 00 00 00 00 00 DF 0C 82 [14:23:30]RasterBufferAndPrint [14:23:30]line [14:23:30]line [14:23:30]line [14:23:30]line [14:23:30]line [14:23:30]written 0, free lines is 3304 [14:23:30]MH_Cut [14:23:30]Write to MH i2c: D1 01 00 81 16 01 69 [14:23:30]Write i2c OK [14:23:30]MH_I2C_Read... [14:23:30]Read from MH i2c: D1 [14:23:30]MH_I2C_Read... [14:23:30]Read from MH i2c: D1 01 00 [14:23:30]MH_I2C_Read... [14:23:30]Read from MH i2c: D1 01 00 81 16 00 68 [14:23:30]Write to MH i2c: 01 00 00 82 16 98 [14:23:30]Write i2c OK [14:23:30]MH_I2C_Read... [14:23:31]*** Cut start [14:23:31]*** Partial cut [14:23:31]*** CUTSNS_PIN = 1 [14:23:31]*** CUTSNS_PIN = 0 [14:23:31]*** Brake cut motor [14:23:31]Read from MH i2c: 01 [14:23:31]MH_I2C_Read... [14:23:31]*** Stop cut motor [14:23:31]*** Cut end [14:23:31]Read from MH i2c: 01 07 00 [14:23:31]MH_I2C_Read... [14:23:31]Read from MH i2c: 01 07 00 82 16 00 00 00 00 00 FF 0F AD [14:23:31]process_action close_receipt done [14:23:31]requested_data is exist [14:23:31]produce_requested_data [14:23:31]requested_item fm.sn is exist - process it [14:23:31]wFMCommunicate request_size=4 [14:23:31]MH_SAM_APDU [14:23:31]CAPDU: 80 11 00 00 [14:23:31]Write to MH i2c: E2 08 00 83 16 80 11 00 00 00 00 00 00 13 [14:23:31]Write i2c OK [14:23:31]MH_I2C_Read... [14:23:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:23:31]Read from MH i2c: E2 [14:23:31]MH_I2C_Read... [14:23:31]Read from MH i2c: E2 17 00 [14:23:31]MH_I2C_Read... [14:23:31]Read from MH i2c: E2 17 00 83 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 65 [14:23:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [14:23:31]wFMCommunicate OK [14:23:31]requested_item fd.num is exist - process it [14:23:31]SAM_PROTO_GetFieldsCounters [14:23:31]wFMCommunicate request_size=4 [14:23:31]MH_SAM_APDU [14:23:31]CAPDU: 80 13 00 00 [14:23:31]Write to MH i2c: E2 08 00 84 16 80 13 00 00 00 00 00 00 16 [14:23:31]Write i2c OK [14:23:31]MH_I2C_Read... [14:23:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:23:31]Read from MH i2c: E2 [14:23:31]MH_I2C_Read... [14:23:31]Read from MH i2c: E2 62 00 [14:23:31]MH_I2C_Read... [14:23:31]Read from MH i2c: E2 62 00 84 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 4F F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 EA [14: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 4F F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:23:31]wFMCommunicate OK [14:23:31]SAM_PROTO_GetFieldsCounters done [14:23:31]requested_item shift.num is exist - process it [14:23:31]requested_item shift.opened is exist - process it [14:23:31]req_shift_opened [14:23:31]FM_GetShiftState [14:23:31]SAM_PROTO_GetShiftState [14:23:31]wFMCommunicate request_size=4 [14:23:31]MH_SAM_APDU [14:23:31]CAPDU: 80 13 01 00 [14:23:31]Write to MH i2c: E2 08 00 85 16 80 13 01 00 00 00 00 00 18 [14:23:31]Write i2c OK [14:23:31]MH_I2C_Read... [14:23:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:23:31]Read from MH i2c: E2 [14:23:31]MH_I2C_Read... [14:23:31]Read from MH i2c: E2 0E 00 [14:23:31]MH_I2C_Read... [14:23:31]Read from MH i2c: E2 0E 00 85 16 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 E4 [14:23:31]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [14:23:31]wFMCommunicate OK [14:23:31]SAM_PROTO_GetShiftState done [14:23:31]FM_GetShiftState done [14:23:31]req_shift_opened done [14:23:31]requested_item shift.open_date is exist - process it [14:23:31]req_shift_open_date [14:23:31]req_shift_open_date done [14:23:31]produce_requested_data done [14:23:31]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63823,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [14:23:31]process_action_free close_receipt [14:23:31]json_value_free [14:23:31]json_value_free done [14:23:31]process_json_proto returns [14:23:31]Send response to host [14:23:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63823,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [14:23:31]free response buf [14:23:31]execute_script done [14:23:31]execute_script returns [14:23:31]free content buf [14:23:31]Sock 7.Close socket [14:23:31]Sock 7.Thread stoped [14:25:41]ConnectInit Can't connect to host [14:25:41]CommunicateWithHost connect error [14:25:41]CommunicateWithHost err = -1 [14:25:41]OFD Sender: Server communicate error [14:25:46]OFD Sender: Processing packet 63823 [packets to send 14, broken 13] [14:25:46]ProducePacketName [14:25:46]name=ofd_packets/00063823 [14:25:46]OFD Sender: To server: pG, [14:25:46]CommunicateWithHost lk.salyk.kg:30040 [14:25:46]ConnectInit lk.salyk.kg [14:25:46]Connected sock=7 [14:25:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0F 01 00 00 82 C6 07 01 AB 4C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 BE 69 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6F 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 FC 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 51 00 00 00 F4 03 04 00 E2 D1 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 4F F9 00 00 35 04 06 00 33 F8 F0 65 3E 94 B3 1E 04 7A AE FC 1C FF [14:25:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 B9 10 47 00 BA 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 35 30 37 34 10 04 04 00 4F F9 00 00 F4 03 04 00 3C 7E 5D 66 B6 04 01 00 00 DC 01 E8 EC 8B 4F F5 78 [14:25:46]CommunicateWithHost err = 0 [14:25:46]CheckOFDResponse [14:25:46]1017 (14) - 77093643461234 [14:25:46]1041 (16) - 0000000000875074 [14:25:46]1040 (4) - 63823 [14:25:46]1012 (4) - 03.06.2024 08:26 [14:25:46]1206 (1) - 0 [14:25:46]OFD Sender: Remove packet 63823 [14:25:46]ProducePacketName [14:25:46]name=ofd_packets/00063823 [14:25:46]NVStorageDeleteData [14:25:46]OFD Sender: No OFD packet to send [14:25:51]OFD Sender: No OFD packet to send [14:25:57]OFD Sender: No OFD packet to send [14:26:02]OFD Sender: No OFD packet to send [14:26:07]OFD Sender: No OFD packet to send [14:26:12]OFD Sender: No OFD packet to send [14:26:17]OFD Sender: No OFD packet to send [14:26:22]OFD Sender: No OFD packet to send [14:26:27]OFD Sender: No OFD packet to send [14:26:32]OFD Sender: No OFD packet to send [14:26:37]OFD Sender: No OFD packet to send [14:26:42]OFD Sender: No OFD packet to send [14:26:47]OFD Sender: No OFD packet to send [14:26:52]OFD Sender: No OFD packet to send [14:26:57]OFD Sender: No OFD packet to send [14:27:02]OFD Sender: No OFD packet to send [14:27:07]OFD Sender: No OFD packet to send [14:27:12]OFD Sender: No OFD packet to send [14:27:17]OFD Sender: No OFD packet to send [14:27:22]OFD Sender: No OFD packet to send [14:27:27]OFD Sender: No OFD packet to send [14:27:32]OFD Sender: No OFD packet to send [14:27:37]OFD Sender: No OFD packet to send [14:27:42]OFD Sender: No OFD packet to send [14:27:47]OFD Sender: No OFD packet to send [14:27:52]OFD Sender: No OFD packet to send [14:27:57]OFD Sender: No OFD packet to send [14:28:02]OFD Sender: No OFD packet to send [14:28:07]OFD Sender: No OFD packet to send [14:28:12]OFD Sender: No OFD packet to send [14:28:17]OFD Sender: No OFD packet to send [14:28:22]OFD Sender: No OFD packet to send [14:28:27]OFD Sender: No OFD packet to send [14:28:32]OFD Sender: No OFD packet to send [14:28:37]OFD Sender: No OFD packet to send [14:28:42]OFD Sender: No OFD packet to send [14:28:47]OFD Sender: No OFD packet to send [14:28:52]OFD Sender: No OFD packet to send [14:28:57]OFD Sender: No OFD packet to send [14:29:02]OFD Sender: No OFD packet to send [14:29:07]OFD Sender: No OFD packet to send [14:29:12]OFD Sender: No OFD packet to send [14:29:17]OFD Sender: No OFD packet to send [14:29:22]OFD Sender: No OFD packet to send [14:29:27]OFD Sender: No OFD packet to send [14:29:32]OFD Sender: No OFD packet to send [14:29:37]OFD Sender: No OFD packet to send [14:29:42]OFD Sender: No OFD packet to send [14:29:47]OFD Sender: No OFD packet to send [14:29:52]OFD Sender: No OFD packet to send [14:29:57]OFD Sender: No OFD packet to send [14:30:02]OFD Sender: No OFD packet to send [14:30:07]OFD Sender: No OFD packet to send [14:30:12]OFD Sender: No OFD packet to send [14:30:17]OFD Sender: No OFD packet to send [14:30:22]OFD Sender: No OFD packet to send [14:30:27]OFD Sender: No OFD packet to send [14:30:32]OFD Sender: No OFD packet to send [14:30:37]OFD Sender: No OFD packet to send [14:30:42]OFD Sender: No OFD packet to send [14:30:47]OFD Sender: No OFD packet to send [14:30:52]OFD Sender: No OFD packet to send [14:30:57]OFD Sender: No OFD packet to send [14:31:02]OFD Sender: No OFD packet to send [14:31:07]OFD Sender: No OFD packet to send [14:31:12]OFD Sender: No OFD packet to send [14:31:17]OFD Sender: No OFD packet to send [14:31:22]OFD Sender: No OFD packet to send [14:31:27]OFD Sender: No OFD packet to send [14:31:32]OFD Sender: No OFD packet to send [14:31:37]OFD Sender: No OFD packet to send [14:31:42]OFD Sender: No OFD packet to send [14:31:47]OFD Sender: No OFD packet to send [14:31:52]OFD Sender: No OFD packet to send [14:31:57]OFD Sender: No OFD packet to send [14:32:02]OFD Sender: No OFD packet to send [14:32:07]OFD Sender: No OFD packet to send [14:32:12]OFD Sender: No OFD packet to send [14:32:17]OFD Sender: No OFD packet to send [14:32:22]OFD Sender: No OFD packet to send [14:32:27]OFD Sender: No OFD packet to send [14:32:32]OFD Sender: No OFD packet to send [14:32:37]OFD Sender: No OFD packet to send [14:32:42]OFD Sender: No OFD packet to send [14:32:47]OFD Sender: No OFD packet to send [14:32:52]OFD Sender: No OFD packet to send [14:32:57]OFD Sender: No OFD packet to send [14:33:02]OFD Sender: No OFD packet to send [14:33:07]OFD Sender: No OFD packet to send [14:33:12]OFD Sender: No OFD packet to send [14:33:17]OFD Sender: No OFD packet to send [14:33:22]OFD Sender: No OFD packet to send [14:33:27]OFD Sender: No OFD packet to send [14:33:32]OFD Sender: No OFD packet to send [14:33:37]OFD Sender: No OFD packet to send [14:33:42]OFD Sender: No OFD packet to send [14:33:47]OFD Sender: No OFD packet to send [14:33:52]OFD Sender: No OFD packet to send [14:33:57]OFD Sender: No OFD packet to send [14:34:02]OFD Sender: No OFD packet to send [14:34:07]OFD Sender: No OFD packet to send [14:34:12]OFD Sender: No OFD packet to send [14:34:17]OFD Sender: No OFD packet to send [14:34:22]OFD Sender: No OFD packet to send [14:34:27]OFD Sender: No OFD packet to send [14:34:32]OFD Sender: No OFD packet to send [14:34:37]OFD Sender: No OFD packet to send [14:34:42]OFD Sender: No OFD packet to send [14:34:47]OFD Sender: No OFD packet to send [14:34:52]OFD Sender: No OFD packet to send [14:34:57]OFD Sender: No OFD packet to send [14:35:02]OFD Sender: No OFD packet to send [14:35:07]OFD Sender: No OFD packet to send [14:35:12]OFD Sender: No OFD packet to send [14:35:17]OFD Sender: No OFD packet to send [14:35:22]OFD Sender: No OFD packet to send [14:35:27]OFD Sender: No OFD packet to send [14:35:32]OFD Sender: No OFD packet to send [14:35:37]OFD Sender: No OFD packet to send [14:35:42]OFD Sender: No OFD packet to send [14:35:47]OFD Sender: No OFD packet to send [14:35:52]OFD Sender: No OFD packet to send [14:35:57]OFD Sender: No OFD packet to send [14:36:02]OFD Sender: No OFD packet to send [14:36:07]OFD Sender: No OFD packet to send [14:36:12]OFD Sender: No OFD packet to send [14:36:17]OFD Sender: No OFD packet to send [14:36:22]OFD Sender: No OFD packet to send [14:36:27]OFD Sender: No OFD packet to send [14:36:32]OFD Sender: No OFD packet to send [14:36:37]OFD Sender: No OFD packet to send [14:36:42]OFD Sender: No OFD packet to send [14:36:47]OFD Sender: No OFD packet to send [14:36:52]OFD Sender: No OFD packet to send [14:36:57]OFD Sender: No OFD packet to send [14:37:02]OFD Sender: No OFD packet to send [14:37:07]OFD Sender: No OFD packet to send [14:37:12]OFD Sender: No OFD packet to send [14:37:17]OFD Sender: No OFD packet to send [14:37:22]OFD Sender: No OFD packet to send [14:37:27]OFD Sender: No OFD packet to send [14:37:32]OFD Sender: No OFD packet to send [14:37:37]OFD Sender: No OFD packet to send [14:37: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:52]accept exits with 9 [14:38:52]New connection [14:38:52]New thread 3067518308 created [14:38:52]Thread 3067374948 joined [14:38:52]Waiting for new connection... [14:38:52] Sock 9.Parse request [14:38:52]Sock 9.Check first char [14:38:52]Sock 9.First char is OK [14:38:52]request: POST /json_proto HTTP/1.0 [14:38:52]Method: POST [14:38:52]URL: /json_proto [14:38:52]Method is POST - this is cgi request [14:38:52]url: /json_proto [14:38:52]query_string will be loaded in cgi processing [14:38:52]execute_cgi json_proto POST (null) [14:38:52]execute_cgi path=json_proto method=POST [14:38:52]POST find Content-Length [14:38:52]Host: 172.17.60.69:8080 [14:38:52]Content-Length: 806 [14:38:52]Content-Type: application/json [14:38:52] [14:38:52]POST finish read [14:38:52]Found Content-Length = 806 [14:38:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73404", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:38:52]execute_script... [14:38:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73404", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:38:52]POST & json_proto [14:38:52]process_json_proto [14:38:52]json parsed OK: [14:38:52]protocol is kg_v1.0 [14:38:52]action value=close_receipt [14:38:52]process_action close_receipt [14:38:52]cmd_close_receipt [14:38:52]MH_GetDate [14:38:52]Write to MH i2c: F0 00 00 86 16 8B [14:38:52]Write i2c OK [14:38:52]MH_I2C_Read... [14:38:52]Read from MH i2c: F0 [14:38:52]MH_I2C_Read... [14:38:52]Read from MH i2c: F0 09 00 [14:38:52]MH_I2C_Read... [14:38:52]Read from MH i2c: F0 09 00 86 16 00 7F D5 5D 66 6A 96 4A 66 5B [14:38:52]GetLastDocTimeStamp 1717424610 [14:38:52]current date 1717425535 [14:38:52]FM_GetShiftState [14:38:52]SAM_PROTO_GetShiftState [14:38:52]wFMCommunicate request_size=4 [14:38:52]MH_SAM_APDU [14:38:52]CAPDU: 80 13 01 00 [14:38:52]Write to MH i2c: E2 08 00 87 16 80 13 01 00 00 00 00 00 1A [14:38:52]Write i2c OK [14:38:52]MH_I2C_Read... [14:38:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:38:52]Read from MH i2c: E2 [14:38:52]MH_I2C_Read... [14:38:52]Read from MH i2c: E2 0E 00 [14:38:52]MH_I2C_Read... [14:38:52]Read from MH i2c: E2 0E 00 87 16 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 E6 [14:38:52]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [14:38:52]wFMCommunicate OK [14:38:52]SAM_PROTO_GetShiftState done [14:38:52]FM_GetShiftState done [14:38:52]opened in 1717373173 [14:38:52]opened+sec_in_day 1717459573 [14:38:52]quantity*price = 12500 [14:38:52]sum+1 = 12501 [14:38:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 125.00 НСП 1% : 1.11 НДС 12% : 13.27 Наличными: 0.00 Безнал.: 125.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 82 03.06.2024 14:38 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875074 ФД: 63824 ФПД: 199227681316576 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T143855&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63824&fm=199227681316576&tin=02508201610067®Number=0000000000092737&sum=12500 0 [14:38:54]StoreToDocumentArchive [14:38:54]shift 373 fd 63824 [14:38:54]save to /storage/0373/doc_00063824 [14:38:54]save last doc name /storage/0373/doc_00063824 to /storage/kkm_last_doc_name [14:38:54]save OK [14:38:54]Clear old archive folders... [14:38:54]ProcessDocumentItem done err = 0, tmpTLVsize=282 [14:38:54]tlvbuf is 00D1E890 [14:38:54]SAM_PROTO_ClearQueue [14:38:54]wFMCommunicate request_size=4 [14:38:54]MH_SAM_APDU [14:38:54]CAPDU: 80 09 00 00 [14:38:54]Write to MH i2c: E2 08 00 94 16 80 09 00 00 00 00 00 00 1C [14:38:54]Write i2c OK [14:38:54]MH_I2C_Read... [14:38:54]Read from MH i2c: E2 [14:38:54]MH_I2C_Read... [14:38:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:38:54]Read from MH i2c: E2 03 00 [14:38:54]MH_I2C_Read... [14:38:54]Read from MH i2c: E2 03 00 94 16 00 90 00 1E [14:38:54]RAPDU: 90 00 [14:38:54]wFMCommunicate OK [14:38:54]SAM_PROTO_ClearQueue done [14:38:54]KKMCreateOFDPacket [14:38:54]OFDProtocolAddRootSTLVToBuf [14:38:54]FM_MakeSignedData [14:38:54]FM_MakeSignedData [14:38:54]SAM_PROTO_SignData [14:38:54]wFMCommunicate request_size=4 [14:38:54]MH_SAM_APDU [14:38:54]CAPDU: 80 0D 01 02 [14:38:54]Write to MH i2c: E2 08 00 95 16 80 0D 01 02 00 00 00 00 24 [14:38:54]Write i2c OK [14:38:54]MH_I2C_Read... [14:38:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:38:54]Read from MH i2c: E2 [14:38:54]MH_I2C_Read... [14:38:54]Read from MH i2c: E2 03 00 [14:38:54]MH_I2C_Read... [14:38:54]Read from MH i2c: E2 03 00 95 16 00 90 00 1F [14:38:54]RAPDU: 90 00 [14:38:54]wFMCommunicate OK [14:38:54]wFMCommunicate request_size=255 [14:38:54]MH_SAM_APDU [14:38:54]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 30 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 7F D5 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 [14:38:54]Write to MH i2c: E2 02 01 96 16 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 30 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 7F D5 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 00 00 04 [14:38:54]Write i2c OK [14:38:54]MH_I2C_Read... [14:38:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:38:54]Read from MH i2c: E2 [14:38:54]MH_I2C_Read... [14:38:54]Read from MH i2c: E2 03 00 [14:38:54]MH_I2C_Read... [14:38:54]Read from MH i2c: E2 03 00 96 16 00 90 00 20 [14:38:54]RAPDU: 90 00 [14:38:54]wFMCommunicate OK [14:38:54]wFMCommunicate request_size=41 [14:38:54]MH_SAM_APDU [14:38:54]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 50 F9 00 00 35 04 06 00 B5 32 4F 2C 9E E0 [14:38:54]Write to MH i2c: E2 2C 00 97 16 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 50 F9 00 00 35 04 06 00 B5 32 4F 2C 9E E0 00 00 1E [14:38:54]Write i2c OK [14:38:54]MH_I2C_Read... [14:38:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:38:54]Read from MH i2c: E2 [14:38:54]MH_I2C_Read... [14:38:54]Read from MH i2c: E2 03 00 [14:38:54]MH_I2C_Read... [14:38:54]Read from MH i2c: E2 03 00 97 16 00 90 00 21 [14:38:54]RAPDU: 90 00 [14:38:54]wFMCommunicate OK [14:38:54]wFMCommunicate request_size=4 [14:38:54]MH_SAM_APDU [14:38:54]CAPDU: 80 0D 03 02 [14:38:54]Write to MH i2c: E2 08 00 98 16 80 0D 03 02 00 00 00 00 29 [14:38:54]Write i2c OK [14:38:54]MH_I2C_Read... [14:38:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:38:54]Read from MH i2c: E2 [14:38:54]MH_I2C_Read... [14:38:54]Read from MH i2c: E2 0B 00 [14:38:54]MH_I2C_Read... [14:38:54]Read from MH i2c: E2 0B 00 98 16 00 A6 0D BD BB D7 4A B9 11 90 00 40 [14:38:54]RAPDU: A6 0D BD BB D7 4A B9 11 90 00 [14:38:54]wFMCommunicate OK [14:38:54]SAM_PROTO_SignData done [14:38:54]FM_MakeSignedData done [14:38:54]CreateOFDProtocolMessage [14:38:54]wFMCommunicate request_size=4 [14:38:54]MH_SAM_APDU [14:38:54]CAPDU: 80 11 00 00 [14:38:54]Write to MH i2c: E2 08 00 99 16 80 11 00 00 00 00 00 00 29 [14:38:54]Write i2c OK [14:38:54]MH_I2C_Read... [14:38:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:38:54]Read from MH i2c: E2 [14:38:54]MH_I2C_Read... [14:38:54]Read from MH i2c: E2 17 00 [14:38:54]MH_I2C_Read... [14:38:54]Read from MH i2c: E2 17 00 99 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 7B [14:38:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [14:38:54]wFMCommunicate OK [14:38:54]CreateOFDProtocolMessage done [14:38:54]OFDSenderStorePacket 63824 [14:38:54]StoreOFDPacket docnum=63824 [14:38:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 2E 01 00 00 16 97 26 01 D6 D1 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 30 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 7F D5 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 50 F9 00 00 35 04 06 00 B5 32 4F 2C 9E E0 A6 0D BD BB D7 4A B9 11 [14:38:54]CheckFolder [14:38:54]dirname=/storage/ofd_packets [14:38:54]CheckFolder done [14:38:54]ProducePacketName [14:38:54]name=ofd_packets/00063824 [14:38:54]NVStorageSaveData ofd_packets/00063824 [14:38:54]File name is /storage/ofd_packets/00063824 [14:38:54]Write 332 bytes [14:38:54]NVStorageSaveData done [14:38:54]OFDSenderStorePacket done [14:38:54]KKMCreateOFDPacket done [14:38:54]NVStorageSaveData kkm_last_timestamp [14:38:54]File name is /storage/kkm_last_timestamp [14:38:54]Write 4 bytes [14:38:54]NVStorageSaveData done [14:38:54]ExternCall_PrintAddStr [14:38:54]wPrintStart [14:38:54]Write to MH i2c: 01 00 00 9A 16 B0 [14:38:54]Write i2c OK [14:38:54]MH_I2C_Read... [14:38:54]Read from MH i2c: 01 [14:38:54]MH_I2C_Read... [14:38:54]Read from MH i2c: 01 07 00 [14:38:54]MH_I2C_Read... [14:38:54]Read from MH i2c: 01 07 00 9A 16 00 00 00 00 00 FF 0F C5 [14:38:54]RasterBufferAndPrint [14:38:54]line Счет N : (3)73404 [14:38:54]line ИНН: 02508201610067 [14:38:54]line Контрольно-Кассовый Чек [14:38:54]line ПРОДАЖА [14:38:54]line Товар: 2000036220012 [14:38:54]line Кофе Капучино XL(GABB TRADE) [14:38:54]line 1.000 * 125.00 [14:38:54]line = 125.00 [14:38:54]line НДС 12% НСП 1% [14:38:54]line > о реализуемом товаре [14:38:54]line ИТОГО: 125.00 [14:38:54]line НСП 1% : 1.11 [14:38:54]line НДС 12% : 13.27 [14:38:54]line Наличными: 0.00 [14:38:54]line Безнал.: 125.00 [14:38:54]line Место: АЗС № 117 "Партнер Нефть" [14:38:54]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [14:38:54]line СНО: Общий режим [14:38:54]line Чек 82 03.06.2024 14:38 [14:38:54]line Смена: 373 ФФД: 1.0 [14:38:54]line ЗНМ: 0300000031 [14:38:54]line РНМ: 0000000000092737 [14:38:54]line Версия ККМ: 001 [14:38:54]line Платежная система: O! деньги [14:38:54]line ФМ: 0000000000875074 [14:38:54]line ФД: 63824 [14:38:54]line ФПД: 199227681316576 [14:38:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T143855&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63824&fm=199227681316576&tin=02508201610067®Number=0000000000092737&sum=12500 [14:38:54]line 0 [14:38:54]OFD Sender: Processing packet 63824 [packets to send 14, broken 13] [14:38:54]ProducePacketName [14:38:54]name=ofd_packets/00063824 [14:38:54]OFD Sender: To server: pG, [14:38:54]CommunicateWithHost lk.salyk.kg:30040 [14:38:54]ConnectInit lk.salyk.kg [14:38:54]written 0, free lines is 4095 [14:38:55]Connected sock=10 [14:38:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 2E 01 00 00 16 97 26 01 D6 D1 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 30 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 7F D5 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 50 F9 00 00 35 04 06 00 B5 32 4F 2C 9E E0 A6 0D BD BB D7 4A B9 11 [14:38:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 CC 7E 47 00 5B 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 35 30 37 34 10 04 04 00 50 F9 00 00 F4 03 04 00 50 81 5D 66 B6 04 01 00 00 48 74 DD 0D 33 18 67 94 [14:38:55]CommunicateWithHost err = 0 [14:38:55]CheckOFDResponse [14:38:55]1017 (14) - 77093643461234 [14:38:55]1041 (16) - 0000000000875074 [14:38:55]1040 (4) - 63824 [14:38:55]1012 (4) - 03.06.2024 08:39 [14:38:55]1206 (1) - 0 [14:38:55]OFD Sender: Remove packet 63824 [14:38:55]ProducePacketName [14:38:55]name=ofd_packets/00063824 [14:38:55]NVStorageDeleteData [14:38:55]Write to MH i2c: 01 00 00 C5 16 DB [14:38:55]Write i2c OK [14:38:55]MH_I2C_Read... [14:38:55]Read from MH i2c: 01 [14:38:55]MH_I2C_Read... [14:38:55]Read from MH i2c: 01 07 00 [14:38:55]MH_I2C_Read... [14:38:55]Read from MH i2c: 01 07 00 C5 16 00 00 00 00 00 C1 0C AF [14:38:55]RasterBufferAndPrint [14:38:55]line [14:38:55]line [14:38:55]line [14:38:55]line [14:38:55]line [14:38:55]written 0, free lines is 3271 [14:38:55]MH_Cut [14:38:55]Write to MH i2c: D1 01 00 CC 16 01 B4 [14:38:55]Write i2c OK [14:38:55]MH_I2C_Read... [14:38:55]Read from MH i2c: D1 [14:38:55]MH_I2C_Read... [14:38:55]Read from MH i2c: D1 01 00 [14:38:55]MH_I2C_Read... [14:38:55]Read from MH i2c: D1 01 00 CC 16 00 B3 [14:38:55]Write to MH i2c: 01 00 00 CD 16 E3 [14:38:55]Write i2c OK [14:38:55]MH_I2C_Read... [14:38:55]OFD Sender: No OFD packet to send [14:38:56]*** Cut start [14:38:56]*** Partial cut [14:38:56]*** CUTSNS_PIN = 1 [14:38:56]*** CUTSNS_PIN = 0 [14:38:56]*** Brake cut motor [14:38:56]Read from MH i2c: 01 [14:38:56]MH_I2C_Read... [14:38:56]*** Stop cut motor [14:38:56]*** Cut end [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 CD 16 00 00 00 00 00 FF 0F F8 [14:38:56]process_action close_receipt done [14:38:56]requested_data is exist [14:38:56]produce_requested_data [14:38:56]requested_item fm.sn is exist - process it [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 CE 16 80 11 00 00 00 00 00 00 5E [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 CE 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 B0 [14:38:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [14:38:56]wFMCommunicate OK [14:38:56]requested_item fd.num is exist - process it [14:38:56]SAM_PROTO_GetFieldsCounters [14:38:56]wFMCommunicate request_size=4 [14:38:56]MH_SAM_APDU [14:38:56]CAPDU: 80 13 00 00 [14:38:56]Write to MH i2c: E2 08 00 CF 16 80 13 00 00 00 00 00 00 61 [14:38:56]Write i2c OK [14:38:56]MH_I2C_Read... [14:38:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:38:57]Read from MH i2c: E2 [14:38:57]MH_I2C_Read... [14:38:57]Read from MH i2c: E2 62 00 [14:38:57]MH_I2C_Read... [14:38:57]Read from MH i2c: E2 62 00 CF 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 50 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 39 [14:38: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 50 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:38:57]wFMCommunicate OK [14:38:57]SAM_PROTO_GetFieldsCounters done [14:38:57]requested_item shift.num is exist - process it [14:38:57]requested_item shift.opened is exist - process it [14:38:57]req_shift_opened [14:38:57]FM_GetShiftState [14:38:57]SAM_PROTO_GetShiftState [14:38:57]wFMCommunicate request_size=4 [14:38:57]MH_SAM_APDU [14:38:57]CAPDU: 80 13 01 00 [14:38:57]Write to MH i2c: E2 08 00 D0 16 80 13 01 00 00 00 00 00 63 [14:38:57]Write i2c OK [14:38:57]MH_I2C_Read... [14:38:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:38:57]Read from MH i2c: E2 [14:38:57]MH_I2C_Read... [14:38:57]Read from MH i2c: E2 0E 00 [14:38:57]MH_I2C_Read... [14:38:57]Read from MH i2c: E2 0E 00 D0 16 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 2F [14:38:57]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [14:38:57]wFMCommunicate OK [14:38:57]SAM_PROTO_GetShiftState done [14:38:57]FM_GetShiftState done [14:38:57]req_shift_opened done [14:38:57]requested_item shift.open_date is exist - process it [14:38:57]req_shift_open_date [14:38:57]req_shift_open_date done [14:38:57]produce_requested_data done [14:38:57]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63824,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [14:38:57]process_action_free close_receipt [14:38:57]json_value_free [14:38:57]json_value_free done [14:38:57]process_json_proto returns [14:38:57]Send response to host [14:38:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63824,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [14:38:57]free response buf [14:38:57]execute_script done [14:38:57]execute_script returns [14:38:57]free content buf [14:38:57]Sock 9.Close socket [14:38:57]Sock 9.Thread stoped [14:39:00]OFD Sender: No OFD packet to send [14:39:05]OFD Sender: No OFD packet to send [14:39:10]OFD Sender: No OFD packet to send [14:39:15]OFD Sender: No OFD packet to send [14:39:20]OFD Sender: No OFD packet to send [14:39:25]OFD Sender: No OFD packet to send [14:39:30]OFD Sender: No OFD packet to send [14:39:35]OFD Sender: No OFD packet to send [14:39:40]OFD Sender: No OFD packet to send [14:39:45]OFD Sender: No OFD packet to send [14:39:50]OFD Sender: No OFD packet to send [14:39:55]OFD Sender: No OFD packet to send [14:40:00]OFD Sender: No OFD packet to send [14:40:05]OFD Sender: No OFD packet to send [14:40:10]OFD Sender: No OFD packet to send [14:40:15]OFD Sender: No OFD packet to send [14:40:20]OFD Sender: No OFD packet to send [14:40:25]OFD Sender: No OFD packet to send [14:40:30]OFD Sender: No OFD packet to send [14:40:35]OFD Sender: No OFD packet to send [14:40:40]OFD Sender: No OFD packet to send [14:40:45]OFD Sender: No OFD packet to send [14:40:50]OFD Sender: No OFD packet to send [14:40:55]OFD Sender: No OFD packet to send [14:41:00]OFD Sender: No OFD packet to send [14:41:05]OFD Sender: No OFD packet to send [14:41:10]OFD Sender: No OFD packet to send [14:41:15]OFD Sender: No OFD packet to send [14:41:20]OFD Sender: No OFD packet to send [14:41:25]OFD Sender: No OFD packet to send [14:41:30]OFD Sender: No OFD packet to send [14:41:35]OFD Sender: No OFD packet to send [14:41:40]OFD Sender: No OFD packet to send [14:41:43]accept exits with 7 [14:41:43]New connection [14:41:43]New thread 3067374948 created [14:41:43]Thread 3067518308 joined [14:41:43]Waiting for new connection... [14:41:43] Sock 7.Parse request [14:41:43]Sock 7.Check first char [14:41:43]Sock 7.First char is OK [14:41:43]request: POST /json_proto HTTP/1.0 [14:41:43]Method: POST [14:41:43]URL: /json_proto [14:41:43]Method is POST - this is cgi request [14:41:43]url: /json_proto [14:41:43]query_string will be loaded in cgi processing [14:41:43]execute_cgi json_proto POST (null) [14:41:43]execute_cgi path=json_proto method=POST [14:41:43]POST find Content-Length [14:41:43]Host: 172.17.60.69:8080 [14:41:43]Content-Length: 653 [14:41:43]Content-Type: application/json [14:41:43] [14:41:43]POST finish read [14:41:43]Found Content-Length = 653 [14:41:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73405", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:41:43]execute_script... [14:41:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73405", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:41:43]POST & json_proto [14:41:43]process_json_proto [14:41:43]json parsed OK: [14:41:43]protocol is kg_v1.0 [14:41:43]action value=close_receipt [14:41:43]process_action close_receipt [14:41:43]cmd_close_receipt [14:41:43]MH_GetDate [14:41:43]Write to MH i2c: F0 00 00 D1 16 D6 [14:41:43]Write i2c OK [14:41:43]MH_I2C_Read... [14:41:43]Read from MH i2c: F0 [14:41:43]MH_I2C_Read... [14:41:43]Read from MH i2c: F0 09 00 [14:41:43]MH_I2C_Read... [14:41:43]Read from MH i2c: F0 09 00 D1 16 00 2A D6 5D 66 6A 96 4A 66 52 [14:41:43]GetLastDocTimeStamp 1717425535 [14:41:43]current date 1717425706 [14:41:43]FM_GetShiftState [14:41:43]SAM_PROTO_GetShiftState [14:41:43]wFMCommunicate request_size=4 [14:41:43]MH_SAM_APDU [14:41:43]CAPDU: 80 13 01 00 [14:41:43]Write to MH i2c: E2 08 00 D2 16 80 13 01 00 00 00 00 00 65 [14:41:43]Write i2c OK [14:41:43]MH_I2C_Read... [14:41:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:41:43]Read from MH i2c: E2 [14:41:43]MH_I2C_Read... [14:41:43]Read from MH i2c: E2 0E 00 [14:41:43]MH_I2C_Read... [14:41:43]Read from MH i2c: E2 0E 00 D2 16 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 31 [14:41:43]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [14:41:43]wFMCommunicate OK [14:41:43]SAM_PROTO_GetShiftState done [14:41:43]FM_GetShiftState done [14:41:43]opened in 1717373173 [14:41:43]opened+sec_in_day 1717459573 [14:41:43]quantity*price = 9500 [14:41:43]sum+1 = 9501 [14:41:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 95.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 83 03.06.2024 14:41 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63825 ФПД: 225580711432138 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T144146&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63825&fm=225580711432138&tin=02508201610067®Number=0000000000092737&sum=9500 0 [14:41:45]StoreToDocumentArchive [14:41:45]shift 373 fd 63825 [14:41:45]save to /storage/0373/doc_00063825 [14:41:45]save last doc name /storage/0373/doc_00063825 to /storage/kkm_last_doc_name [14:41:45]save OK [14:41:45]Clear old archive folders... [14:41:45]ProcessDocumentItem done err = 0, tmpTLVsize=293 [14:41:45]tlvbuf is 00D1E740 [14:41:45]SAM_PROTO_ClearQueue [14:41:45]wFMCommunicate request_size=4 [14:41:45]MH_SAM_APDU [14:41:45]CAPDU: 80 09 00 00 [14:41:45]Write to MH i2c: E2 08 00 DF 16 80 09 00 00 00 00 00 00 67 [14:41:45]Write i2c OK [14:41:45]MH_I2C_Read... [14:41:45]Read from MH i2c: E2 [14:41:45]MH_I2C_Read... [14:41:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:41:45]Read from MH i2c: E2 03 00 [14:41:45]MH_I2C_Read... [14:41:45]Read from MH i2c: E2 03 00 DF 16 00 90 00 69 [14:41:45]RAPDU: 90 00 [14:41:45]wFMCommunicate OK [14:41:45]SAM_PROTO_ClearQueue done [14:41:45]KKMCreateOFDPacket [14:41:45]OFDProtocolAddRootSTLVToBuf [14:41:45]FM_MakeSignedData [14:41:45]FM_MakeSignedData [14:41:45]SAM_PROTO_SignData [14:41:45]wFMCommunicate request_size=4 [14:41:45]MH_SAM_APDU [14:41:45]CAPDU: 80 0D 01 02 [14:41:45]Write to MH i2c: E2 08 00 E0 16 80 0D 01 02 00 00 00 00 6F [14:41:45]Write i2c OK [14:41:45]MH_I2C_Read... [14:41:45]Read from MH i2c: E2 [14:41:45]MH_I2C_Read... [14:41:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:41:45]Read from MH i2c: E2 03 00 [14:41:45]MH_I2C_Read... [14:41:45]Read from MH i2c: E2 03 00 E0 16 00 90 00 6A [14:41:45]RAPDU: 90 00 [14:41:45]wFMCommunicate OK [14:41:45]wFMCommunicate request_size=255 [14:41:45]MH_SAM_APDU [14:41:45]CAPDU: 80 0D 02 02 FA 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 2A D6 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [14:41:45]Write to MH i2c: E2 02 01 E1 16 80 0D 02 02 FA 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 2A D6 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 9B [14:41:45]Write i2c OK [14:41:45]MH_I2C_Read... [14:41:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:41:45]Read from MH i2c: E2 [14:41:45]MH_I2C_Read... [14:41:45]Read from MH i2c: E2 03 00 [14:41:45]MH_I2C_Read... [14:41:45]Read from MH i2c: E2 03 00 E1 16 00 90 00 6B [14:41:45]RAPDU: 90 00 [14:41:45]wFMCommunicate OK [14:41:45]wFMCommunicate request_size=52 [14:41:45]MH_SAM_APDU [14:41:45]CAPDU: 80 0D 02 02 2F 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 51 F9 00 00 35 04 06 00 CD 2A 1A 2C 4F CA [14:41:45]Write to MH i2c: E2 37 00 E2 16 80 0D 02 02 2F 00 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 51 F9 00 00 35 04 06 00 CD 2A 1A 2C 4F CA 00 00 D7 [14:41:45]Write i2c OK [14:41:45]MH_I2C_Read... [14:41:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:41:45]Read from MH i2c: E2 [14:41:45]MH_I2C_Read... [14:41:45]Read from MH i2c: E2 03 00 [14:41:45]MH_I2C_Read... [14:41:45]Read from MH i2c: E2 03 00 E2 16 00 90 00 6C [14:41:45]RAPDU: 90 00 [14:41:45]wFMCommunicate OK [14:41:45]wFMCommunicate request_size=4 [14:41:45]MH_SAM_APDU [14:41:45]CAPDU: 80 0D 03 02 [14:41:45]Write to MH i2c: E2 08 00 E3 16 80 0D 03 02 00 00 00 00 74 [14:41:45]Write i2c OK [14:41:45]MH_I2C_Read... [14:41:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:41:45]Read from MH i2c: E2 [14:41:45]MH_I2C_Read... [14:41:45]Read from MH i2c: E2 0B 00 [14:41:45]MH_I2C_Read... [14:41:45]Read from MH i2c: E2 0B 00 E3 16 00 82 DA 71 92 83 0C A9 71 90 00 7D [14:41:45]RAPDU: 82 DA 71 92 83 0C A9 71 90 00 [14:41:45]wFMCommunicate OK [14:41:45]SAM_PROTO_SignData done [14:41:45]FM_MakeSignedData done [14:41:45]CreateOFDProtocolMessage [14:41:45]wFMCommunicate request_size=4 [14:41:45]MH_SAM_APDU [14:41:45]CAPDU: 80 11 00 00 [14:41:45]Write to MH i2c: E2 08 00 E4 16 80 11 00 00 00 00 00 00 74 [14:41:45]Write i2c OK [14:41:45]MH_I2C_Read... [14:41:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:41:45]Read from MH i2c: E2 [14:41:45]MH_I2C_Read... [14:41:45]Read from MH i2c: E2 17 00 [14:41:45]MH_I2C_Read... [14:41:45]Read from MH i2c: E2 17 00 E4 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 C6 [14:41:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [14:41:45]wFMCommunicate OK [14:41:45]CreateOFDProtocolMessage done [14:41:45]OFDSenderStorePacket 63825 [14:41:45]StoreOFDPacket docnum=63825 [14:41:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 39 01 00 00 43 C2 31 01 27 14 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 2A D6 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 51 F9 00 00 35 04 06 00 CD 2A 1A 2C 4F CA 82 DA 71 92 83 0C A9 71 [14:41:45]CheckFolder [14:41:45]dirname=/storage/ofd_packets [14:41:45]CheckFolder done [14:41:45]ProducePacketName [14:41:45]name=ofd_packets/00063825 [14:41:45]NVStorageSaveData ofd_packets/00063825 [14:41:45]File name is /storage/ofd_packets/00063825 [14:41:45]Write 343 bytes [14:41:45]NVStorageSaveData done [14:41:45]OFDSenderStorePacket done [14:41:45]KKMCreateOFDPacket done [14:41:45]NVStorageSaveData kkm_last_timestamp [14:41:45]File name is /storage/kkm_last_timestamp [14:41:45]Write 4 bytes [14:41:45]NVStorageSaveData done [14:41:45]ExternCall_PrintAddStr [14:41:45]wPrintStart [14:41:45]Write to MH i2c: 01 00 00 E5 16 FB [14:41:45]Write i2c OK [14:41:45]MH_I2C_Read... [14:41:45]Read from MH i2c: 01 [14:41:45]MH_I2C_Read... [14:41:45]Read from MH i2c: 01 07 00 [14:41:45]MH_I2C_Read... [14:41:45]Read from MH i2c: 01 07 00 E5 16 00 00 00 00 00 FF 0F 10 [14:41:45]RasterBufferAndPrint [14:41:45]line Счет N : (3)73405 [14:41:45]line ИНН: 02508201610067 [14:41:45]line Контрольно-Кассовый Чек [14:41:45]line ПРОДАЖА [14:41:45]line Товар: 4700000480050 [14:41:45]line Напиток Nitro Energy эн green ж/б 0,45л [14:41:45]line 1.000 * 95.00 [14:41:45]line = 95.00 [14:41:45]line НДС 12% НСП 1% [14:41:45]line > о реализуемом товаре [14:41:45]line ИТОГО: 95.00 [14:41:45]line НСП 1% : 0.84 [14:41:45]line НДС 12% : 10.09 [14:41:45]line Наличными: 95.00 [14:41:45]line Безнал.: 0.00 [14:41:45]line Место: АЗС № 117 "Партнер Нефть" [14:41:45]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [14:41:45]line СНО: Общий режим [14:41:45]line Чек 83 03.06.2024 14:41 [14:41:45]line Смена: 373 ФФД: 1.0 [14:41:45]line ЗНМ: 0300000031 [14:41:45]line РНМ: 0000000000092737 [14:41:45]line Версия ККМ: 001 [14:41:45]line ФМ: 0000000000875074 [14:41:45]line ФД: 63825 [14:41:45]line ФПД: 225580711432138 [14:41:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T144146&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63825&fm=225580711432138&tin=02508201610067®Number=0000000000092737&sum=9500 [14:41:45]line 0 [14:41:45]OFD Sender: Processing packet 63825 [packets to send 14, broken 13] [14:41:45]ProducePacketName [14:41:45]name=ofd_packets/00063825 [14:41:45]OFD Sender: To server: pG, [14:41:45]CommunicateWithHost lk.salyk.kg:30040 [14:41:45]ConnectInit lk.salyk.kg [14:41:45]written 0, free lines is 4095 [14:41:45]Connected sock=10 [14:41:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 39 01 00 00 43 C2 31 01 27 14 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 2A D6 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 51 F9 00 00 35 04 06 00 CD 2A 1A 2C 4F CA 82 DA 71 92 83 0C A9 71 [14:41:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 4E 72 47 00 CB AC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 51 F9 00 00 F4 03 04 00 FB 81 5D 66 B6 04 01 00 00 B5 0A 84 38 0A DB 73 EA [14:41:46]CommunicateWithHost err = 0 [14:41:46]CheckOFDResponse [14:41:46]1017 (14) - 77093643461234 [14:41:46]1041 (16) - 0000000000875074 [14:41:46]1040 (4) - 63825 [14:41:46]1012 (4) - 03.06.2024 08:42 [14:41:46]1206 (1) - 0 [14:41:46]OFD Sender: Remove packet 63825 [14:41:46]ProducePacketName [14:41:46]name=ofd_packets/00063825 [14:41:46]NVStorageDeleteData [14:41:46]Write to MH i2c: 01 00 00 0E 17 25 [14:41:46]Write i2c OK [14:41:46]MH_I2C_Read... [14:41:46]Read from MH i2c: 01 [14:41:46]MH_I2C_Read... [14:41:46]Read from MH i2c: 01 07 00 [14:41:46]MH_I2C_Read... [14:41:46]Read from MH i2c: 01 07 00 0E 17 00 00 00 00 00 D9 0C 11 [14:41:46]RasterBufferAndPrint [14:41:46]line [14:41:46]line [14:41:46]line [14:41:46]line [14:41:46]line [14:41:46]written 0, free lines is 3296 [14:41:46]MH_Cut [14:41:46]Write to MH i2c: D1 01 00 15 17 01 FE [14:41:46]Write i2c OK [14:41:46]MH_I2C_Read... [14:41:46]Read from MH i2c: D1 [14:41:46]MH_I2C_Read... [14:41:46]Read from MH i2c: D1 01 00 [14:41:46]MH_I2C_Read... [14:41:46]Read from MH i2c: D1 01 00 15 17 00 FD [14:41:46]Write to MH i2c: 01 00 00 16 17 2D [14:41:46]Write i2c OK [14:41:46]MH_I2C_Read... [14:41:46]OFD Sender: No OFD packet to send [14:41:47]*** Cut start [14:41:47]*** Partial cut [14:41:47]*** CUTSNS_PIN = 1 [14:41:47]*** CUTSNS_PIN = 0 [14:41:47]*** Brake cut motor [14:41:47]Read from MH i2c: 01 [14:41:47]MH_I2C_Read... [14:41:47]*** Stop cut motor [14:41:47]*** Cut end [14:41:47]Read from MH i2c: 01 07 00 [14:41:47]MH_I2C_Read... [14:41:47]Read from MH i2c: 01 07 00 16 17 00 00 00 00 00 FF 0F 42 [14:41:47]process_action close_receipt done [14:41:47]requested_data is exist [14:41:47]produce_requested_data [14:41:47]requested_item fm.sn is exist - process it [14:41:47]wFMCommunicate request_size=4 [14:41:47]MH_SAM_APDU [14:41:47]CAPDU: 80 11 00 00 [14:41:47]Write to MH i2c: E2 08 00 17 17 80 11 00 00 00 00 00 00 A8 [14:41:47]Write i2c OK [14:41:47]MH_I2C_Read... [14:41:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:41:47]Read from MH i2c: E2 [14:41:47]MH_I2C_Read... [14:41:47]Read from MH i2c: E2 17 00 [14:41:47]MH_I2C_Read... [14:41:47]Read from MH i2c: E2 17 00 17 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 FA [14:41:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [14:41:47]wFMCommunicate OK [14:41:47]requested_item fd.num is exist - process it [14:41:47]SAM_PROTO_GetFieldsCounters [14:41:47]wFMCommunicate request_size=4 [14:41:47]MH_SAM_APDU [14:41:47]CAPDU: 80 13 00 00 [14:41:47]Write to MH i2c: E2 08 00 18 17 80 13 00 00 00 00 00 00 AB [14:41:47]Write i2c OK [14:41:47]MH_I2C_Read... [14:41:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:41:47]Read from MH i2c: E2 [14:41:47]MH_I2C_Read... [14:41:47]Read from MH i2c: E2 62 00 [14:41:47]MH_I2C_Read... [14:41:48]Read from MH i2c: E2 62 00 18 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 51 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 87 [14:41: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 51 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:41:48]wFMCommunicate OK [14:41:48]SAM_PROTO_GetFieldsCounters done [14:41:48]requested_item shift.num is exist - process it [14:41:48]requested_item shift.opened is exist - process it [14:41:48]req_shift_opened [14:41:48]FM_GetShiftState [14:41:48]SAM_PROTO_GetShiftState [14:41:48]wFMCommunicate request_size=4 [14:41:48]MH_SAM_APDU [14:41:48]CAPDU: 80 13 01 00 [14:41:48]Write to MH i2c: E2 08 00 19 17 80 13 01 00 00 00 00 00 AD [14:41:48]Write i2c OK [14:41:48]MH_I2C_Read... [14:41:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:41:48]Read from MH i2c: E2 [14:41:48]MH_I2C_Read... [14:41:48]Read from MH i2c: E2 0E 00 [14:41:48]MH_I2C_Read... [14:41:48]Read from MH i2c: E2 0E 00 19 17 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 79 [14:41:48]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [14:41:48]wFMCommunicate OK [14:41:48]SAM_PROTO_GetShiftState done [14:41:48]FM_GetShiftState done [14:41:48]req_shift_opened done [14:41:48]requested_item shift.open_date is exist - process it [14:41:48]req_shift_open_date [14:41:48]req_shift_open_date done [14:41:48]produce_requested_data done [14:41:48]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63825,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [14:41:48]process_action_free close_receipt [14:41:48]json_value_free [14:41:48]json_value_free done [14:41:48]process_json_proto returns [14:41:48]Send response to host [14:41:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63825,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [14:41:48]free response buf [14:41:48]execute_script done [14:41:48]execute_script returns [14:41:48]free content buf [14:41:48]Sock 7.Close socket [14:41:48]Sock 7.Thread stoped [14:41:51]OFD Sender: No OFD packet to send [14:41:56]OFD Sender: No OFD packet to send [14:42:01]OFD Sender: No OFD packet to send [14:42:06]OFD Sender: No OFD packet to send [14:42:11]OFD Sender: No OFD packet to send [14:42:16]OFD Sender: No OFD packet to send [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:36]OFD Sender: No OFD packet to send [14:43:41]OFD Sender: No OFD packet to send [14:43:46]OFD Sender: No OFD packet to send [14:43:51]OFD Sender: No OFD packet to send [14:43:56]OFD Sender: No OFD packet to send [14:44:01]OFD Sender: No OFD packet to send [14:44:06]OFD Sender: No OFD packet to send [14:44:11]OFD Sender: No OFD packet to send [14:44:16]OFD Sender: No OFD packet to send [14:44:21]OFD Sender: No OFD packet to send [14:44:26]OFD Sender: No OFD packet to send [14:44:31]OFD Sender: No OFD packet to send [14:44:36]OFD Sender: No OFD packet to send [14:44:41]OFD Sender: No OFD packet to send [14:44:46]OFD Sender: No OFD packet to send [14:44:51]OFD Sender: No OFD packet to send [14:44:56]OFD Sender: No OFD packet to send [14:45:01]OFD Sender: No OFD packet to send [14:45:06]OFD Sender: No OFD packet to send [14:45:11]OFD Sender: No OFD packet to send [14:45:16]OFD Sender: No OFD packet to send [14:45:21]OFD Sender: No OFD packet to send [14:45:26]OFD Sender: No OFD packet to send [14:45:31]OFD Sender: No OFD packet to send [14:45:36]OFD Sender: No OFD packet to send [14:45:41]OFD Sender: No OFD packet to send [14:45:46]OFD Sender: No OFD packet to send [14:45:51]OFD Sender: No OFD packet to send [14:45:56]OFD Sender: No OFD packet to send [14:46:01]OFD Sender: No OFD packet to send [14:46:06]OFD Sender: No OFD packet to send [14:46:11]OFD Sender: No OFD packet to send [14:46:16]OFD Sender: No OFD packet to send [14:46:21]OFD Sender: No OFD packet to send [14:46:26]OFD Sender: No OFD packet to send [14:46:31]OFD Sender: No OFD packet to send [14:46:36]OFD Sender: No OFD packet to send [14:46:41]OFD Sender: No OFD packet to send [14:46:46]OFD Sender: No OFD packet to send [14:46:51]OFD Sender: No OFD packet to send [14:46:56]OFD Sender: No OFD packet to send [14:47:01]OFD Sender: No OFD packet to send [14:47:06]OFD Sender: No OFD packet to send [14:47:11]OFD Sender: No OFD packet to send [14:47:16]accept exits with 9 [14:47:16]New connection [14:47:16]New thread 3067518308 created [14:47:16]Thread 3067374948 joined [14:47:16]Waiting for new connection... [14:47:16] Sock 9.Parse request [14:47:16]Sock 9.Check first char [14:47:16]Sock 9.First char is OK [14:47:16]request: POST /json_proto HTTP/1.0 [14:47:16]Method: POST [14:47:16]URL: /json_proto [14:47:16]Method is POST - this is cgi request [14:47:16]url: /json_proto [14:47:16]query_string will be loaded in cgi processing [14:47:16]execute_cgi json_proto POST (null) [14:47:16]execute_cgi path=json_proto method=POST [14:47:16]POST find Content-Length [14:47:16]Host: 172.17.60.69:8080 [14:47:16]Content-Length: 613 [14:47:16]Content-Type: application/json [14:47:16] [14:47:16]POST finish read [14:47:16]Found Content-Length = 613 [14:47:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73406", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:47:16]execute_script... [14:47:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73406", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:47:16]POST & json_proto [14:47:16]process_json_proto [14:47:16]json parsed OK: [14:47:16]protocol is kg_v1.0 [14:47:16]action value=close_receipt [14:47:16]process_action close_receipt [14:47:16]cmd_close_receipt [14:47:16]MH_GetDate [14:47:16]Write to MH i2c: F0 00 00 1A 17 20 [14:47:16]Write i2c OK [14:47:16]MH_I2C_Read... [14:47:16]Read from MH i2c: F0 [14:47:16]MH_I2C_Read... [14:47:16]Read from MH i2c: F0 09 00 [14:47:16]MH_I2C_Read... [14:47:16]Read from MH i2c: F0 09 00 1A 17 00 77 D7 5D 66 6A 96 4A 66 EA [14:47:16]GetLastDocTimeStamp 1717425706 [14:47:16]current date 1717426039 [14:47:16]FM_GetShiftState [14:47:16]SAM_PROTO_GetShiftState [14:47:16]wFMCommunicate request_size=4 [14:47:16]MH_SAM_APDU [14:47:16]CAPDU: 80 13 01 00 [14:47:16]Write to MH i2c: E2 08 00 1B 17 80 13 01 00 00 00 00 00 AF [14:47:16]Write i2c OK [14:47:16]MH_I2C_Read... [14:47:16]OFD Sender: No OFD packet to send [14:47:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:47:16]Read from MH i2c: E2 [14:47:16]MH_I2C_Read... [14:47:16]Read from MH i2c: E2 0E 00 [14:47:16]MH_I2C_Read... [14:47:16]Read from MH i2c: E2 0E 00 1B 17 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 7B [14:47:16]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [14:47:16]wFMCommunicate OK [14:47:16]SAM_PROTO_GetShiftState done [14:47:16]FM_GetShiftState done [14:47:16]opened in 1717373173 [14:47:16]opened+sec_in_day 1717459573 [14:47:16]quantity*price = 11000 [14:47:16]sum+1 = 11001 [14:47:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 110.00 НСП 1% : 0.97 НДС 12% : 11.68 Наличными: 110.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 84 03.06.2024 14:47 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63826 ФПД: 151164959791089 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T144719&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63826&fm=151164959791089&tin=02508201610067®Number=0000000000092737&sum=11000 0 [14:47:18]StoreToDocumentArchive [14:47:18]shift 373 fd 63826 [14:47:18]save to /storage/0373/doc_00063826 [14:47:18]save last doc name /storage/0373/doc_00063826 to /storage/kkm_last_doc_name [14:47:18]save OK [14:47:18]Clear old archive folders... [14:47:18]ProcessDocumentItem done err = 0, tmpTLVsize=266 [14:47:18]tlvbuf is 00D72DB0 [14:47:18]SAM_PROTO_ClearQueue [14:47:18]wFMCommunicate request_size=4 [14:47:18]MH_SAM_APDU [14:47:18]CAPDU: 80 09 00 00 [14:47:18]Write to MH i2c: E2 08 00 28 17 80 09 00 00 00 00 00 00 B1 [14:47:18]Write i2c OK [14:47:18]MH_I2C_Read... [14:47:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:47:18]Read from MH i2c: E2 [14:47:18]MH_I2C_Read... [14:47:18]Read from MH i2c: E2 03 00 [14:47:18]MH_I2C_Read... [14:47:18]Read from MH i2c: E2 03 00 28 17 00 90 00 B3 [14:47:18]RAPDU: 90 00 [14:47:18]wFMCommunicate OK [14:47:18]SAM_PROTO_ClearQueue done [14:47:18]KKMCreateOFDPacket [14:47:18]OFDProtocolAddRootSTLVToBuf [14:47:18]FM_MakeSignedData [14:47:18]FM_MakeSignedData [14:47:18]SAM_PROTO_SignData [14:47:18]wFMCommunicate request_size=4 [14:47:18]MH_SAM_APDU [14:47:18]CAPDU: 80 0D 01 02 [14:47:18]Write to MH i2c: E2 08 00 29 17 80 0D 01 02 00 00 00 00 B9 [14:47:18]Write i2c OK [14:47:18]MH_I2C_Read... [14:47:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:47:18]Read from MH i2c: E2 [14:47:18]MH_I2C_Read... [14:47:18]Read from MH i2c: E2 03 00 [14:47:18]MH_I2C_Read... [14:47:18]Read from MH i2c: E2 03 00 29 17 00 90 00 B4 [14:47:18]RAPDU: 90 00 [14:47:18]wFMCommunicate OK [14:47:18]wFMCommunicate request_size=255 [14:47:18]MH_SAM_APDU [14:47:18]CAPDU: 80 0D 02 02 FA 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 77 D7 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 [14:47:18]Write to MH i2c: E2 02 01 2A 17 80 0D 02 02 FA 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 77 D7 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 00 00 0A [14:47:18]Write i2c OK [14:47:18]MH_I2C_Read... [14:47:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:47:18]Read from MH i2c: E2 [14:47:18]MH_I2C_Read... [14:47:18]Read from MH i2c: E2 03 00 [14:47:18]MH_I2C_Read... [14:47:18]Read from MH i2c: E2 03 00 2A 17 00 90 00 B5 [14:47:18]RAPDU: 90 00 [14:47:18]wFMCommunicate OK [14:47:18]wFMCommunicate request_size=25 [14:47:18]MH_SAM_APDU [14:47:18]CAPDU: 80 0D 02 02 14 37 34 10 04 04 00 52 F9 00 00 35 04 06 00 89 7B D5 BB 17 F1 [14:47:18]Write to MH i2c: E2 1C 00 2B 17 80 0D 02 02 14 00 37 34 10 04 04 00 52 F9 00 00 35 04 06 00 89 7B D5 BB 17 F1 00 00 8D [14:47:18]Write i2c OK [14:47:18]MH_I2C_Read... [14:47:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:47:18]Read from MH i2c: E2 [14:47:18]MH_I2C_Read... [14:47:18]Read from MH i2c: E2 03 00 [14:47:18]MH_I2C_Read... [14:47:18]Read from MH i2c: E2 03 00 2B 17 00 90 00 B6 [14:47:18]RAPDU: 90 00 [14:47:18]wFMCommunicate OK [14:47:18]wFMCommunicate request_size=4 [14:47:18]MH_SAM_APDU [14:47:18]CAPDU: 80 0D 03 02 [14:47:18]Write to MH i2c: E2 08 00 2C 17 80 0D 03 02 00 00 00 00 BE [14:47:18]Write i2c OK [14:47:18]MH_I2C_Read... [14:47:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:47:18]Read from MH i2c: E2 [14:47:18]MH_I2C_Read... [14:47:18]Read from MH i2c: E2 0B 00 [14:47:18]MH_I2C_Read... [14:47:18]Read from MH i2c: E2 0B 00 2C 17 00 97 57 72 64 94 6C BD D3 90 00 13 [14:47:18]RAPDU: 97 57 72 64 94 6C BD D3 90 00 [14:47:18]wFMCommunicate OK [14:47:18]SAM_PROTO_SignData done [14:47:18]FM_MakeSignedData done [14:47:18]CreateOFDProtocolMessage [14:47:18]wFMCommunicate request_size=4 [14:47:18]MH_SAM_APDU [14:47:18]CAPDU: 80 11 00 00 [14:47:18]Write to MH i2c: E2 08 00 2D 17 80 11 00 00 00 00 00 00 BE [14:47:18]Write i2c OK [14:47:18]MH_I2C_Read... [14:47:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:47:18]Read from MH i2c: E2 [14:47:18]MH_I2C_Read... [14:47:18]Read from MH i2c: E2 17 00 [14:47:18]MH_I2C_Read... [14:47:18]Read from MH i2c: E2 17 00 2D 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 10 [14:47:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [14:47:18]wFMCommunicate OK [14:47:18]CreateOFDProtocolMessage done [14:47:18]OFDSenderStorePacket 63826 [14:47:18]StoreOFDPacket docnum=63826 [14:47:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 1E 01 00 00 6E 15 16 01 87 AD 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 77 D7 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 52 F9 00 00 35 04 06 00 89 7B D5 BB 17 F1 97 57 72 64 94 6C BD D3 [14:47:18]CheckFolder [14:47:18]dirname=/storage/ofd_packets [14:47:18]CheckFolder done [14:47:18]ProducePacketName [14:47:18]name=ofd_packets/00063826 [14:47:18]NVStorageSaveData ofd_packets/00063826 [14:47:18]File name is /storage/ofd_packets/00063826 [14:47:18]Write 316 bytes [14:47:18]NVStorageSaveData done [14:47:18]OFDSenderStorePacket done [14:47:18]KKMCreateOFDPacket done [14:47:18]NVStorageSaveData kkm_last_timestamp [14:47:18]File name is /storage/kkm_last_timestamp [14:47:18]Write 4 bytes [14:47:18]NVStorageSaveData done [14:47:18]ExternCall_PrintAddStr [14:47:18]wPrintStart [14:47:18]Write to MH i2c: 01 00 00 2E 17 45 [14:47:18]Write i2c OK [14:47:18]MH_I2C_Read... [14:47:18]Read from MH i2c: 01 [14:47:18]MH_I2C_Read... [14:47:18]Read from MH i2c: 01 07 00 [14:47:18]MH_I2C_Read... [14:47:18]Read from MH i2c: 01 07 00 2E 17 00 00 00 00 00 FF 0F 5A [14:47:18]RasterBufferAndPrint [14:47:18]line Счет N : (3)73406 [14:47:18]line ИНН: 02508201610067 [14:47:18]line Контрольно-Кассовый Чек [14:47:18]line ПРОДАЖА [14:47:18]line Товар: 4870001570071 [14:47:18]line Напиток Pepsi 1л [14:47:18]line 1.000 * 110.00 [14:47:18]line = 110.00 [14:47:18]line НДС 12% НСП 1% [14:47:18]line > о реализуемом товаре [14:47:18]line ИТОГО: 110.00 [14:47:18]line НСП 1% : 0.97 [14:47:18]line НДС 12% : 11.68 [14:47:18]line Наличными: 110.00 [14:47:18]line Безнал.: 0.00 [14:47:18]line Место: АЗС № 117 "Партнер Нефть" [14:47:18]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [14:47:18]line СНО: Общий режим [14:47:18]line Чек 84 03.06.2024 14:47 [14:47:18]line Смена: 373 ФФД: 1.0 [14:47:18]line ЗНМ: 0300000031 [14:47:18]line РНМ: 0000000000092737 [14:47:18]line Версия ККМ: 001 [14:47:18]line ФМ: 0000000000875074 [14:47:18]line ФД: 63826 [14:47:18]line ФПД: 151164959791089 [14:47:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T144719&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63826&fm=151164959791089&tin=02508201610067®Number=0000000000092737&sum=11000 [14:47:18]line 0 [14:47:18]OFD Sender: Processing packet 63826 [packets to send 14, broken 13] [14:47:18]ProducePacketName [14:47:18]name=ofd_packets/00063826 [14:47:18]OFD Sender: To server: pG, [14:47:18]CommunicateWithHost lk.salyk.kg:30040 [14:47:18]ConnectInit lk.salyk.kg [14:47:18]written 0, free lines is 4095 [14:47:19]Connected sock=7 [14:47:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 1E 01 00 00 6E 15 16 01 87 AD 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 77 D7 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 52 F9 00 00 35 04 06 00 89 7B D5 BB 17 F1 97 57 72 64 94 6C BD D3 [14:47:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 65 CA 47 00 86 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 35 30 37 34 10 04 04 00 52 F9 00 00 F4 03 04 00 48 83 5D 66 B6 04 01 00 00 49 F4 E8 E7 25 EC 52 18 [14:47:19]CommunicateWithHost err = 0 [14:47:19]CheckOFDResponse [14:47:19]1017 (14) - 77093643461234 [14:47:19]1041 (16) - 0000000000875074 [14:47:19]1040 (4) - 63826 [14:47:19]1012 (4) - 03.06.2024 08:48 [14:47:19]1206 (1) - 0 [14:47:19]OFD Sender: Remove packet 63826 [14:47:19]ProducePacketName [14:47:19]name=ofd_packets/00063826 [14:47:19]NVStorageDeleteData [14:47:19]Write to MH i2c: 01 00 00 56 17 6D [14:47:19]Write i2c OK [14:47:19]MH_I2C_Read... [14:47:19]Read from MH i2c: 01 [14:47:19]MH_I2C_Read... [14:47:19]Read from MH i2c: 01 07 00 [14:47:19]MH_I2C_Read... [14:47:19]Read from MH i2c: 01 07 00 56 17 00 00 00 00 00 FF 0C 7F [14:47:19]RasterBufferAndPrint [14:47:19]line [14:47:19]line [14:47:19]line [14:47:19]line [14:47:19]line [14:47:19]written 0, free lines is 3336 [14:47:19]MH_Cut [14:47:19]Write to MH i2c: D1 01 00 5D 17 01 46 [14:47:19]Write i2c OK [14:47:19]MH_I2C_Read... [14:47:19]Read from MH i2c: D1 [14:47:19]MH_I2C_Read... [14:47:19]Read from MH i2c: D1 01 00 [14:47:19]MH_I2C_Read... [14:47:19]Read from MH i2c: D1 01 00 5D 17 00 45 [14:47:19]Write to MH i2c: 01 00 00 5E 17 75 [14:47:19]Write i2c OK [14:47:19]MH_I2C_Read... [14:47:19]OFD Sender: No OFD packet to send [14:47:20]*** Cut start [14:47:20]*** Partial cut [14:47:20]*** CUTSNS_PIN = 1 [14:47:20]*** CUTSNS_PIN = 0 [14:47:20]*** Brake cut motor [14:47:20]Read from MH i2c: 01 [14:47:20]MH_I2C_Read... [14:47:20]*** Stop cut motor [14:47:20]*** Cut end [14:47:20]Read from MH i2c: 01 07 00 [14:47:20]MH_I2C_Read... [14:47:20]Read from MH i2c: 01 07 00 5E 17 00 00 00 00 00 FF 0F 8A [14:47:20]process_action close_receipt done [14:47:20]requested_data is exist [14:47:20]produce_requested_data [14:47:20]requested_item fm.sn is exist - process it [14:47:20]wFMCommunicate request_size=4 [14:47:20]MH_SAM_APDU [14:47:20]CAPDU: 80 11 00 00 [14:47:20]Write to MH i2c: E2 08 00 5F 17 80 11 00 00 00 00 00 00 F0 [14:47:20]Write i2c OK [14:47:20]MH_I2C_Read... [14:47:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:47:20]Read from MH i2c: E2 [14:47:20]MH_I2C_Read... [14:47:20]Read from MH i2c: E2 17 00 [14:47:20]MH_I2C_Read... [14:47:20]Read from MH i2c: E2 17 00 5F 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 42 [14:47:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [14:47:20]wFMCommunicate OK [14:47:20]requested_item fd.num is exist - process it [14:47:20]SAM_PROTO_GetFieldsCounters [14:47:20]wFMCommunicate request_size=4 [14:47:20]MH_SAM_APDU [14:47:20]CAPDU: 80 13 00 00 [14:47:20]Write to MH i2c: E2 08 00 60 17 80 13 00 00 00 00 00 00 F3 [14:47:20]Write i2c OK [14:47:20]MH_I2C_Read... [14:47:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:47:21]Read from MH i2c: E2 [14:47:21]MH_I2C_Read... [14:47:21]Read from MH i2c: E2 62 00 [14:47:21]MH_I2C_Read... [14:47:21]Read from MH i2c: E2 62 00 60 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 52 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 D3 [14:47: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 52 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:47:21]wFMCommunicate OK [14:47:21]SAM_PROTO_GetFieldsCounters done [14:47:21]requested_item shift.num is exist - process it [14:47:21]requested_item shift.opened is exist - process it [14:47:21]req_shift_opened [14:47:21]FM_GetShiftState [14:47:21]SAM_PROTO_GetShiftState [14:47:21]wFMCommunicate request_size=4 [14:47:21]MH_SAM_APDU [14:47:21]CAPDU: 80 13 01 00 [14:47:21]Write to MH i2c: E2 08 00 61 17 80 13 01 00 00 00 00 00 F5 [14:47:21]Write i2c OK [14:47:21]MH_I2C_Read... [14:47:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:47:21]Read from MH i2c: E2 [14:47:21]MH_I2C_Read... [14:47:21]Read from MH i2c: E2 0E 00 [14:47:21]MH_I2C_Read... [14:47:21]Read from MH i2c: E2 0E 00 61 17 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 C1 [14:47:21]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [14:47:21]wFMCommunicate OK [14:47:21]SAM_PROTO_GetShiftState done [14:47:21]FM_GetShiftState done [14:47:21]req_shift_opened done [14:47:21]requested_item shift.open_date is exist - process it [14:47:21]req_shift_open_date [14:47:21]req_shift_open_date done [14:47:21]produce_requested_data done [14:47:21]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63826,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [14:47:21]process_action_free close_receipt [14:47:21]json_value_free [14:47:21]json_value_free done [14:47:21]process_json_proto returns [14:47:21]Send response to host [14:47:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63826,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [14:47:21]free response buf [14:47:21]execute_script done [14:47:21]execute_script returns [14:47:21]free content buf [14:47:21]Sock 9.Close socket [14:47:21]Sock 9.Thread stoped [14:47:24]OFD Sender: No OFD packet to send [14:47:29]OFD Sender: No OFD packet to send [14:47:34]OFD Sender: No OFD packet to send [14:47:39]OFD Sender: No OFD packet to send [14:47:44]OFD Sender: No OFD packet to send [14:47:49]OFD Sender: No OFD packet to send [14:47:54]OFD Sender: No OFD packet to send [14:47:59]OFD Sender: No OFD packet to send [14:48:04]OFD Sender: No OFD packet to send [14:48:09]OFD Sender: No OFD packet to send [14:48:14]OFD Sender: No OFD packet to send [14:48:19]OFD Sender: No OFD packet to send [14:48:24]OFD Sender: No OFD packet to send [14:48:29]OFD Sender: No OFD packet to send [14:48:34]OFD Sender: No OFD packet to send [14:48:39]OFD Sender: No OFD packet to send [14:48:44]OFD Sender: No OFD packet to send [14:48:49]OFD Sender: No OFD packet to send [14:48:54]OFD Sender: No OFD packet to send [14:48:59]OFD Sender: No OFD packet to send [14:49:04]OFD Sender: No OFD packet to send [14:49:05]accept exits with 10 [14:49:05]New connection [14:49:05]New thread 3067374948 created [14:49:05]Thread 3067518308 joined [14:49:05]Waiting for new connection... [14:49:05] Sock 10.Parse request [14:49:05]Sock 10.Check first char [14:49:05]Sock 10.First char is OK [14:49:05]request: POST /json_proto HTTP/1.0 [14:49:05]Method: POST [14:49:05]URL: /json_proto [14:49:05]Method is POST - this is cgi request [14:49:05]url: /json_proto [14:49:05]query_string will be loaded in cgi processing [14:49:05]execute_cgi json_proto POST (null) [14:49:05]execute_cgi path=json_proto method=POST [14:49:05]POST find Content-Length [14:49:05]Host: 172.17.60.69:8080 [14:49:05]Content-Length: 682 [14:49:05]Content-Type: application/json [14:49:05] [14:49:05]POST finish read [14:49:05]Found Content-Length = 682 [14:49:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543800", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:49:05]execute_script... [14:49:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543800", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:49:05]POST & json_proto [14:49:05]process_json_proto [14:49:05]json parsed OK: [14:49:05]protocol is kg_v1.0 [14:49:05]action value=close_receipt [14:49:05]process_action close_receipt [14:49:05]cmd_close_receipt [14:49:05]MH_GetDate [14:49:05]Write to MH i2c: F0 00 00 62 17 68 [14:49:05]Write i2c OK [14:49:05]MH_I2C_Read... [14:49:05]Read from MH i2c: F0 [14:49:05]MH_I2C_Read... [14:49:05]Read from MH i2c: F0 09 00 [14:49:05]MH_I2C_Read... [14:49:05]Read from MH i2c: F0 09 00 62 17 00 E3 D7 5D 66 6A 96 4A 66 9E [14:49:05]GetLastDocTimeStamp 1717426039 [14:49:05]current date 1717426147 [14:49:05]FM_GetShiftState [14:49:05]SAM_PROTO_GetShiftState [14:49:05]wFMCommunicate request_size=4 [14:49:05]MH_SAM_APDU [14:49:05]CAPDU: 80 13 01 00 [14:49:05]Write to MH i2c: E2 08 00 63 17 80 13 01 00 00 00 00 00 F7 [14:49:05]Write i2c OK [14:49:05]MH_I2C_Read... [14:49:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:49:05]Read from MH i2c: E2 [14:49:05]MH_I2C_Read... [14:49:05]Read from MH i2c: E2 0E 00 [14:49:05]MH_I2C_Read... [14:49:05]Read from MH i2c: E2 0E 00 63 17 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 C3 [14:49:05]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [14:49:05]wFMCommunicate OK [14:49:05]SAM_PROTO_GetShiftState done [14:49:05]FM_GetShiftState done [14:49:05]opened in 1717373173 [14:49:05]opened+sec_in_day 1717459573 [14:49:05]quantity*price = 100015 [14:49:05]sum+1 = 100017 [14:49:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 85 03.06.2024 14:49 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63827 ФПД: 4853097718437 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T144907&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63827&fm=4853097718437&tin=02508201610067®Number=0000000000092737&sum=100000 [14:49:06]StoreToDocumentArchive [14:49:06]shift 373 fd 63827 [14:49:06]save to /storage/0373/doc_00063827 [14:49:06]save last doc name /storage/0373/doc_00063827 to /storage/kkm_last_doc_name [14:49:06]save OK [14:49:06]Clear old archive folders... [14:49:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:49:06]tlvbuf is 00D3D1E0 [14:49:06]SAM_PROTO_ClearQueue [14:49:06]wFMCommunicate request_size=4 [14:49:06]MH_SAM_APDU [14:49:06]CAPDU: 80 09 00 00 [14:49:06]Write to MH i2c: E2 08 00 70 17 80 09 00 00 00 00 00 00 F9 [14:49:06]Write i2c OK [14:49:06]MH_I2C_Read... [14:49:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:49:06]Read from MH i2c: E2 [14:49:06]MH_I2C_Read... [14:49:06]Read from MH i2c: E2 03 00 [14:49:06]MH_I2C_Read... [14:49:06]Read from MH i2c: E2 03 00 70 17 00 90 00 FB [14:49:06]RAPDU: 90 00 [14:49:06]wFMCommunicate OK [14:49:06]SAM_PROTO_ClearQueue done [14:49:06]KKMCreateOFDPacket [14:49:06]OFDProtocolAddRootSTLVToBuf [14:49:06]FM_MakeSignedData [14:49:06]FM_MakeSignedData [14:49:06]SAM_PROTO_SignData [14:49:06]wFMCommunicate request_size=4 [14:49:06]MH_SAM_APDU [14:49:06]CAPDU: 80 0D 01 02 [14:49:06]Write to MH i2c: E2 08 00 71 17 80 0D 01 02 00 00 00 00 01 [14:49:06]Write i2c OK [14:49:06]MH_I2C_Read... [14:49:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:49:06]Read from MH i2c: E2 [14:49:06]MH_I2C_Read... [14:49:06]Read from MH i2c: E2 03 00 [14:49:06]MH_I2C_Read... [14:49:06]Read from MH i2c: E2 03 00 71 17 00 90 00 FC [14:49:06]RAPDU: 90 00 [14:49:06]wFMCommunicate OK [14:49:06]wFMCommunicate request_size=255 [14:49:06]MH_SAM_APDU [14:49:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 E3 D7 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 53 F9 00 00 35 04 06 00 04 [14:49:06]Write to MH i2c: E2 02 01 72 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 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 E3 D7 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 53 F9 00 00 35 04 06 00 04 00 00 24 [14:49:06]Write i2c OK [14:49:06]MH_I2C_Read... [14:49:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:49:06]Read from MH i2c: E2 [14:49:06]MH_I2C_Read... [14:49:06]Read from MH i2c: E2 03 00 [14:49:06]MH_I2C_Read... [14:49:06]Read from MH i2c: E2 03 00 72 17 00 90 00 FD [14:49:06]RAPDU: 90 00 [14:49:06]wFMCommunicate OK [14:49:06]wFMCommunicate request_size=10 [14:49:06]MH_SAM_APDU [14:49:06]CAPDU: 80 0D 02 02 05 69 F3 2A 62 A5 [14:49:06]Write to MH i2c: E2 0D 00 73 17 80 0D 02 02 05 00 69 F3 2A 62 A5 00 00 9B [14:49:06]Write i2c OK [14:49:06]MH_I2C_Read... [14:49:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:49:06]Read from MH i2c: E2 [14:49:06]MH_I2C_Read... [14:49:06]Read from MH i2c: E2 03 00 [14:49:06]MH_I2C_Read... [14:49:06]Read from MH i2c: E2 03 00 73 17 00 90 00 FE [14:49:06]RAPDU: 90 00 [14:49:06]wFMCommunicate OK [14:49:06]wFMCommunicate request_size=4 [14:49:06]MH_SAM_APDU [14:49:06]CAPDU: 80 0D 03 02 [14:49:06]Write to MH i2c: E2 08 00 74 17 80 0D 03 02 00 00 00 00 06 [14:49:06]Write i2c OK [14:49:06]MH_I2C_Read... [14:49:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:49:06]Read from MH i2c: E2 [14:49:06]MH_I2C_Read... [14:49:06]Read from MH i2c: E2 0B 00 [14:49:06]MH_I2C_Read... [14:49:06]Read from MH i2c: E2 0B 00 74 17 00 44 E8 7C 95 94 B6 71 4F 90 00 4E [14:49:06]RAPDU: 44 E8 7C 95 94 B6 71 4F 90 00 [14:49:06]wFMCommunicate OK [14:49:06]SAM_PROTO_SignData done [14:49:06]FM_MakeSignedData done [14:49:06]CreateOFDProtocolMessage [14:49:06]wFMCommunicate request_size=4 [14:49:06]MH_SAM_APDU [14:49:06]CAPDU: 80 11 00 00 [14:49:06]Write to MH i2c: E2 08 00 75 17 80 11 00 00 00 00 00 00 06 [14:49:06]Write i2c OK [14:49:06]MH_I2C_Read... [14:49:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:49:06]Read from MH i2c: E2 [14:49:06]MH_I2C_Read... [14:49:06]Read from MH i2c: E2 17 00 [14:49:06]MH_I2C_Read... [14:49:06]Read from MH i2c: E2 17 00 75 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 58 [14:49:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [14:49:06]wFMCommunicate OK [14:49:06]CreateOFDProtocolMessage done [14:49:06]OFDSenderStorePacket 63827 [14:49:06]StoreOFDPacket docnum=63827 [14:49:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0F 01 00 00 5E 73 07 01 33 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 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 E3 D7 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 53 F9 00 00 35 04 06 00 04 69 F3 2A 62 A5 44 E8 7C 95 94 B6 71 4F [14:49:06]CheckFolder [14:49:06]dirname=/storage/ofd_packets [14:49:06]CheckFolder done [14:49:06]ProducePacketName [14:49:06]name=ofd_packets/00063827 [14:49:06]NVStorageSaveData ofd_packets/00063827 [14:49:06]File name is /storage/ofd_packets/00063827 [14:49:06]Write 301 bytes [14:49:06]NVStorageSaveData done [14:49:06]OFDSenderStorePacket done [14:49:06]KKMCreateOFDPacket done [14:49:06]NVStorageSaveData kkm_last_timestamp [14:49:06]File name is /storage/kkm_last_timestamp [14:49:06]Write 4 bytes [14:49:06]NVStorageSaveData done [14:49:06]ExternCall_PrintAddStr [14:49:06]wPrintStart [14:49:06]Write to MH i2c: 01 00 00 76 17 8D [14:49:06]OFD Sender: Processing packet 63827 [packets to send 14, broken 13] [14:49:06]ProducePacketName [14:49:06]name=ofd_packets/00063827 [14:49:06]OFD Sender: To server: pG, [14:49:06]CommunicateWithHost lk.salyk.kg:30040 [14:49:06]ConnectInit lk.salyk.kg [14:49:06]Write i2c OK [14:49:06]MH_I2C_Read... [14:49:06]Read from MH i2c: 01 [14:49:06]MH_I2C_Read... [14:49:06]Read from MH i2c: 01 07 00 [14:49:06]MH_I2C_Read... [14:49:06]Read from MH i2c: 01 07 00 76 17 00 00 00 00 00 FF 0F A2 [14:49:06]RasterBufferAndPrint [14:49:06]line Счет N : (1)543800 [14:49:06]line ИНН: 02508201610067 [14:49:06]line Контрольно-Кассовый Чек [14:49:06]line ПРОДАЖА [14:49:06]line ТРК (МРК, ГНК) : 22 [14:49:06]line Товар: 2710124130 [14:49:06]line Аи-92-К-5 [14:49:06]line 14.950 * 66.90 [14:49:06]line = 1000.16 [14:49:06]line НДС 12% НСП 1% [14:49:06]line > о реализуемом товаре [14:49:06]line ОКРУГЛЕНИЕ: -0.16 [14:49:06]line ИТОГО: 1000.00 [14:49:06]line Внесено: 1000.00 [14:49:06]line СДАЧА: 0.00 [14:49:06]line НСП 1% : 8.85 [14:49:06]line НДС 12% : 106.21 [14:49:06]line Наличными: 1000.00 [14:49:06]line Безнал.: 0.00 [14:49:06]line Место: АЗС № 117 "Партнер Нефть" [14:49:06]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [14:49:06]line СНО: Общий режим [14:49:06]line Чек 85 03.06.2024 14:49 [14:49:06]line Смена: 373 ФФД: 1.0 [14:49:06]line ЗНМ: 0300000031 [14:49:06]line РНМ: 0000000000092737 [14:49:06]line Версия ККМ: 001 [14:49:06]line ФМ: 0000000000875074 [14:49:06]line ФД: 63827 [14:49:06]line ФПД: 4853097718437 [14:49:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T144907&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63827&fm=4853097718437&tin=02508201610067®Number=0000000000092737&sum=100000 [14:49:07]Connected sock=9 [14:49:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0F 01 00 00 5E 73 07 01 33 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 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 E3 D7 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 53 F9 00 00 35 04 06 00 04 69 F3 2A 62 A5 44 E8 7C 95 94 B6 71 4F [14:49:07]written 0, free lines is 4095 [14:49:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 41 74 47 00 73 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 35 30 37 34 10 04 04 00 53 F9 00 00 F4 03 04 00 B4 83 5D 66 B6 04 01 00 00 70 3F E6 EC F6 2F AE 80 [14:49:07]CommunicateWithHost err = 0 [14:49:07]CheckOFDResponse [14:49:07]1017 (14) - 77093643461234 [14:49:07]1041 (16) - 0000000000875074 [14:49:07]1040 (4) - 63827 [14:49:07]1012 (4) - 03.06.2024 08:49 [14:49:07]1206 (1) - 0 [14:49:07]OFD Sender: Remove packet 63827 [14:49:07]ProducePacketName [14:49:07]name=ofd_packets/00063827 [14:49:07]NVStorageDeleteData [14:49:07]Write to MH i2c: 01 00 00 A1 17 B8 [14:49:07]Write i2c OK [14:49:07]MH_I2C_Read... [14:49:07]Read from MH i2c: 01 [14:49:07]MH_I2C_Read... [14:49:07]Read from MH i2c: 01 07 00 [14:49:07]MH_I2C_Read... [14:49:07]Read from MH i2c: 01 07 00 A1 17 00 00 00 00 00 D5 0C A0 [14:49:07]RasterBufferAndPrint [14:49:07]line [14:49:07]line [14:49:07]line [14:49:07]line [14:49:07]line [14:49:07]written 0, free lines is 3293 [14:49:07]MH_Cut [14:49:07]Write to MH i2c: D1 01 00 A8 17 01 91 [14:49:07]Write i2c OK [14:49:07]MH_I2C_Read... [14:49:07]Read from MH i2c: D1 [14:49:07]MH_I2C_Read... [14:49:07]Read from MH i2c: D1 01 00 [14:49:07]MH_I2C_Read... [14:49:07]Read from MH i2c: D1 01 00 A8 17 00 90 [14:49:07]Write to MH i2c: 01 00 00 A9 17 C0 [14:49:07]Write i2c OK [14:49:07]MH_I2C_Read... [14:49:07]OFD Sender: No OFD packet to send [14:49:08]*** Cut start [14:49:08]*** Partial cut [14:49:08]*** CUTSNS_PIN = 1 [14:49:08]*** CUTSNS_PIN = 0 [14:49:08]*** Brake cut motor [14:49:09]Read from MH i2c: 01 [14:49:09]MH_I2C_Read... [14:49:09]*** Stop cut motor [14:49:09]*** Cut end [14:49:09]Read from MH i2c: 01 07 00 [14:49:09]MH_I2C_Read... [14:49:09]Read from MH i2c: 01 07 00 A9 17 00 00 00 00 00 FF 0F D5 [14:49:09]process_action close_receipt done [14:49:09]requested_data is exist [14:49:09]produce_requested_data [14:49:09]requested_item fm.sn is exist - process it [14:49:09]wFMCommunicate request_size=4 [14:49:09]MH_SAM_APDU [14:49:09]CAPDU: 80 11 00 00 [14:49:09]Write to MH i2c: E2 08 00 AA 17 80 11 00 00 00 00 00 00 3B [14:49:09]Write i2c OK [14:49:09]MH_I2C_Read... [14:49:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:49:09]Read from MH i2c: E2 [14:49:09]MH_I2C_Read... [14:49:09]Read from MH i2c: E2 17 00 [14:49:09]MH_I2C_Read... [14:49:09]Read from MH i2c: E2 17 00 AA 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 8D [14:49:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [14:49:09]wFMCommunicate OK [14:49:09]requested_item fd.num is exist - process it [14:49:09]SAM_PROTO_GetFieldsCounters [14:49:09]wFMCommunicate request_size=4 [14:49:09]MH_SAM_APDU [14:49:09]CAPDU: 80 13 00 00 [14:49:09]Write to MH i2c: E2 08 00 AB 17 80 13 00 00 00 00 00 00 3E [14:49:09]Write i2c OK [14:49:09]MH_I2C_Read... [14:49:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:49:09]Read from MH i2c: E2 [14:49:09]MH_I2C_Read... [14:49:09]Read from MH i2c: E2 62 00 [14:49:09]MH_I2C_Read... [14:49:09]Read from MH i2c: E2 62 00 AB 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 53 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 22 [14:49: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 53 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:49:09]wFMCommunicate OK [14:49:09]SAM_PROTO_GetFieldsCounters done [14:49:09]requested_item shift.num is exist - process it [14:49:09]requested_item shift.opened is exist - process it [14:49:09]req_shift_opened [14:49:09]FM_GetShiftState [14:49:09]SAM_PROTO_GetShiftState [14:49:09]wFMCommunicate request_size=4 [14:49:09]MH_SAM_APDU [14:49:09]CAPDU: 80 13 01 00 [14:49:09]Write to MH i2c: E2 08 00 AC 17 80 13 01 00 00 00 00 00 40 [14:49:09]Write i2c OK [14:49:09]MH_I2C_Read... [14:49:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:49:09]Read from MH i2c: E2 [14:49:09]MH_I2C_Read... [14:49:09]Read from MH i2c: E2 0E 00 [14:49:09]MH_I2C_Read... [14:49:09]Read from MH i2c: E2 0E 00 AC 17 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 0C [14:49:09]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [14:49:09]wFMCommunicate OK [14:49:09]SAM_PROTO_GetShiftState done [14:49:09]FM_GetShiftState done [14:49:09]req_shift_opened done [14:49:09]requested_item shift.open_date is exist - process it [14:49:09]req_shift_open_date [14:49:09]req_shift_open_date done [14:49:09]produce_requested_data done [14:49:09]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63827,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [14:49:09]process_action_free close_receipt [14:49:09]json_value_free [14:49:09]json_value_free done [14:49:09]process_json_proto returns [14:49:09]Send response to host [14:49:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63827,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [14:49:09]free response buf [14:49:09]execute_script done [14:49:09]execute_script returns [14:49:09]free content buf [14:49:09]Sock 10.Close socket [14:49:09]Sock 10.Thread stoped [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:47]OFD Sender: No OFD packet to send [14:49:52]OFD Sender: No OFD packet to send [14:49:57]OFD Sender: No OFD packet to send [14:50:02]OFD Sender: No OFD packet to send [14:50:05]accept exits with 7 [14:50:05]New connection [14:50:05]New thread 3067518308 created [14:50:05]Thread 3067374948 joined [14:50:05]Waiting for new connection... [14:50:05] Sock 7.Parse request [14:50:05]Sock 7.Check first char [14:50:05]Sock 7.First char is OK [14:50:05]request: POST /json_proto HTTP/1.0 [14:50:05]Method: POST [14:50:05]URL: /json_proto [14:50:05]Method is POST - this is cgi request [14:50:05]url: /json_proto [14:50:05]query_string will be loaded in cgi processing [14:50:05]execute_cgi json_proto POST (null) [14:50:05]execute_cgi path=json_proto method=POST [14:50:05]POST find Content-Length [14:50:05]Host: 172.17.60.69:8080 [14:50:05]Content-Length: 664 [14:50:05]Content-Type: application/json [14:50:05] [14:50:05]POST finish read [14:50:05]Found Content-Length = 664 [14:50:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73407", "tax_sys" : 0, "items" : [ { "code": "4631150682851", "name": "\u041D\u0430\u043F En Dragon Mojito \u043B\u0430\u0439\u043C,\u043A\u043B\u0443\u0431 \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:50:05]execute_script... [14: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 : (3)73407", "tax_sys" : 0, "items" : [ { "code": "4631150682851", "name": "\u041D\u0430\u043F En Dragon Mojito \u043B\u0430\u0439\u043C,\u043A\u043B\u0443\u0431 \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:50:05]POST & json_proto [14:50:05]process_json_proto [14:50:05]json parsed OK: [14:50:05]protocol is kg_v1.0 [14:50:05]action value=close_receipt [14:50:05]process_action close_receipt [14:50:05]cmd_close_receipt [14:50:05]MH_GetDate [14:50:05]Write to MH i2c: F0 00 00 AD 17 B3 [14:50:05]Write i2c OK [14:50:05]MH_I2C_Read... [14:50:05]Read from MH i2c: F0 [14:50:05]MH_I2C_Read... [14:50:05]Read from MH i2c: F0 09 00 [14:50:05]MH_I2C_Read... [14:50:05]Read from MH i2c: F0 09 00 AD 17 00 20 D8 5D 66 6A 96 4A 66 27 [14:50:05]GetLastDocTimeStamp 1717426147 [14:50:05]current date 1717426208 [14:50:05]FM_GetShiftState [14:50:05]SAM_PROTO_GetShiftState [14:50:05]wFMCommunicate request_size=4 [14:50:05]MH_SAM_APDU [14:50:05]CAPDU: 80 13 01 00 [14:50:05]Write to MH i2c: E2 08 00 AE 17 80 13 01 00 00 00 00 00 42 [14:50:05]Write i2c OK [14:50:05]MH_I2C_Read... [14:50:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:50:05]Read from MH i2c: E2 [14:50:05]MH_I2C_Read... [14:50:05]Read from MH i2c: E2 0E 00 [14:50:05]MH_I2C_Read... [14:50:05]Read from MH i2c: E2 0E 00 AE 17 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 0E [14:50:05]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [14:50:05]wFMCommunicate OK [14:50:05]SAM_PROTO_GetShiftState done [14:50:05]FM_GetShiftState done [14:50:05]opened in 1717373173 [14:50:05]opened+sec_in_day 1717459573 [14:50:05]quantity*price = 9500 [14:50:05]sum+1 = 9501 [14:50:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 95.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 86 03.06.2024 14:50 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63828 ФПД: 31189735372474 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T145008&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63828&fm=31189735372474&tin=02508201610067®Number=0000000000092737&sum=9500 0 [14:50:06]StoreToDocumentArchive [14:50:06]shift 373 fd 63828 [14:50:06]save to /storage/0373/doc_00063828 [14:50:06]save last doc name /storage/0373/doc_00063828 to /storage/kkm_last_doc_name [14:50:06]save OK [14:50:06]Clear old archive folders... [14:50:06]ProcessDocumentItem done err = 0, tmpTLVsize=296 [14:50:06]tlvbuf is 00D2F240 [14:50:06]SAM_PROTO_ClearQueue [14:50:06]wFMCommunicate request_size=4 [14:50:06]MH_SAM_APDU [14:50:06]CAPDU: 80 09 00 00 [14:50:06]Write to MH i2c: E2 08 00 BB 17 80 09 00 00 00 00 00 00 44 [14:50:06]Write i2c OK [14:50:06]MH_I2C_Read... [14:50:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:50:06]Read from MH i2c: E2 [14:50:06]MH_I2C_Read... [14:50:07]Read from MH i2c: E2 03 00 [14:50:07]MH_I2C_Read... [14:50:07]Read from MH i2c: E2 03 00 BB 17 00 90 00 46 [14:50:07]RAPDU: 90 00 [14:50:07]wFMCommunicate OK [14:50:07]SAM_PROTO_ClearQueue done [14:50:07]KKMCreateOFDPacket [14:50:07]OFDProtocolAddRootSTLVToBuf [14:50:07]FM_MakeSignedData [14:50:07]FM_MakeSignedData [14:50:07]SAM_PROTO_SignData [14:50:07]wFMCommunicate request_size=4 [14:50:07]MH_SAM_APDU [14:50:07]CAPDU: 80 0D 01 02 [14:50:07]Write to MH i2c: E2 08 00 BC 17 80 0D 01 02 00 00 00 00 4C [14:50:07]Write i2c OK [14:50:07]MH_I2C_Read... [14:50:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:50:07]Read from MH i2c: E2 [14:50:07]MH_I2C_Read... [14:50:07]Read from MH i2c: E2 03 00 [14:50:07]MH_I2C_Read... [14:50:07]Read from MH i2c: E2 03 00 BC 17 00 90 00 47 [14:50:07]RAPDU: 90 00 [14:50:07]wFMCommunicate OK [14:50:07]wFMCommunicate request_size=255 [14:50:07]MH_SAM_APDU [14:50:07]CAPDU: 80 0D 02 02 FA 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 33 31 31 35 30 36 38 32 38 35 31 06 04 36 00 D0 9D D0 B0 D0 BF 20 45 6E 20 44 72 61 67 6F 6E 20 4D 6F 6A 69 74 6F 20 D0 BB D0 B0 D0 B9 D0 BC 2C D0 BA D0 BB D1 83 D0 B1 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 20 D8 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 [14:50:07]Write to MH i2c: E2 02 01 BD 17 80 0D 02 02 FA 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 33 31 31 35 30 36 38 32 38 35 31 06 04 36 00 D0 9D D0 B0 D0 BF 20 45 6E 20 44 72 61 67 6F 6E 20 4D 6F 6A 69 74 6F 20 D0 BB D0 B0 D0 B9 D0 BC 2C D0 BA D0 BB D1 83 D0 B1 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 20 D8 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 00 00 53 [14:50:07]Write i2c OK [14:50:07]MH_I2C_Read... [14:50:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:50:07]Read from MH i2c: E2 [14:50:07]MH_I2C_Read... [14:50:07]Read from MH i2c: E2 03 00 [14:50:07]MH_I2C_Read... [14:50:07]Read from MH i2c: E2 03 00 BD 17 00 90 00 48 [14:50:07]RAPDU: 90 00 [14:50:07]wFMCommunicate OK [14:50:07]wFMCommunicate request_size=55 [14:50:07]MH_SAM_APDU [14:50:07]CAPDU: 80 0D 02 02 32 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 54 F9 00 00 35 04 06 00 1C 5D ED 18 F6 BA [14:50:07]Write to MH i2c: E2 3A 00 BE 17 80 0D 02 02 32 00 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 54 F9 00 00 35 04 06 00 1C 5D ED 18 F6 BA 00 00 25 [14:50:07]Write i2c OK [14:50:07]MH_I2C_Read... [14:50:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:50:07]Read from MH i2c: E2 [14:50:07]MH_I2C_Read... [14:50:07]Read from MH i2c: E2 03 00 [14:50:07]MH_I2C_Read... [14:50:07]Read from MH i2c: E2 03 00 BE 17 00 90 00 49 [14:50:07]RAPDU: 90 00 [14:50:07]wFMCommunicate OK [14:50:07]wFMCommunicate request_size=4 [14:50:07]MH_SAM_APDU [14:50:07]CAPDU: 80 0D 03 02 [14:50:07]Write to MH i2c: E2 08 00 BF 17 80 0D 03 02 00 00 00 00 51 [14:50:07]Write i2c OK [14:50:07]MH_I2C_Read... [14:50:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:50:07]Read from MH i2c: E2 [14:50:07]MH_I2C_Read... [14:50:07]Read from MH i2c: E2 0B 00 [14:50:07]MH_I2C_Read... [14:50:07]Read from MH i2c: E2 0B 00 BF 17 00 2A 20 7D 10 BB 6E D0 16 90 00 38 [14:50:07]RAPDU: 2A 20 7D 10 BB 6E D0 16 90 00 [14:50:07]wFMCommunicate OK [14:50:07]SAM_PROTO_SignData done [14:50:07]FM_MakeSignedData done [14:50:07]CreateOFDProtocolMessage [14:50:07]wFMCommunicate request_size=4 [14:50:07]MH_SAM_APDU [14:50:07]CAPDU: 80 11 00 00 [14:50:07]Write to MH i2c: E2 08 00 C0 17 80 11 00 00 00 00 00 00 51 [14:50:07]Write i2c OK [14:50:07]MH_I2C_Read... [14:50:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:50:07]Read from MH i2c: E2 [14:50:07]MH_I2C_Read... [14:50:07]Read from MH i2c: E2 17 00 [14:50:07]MH_I2C_Read... [14:50:07]Read from MH i2c: E2 17 00 C0 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 A3 [14:50:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [14:50:07]wFMCommunicate OK [14:50:07]CreateOFDProtocolMessage done [14:50:07]OFDSenderStorePacket 63828 [14:50:07]StoreOFDPacket docnum=63828 [14:50:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 3C 01 00 00 4C 40 34 01 D5 89 5A 03 01 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 33 31 31 35 30 36 38 32 38 35 31 06 04 36 00 D0 9D D0 B0 D0 BF 20 45 6E 20 44 72 61 67 6F 6E 20 4D 6F 6A 69 74 6F 20 D0 BB D0 B0 D0 B9 D0 BC 2C D0 BA D0 BB D1 83 D0 B1 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 20 D8 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 54 F9 00 00 35 04 06 00 1C 5D ED 18 F6 BA 2A 20 7D 10 BB 6E D0 16 [14:50:07]CheckFolder [14:50:07]dirname=/storage/ofd_packets [14:50:07]CheckFolder done [14:50:07]ProducePacketName [14:50:07]name=ofd_packets/00063828 [14:50:07]NVStorageSaveData ofd_packets/00063828 [14:50:07]File name is /storage/ofd_packets/00063828 [14:50:07]Write 346 bytes [14:50:07]NVStorageSaveData done [14:50:07]OFDSenderStorePacket done [14:50:07]KKMCreateOFDPacket done [14:50:07]NVStorageSaveData kkm_last_timestamp [14:50:07]File name is /storage/kkm_last_timestamp [14:50:07]Write 4 bytes [14:50:07]NVStorageSaveData done [14:50:07]ExternCall_PrintAddStr [14:50:07]wPrintStart [14:50:07]Write to MH i2c: 01 00 00 C1 17 D8 [14:50:07]Write i2c OK [14:50:07]MH_I2C_Read... [14:50:07]Read from MH i2c: 01 [14:50:07]MH_I2C_Read... [14:50:07]Read from MH i2c: 01 07 00 [14:50:07]MH_I2C_Read... [14:50:07]Read from MH i2c: 01 07 00 C1 17 00 00 00 00 00 FF 0F ED [14:50:07]RasterBufferAndPrint [14:50:07]line Счет N : (3)73407 [14:50:07]line ИНН: 02508201610067 [14:50:07]line Контрольно-Кассовый Чек [14:50:07]line ПРОДАЖА [14:50:07]line Товар: 4631150682851 [14:50:07]line Нап En Dragon Mojito лайм,клуб ж/б 0,45л [14:50:07]line 1.000 * 95.00 [14:50:07]line = 95.00 [14:50:07]line НДС 12% НСП 1% [14:50:07]line > о реализуемом товаре [14:50:07]line ИТОГО: 95.00 [14:50:07]line НСП 1% : 0.84 [14:50:07]line НДС 12% : 10.09 [14:50:07]line Наличными: 95.00 [14:50:07]line Безнал.: 0.00 [14:50:07]line Место: АЗС № 117 "Партнер Нефть" [14:50:07]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [14:50:07]line СНО: Общий режим [14:50:07]line Чек 86 03.06.2024 14:50 [14:50:07]line Смена: 373 ФФД: 1.0 [14:50:07]line ЗНМ: 0300000031 [14:50:07]line РНМ: 0000000000092737 [14:50:07]line Версия ККМ: 001 [14:50:07]line ФМ: 0000000000875074 [14:50:07]line ФД: 63828 [14:50:07]line ФПД: 31189735372474 [14:50:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T145008&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63828&fm=31189735372474&tin=02508201610067®Number=0000000000092737&sum=9500 [14:50:07]OFD Sender: Processing packet 63828 [packets to send 14, broken 13] [14:50:07]ProducePacketName [14:50:07]name=ofd_packets/00063828 [14:50:07]OFD Sender: To server: pG, [14:50:07]CommunicateWithHost lk.salyk.kg:30040 [14:50:07]ConnectInit lk.salyk.kg [14:50:07]line 0 [14:50:07]written 0, free lines is 4095 [14:50:07]Connected sock=10 [14: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 35 30 37 34 3C 01 00 00 4C 40 34 01 D5 89 5A 03 01 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 33 31 31 35 30 36 38 32 38 35 31 06 04 36 00 D0 9D D0 B0 D0 BF 20 45 6E 20 44 72 61 67 6F 6E 20 4D 6F 6A 69 74 6F 20 D0 BB D0 B0 D0 B9 D0 BC 2C D0 BA D0 BB D1 83 D0 B1 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 20 D8 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 54 F9 00 00 35 04 06 00 1C 5D ED 18 F6 BA 2A 20 7D 10 BB 6E D0 16 [14:50:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 FD 75 47 00 E5 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 35 30 37 34 10 04 04 00 54 F9 00 00 F4 03 04 00 F1 83 5D 66 B6 04 01 00 00 B2 6C 22 F9 8A CF 3C 59 [14:50:08]CommunicateWithHost err = 0 [14:50:08]CheckOFDResponse [14:50:08]1017 (14) - 77093643461234 [14:50:08]1041 (16) - 0000000000875074 [14:50:08]1040 (4) - 63828 [14:50:08]1012 (4) - 03.06.2024 08:50 [14:50:08]1206 (1) - 0 [14:50:08]OFD Sender: Remove packet 63828 [14:50:08]ProducePacketName [14:50:08]name=ofd_packets/00063828 [14:50:08]NVStorageDeleteData [14:50:08]Write to MH i2c: 01 00 00 EA 17 01 [14:50:08]Write i2c OK [14:50:08]MH_I2C_Read... [14:50:08]Read from MH i2c: 01 [14:50:08]MH_I2C_Read... [14:50:08]Read from MH i2c: 01 07 00 [14:50:08]MH_I2C_Read... [14:50:08]Read from MH i2c: 01 07 00 EA 17 00 00 00 00 00 DF 0C F3 [14:50:08]RasterBufferAndPrint [14:50:08]line [14:50:08]line [14:50:08]line [14:50:08]line [14:50:08]line [14:50:08]written 0, free lines is 3301 [14:50:08]MH_Cut [14:50:08]Write to MH i2c: D1 01 00 F1 17 01 DA [14:50:08]Write i2c OK [14:50:08]MH_I2C_Read... [14:50:08]Read from MH i2c: D1 [14:50:08]MH_I2C_Read... [14:50:08]Read from MH i2c: D1 01 00 [14:50:08]MH_I2C_Read... [14:50:08]Read from MH i2c: D1 01 00 F1 17 00 D9 [14:50:08]Write to MH i2c: 01 00 00 F2 17 09 [14:50:08]Write i2c OK [14:50:08]MH_I2C_Read... [14:50:08]OFD Sender: No OFD packet to send [14:50:09]*** Cut start [14:50:09]*** Partial cut [14:50:09]*** CUTSNS_PIN = 1 [14:50:09]*** CUTSNS_PIN = 0 [14:50:09]*** Brake cut motor [14:50:09]Read from MH i2c: 01 [14:50:09]MH_I2C_Read... [14:50:09]*** Stop cut motor [14:50:09]*** Cut end [14:50:09]Read from MH i2c: 01 07 00 [14:50:09]MH_I2C_Read... [14:50:09]Read from MH i2c: 01 07 00 F2 17 00 00 00 00 00 FF 0F 1E [14:50:09]process_action close_receipt done [14:50:09]requested_data is exist [14:50:09]produce_requested_data [14:50:09]requested_item fm.sn is exist - process it [14:50:09]wFMCommunicate request_size=4 [14:50:09]MH_SAM_APDU [14:50:09]CAPDU: 80 11 00 00 [14:50:09]Write to MH i2c: E2 08 00 F3 17 80 11 00 00 00 00 00 00 84 [14:50:09]Write i2c OK [14:50:09]MH_I2C_Read... [14:50:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:50:09]Read from MH i2c: E2 [14:50:09]MH_I2C_Read... [14:50:09]Read from MH i2c: E2 17 00 [14:50:09]MH_I2C_Read... [14:50:09]Read from MH i2c: E2 17 00 F3 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 D6 [14:50:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [14:50:09]wFMCommunicate OK [14:50:09]requested_item fd.num is exist - process it [14:50:09]SAM_PROTO_GetFieldsCounters [14:50:09]wFMCommunicate request_size=4 [14:50:09]MH_SAM_APDU [14:50:09]CAPDU: 80 13 00 00 [14:50:09]Write to MH i2c: E2 08 00 F4 17 80 13 00 00 00 00 00 00 87 [14:50:09]Write i2c OK [14:50:09]MH_I2C_Read... [14:50:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:50:09]Read from MH i2c: E2 [14:50:09]MH_I2C_Read... [14:50:09]Read from MH i2c: E2 62 00 [14:50:09]MH_I2C_Read... [14:50:09]Read from MH i2c: E2 62 00 F4 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 54 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 6F [14: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 54 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:50:09]wFMCommunicate OK [14:50:09]SAM_PROTO_GetFieldsCounters done [14:50:09]requested_item shift.num is exist - process it [14:50:09]requested_item shift.opened is exist - process it [14:50:09]req_shift_opened [14:50:09]FM_GetShiftState [14:50:09]SAM_PROTO_GetShiftState [14:50:09]wFMCommunicate request_size=4 [14:50:09]MH_SAM_APDU [14:50:09]CAPDU: 80 13 01 00 [14:50:09]Write to MH i2c: E2 08 00 F5 17 80 13 01 00 00 00 00 00 89 [14:50:09]Write i2c OK [14:50:09]MH_I2C_Read... [14:50:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:50:09]Read from MH i2c: E2 [14:50:09]MH_I2C_Read... [14:50:09]Read from MH i2c: E2 0E 00 [14:50:09]MH_I2C_Read... [14:50:09]Read from MH i2c: E2 0E 00 F5 17 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 55 [14:50:09]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [14:50:09]wFMCommunicate OK [14:50:09]SAM_PROTO_GetShiftState done [14:50:09]FM_GetShiftState done [14:50:09]req_shift_opened done [14:50:09]requested_item shift.open_date is exist - process it [14:50:09]req_shift_open_date [14:50:09]req_shift_open_date done [14:50:09]produce_requested_data done [14:50:09]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63828,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [14:50:09]process_action_free close_receipt [14:50:09]json_value_free [14:50:09]json_value_free done [14:50:09]process_json_proto returns [14:50:09]Send response to host [14:50:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63828,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [14:50:09]free response buf [14:50:09]execute_script done [14:50:09]execute_script returns [14:50:09]free content buf [14:50:09]Sock 7.Close socket [14:50:10]Sock 7.Thread stoped [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:53]accept exits with 9 [14:51:53]New connection [14:51:53]New thread 3067374948 created [14:51:53]Thread 3067518308 joined [14:51:53]Waiting for new connection... [14:51:53] Sock 9.Parse request [14:51:53]Sock 9.Check first char [14:51:53]Sock 9.First char is OK [14:51:53]request: POST /json_proto HTTP/1.0 [14:51:53]Method: POST [14:51:53]URL: /json_proto [14:51:53]Method is POST - this is cgi request [14:51:53]url: /json_proto [14:51:53]query_string will be loaded in cgi processing [14:51:53]execute_cgi json_proto POST (null) [14:51:53]execute_cgi path=json_proto method=POST [14:51:53]POST find Content-Length [14:51:53]Host: 172.17.60.69:8080 [14:51:53]Content-Length: 629 [14:51:53]Content-Type: application/json [14:51:53] [14:51:53]POST finish read [14:51:53]Found Content-Length = 629 [14:51:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73408", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:51:53]execute_script... [14:51:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73408", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:51:53]POST & json_proto [14:51:53]process_json_proto [14:51:53]json parsed OK: [14:51:53]protocol is kg_v1.0 [14:51:53]action value=close_receipt [14:51:53]process_action close_receipt [14:51:53]cmd_close_receipt [14:51:53]MH_GetDate [14:51:53]Write to MH i2c: F0 00 00 F6 17 FC [14:51:53]Write i2c OK [14:51:53]MH_I2C_Read... [14:51:53]Read from MH i2c: F0 [14:51:53]MH_I2C_Read... [14:51:53]Read from MH i2c: F0 09 00 [14:51:53]MH_I2C_Read... [14:51:53]Read from MH i2c: F0 09 00 F6 17 00 8C D8 5D 66 6A 96 4A 66 DC [14:51:53]GetLastDocTimeStamp 1717426208 [14:51:53]current date 1717426316 [14:51:53]FM_GetShiftState [14:51:53]SAM_PROTO_GetShiftState [14:51:53]wFMCommunicate request_size=4 [14:51:53]MH_SAM_APDU [14:51:53]CAPDU: 80 13 01 00 [14:51:53]Write to MH i2c: E2 08 00 F7 17 80 13 01 00 00 00 00 00 8B [14:51:53]Write i2c OK [14:51:53]MH_I2C_Read... [14:51:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:51:53]Read from MH i2c: E2 [14:51:53]MH_I2C_Read... [14:51:53]Read from MH i2c: E2 0E 00 [14:51:53]MH_I2C_Read... [14:51:53]Read from MH i2c: E2 0E 00 F7 17 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 57 [14:51:53]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [14:51:53]wFMCommunicate OK [14:51:53]SAM_PROTO_GetShiftState done [14:51:53]FM_GetShiftState done [14:51:53]opened in 1717373173 [14:51:53]opened+sec_in_day 1717459573 [14:51:53]quantity*price = 5000 [14:51:53]sum+1 = 5001 [14:51:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 50.00 НСП 1% : 0.44 НДС 12% : 5.31 Наличными: 50.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 87 03.06.2024 14:51 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63829 ФПД: 197661865404294 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T145156&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63829&fm=197661865404294&tin=02508201610067®Number=0000000000092737&sum=5000 0 [14:51:55]StoreToDocumentArchive [14:51:55]shift 373 fd 63829 [14:51:55]save to /storage/0373/doc_00063829 [14:51:55]save last doc name /storage/0373/doc_00063829 to /storage/kkm_last_doc_name [14:51:55]save OK [14:51:55]Clear old archive folders... [14:51:55]ProcessDocumentItem done err = 0, tmpTLVsize=269 [14:51:55]tlvbuf is 00D2F440 [14:51:55]SAM_PROTO_ClearQueue [14:51:55]wFMCommunicate request_size=4 [14:51:55]MH_SAM_APDU [14:51:55]CAPDU: 80 09 00 00 [14:51:55]Write to MH i2c: E2 08 00 04 18 80 09 00 00 00 00 00 00 8E [14:51:55]Write i2c OK [14:51:55]MH_I2C_Read... [14:51:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:51:55]Read from MH i2c: E2 [14:51:55]MH_I2C_Read... [14:51:55]Read from MH i2c: E2 03 00 [14:51:55]MH_I2C_Read... [14:51:55]Read from MH i2c: E2 03 00 04 18 00 90 00 90 [14:51:55]RAPDU: 90 00 [14:51:55]wFMCommunicate OK [14:51:55]SAM_PROTO_ClearQueue done [14:51:55]KKMCreateOFDPacket [14:51:55]OFDProtocolAddRootSTLVToBuf [14:51:55]FM_MakeSignedData [14:51:55]FM_MakeSignedData [14:51:55]SAM_PROTO_SignData [14:51:55]wFMCommunicate request_size=4 [14:51:55]MH_SAM_APDU [14:51:55]CAPDU: 80 0D 01 02 [14:51:55]Write to MH i2c: E2 08 00 05 18 80 0D 01 02 00 00 00 00 96 [14:51:55]Write i2c OK [14:51:55]MH_I2C_Read... [14:51:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:51:55]Read from MH i2c: E2 [14:51:55]MH_I2C_Read... [14:51:55]Read from MH i2c: E2 03 00 [14:51:55]MH_I2C_Read... [14:51:55]Read from MH i2c: E2 03 00 05 18 00 90 00 91 [14:51:55]RAPDU: 90 00 [14:51:55]wFMCommunicate OK [14:51:55]wFMCommunicate request_size=255 [14:51:55]MH_SAM_APDU [14:51:55]CAPDU: 80 0D 02 02 FA 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 8C D8 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 [14:51:55]Write to MH i2c: E2 02 01 06 18 80 0D 02 02 FA 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 8C D8 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 00 00 A4 [14:51:55]Write i2c OK [14:51:55]MH_I2C_Read... [14:51:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:51:55]Read from MH i2c: E2 [14:51:55]MH_I2C_Read... [14:51:55]Read from MH i2c: E2 03 00 [14:51:55]MH_I2C_Read... [14:51:55]Read from MH i2c: E2 03 00 06 18 00 90 00 92 [14:51:55]RAPDU: 90 00 [14:51:55]wFMCommunicate OK [14:51:55]wFMCommunicate request_size=28 [14:51:55]MH_SAM_APDU [14:51:55]CAPDU: 80 0D 02 02 17 37 35 30 37 34 10 04 04 00 55 F9 00 00 35 04 06 00 B3 C5 BD 45 E7 86 [14:51:55]Write to MH i2c: E2 1F 00 07 18 80 0D 02 02 17 00 37 35 30 37 34 10 04 04 00 55 F9 00 00 35 04 06 00 B3 C5 BD 45 E7 86 00 00 5A [14:51:55]Write i2c OK [14:51:55]MH_I2C_Read... [14:51:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:51:55]Read from MH i2c: E2 [14:51:55]MH_I2C_Read... [14:51:55]Read from MH i2c: E2 03 00 [14:51:55]MH_I2C_Read... [14:51:55]Read from MH i2c: E2 03 00 07 18 00 90 00 93 [14:51:55]RAPDU: 90 00 [14:51:55]wFMCommunicate OK [14:51:55]wFMCommunicate request_size=4 [14:51:55]MH_SAM_APDU [14:51:55]CAPDU: 80 0D 03 02 [14:51:55]Write to MH i2c: E2 08 00 08 18 80 0D 03 02 00 00 00 00 9B [14:51:55]Write i2c OK [14:51:55]MH_I2C_Read... [14:51:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:51:55]Read from MH i2c: E2 [14:51:55]MH_I2C_Read... [14:51:55]Read from MH i2c: E2 0B 00 [14:51:55]MH_I2C_Read... [14:51:55]Read from MH i2c: E2 0B 00 08 18 00 45 03 C2 FF 8E 7C 6D 11 90 00 2D [14:51:55]RAPDU: 45 03 C2 FF 8E 7C 6D 11 90 00 [14:51:55]wFMCommunicate OK [14:51:55]SAM_PROTO_SignData done [14:51:55]FM_MakeSignedData done [14:51:55]CreateOFDProtocolMessage [14:51:55]wFMCommunicate request_size=4 [14:51:55]MH_SAM_APDU [14:51:55]CAPDU: 80 11 00 00 [14:51:55]Write to MH i2c: E2 08 00 09 18 80 11 00 00 00 00 00 00 9B [14:51:55]Write i2c OK [14:51:55]MH_I2C_Read... [14:51:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:51:55]Read from MH i2c: E2 [14:51:55]MH_I2C_Read... [14:51:55]Read from MH i2c: E2 17 00 [14:51:55]MH_I2C_Read... [14:51:55]Read from MH i2c: E2 17 00 09 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 ED [14:51:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [14:51:55]wFMCommunicate OK [14:51:55]CreateOFDProtocolMessage done [14:51:55]OFDSenderStorePacket 63829 [14:51:55]StoreOFDPacket docnum=63829 [14:51:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 21 01 00 00 55 00 19 01 1B 15 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 8C D8 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 55 F9 00 00 35 04 06 00 B3 C5 BD 45 E7 86 45 03 C2 FF 8E 7C 6D 11 [14:51:55]CheckFolder [14:51:55]dirname=/storage/ofd_packets [14:51:55]CheckFolder done [14:51:55]ProducePacketName [14:51:55]name=ofd_packets/00063829 [14:51:55]NVStorageSaveData ofd_packets/00063829 [14:51:55]File name is /storage/ofd_packets/00063829 [14:51:55]Write 319 bytes [14:51:55]NVStorageSaveData done [14:51:55]OFDSenderStorePacket done [14:51:55]KKMCreateOFDPacket done [14:51:55]NVStorageSaveData kkm_last_timestamp [14:51:55]File name is /storage/kkm_last_timestamp [14:51:55]Write 4 bytes [14:51:55]NVStorageSaveData done [14:51:55]ExternCall_PrintAddStr [14:51:55]wPrintStart [14:51:55]Write to MH i2c: 01 00 00 0A 18 22 [14:51:55]Write i2c OK [14:51:55]MH_I2C_Read... [14:51:55]Read from MH i2c: 01 [14:51:55]MH_I2C_Read... [14:51:55]Read from MH i2c: 01 07 00 [14:51:55]MH_I2C_Read... [14:51:55]Read from MH i2c: 01 07 00 0A 18 00 00 00 00 00 FF 0F 37 [14:51:55]RasterBufferAndPrint [14:51:55]line Счет N : (3)73408 [14:51:55]line ИНН: 02508201610067 [14:51:55]line Контрольно-Кассовый Чек [14:51:55]line ПРОДАЖА [14:51:55]line Товар: 4700000160358 [14:51:55]line Вода Легенда 1л [14:51:55]line 1.000 * 50.00 [14:51:55]line = 50.00 [14:51:55]line НДС 12% НСП 1% [14:51:55]line > о реализуемом товаре [14:51:55]line ИТОГО: 50.00 [14:51:55]line НСП 1% : 0.44 [14:51:55]line НДС 12% : 5.31 [14:51:55]line Наличными: 50.00 [14:51:55]line Безнал.: 0.00 [14:51:55]line Место: АЗС № 117 "Партнер Нефть" [14:51:55]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [14:51:55]line СНО: Общий режим [14:51:55]line Чек 87 03.06.2024 14:51 [14:51:55]line Смена: 373 ФФД: 1.0 [14:51:55]line ЗНМ: 0300000031 [14:51:55]line РНМ: 0000000000092737 [14:51:55]line Версия ККМ: 001 [14:51:55]line ФМ: 0000000000875074 [14:51:55]line ФД: 63829 [14:51:55]line ФПД: 197661865404294 [14:51:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T145156&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63829&fm=197661865404294&tin=02508201610067®Number=0000000000092737&sum=5000 [14:51:55]line 0 [14:51:55]OFD Sender: Processing packet 63829 [packets to send 14, broken 13] [14:51:55]ProducePacketName [14:51:55]name=ofd_packets/00063829 [14:51:55]OFD Sender: To server: pG, [14:51:55]CommunicateWithHost lk.salyk.kg:30040 [14:51:55]ConnectInit lk.salyk.kg [14:51:55]written 0, free lines is 4095 [14:51:56]Connected sock=10 [14: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 35 30 37 34 21 01 00 00 55 00 19 01 1B 15 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 8C D8 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 55 F9 00 00 35 04 06 00 B3 C5 BD 45 E7 86 45 03 C2 FF 8E 7C 6D 11 [14:51:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 91 A4 47 00 2D 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 35 30 37 34 10 04 04 00 55 F9 00 00 F4 03 04 00 5D 84 5D 66 B6 04 01 00 00 7A 53 FA D5 4C 21 A7 DA [14:51:56]CommunicateWithHost err = 0 [14:51:56]CheckOFDResponse [14:51:56]1017 (14) - 77093643461234 [14:51:56]1041 (16) - 0000000000875074 [14:51:56]1040 (4) - 63829 [14:51:56]1012 (4) - 03.06.2024 08:52 [14:51:56]1206 (1) - 0 [14:51:56]OFD Sender: Remove packet 63829 [14:51:56]ProducePacketName [14:51:56]name=ofd_packets/00063829 [14:51:56]NVStorageDeleteData [14:51:56]Write to MH i2c: 01 00 00 32 18 4A [14:51:56]Write i2c OK [14:51:56]MH_I2C_Read... [14:51:56]Read from MH i2c: 01 [14:51:56]MH_I2C_Read... [14:51:56]Read from MH i2c: 01 07 00 [14:51:56]MH_I2C_Read... [14:51:56]Read from MH i2c: 01 07 00 32 18 00 00 00 00 00 01 0D 5F [14:51:56]RasterBufferAndPrint [14:51:56]line [14:51:56]line [14:51:56]line [14:51:56]line [14:51:56]line [14:51:56]written 0, free lines is 3335 [14:51:56]MH_Cut [14:51:56]Write to MH i2c: D1 01 00 39 18 01 23 [14:51:56]Write i2c OK [14:51:56]MH_I2C_Read... [14:51:56]Read from MH i2c: D1 [14:51:56]MH_I2C_Read... [14:51:56]Read from MH i2c: D1 01 00 [14:51:56]MH_I2C_Read... [14:51:56]Read from MH i2c: D1 01 00 39 18 00 22 [14:51:56]Write to MH i2c: 01 00 00 3A 18 52 [14:51:56]Write i2c OK [14:51:56]MH_I2C_Read... [14:51:56]OFD Sender: No OFD packet to send [14:51:57]*** Cut start [14:51:57]*** Partial cut [14:51:57]*** CUTSNS_PIN = 1 [14:51:57]*** CUTSNS_PIN = 0 [14:51:57]*** Brake cut motor [14:51:57]Read from MH i2c: 01 [14:51:57]MH_I2C_Read... [14:51:57]*** Stop cut motor [14:51:57]*** Cut end [14:51:57]Read from MH i2c: 01 07 00 [14:51:57]MH_I2C_Read... [14:51:57]Read from MH i2c: 01 07 00 3A 18 00 00 00 00 00 FF 0F 67 [14:51:57]process_action close_receipt done [14:51:57]requested_data is exist [14:51:57]produce_requested_data [14:51:57]requested_item fm.sn is exist - process it [14:51:57]wFMCommunicate request_size=4 [14:51:57]MH_SAM_APDU [14:51:57]CAPDU: 80 11 00 00 [14:51:57]Write to MH i2c: E2 08 00 3B 18 80 11 00 00 00 00 00 00 CD [14:51:57]Write i2c OK [14:51:57]MH_I2C_Read... [14:51:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:51:57]Read from MH i2c: E2 [14:51:57]MH_I2C_Read... [14:51:57]Read from MH i2c: E2 17 00 [14:51:57]MH_I2C_Read... [14:51:57]Read from MH i2c: E2 17 00 3B 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 1F [14:51:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [14:51:57]wFMCommunicate OK [14:51:57]requested_item fd.num is exist - process it [14:51:57]SAM_PROTO_GetFieldsCounters [14:51:57]wFMCommunicate request_size=4 [14:51:57]MH_SAM_APDU [14:51:57]CAPDU: 80 13 00 00 [14:51:57]Write to MH i2c: E2 08 00 3C 18 80 13 00 00 00 00 00 00 D0 [14:51:57]Write i2c OK [14:51:57]MH_I2C_Read... [14:51:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:51:58]Read from MH i2c: E2 [14:51:58]MH_I2C_Read... [14:51:58]Read from MH i2c: E2 62 00 [14:51:58]MH_I2C_Read... [14:51:58]Read from MH i2c: E2 62 00 3C 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 55 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 BC [14:51: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 55 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:51:58]wFMCommunicate OK [14:51:58]SAM_PROTO_GetFieldsCounters done [14:51:58]requested_item shift.num is exist - process it [14:51:58]requested_item shift.opened is exist - process it [14:51:58]req_shift_opened [14:51:58]FM_GetShiftState [14:51:58]SAM_PROTO_GetShiftState [14:51:58]wFMCommunicate request_size=4 [14:51:58]MH_SAM_APDU [14:51:58]CAPDU: 80 13 01 00 [14:51:58]Write to MH i2c: E2 08 00 3D 18 80 13 01 00 00 00 00 00 D2 [14:51:58]Write i2c OK [14:51:58]MH_I2C_Read... [14:51:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:51:58]Read from MH i2c: E2 [14:51:58]MH_I2C_Read... [14:51:58]Read from MH i2c: E2 0E 00 [14:51:58]MH_I2C_Read... [14:51:58]Read from MH i2c: E2 0E 00 3D 18 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 9E [14:51:58]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [14:51:58]wFMCommunicate OK [14:51:58]SAM_PROTO_GetShiftState done [14:51:58]FM_GetShiftState done [14:51:58]req_shift_opened done [14:51:58]requested_item shift.open_date is exist - process it [14:51:58]req_shift_open_date [14:51:58]req_shift_open_date done [14:51:58]produce_requested_data done [14:51:58]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63829,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [14:51:58]process_action_free close_receipt [14:51:58]json_value_free [14:51:58]json_value_free done [14:51:58]process_json_proto returns [14:51:58]Send response to host [14:51:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63829,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [14:51:58]free response buf [14:51:58]execute_script done [14:51:58]execute_script returns [14:51:58]free content buf [14:51:58]Sock 9.Close socket [14:51:58]Sock 9.Thread stoped [14:52:01]OFD Sender: No OFD packet to send [14:52:06]OFD Sender: No OFD packet to send [14:52:11]OFD Sender: No OFD packet to send [14:52:16]OFD Sender: No OFD packet to send [14:52:21]OFD Sender: No OFD packet to send [14:52:26]OFD Sender: No OFD packet to send [14:52:31]OFD Sender: No OFD packet to send [14:52:36]OFD Sender: No OFD packet to send [14:52:41]OFD Sender: No OFD packet to send [14:52:46]OFD Sender: No OFD packet to send [14:52:51]OFD Sender: No OFD packet to send [14:52:56]OFD Sender: No OFD packet to send [14:53:01]OFD Sender: No OFD packet to send [14:53:06]OFD Sender: No OFD packet to send [14:53:11]OFD Sender: No OFD packet to send [14:53:16]OFD Sender: No OFD packet to send [14:53:21]OFD Sender: No OFD packet to send [14:53:26]OFD Sender: No OFD packet to send [14:53:31]OFD Sender: No OFD packet to send [14:53:36]OFD Sender: No OFD packet to send [14:53:41]OFD Sender: No OFD packet to send [14:53:46]OFD Sender: No OFD packet to send [14:53:51]OFD Sender: No OFD packet to send [14:53:56]OFD Sender: No OFD packet to send [14:54:01]OFD Sender: No OFD packet to send [14:54:06]OFD Sender: No OFD packet to send [14:54:11]OFD Sender: No OFD packet to send [14:54:16]OFD Sender: No OFD packet to send [14:54:21]OFD Sender: No OFD packet to send [14:54:26]OFD Sender: No OFD packet to send [14:54:31]OFD Sender: No OFD packet to send [14:54:36]OFD Sender: No OFD packet to send [14:54:41]OFD Sender: No OFD packet to send [14:54:46]OFD Sender: No OFD packet to send [14:54:51]OFD Sender: No OFD packet to send [14:54:56]OFD Sender: No OFD packet to send [14:55:01]OFD Sender: No OFD packet to send [14:55:06]OFD Sender: No OFD packet to send [14:55:11]OFD Sender: No OFD packet to send [14:55:16]OFD Sender: No OFD packet to send [14:55:21]OFD Sender: No OFD packet to send [14:55:26]OFD Sender: No OFD packet to send [14:55:31]OFD Sender: No OFD packet to send [14:55:36]OFD Sender: No OFD packet to send [14:55:41]accept exits with 7 [14:55:41]New connection [14:55:41]New thread 3067518308 created [14:55:41]Thread 3067374948 joined [14:55:41]Waiting for new connection... [14:55:41] Sock 7.Parse request [14:55:41]Sock 7.Check first char [14:55:41]Sock 7.First char is OK [14:55:41]request: POST /json_proto HTTP/1.0 [14:55:41]Method: POST [14:55:41]URL: /json_proto [14:55:41]Method is POST - this is cgi request [14:55:41]url: /json_proto [14:55:41]query_string will be loaded in cgi processing [14:55:41]execute_cgi json_proto POST (null) [14:55:41]execute_cgi path=json_proto method=POST [14:55:41]POST find Content-Length [14:55:41]Host: 172.17.60.69:8080 [14:55:41]Content-Length: 620 [14:55:41]Content-Type: application/json [14:55:41] [14:55:41]POST finish read [14:55:41]Found Content-Length = 620 [14:55:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73409", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:55:41]execute_script... [14:55:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73409", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:55:41]POST & json_proto [14:55:41]process_json_proto [14:55:41]json parsed OK: [14:55:41]protocol is kg_v1.0 [14:55:41]action value=close_receipt [14:55:41]process_action close_receipt [14:55:41]cmd_close_receipt [14:55:41]MH_GetDate [14:55:41]Write to MH i2c: F0 00 00 3E 18 45 [14:55:41]Write i2c OK [14:55:41]MH_I2C_Read... [14:55:41]Read from MH i2c: F0 [14:55:41]MH_I2C_Read... [14:55:41]Read from MH i2c: F0 09 00 [14:55:41]MH_I2C_Read... [14:55:41]Read from MH i2c: F0 09 00 3E 18 00 70 D9 5D 66 6A 96 4A 66 0A [14:55:41]GetLastDocTimeStamp 1717426316 [14:55:41]current date 1717426544 [14:55:41]FM_GetShiftState [14:55:41]SAM_PROTO_GetShiftState [14:55:41]wFMCommunicate request_size=4 [14:55:41]MH_SAM_APDU [14:55:41]CAPDU: 80 13 01 00 [14:55:41]Write to MH i2c: E2 08 00 3F 18 80 13 01 00 00 00 00 00 D4 [14:55:41]Write i2c OK [14:55:41]MH_I2C_Read... [14:55:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:55:41]Read from MH i2c: E2 [14:55:41]MH_I2C_Read... [14:55:41]Read from MH i2c: E2 0E 00 [14:55:41]MH_I2C_Read... [14:55:41]Read from MH i2c: E2 0E 00 3F 18 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 A0 [14:55:41]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [14:55:41]wFMCommunicate OK [14:55:41]SAM_PROTO_GetShiftState done [14:55:41]FM_GetShiftState done [14:55:41]opened in 1717373173 [14:55:41]opened+sec_in_day 1717459573 [14:55:41]quantity*price = 14000 [14:55:41]sum+1 = 14001 [14:55:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 88 03.06.2024 14:55 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63830 ФПД: 73244660598702 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T145544&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63830&fm=73244660598702&tin=02508201610067®Number=0000000000092737&sum=14000 0 [14:55:42]StoreToDocumentArchive [14:55:42]shift 373 fd 63830 [14:55:42]save to /storage/0373/doc_00063830 [14:55:42]save last doc name /storage/0373/doc_00063830 to /storage/kkm_last_doc_name [14:55:42]save OK [14:55:42]Clear old archive folders... [14:55:42]ProcessDocumentItem done err = 0, tmpTLVsize=273 [14:55:42]tlvbuf is 00D89EB0 [14:55:42]SAM_PROTO_ClearQueue [14:55:42]wFMCommunicate request_size=4 [14:55:42]MH_SAM_APDU [14:55:42]CAPDU: 80 09 00 00 [14:55:42]Write to MH i2c: E2 08 00 4C 18 80 09 00 00 00 00 00 00 D6 [14:55:42]Write i2c OK [14:55:42]MH_I2C_Read... [14:55:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:55:42]Read from MH i2c: E2 [14:55:42]MH_I2C_Read... [14:55:42]Read from MH i2c: E2 03 00 [14:55:42]MH_I2C_Read... [14:55:42]Read from MH i2c: E2 03 00 4C 18 00 90 00 D8 [14:55:42]RAPDU: 90 00 [14:55:42]wFMCommunicate OK [14:55:42]SAM_PROTO_ClearQueue done [14:55:42]KKMCreateOFDPacket [14:55:42]OFDProtocolAddRootSTLVToBuf [14:55:42]FM_MakeSignedData [14:55:42]FM_MakeSignedData [14:55:42]SAM_PROTO_SignData [14:55:42]wFMCommunicate request_size=4 [14:55:42]MH_SAM_APDU [14:55:42]CAPDU: 80 0D 01 02 [14:55:42]Write to MH i2c: E2 08 00 4D 18 80 0D 01 02 00 00 00 00 DE [14:55:42]Write i2c OK [14:55:42]MH_I2C_Read... [14:55:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:55:43]Read from MH i2c: E2 [14:55:43]MH_I2C_Read... [14:55:43]Read from MH i2c: E2 03 00 [14:55:43]MH_I2C_Read... [14:55:43]Read from MH i2c: E2 03 00 4D 18 00 90 00 D9 [14:55:43]RAPDU: 90 00 [14:55:43]wFMCommunicate OK [14:55:43]wFMCommunicate request_size=255 [14:55:43]MH_SAM_APDU [14:55:43]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 70 D9 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 [14:55:43]Write to MH i2c: E2 02 01 4E 18 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 70 D9 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 00 00 9C [14:55:43]Write i2c OK [14:55:43]MH_I2C_Read... [14:55:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:55:43]Read from MH i2c: E2 [14:55:43]MH_I2C_Read... [14:55:43]Read from MH i2c: E2 03 00 [14:55:43]MH_I2C_Read... [14:55:43]Read from MH i2c: E2 03 00 4E 18 00 90 00 DA [14:55:43]RAPDU: 90 00 [14:55:43]wFMCommunicate OK [14:55:43]wFMCommunicate request_size=32 [14:55:43]MH_SAM_APDU [14:55:43]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 35 30 37 34 10 04 04 00 56 F9 00 00 35 04 06 00 42 9D 99 FA 07 AE [14:55:43]Write to MH i2c: E2 23 00 4F 18 80 0D 02 02 1B 00 30 30 30 38 37 35 30 37 34 10 04 04 00 56 F9 00 00 35 04 06 00 42 9D 99 FA 07 AE 00 00 B3 [14:55:43]Write i2c OK [14:55:43]MH_I2C_Read... [14:55:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:55:43]Read from MH i2c: E2 [14:55:43]MH_I2C_Read... [14:55:43]Read from MH i2c: E2 03 00 [14:55:43]MH_I2C_Read... [14:55:43]Read from MH i2c: E2 03 00 4F 18 00 90 00 DB [14:55:43]RAPDU: 90 00 [14:55:43]wFMCommunicate OK [14:55:43]wFMCommunicate request_size=4 [14:55:43]MH_SAM_APDU [14:55:43]CAPDU: 80 0D 03 02 [14:55:43]Write to MH i2c: E2 08 00 50 18 80 0D 03 02 00 00 00 00 E3 [14:55:43]Write i2c OK [14:55:43]MH_I2C_Read... [14:55:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:55:43]Read from MH i2c: E2 [14:55:43]MH_I2C_Read... [14:55:43]Read from MH i2c: E2 0B 00 [14:55:43]MH_I2C_Read... [14:55:43]Read from MH i2c: E2 0B 00 50 18 00 F7 03 CB 94 08 2E 45 D7 90 00 8F [14:55:43]RAPDU: F7 03 CB 94 08 2E 45 D7 90 00 [14:55:43]wFMCommunicate OK [14:55:43]SAM_PROTO_SignData done [14:55:43]FM_MakeSignedData done [14:55:43]CreateOFDProtocolMessage [14:55:43]wFMCommunicate request_size=4 [14:55:43]MH_SAM_APDU [14:55:43]CAPDU: 80 11 00 00 [14:55:43]Write to MH i2c: E2 08 00 51 18 80 11 00 00 00 00 00 00 E3 [14:55:43]Write i2c OK [14:55:43]MH_I2C_Read... [14:55:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:55:43]Read from MH i2c: E2 [14:55:43]MH_I2C_Read... [14:55:43]Read from MH i2c: E2 17 00 [14:55:43]MH_I2C_Read... [14:55:43]Read from MH i2c: E2 17 00 51 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 35 [14:55:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [14:55:43]wFMCommunicate OK [14:55:43]CreateOFDProtocolMessage done [14:55:43]OFDSenderStorePacket 63830 [14:55:43]StoreOFDPacket docnum=63830 [14:55:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 25 01 00 00 A8 05 1D 01 59 1B 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 70 D9 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 56 F9 00 00 35 04 06 00 42 9D 99 FA 07 AE F7 03 CB 94 08 2E 45 D7 [14:55:43]CheckFolder [14:55:43]dirname=/storage/ofd_packets [14:55:43]CheckFolder done [14:55:43]ProducePacketName [14:55:43]name=ofd_packets/00063830 [14:55:43]NVStorageSaveData ofd_packets/00063830 [14:55:43]File name is /storage/ofd_packets/00063830 [14:55:43]Write 323 bytes [14:55:43]NVStorageSaveData done [14:55:43]OFDSenderStorePacket done [14:55:43]KKMCreateOFDPacket done [14:55:43]NVStorageSaveData kkm_last_timestamp [14:55:43]File name is /storage/kkm_last_timestamp [14:55:43]Write 4 bytes [14:55:43]NVStorageSaveData done [14:55:43]ExternCall_PrintAddStr [14:55:43]wPrintStart [14:55:43]Write to MH i2c: 01 00 00 52 18 6A [14:55:43]Write i2c OK [14:55:43]MH_I2C_Read... [14:55:43]Read from MH i2c: 01 [14:55:43]MH_I2C_Read... [14:55:43]Read from MH i2c: 01 07 00 [14:55:43]MH_I2C_Read... [14:55:43]Read from MH i2c: 01 07 00 52 18 00 00 00 00 00 FF 0F 7F [14:55:43]RasterBufferAndPrint [14:55:43]line Счет N : (3)73409 [14:55:43]line ИНН: 02508201610067 [14:55:43]line Контрольно-Кассовый Чек [14:55:43]line ПРОДАЖА [14:55:43]line Товар: 48747059 [14:55:43]line Сигареты Winston Legend Blue [14:55:43]line 1.000 * 140.00 [14:55:43]line = 140.00 [14:55:43]line НДС 12% НСП 1% [14:55:43]line > о реализуемом товаре [14:55:43]line ИТОГО: 140.00 [14:55:43]line НСП 1% : 1.24 [14:55:43]line НДС 12% : 14.87 [14:55:43]line Наличными: 140.00 [14:55:43]line Безнал.: 0.00 [14:55:43]line Место: АЗС № 117 "Партнер Нефть" [14:55:43]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [14:55:43]line СНО: Общий режим [14:55:43]line Чек 88 03.06.2024 14:55 [14:55:43]line Смена: 373 ФФД: 1.0 [14:55:43]line ЗНМ: 0300000031 [14:55:43]line РНМ: 0000000000092737 [14:55:43]line Версия ККМ: 001 [14:55:43]line ФМ: 0000000000875074 [14:55:43]line ФД: 63830 [14:55:43]line ФПД: 73244660598702 [14:55:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T145544&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63830&fm=73244660598702&tin=02508201610067®Number=0000000000092737&sum=14000 [14:55:43]line 0 [14:55:43]OFD Sender: Processing packet 63830 [packets to send 14, broken 13] [14:55:43]ProducePacketName [14:55:43]name=ofd_packets/00063830 [14:55:43]OFD Sender: To server: pG, [14:55:43]CommunicateWithHost lk.salyk.kg:30040 [14:55:43]ConnectInit lk.salyk.kg [14:55:43]written 0, free lines is 4095 [14:55:43]Connected sock=10 [14:55:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 25 01 00 00 A8 05 1D 01 59 1B 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 70 D9 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 56 F9 00 00 35 04 06 00 42 9D 99 FA 07 AE F7 03 CB 94 08 2E 45 D7 [14:55:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 1D 22 47 00 7E 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 35 30 37 34 10 04 04 00 56 F9 00 00 F4 03 04 00 41 85 5D 66 B6 04 01 00 00 2E A8 95 9F 5E 4E 22 5B [14:55:44]CommunicateWithHost err = 0 [14:55:44]CheckOFDResponse [14:55:44]1017 (14) - 77093643461234 [14:55:44]1041 (16) - 0000000000875074 [14:55:44]1040 (4) - 63830 [14:55:44]1012 (4) - 03.06.2024 08:56 [14:55:44]1206 (1) - 0 [14:55:44]OFD Sender: Remove packet 63830 [14:55:44]ProducePacketName [14:55:44]name=ofd_packets/00063830 [14:55:44]NVStorageDeleteData [14:55:44]Write to MH i2c: 01 00 00 7B 18 93 [14:55:44]Write i2c OK [14:55:44]MH_I2C_Read... [14:55:44]Read from MH i2c: 01 [14:55:44]MH_I2C_Read... [14:55:44]Read from MH i2c: 01 07 00 [14:55:44]MH_I2C_Read... [14:55:44]Read from MH i2c: 01 07 00 7B 18 00 00 00 00 00 D0 0C 76 [14:55:44]RasterBufferAndPrint [14:55:44]line [14:55:44]line [14:55:44]line [14:55:44]line [14:55:44]line [14:55:44]written 0, free lines is 3285 [14:55:44]MH_Cut [14:55:44]Write to MH i2c: D1 01 00 82 18 01 6C [14:55:44]Write i2c OK [14:55:44]MH_I2C_Read... [14:55:44]Read from MH i2c: D1 [14:55:44]MH_I2C_Read... [14:55:44]Read from MH i2c: D1 01 00 [14:55:44]MH_I2C_Read... [14:55:44]Read from MH i2c: D1 01 00 82 18 00 6B [14:55:44]Write to MH i2c: 01 00 00 83 18 9B [14:55:44]Write i2c OK [14:55:44]MH_I2C_Read... [14:55:44]OFD Sender: No OFD packet to send [14:55:45]*** Cut start [14:55:45]*** Partial cut [14:55:45]*** CUTSNS_PIN = 1 [14:55:45]*** CUTSNS_PIN = 0 [14:55:45]*** Brake cut motor [14:55:45]Read from MH i2c: 01 [14:55:45]MH_I2C_Read... [14:55:45]*** Stop cut motor [14:55:45]*** Cut end [14:55:45]Read from MH i2c: 01 07 00 [14:55:45]MH_I2C_Read... [14:55:45]Read from MH i2c: 01 07 00 83 18 00 00 00 00 00 FF 0F B0 [14:55:45]process_action close_receipt done [14:55:45]requested_data is exist [14:55:45]produce_requested_data [14:55:45]requested_item fm.sn is exist - process it [14:55:45]wFMCommunicate request_size=4 [14:55:45]MH_SAM_APDU [14:55:45]CAPDU: 80 11 00 00 [14:55:45]Write to MH i2c: E2 08 00 84 18 80 11 00 00 00 00 00 00 16 [14:55:45]Write i2c OK [14:55:45]MH_I2C_Read... [14:55:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:55:45]Read from MH i2c: E2 [14:55:45]MH_I2C_Read... [14:55:45]Read from MH i2c: E2 17 00 [14:55:45]MH_I2C_Read... [14:55:45]Read from MH i2c: E2 17 00 84 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 68 [14:55:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [14:55:45]wFMCommunicate OK [14:55:45]requested_item fd.num is exist - process it [14:55:45]SAM_PROTO_GetFieldsCounters [14:55:45]wFMCommunicate request_size=4 [14:55:45]MH_SAM_APDU [14:55:45]CAPDU: 80 13 00 00 [14:55:45]Write to MH i2c: E2 08 00 85 18 80 13 00 00 00 00 00 00 19 [14:55:45]Write i2c OK [14:55:45]MH_I2C_Read... [14:55:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:55:45]Read from MH i2c: E2 [14:55:45]MH_I2C_Read... [14:55:45]Read from MH i2c: E2 62 00 [14:55:45]MH_I2C_Read... [14:55:45]Read from MH i2c: E2 62 00 85 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 56 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 09 [14:55: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 56 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:55:45]wFMCommunicate OK [14:55:45]SAM_PROTO_GetFieldsCounters done [14:55:45]requested_item shift.num is exist - process it [14:55:45]requested_item shift.opened is exist - process it [14:55:45]req_shift_opened [14:55:45]FM_GetShiftState [14:55:45]SAM_PROTO_GetShiftState [14:55:45]wFMCommunicate request_size=4 [14:55:45]MH_SAM_APDU [14:55:45]CAPDU: 80 13 01 00 [14:55:45]Write to MH i2c: E2 08 00 86 18 80 13 01 00 00 00 00 00 1B [14:55:45]Write i2c OK [14:55:45]MH_I2C_Read... [14:55:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:55:45]Read from MH i2c: E2 [14:55:45]MH_I2C_Read... [14:55:45]Read from MH i2c: E2 0E 00 [14:55:45]MH_I2C_Read... [14:55:45]Read from MH i2c: E2 0E 00 86 18 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 E7 [14:55:45]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [14:55:45]wFMCommunicate OK [14:55:45]SAM_PROTO_GetShiftState done [14:55:45]FM_GetShiftState done [14:55:45]req_shift_opened done [14:55:45]requested_item shift.open_date is exist - process it [14:55:45]req_shift_open_date [14:55:45]req_shift_open_date done [14:55:45]produce_requested_data done [14:55:45]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63830,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [14:55:45]process_action_free close_receipt [14:55:45]json_value_free [14:55:45]json_value_free done [14:55:45]process_json_proto returns [14:55:45]Send response to host [14:55:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63830,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [14:55:45]free response buf [14:55:45]execute_script done [14:55:45]execute_script returns [14:55:45]free content buf [14:55:45]Sock 7.Close socket [14:55:45]Sock 7.Thread stoped [14:55:49]OFD Sender: No OFD packet to send [14:55:54]OFD Sender: No OFD packet to send [14:55:59]OFD Sender: No OFD packet to send [14:56:04]OFD Sender: No OFD packet to send [14:56:09]OFD Sender: No OFD packet to send [14:56:14]OFD Sender: No OFD packet to send [14:56:19]OFD Sender: No OFD packet to send [14:56:24]OFD Sender: No OFD packet to send [14:56:29]OFD Sender: No OFD packet to send [14:56:34]OFD Sender: No OFD packet to send [14:56:39]OFD Sender: No OFD packet to send [14:56:44]OFD Sender: No OFD packet to send [14:56:49]OFD Sender: No OFD packet to send [14:56:54]OFD Sender: No OFD packet to send [14:56:59]OFD Sender: No OFD packet to send [14:57:04]OFD Sender: No OFD packet to send [14:57:09]OFD Sender: No OFD packet to send [14:57:14]OFD Sender: No OFD packet to send [14:57:19]OFD Sender: No OFD packet to send [14:57:24]OFD Sender: No OFD packet to send [14:57:29]OFD Sender: No OFD packet to send [14:57:34]OFD Sender: No OFD packet to send [14:57:39]OFD Sender: No OFD packet to send [14:57:44]OFD Sender: No OFD packet to send [14:57:49]OFD Sender: No OFD packet to send [14:57:54]OFD Sender: No OFD packet to send [14:57:59]OFD Sender: No OFD packet to send [14:58:04]OFD Sender: No OFD packet to send [14:58:09]OFD Sender: No OFD packet to send [14:58:14]OFD Sender: No OFD packet to send [14:58:19]OFD Sender: No OFD packet to send [14:58:24]OFD Sender: No OFD packet to send [14:58:29]OFD Sender: No OFD packet to send [14:58:33]accept exits with 9 [14:58:33]New connection [14:58:33]New thread 3067374948 created [14:58:33]Thread 3067518308 joined [14:58:33]Waiting for new connection... [14:58:33] Sock 9.Parse request [14:58:33]Sock 9.Check first char [14:58:33]Sock 9.First char is OK [14:58:33]request: POST /json_proto HTTP/1.0 [14:58:33]Method: POST [14:58:33]URL: /json_proto [14:58:33]Method is POST - this is cgi request [14:58:33]url: /json_proto [14:58:33]query_string will be loaded in cgi processing [14:58:33]execute_cgi json_proto POST (null) [14:58:33]execute_cgi path=json_proto method=POST [14:58:33]POST find Content-Length [14:58:33]Host: 172.17.60.69:8080 [14:58:33]Content-Length: 215 [14:58:33]Content-Type: application/json [14:58:33] [14:58:33]POST finish read [14:58:33]Found Content-Length = 215 [14:58:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:58:33]execute_script... [14:58:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:58:33]POST & json_proto [14:58:33]process_json_proto [14:58:33]json parsed OK: [14:58:33]protocol is kg_v1.0 [14:58:33]action value=get_value [14:58:33]process_action get_value [14:58:33]cmd_get_value [14:58:33]process_action get_value done [14:58:33]requested_data is exist [14:58:33]produce_requested_data [14:58:33]requested_item kkm.sn is exist - process it [14:58:33]requested_item kkm.ver is exist - process it [14:58:33]requested_item fm.sn is exist - process it [14:58:33]wFMCommunicate request_size=4 [14:58:33]MH_SAM_APDU [14:58:33]CAPDU: 80 11 00 00 [14:58:33]Write to MH i2c: E2 08 00 87 18 80 11 00 00 00 00 00 00 19 [14:58:33]Write i2c OK [14:58:33]MH_I2C_Read... [14:58:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:58:33]Read from MH i2c: E2 [14:58:33]MH_I2C_Read... [14:58:33]Read from MH i2c: E2 17 00 [14:58:33]MH_I2C_Read... [14:58:33]Read from MH i2c: E2 17 00 87 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 6B [14:58:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [14:58:33]wFMCommunicate OK [14:58:33]requested_item fd.num is exist - process it [14:58:33]SAM_PROTO_GetFieldsCounters [14:58:33]wFMCommunicate request_size=4 [14:58:33]MH_SAM_APDU [14:58:33]CAPDU: 80 13 00 00 [14:58:33]Write to MH i2c: E2 08 00 88 18 80 13 00 00 00 00 00 00 1C [14:58:33]Write i2c OK [14:58:33]MH_I2C_Read... [14:58:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:58:33]Read from MH i2c: E2 [14:58:33]MH_I2C_Read... [14:58:33]Read from MH i2c: E2 62 00 [14:58:33]MH_I2C_Read... [14:58:33]Read from MH i2c: E2 62 00 88 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 56 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 0C [14:58: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 56 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:58:33]wFMCommunicate OK [14:58:33]SAM_PROTO_GetFieldsCounters done [14:58:33]requested_item shift.num is exist - process it [14:58:33]requested_item shift.opened is exist - process it [14:58:33]req_shift_opened [14:58:33]FM_GetShiftState [14:58:33]SAM_PROTO_GetShiftState [14:58:33]wFMCommunicate request_size=4 [14:58:33]MH_SAM_APDU [14:58:33]CAPDU: 80 13 01 00 [14:58:33]Write to MH i2c: E2 08 00 89 18 80 13 01 00 00 00 00 00 1E [14:58:33]Write i2c OK [14:58:33]MH_I2C_Read... [14:58:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:58:34]Read from MH i2c: E2 [14:58:34]MH_I2C_Read... [14:58:34]Read from MH i2c: E2 0E 00 [14:58:34]MH_I2C_Read... [14:58:34]Read from MH i2c: E2 0E 00 89 18 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 EA [14:58:34]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [14:58:34]wFMCommunicate OK [14:58:34]SAM_PROTO_GetShiftState done [14:58:34]FM_GetShiftState done [14:58:34]req_shift_opened done [14:58:34]requested_item shift.open_date is exist - process it [14:58:34]req_shift_open_date [14:58:34]req_shift_open_date done [14:58:34]produce_requested_data done [14:58:34]produce_requested_data return {"kkm.sn":"0300000031","kkm.ver":"001","fm.sn":"0000000000875074","fd.num":63830,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [14:58:34]process_action_free get_value [14:58:34]json_value_free [14:58:34]json_value_free done [14:58:34]process_json_proto returns [14:58:34]Send response to host [14:58:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000031","kkm.ver":"001","fm.sn":"0000000000875074","fd.num":63830,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [14:58:34]free response buf [14:58:34]execute_script done [14:58:34]execute_script returns [14:58:34]free content buf [14:58:34]Sock 9.Close socket [14:58:34]Sock 9.Thread stoped [14:58:34]OFD Sender: No OFD packet to send [14:58:37]accept exits with 7 [14:58:37]New connection [14:58:37]New thread 3067518308 created [14:58:37]Thread 3067374948 joined [14:58:37]Waiting for new connection... [14:58:37] Sock 7.Parse request [14:58:37]Sock 7.Check first char [14:58:37]Sock 7.First char is OK [14:58:37]request: POST /json_proto HTTP/1.0 [14:58:37]Method: POST [14:58:37]URL: /json_proto [14:58:37]Method is POST - this is cgi request [14:58:37]url: /json_proto [14:58:37]query_string will be loaded in cgi processing [14:58:37]execute_cgi json_proto POST (null) [14:58:37]execute_cgi path=json_proto method=POST [14:58:37]POST find Content-Length [14:58:37]Host: 172.17.60.69:8080 [14:58:37]Content-Length: 331 [14:58:37]Content-Type: application/json [14:58:37] [14:58:37]POST finish read [14:58:37]Found Content-Length = 331 [14:58:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [14:58:37]execute_script... [14:58:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [14:58:37]POST & json_proto [14:58:37]process_json_proto [14:58:37]json parsed OK: [14:58:37]protocol is kg_v1.0 [14:58:37]action value=get_value [14:58:37]process_action get_value [14:58:37]cmd_get_value [14:58:37]process_action get_value done [14:58:37]requested_data is exist [14:58:37]produce_requested_data [14:58:37]requested_item fm.sale.total is exist - process it [14:58:37]SAM_PROTO_GetFMData [14:58:37]wFMCommunicate request_size=4 [14:58:37]MH_SAM_APDU [14:58:37]CAPDU: 80 13 03 00 [14:58:37]Write to MH i2c: E2 08 00 8A 18 80 13 03 00 00 00 00 00 21 [14:58:37]Write i2c OK [14:58:37]MH_I2C_Read... [14:58:37]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [14:58:37]Read from MH i2c: E2 [14:58:37]MH_I2C_Read... [14:58:37]Read from MH i2c: E2 FD 00 [14:58:37]MH_I2C_Read... [14:58:37]Read from MH i2c: E2 FD 00 8A 18 00 C5 04 85 04 C1 04 6E 04 04 00 6C F6 00 00 69 04 A1 00 6F 04 04 00 0F F4 00 00 B1 04 04 00 75 08 A3 76 70 04 04 00 2A 07 EB 65 72 04 04 00 4B 01 B8 10 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 D8 A8 99 0C 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 6A BA 0C 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 5D 02 00 00 B1 04 04 00 64 11 7D 03 70 04 04 00 E0 B5 61 03 72 04 03 00 84 5B 1B 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 F2 D8 5E EF 03 09 90 00 98 [14:58:37]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 6C F6 00 00 69 04 A1 00 6F 04 04 00 0F F4 00 00 B1 04 04 00 75 08 A3 76 70 04 04 00 2A 07 EB 65 72 04 04 00 4B 01 B8 10 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 D8 A8 99 0C 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 6A BA 0C 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 5D 02 00 00 B1 04 04 00 64 11 7D 03 70 04 04 00 E0 B5 61 03 72 04 03 00 84 5B 1B 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 F2 D8 5E EF 03 09 90 00 [14:58:37]wFMCommunicate OK [14:58:37]wFMCommunicate request_size=4 [14:58:37]MH_SAM_APDU [14:58:37]CAPDU: 80 17 00 00 [14:58:37]Write to MH i2c: E2 08 00 8B 18 80 17 00 00 00 00 00 00 23 [14:58:37]Write i2c OK [14:58:37]MH_I2C_Read... [14:58:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:58:37]Read from MH i2c: E2 [14:58:37]MH_I2C_Read... [14:58:37]Read from MH i2c: E2 FD 00 [14:58:37]MH_I2C_Read... [14:58:37]Read from MH i2c: E2 FD 00 8B 18 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 2E E7 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 F5 [14:58:37]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 2E E7 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [14:58:37]wFMCommunicate OK [14:58:37]wFMCommunicate request_size=4 [14:58:37]MH_SAM_APDU [14:58:37]CAPDU: 80 17 00 00 [14:58:37]Write to MH i2c: E2 08 00 8C 18 80 17 00 00 00 00 00 00 24 [14:58:37]Write i2c OK [14:58:37]MH_I2C_Read... [14:58:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:58:38]Read from MH i2c: E2 [14:58:38]MH_I2C_Read... [14:58:38]Read from MH i2c: E2 FD 00 [14:58:38]MH_I2C_Read... [14:58:38]Read from MH i2c: E2 FD 00 8C 18 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 36 [14:58:38]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [14:58:38]wFMCommunicate OK [14:58:38]wFMCommunicate request_size=4 [14:58:38]MH_SAM_APDU [14:58:38]CAPDU: 80 17 00 00 [14:58:38]Write to MH i2c: E2 08 00 8D 18 80 17 00 00 00 00 00 00 25 [14:58:38]Write i2c OK [14:58:38]MH_I2C_Read... [14:58:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:58:38]Read from MH i2c: E2 [14:58:38]MH_I2C_Read... [14:58:38]Read from MH i2c: E2 FD 00 [14:58:38]MH_I2C_Read... [14:58:38]Read from MH i2c: E2 FD 00 8D 18 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 B1 [14:58:38]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [14:58:38]wFMCommunicate OK [14:58:38]wFMCommunicate request_size=4 [14:58:38]MH_SAM_APDU [14:58:38]CAPDU: 80 17 00 00 [14:58:38]Write to MH i2c: E2 08 00 8E 18 80 17 00 00 00 00 00 00 26 [14:58:38]Write i2c OK [14:58:38]MH_I2C_Read... [14:58:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [14:58:38]Read from MH i2c: E2 [14:58:38]MH_I2C_Read... [14:58:38]Read from MH i2c: E2 E2 00 [14:58:38]MH_I2C_Read... [14:58:38]Read from MH i2c: E2 E2 00 8E 18 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 04 [14:58:38]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [14:58:38]wFMCommunicate OK [14:58:38]SAM_PROTO_GetFMData done [14:58:38]requested_item fm.sale_refund.total is exist - process it [14:58:38]requested_item fm.buy.total is exist - process it [14:58:38]requested_item shift.sale.total is exist - process it [14:58:38]SAM_PROTO_GetShiftData [14:58:38]wFMCommunicate request_size=4 [14:58:38]MH_SAM_APDU [14:58:38]CAPDU: 80 13 02 00 [14:58:38]Write to MH i2c: E2 08 00 8F 18 80 13 02 00 00 00 00 00 25 [14:58:38]Write i2c OK [14:58:38]MH_I2C_Read... [14:58:39]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [14:58:39]Read from MH i2c: E2 [14:58:39]MH_I2C_Read... [14:58:39]Read from MH i2c: E2 FD 00 [14:58:39]MH_I2C_Read... [14:58:39]Read from MH i2c: E2 FD 00 8F 18 00 AE 04 AA 04 AA 04 6E 04 04 00 58 00 00 00 69 04 9B 00 6F 04 04 00 58 00 00 00 B1 04 03 00 88 13 2B 70 04 03 00 24 6C 1F 72 04 03 00 64 A7 0B 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 28 93 04 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 96 61 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 D7 [14:58:39]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 58 00 00 00 69 04 9B 00 6F 04 04 00 58 00 00 00 B1 04 03 00 88 13 2B 70 04 03 00 24 6C 1F 72 04 03 00 64 A7 0B 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 28 93 04 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 96 61 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [14:58:39]wFMCommunicate OK [14:58:39]wFMCommunicate request_size=4 [14:58:39]MH_SAM_APDU [14:58:39]CAPDU: 80 17 00 00 [14:58:39]Write to MH i2c: E2 08 00 90 18 80 17 00 00 00 00 00 00 28 [14:58:39]Write i2c OK [14:58:39]MH_I2C_Read... [14:58:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:58:39]Read from MH i2c: E2 [14:58:39]MH_I2C_Read... [14:58:39]Read from MH i2c: E2 FD 00 [14:58:39]MH_I2C_Read... [14:58:39]Read from MH i2c: E2 FD 00 90 18 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 4A [14:58:39]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [14:58:39]wFMCommunicate OK [14:58:39]wFMCommunicate request_size=4 [14:58:39]MH_SAM_APDU [14:58:39]CAPDU: 80 17 00 00 [14:58:39]Write to MH i2c: E2 08 00 91 18 80 17 00 00 00 00 00 00 29 [14:58:39]Write i2c OK [14:58:39]MH_I2C_Read... [14:58:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:58:39]Read from MH i2c: E2 [14:58:39]MH_I2C_Read... [14:58:39]Read from MH i2c: E2 FD 00 [14:58:39]MH_I2C_Read... [14:58:39]Read from MH i2c: E2 FD 00 91 18 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 E0 [14:58:39]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [14:58:39]wFMCommunicate OK [14:58:39]wFMCommunicate request_size=4 [14:58:39]MH_SAM_APDU [14:58:39]CAPDU: 80 17 00 00 [14:58:39]Write to MH i2c: E2 08 00 92 18 80 17 00 00 00 00 00 00 2A [14:58:39]Write i2c OK [14:58:39]MH_I2C_Read... [14:58:39]OFD Sender: No OFD packet to send [14:58:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:58:40]Read from MH i2c: E2 [14:58:40]MH_I2C_Read... [14:58:40]Read from MH i2c: E2 FD 00 [14:58:40]MH_I2C_Read... [14:58:40]Read from MH i2c: E2 FD 00 92 18 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 9C [14:58:40]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [14:58:40]wFMCommunicate OK [14:58:40]wFMCommunicate request_size=4 [14:58:40]MH_SAM_APDU [14:58:40]CAPDU: 80 17 00 00 [14:58:40]Write to MH i2c: E2 08 00 93 18 80 17 00 00 00 00 00 00 2B [14:58:40]Write i2c OK [14:58:40]MH_I2C_Read... [14:58:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [14:58:40]Read from MH i2c: E2 [14:58:40]MH_I2C_Read... [14:58:40]Read from MH i2c: E2 CB 00 [14:58:40]MH_I2C_Read... [14:58:40]Read from MH i2c: E2 CB 00 93 18 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 14 [14:58:40]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [14:58:40]wFMCommunicate OK [14:58:40]SAM_PROTO_GetShiftData done [14:58:40]requested_item shift.sale.total_cash is exist - process it [14:58:40]requested_item shift.sale_refund.total is exist - process it [14:58:40]requested_item shift.sale_refund.total_cash is exist - process it [14:58:40]requested_item shift.buy.total is exist - process it [14:58:40]requested_item shift.buy.total_cash is exist - process it [14:58:40]produce_requested_data done [14:58:40]produce_requested_data return {"fm.sale.total":19903960.21,"fm.sale_refund.total":585281.00,"fm.buy.total":0.00,"shift.sale.total":28230.48,"shift.sale.total_cash":20593.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} [14:58:40]process_action_free get_value [14:58:40]json_value_free [14:58:40]json_value_free done [14:58:40]process_json_proto returns [14:58:40]Send response to host [14:58:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":19903960.21,"fm.sale_refund.total":585281.00,"fm.buy.total":0.00,"shift.sale.total":28230.48,"shift.sale.total_cash":20593.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}}} [14:58:40]free response buf [14:58:40]execute_script done [14:58:40]execute_script returns [14:58:40]free content buf [14:58:40]Sock 7.Close socket [14:58:40]Sock 7.Thread stoped [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:58]accept exits with 9 [15:01:58]New connection [15:01:58]New thread 3067374948 created [15:01:58]Thread 3067518308 joined [15:01:58]Waiting for new connection... [15:01:58] Sock 9.Parse request [15:01:58]Sock 9.Check first char [15:01:58]Sock 9.First char is OK [15:01:58]request: POST /json_proto HTTP/1.0 [15:01:58]Method: POST [15:01:58]URL: /json_proto [15:01:58]Method is POST - this is cgi request [15:01:58]url: /json_proto [15:01:58]query_string will be loaded in cgi processing [15:01:58]execute_cgi json_proto POST (null) [15:01:58]execute_cgi path=json_proto method=POST [15:01:58]POST find Content-Length [15:01:58]Host: 172.17.60.69:8080 [15:01:58]Content-Length: 643 [15:01:58]Content-Type: application/json [15:01:58] [15:01:58]POST finish read [15:01:58]Found Content-Length = 643 [15:01:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73410", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 115.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:01:58]execute_script... [15:01:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73410", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 115.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:01:58]POST & json_proto [15:01:58]process_json_proto [15:01:58]json parsed OK: [15:01:58]protocol is kg_v1.0 [15:01:58]action value=close_receipt [15:01:58]process_action close_receipt [15:01:58]cmd_close_receipt [15:01:58]MH_GetDate [15:01:58]Write to MH i2c: F0 00 00 94 18 9B [15:01:58]Write i2c OK [15:01:58]MH_I2C_Read... [15:01:58]Read from MH i2c: F0 [15:01:58]MH_I2C_Read... [15:01:58]Read from MH i2c: F0 09 00 [15:01:58]MH_I2C_Read... [15:01:58]Read from MH i2c: F0 09 00 94 18 00 E9 DA 5D 66 6A 96 4A 66 DA [15:01:58]GetLastDocTimeStamp 1717426544 [15:01:58]current date 1717426921 [15:01:58]FM_GetShiftState [15:01:58]SAM_PROTO_GetShiftState [15:01:58]wFMCommunicate request_size=4 [15:01:58]MH_SAM_APDU [15:01:58]CAPDU: 80 13 01 00 [15:01:58]Write to MH i2c: E2 08 00 95 18 80 13 01 00 00 00 00 00 2A [15:01:58]Write i2c OK [15:01:58]MH_I2C_Read... [15:01:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:01:58]Read from MH i2c: E2 [15:01:58]MH_I2C_Read... [15:01:58]Read from MH i2c: E2 0E 00 [15:01:58]MH_I2C_Read... [15:01:58]Read from MH i2c: E2 0E 00 95 18 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 F6 [15:01:58]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [15:01:58]wFMCommunicate OK [15:01:58]SAM_PROTO_GetShiftState done [15:01:58]FM_GetShiftState done [15:01:58]opened in 1717373173 [15:01:58]opened+sec_in_day 1717459573 [15:01:58]quantity*price = 11500 [15:01:58]sum+1 = 11501 [15:01:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 115.00 НСП 1% : 1.02 НДС 12% : 12.21 Наличными: 115.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 89 03.06.2024 15:02 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63831 ФПД: 56749247309070 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T150201&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63831&fm=56749247309070&tin=02508201610067®Number=0000000000092737&sum=11500 0 [15:01:59]StoreToDocumentArchive [15:01:59]shift 373 fd 63831 [15:01:59]save to /storage/0373/doc_00063831 [15:01:59]save last doc name /storage/0373/doc_00063831 to /storage/kkm_last_doc_name [15:01:59]save OK [15:01:59]Clear old archive folders... [15:01:59]ProcessDocumentItem done err = 0, tmpTLVsize=280 [15:01:59]tlvbuf is B6F32710 [15:01:59]SAM_PROTO_ClearQueue [15:01:59]wFMCommunicate request_size=4 [15:01:59]MH_SAM_APDU [15:01:59]CAPDU: 80 09 00 00 [15:01:59]Write to MH i2c: E2 08 00 A2 18 80 09 00 00 00 00 00 00 2C [15:01:59]Write i2c OK [15:01:59]MH_I2C_Read... [15:01:59]Read from MH i2c: E2 [15:01:59]MH_I2C_Read... [15:01:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:01:59]Read from MH i2c: E2 03 00 [15:01:59]MH_I2C_Read... [15:01:59]Read from MH i2c: E2 03 00 A2 18 00 90 00 2E [15:01:59]RAPDU: 90 00 [15:01:59]wFMCommunicate OK [15:01:59]SAM_PROTO_ClearQueue done [15:01:59]KKMCreateOFDPacket [15:01:59]OFDProtocolAddRootSTLVToBuf [15:01:59]FM_MakeSignedData [15:01:59]FM_MakeSignedData [15:01:59]SAM_PROTO_SignData [15:01:59]wFMCommunicate request_size=4 [15:01:59]MH_SAM_APDU [15:01:59]CAPDU: 80 0D 01 02 [15:01:59]Write to MH i2c: E2 08 00 A3 18 80 0D 01 02 00 00 00 00 34 [15:01:59]Write i2c OK [15:01:59]MH_I2C_Read... [15:01:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:01:59]Read from MH i2c: E2 [15:01:59]MH_I2C_Read... [15:01:59]Read from MH i2c: E2 03 00 [15:01:59]MH_I2C_Read... [15:01:59]Read from MH i2c: E2 03 00 A3 18 00 90 00 2F [15:01:59]RAPDU: 90 00 [15:01:59]wFMCommunicate OK [15:01:59]wFMCommunicate request_size=255 [15:01:59]MH_SAM_APDU [15:01:59]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 E9 DA 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 [15:01:59]Write to MH i2c: E2 02 01 A4 18 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 E9 DA 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 00 00 CC [15:01:59]Write i2c OK [15:01:59]MH_I2C_Read... [15:01:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:01:59]Read from MH i2c: E2 [15:01:59]MH_I2C_Read... [15:01:59]Read from MH i2c: E2 03 00 [15:01:59]MH_I2C_Read... [15:01:59]Read from MH i2c: E2 03 00 A4 18 00 90 00 30 [15:01:59]RAPDU: 90 00 [15:01:59]wFMCommunicate OK [15:01:59]wFMCommunicate request_size=39 [15:01:59]MH_SAM_APDU [15:01:59]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 57 F9 00 00 35 04 06 00 33 9C F6 BA 25 0E [15:01:59]Write to MH i2c: E2 2A 00 A5 18 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 57 F9 00 00 35 04 06 00 33 9C F6 BA 25 0E 00 00 F3 [15:01:59]Write i2c OK [15:01:59]MH_I2C_Read... [15:01:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:01:59]Read from MH i2c: E2 [15:01:59]MH_I2C_Read... [15:01:59]Read from MH i2c: E2 03 00 [15:01:59]MH_I2C_Read... [15:01:59]Read from MH i2c: E2 03 00 A5 18 00 90 00 31 [15:01:59]RAPDU: 90 00 [15:01:59]wFMCommunicate OK [15:01:59]wFMCommunicate request_size=4 [15:01:59]MH_SAM_APDU [15:01:59]CAPDU: 80 0D 03 02 [15:01:59]Write to MH i2c: E2 08 00 A6 18 80 0D 03 02 00 00 00 00 39 [15:01:59]Write i2c OK [15:01:59]MH_I2C_Read... [15:01:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:01:59]Read from MH i2c: E2 [15:01:59]MH_I2C_Read... [15:01:59]Read from MH i2c: E2 0B 00 [15:01:59]MH_I2C_Read... [15:01:59]Read from MH i2c: E2 0B 00 A6 18 00 2B AB 3A BC 3E 02 1E E4 90 00 48 [15:01:59]RAPDU: 2B AB 3A BC 3E 02 1E E4 90 00 [15:01:59]wFMCommunicate OK [15:01:59]SAM_PROTO_SignData done [15:01:59]FM_MakeSignedData done [15:01:59]CreateOFDProtocolMessage [15:01:59]wFMCommunicate request_size=4 [15:01:59]MH_SAM_APDU [15:01:59]CAPDU: 80 11 00 00 [15:01:59]Write to MH i2c: E2 08 00 A7 18 80 11 00 00 00 00 00 00 39 [15:01:59]Write i2c OK [15:01:59]MH_I2C_Read... [15:01:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:01:59]Read from MH i2c: E2 [15:01:59]MH_I2C_Read... [15:01:59]Read from MH i2c: E2 17 00 [15:01:59]MH_I2C_Read... [15:01:59]Read from MH i2c: E2 17 00 A7 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 8B [15:01:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [15:01:59]wFMCommunicate OK [15:01:59]CreateOFDProtocolMessage done [15:01:59]OFDSenderStorePacket 63831 [15:01:59]StoreOFDPacket docnum=63831 [15:01:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 2C 01 00 00 F7 99 24 01 EC 56 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 E9 DA 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 57 F9 00 00 35 04 06 00 33 9C F6 BA 25 0E 2B AB 3A BC 3E 02 1E E4 [15:01:59]CheckFolder [15:01:59]dirname=/storage/ofd_packets [15:01:59]CheckFolder done [15:01:59]ProducePacketName [15:01:59]name=ofd_packets/00063831 [15:01:59]NVStorageSaveData ofd_packets/00063831 [15:01:59]File name is /storage/ofd_packets/00063831 [15:01:59]Write 330 bytes [15:01:59]NVStorageSaveData done [15:01:59]OFDSenderStorePacket done [15:01:59]KKMCreateOFDPacket done [15:01:59]NVStorageSaveData kkm_last_timestamp [15:01:59]File name is /storage/kkm_last_timestamp [15:01:59]Write 4 bytes [15:01:59]NVStorageSaveData done [15:01:59]ExternCall_PrintAddStr [15:01:59]wPrintStart [15:01:59]Write to MH i2c: 01 00 00 A8 18 C0 [15:01:59]Write i2c OK [15:01:59]MH_I2C_Read... [15:01:59]Read from MH i2c: 01 [15:01:59]MH_I2C_Read... [15:01:59]Read from MH i2c: 01 07 00 [15:01:59]MH_I2C_Read... [15:01:59]Read from MH i2c: 01 07 00 A8 18 00 00 00 00 00 FF 0F D5 [15:01:59]RasterBufferAndPrint [15:01:59]line Счет N : (3)73410 [15:01:59]line ИНН: 02508201610067 [15:01:59]line Контрольно-Кассовый Чек [15:01:59]line ПРОДАЖА [15:01:59]line Товар: 2000036210013 [15:01:59]line Кофе Капучино (GABB TRADE) [15:01:59]line 1.000 * 115.00 [15:01:59]line = 115.00 [15:01:59]line НДС 12% НСП 1% [15:01:59]line > о реализуемом товаре [15:01:59]line ИТОГО: 115.00 [15:01:59]line НСП 1% : 1.02 [15:01:59]line НДС 12% : 12.21 [15:01:59]line Наличными: 115.00 [15:01:59]line Безнал.: 0.00 [15:01:59]line Место: АЗС № 117 "Партнер Нефть" [15:01:59]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [15:01:59]line СНО: Общий режим [15:01:59]line Чек 89 03.06.2024 15:02 [15:01:59]line Смена: 373 ФФД: 1.0 [15:01:59]line ЗНМ: 0300000031 [15:01:59]line РНМ: 0000000000092737 [15:01:59]line Версия ККМ: 001 [15:01:59]line ФМ: 0000000000875074 [15:01:59]line ФД: 63831 [15:01:59]line ФПД: 56749247309070 [15:02:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T150201&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63831&fm=56749247309070&tin=02508201610067®Number=0000000000092737&sum=11500 [15:02:00]line 0 [15:02:00]OFD Sender: Processing packet 63831 [packets to send 14, broken 13] [15:02:00]ProducePacketName [15:02:00]name=ofd_packets/00063831 [15:02:00]OFD Sender: To server: pG, [15:02:00]CommunicateWithHost lk.salyk.kg:30040 [15:02:00]ConnectInit lk.salyk.kg [15:02:00]written 0, free lines is 4095 [15:02:00]Connected sock=10 [15:02:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 2C 01 00 00 F7 99 24 01 EC 56 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 E9 DA 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 57 F9 00 00 35 04 06 00 33 9C F6 BA 25 0E 2B AB 3A BC 3E 02 1E E4 [15:02:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 F2 86 47 00 9D 4F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 57 F9 00 00 F4 03 04 00 BA 86 5D 66 B6 04 01 00 00 74 F0 B1 E1 45 43 85 19 [15:02:00]CommunicateWithHost err = 0 [15:02:00]CheckOFDResponse [15:02:00]1017 (14) - 77093643461234 [15:02:00]1041 (16) - 0000000000875074 [15:02:00]1040 (4) - 63831 [15:02:00]1012 (4) - 03.06.2024 09:02 [15:02:00]1206 (1) - 0 [15:02:00]OFD Sender: Remove packet 63831 [15:02:00]ProducePacketName [15:02:00]name=ofd_packets/00063831 [15:02:00]NVStorageDeleteData [15:02:00]Write to MH i2c: 01 00 00 D0 18 E8 [15:02:00]Write i2c OK [15:02:00]MH_I2C_Read... [15:02:00]Read from MH i2c: 01 [15:02:00]MH_I2C_Read... [15:02:00]Read from MH i2c: 01 07 00 [15:02:00]MH_I2C_Read... [15:02:00]Read from MH i2c: 01 07 00 D0 18 00 00 00 00 00 03 0D FF [15:02:00]RasterBufferAndPrint [15:02:00]line [15:02:00]line [15:02:00]line [15:02:00]line [15:02:00]line [15:02:00]written 0, free lines is 3337 [15:02:00]MH_Cut [15:02:00]Write to MH i2c: D1 01 00 D7 18 01 C1 [15:02:00]Write i2c OK [15:02:00]MH_I2C_Read... [15:02:00]Read from MH i2c: D1 [15:02:00]MH_I2C_Read... [15:02:00]Read from MH i2c: D1 01 00 [15:02:00]MH_I2C_Read... [15:02:00]Read from MH i2c: D1 01 00 D7 18 00 C0 [15:02:00]Write to MH i2c: 01 00 00 D8 18 F0 [15:02:00]Write i2c OK [15:02:00]MH_I2C_Read... [15:02:01]OFD Sender: No OFD packet to send [15:02:01]*** Cut start [15:02:01]*** Partial cut [15:02:01]*** CUTSNS_PIN = 1 [15:02:01]*** CUTSNS_PIN = 0 [15:02:01]*** Brake cut motor [15:02:02]Read from MH i2c: 01 [15:02:02]MH_I2C_Read... [15:02:02]*** Stop cut motor [15:02:02]*** Cut end [15:02:02]Read from MH i2c: 01 07 00 [15:02:02]MH_I2C_Read... [15:02:02]Read from MH i2c: 01 07 00 D8 18 00 00 00 00 00 FF 0F 05 [15:02:02]process_action close_receipt done [15:02:02]requested_data is exist [15:02:02]produce_requested_data [15:02:02]requested_item fm.sn is exist - process it [15:02:02]wFMCommunicate request_size=4 [15:02:02]MH_SAM_APDU [15:02:02]CAPDU: 80 11 00 00 [15:02:02]Write to MH i2c: E2 08 00 D9 18 80 11 00 00 00 00 00 00 6B [15:02:02]Write i2c OK [15:02:02]MH_I2C_Read... [15:02:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:02:02]Read from MH i2c: E2 [15:02:02]MH_I2C_Read... [15:02:02]Read from MH i2c: E2 17 00 [15:02:02]MH_I2C_Read... [15:02:02]Read from MH i2c: E2 17 00 D9 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 BD [15:02:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [15:02:02]wFMCommunicate OK [15:02:02]requested_item fd.num is exist - process it [15:02:02]SAM_PROTO_GetFieldsCounters [15:02:02]wFMCommunicate request_size=4 [15:02:02]MH_SAM_APDU [15:02:02]CAPDU: 80 13 00 00 [15:02:02]Write to MH i2c: E2 08 00 DA 18 80 13 00 00 00 00 00 00 6E [15:02:02]Write i2c OK [15:02:02]MH_I2C_Read... [15:02:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:02:02]Read from MH i2c: E2 [15:02:02]MH_I2C_Read... [15:02:02]Read from MH i2c: E2 62 00 [15:02:02]MH_I2C_Read... [15:02:02]Read from MH i2c: E2 62 00 DA 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 57 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 62 [15:02: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 57 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:02:02]wFMCommunicate OK [15:02:02]SAM_PROTO_GetFieldsCounters done [15:02:02]requested_item shift.num is exist - process it [15:02:02]requested_item shift.opened is exist - process it [15:02:02]req_shift_opened [15:02:02]FM_GetShiftState [15:02:02]SAM_PROTO_GetShiftState [15:02:02]wFMCommunicate request_size=4 [15:02:02]MH_SAM_APDU [15:02:02]CAPDU: 80 13 01 00 [15:02:02]Write to MH i2c: E2 08 00 DB 18 80 13 01 00 00 00 00 00 70 [15:02:02]Write i2c OK [15:02:02]MH_I2C_Read... [15:02:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:02:02]Read from MH i2c: E2 [15:02:02]MH_I2C_Read... [15:02:02]Read from MH i2c: E2 0E 00 [15:02:02]MH_I2C_Read... [15:02:02]Read from MH i2c: E2 0E 00 DB 18 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 3C [15:02:02]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [15:02:02]wFMCommunicate OK [15:02:02]SAM_PROTO_GetShiftState done [15:02:02]FM_GetShiftState done [15:02:02]req_shift_opened done [15:02:02]requested_item shift.open_date is exist - process it [15:02:02]req_shift_open_date [15:02:02]req_shift_open_date done [15:02:02]produce_requested_data done [15:02:02]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63831,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [15:02:02]process_action_free close_receipt [15:02:02]json_value_free [15:02:02]json_value_free done [15:02:02]process_json_proto returns [15:02:02]Send response to host [15:02:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63831,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [15:02:02]free response buf [15:02:02]execute_script done [15:02:02]execute_script returns [15:02:02]free content buf [15:02:02]Sock 9.Close socket [15:02:02]Sock 9.Thread stoped [15:02:06]OFD Sender: No OFD packet to send [15:02:11]OFD Sender: No OFD packet to send [15:02:16]OFD Sender: No OFD packet to send [15:02:21]OFD Sender: No OFD packet to send [15:02:26]OFD Sender: No OFD packet to send [15:02:31]OFD Sender: No OFD packet to send [15:02:36]OFD Sender: No OFD packet to send [15:02:41]OFD Sender: No OFD packet to send [15:02:46]OFD Sender: No OFD packet to send [15:02:51]OFD Sender: No OFD packet to send [15:02:56]OFD Sender: No OFD packet to send [15:03:01]OFD Sender: No OFD packet to send [15:03:06]OFD Sender: No OFD packet to send [15:03:11]OFD Sender: No OFD packet to send [15:03:16]OFD Sender: No OFD packet to send [15:03:21]OFD Sender: No OFD packet to send [15:03:26]OFD Sender: No OFD packet to send [15:03:31]OFD Sender: No OFD packet to send [15:03:36]OFD Sender: No OFD packet to send [15:03:41]OFD Sender: No OFD packet to send [15:03:46]OFD Sender: No OFD packet to send [15:03:51]OFD Sender: No OFD packet to send [15:03:56]OFD Sender: No OFD packet to send [15:04:01]OFD Sender: No OFD packet to send [15:04:06]OFD Sender: No OFD packet to send [15:04:10]accept exits with 7 [15:04:10]New connection [15:04:10]New thread 3067518308 created [15:04:10]Thread 3067374948 joined [15:04:10]Waiting for new connection... [15:04:10] Sock 7.Parse request [15:04:10]Sock 7.Check first char [15:04:10]Sock 7.First char is OK [15:04:10]request: POST /json_proto HTTP/1.0 [15:04:10]Method: POST [15:04:10]URL: /json_proto [15:04:10]Method is POST - this is cgi request [15:04:10]url: /json_proto [15:04:10]query_string will be loaded in cgi processing [15:04:10]execute_cgi json_proto POST (null) [15:04:10]execute_cgi path=json_proto method=POST [15:04:10]POST find Content-Length [15:04:10]Host: 172.17.60.69:8080 [15:04:10]Content-Length: 678 [15:04:10]Content-Type: application/json [15:04:10] [15:04:10]POST finish read [15:04:10]Found Content-Length = 678 [15:04:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543815", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.020, "sum" : 670.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 670.00, "total" : 670.00, "payments": [ { "type": 0, "sum" : 670.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:04:10]execute_script... [15:04: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)543815", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.020, "sum" : 670.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 670.00, "total" : 670.00, "payments": [ { "type": 0, "sum" : 670.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:04:10]POST & json_proto [15:04:10]process_json_proto [15:04:10]json parsed OK: [15:04:10]protocol is kg_v1.0 [15:04:10]action value=close_receipt [15:04:10]process_action close_receipt [15:04:10]cmd_close_receipt [15:04:10]MH_GetDate [15:04:10]Write to MH i2c: F0 00 00 DC 18 E3 [15:04:10]Write i2c OK [15:04:10]MH_I2C_Read... [15:04:10]Read from MH i2c: F0 [15:04:10]MH_I2C_Read... [15:04:10]Read from MH i2c: F0 09 00 [15:04:10]MH_I2C_Read... [15:04:10]Read from MH i2c: F0 09 00 DC 18 00 6D DB 5D 66 6A 96 4A 66 A7 [15:04:10]GetLastDocTimeStamp 1717426921 [15:04:10]current date 1717427053 [15:04:10]FM_GetShiftState [15:04:10]SAM_PROTO_GetShiftState [15:04:10]wFMCommunicate request_size=4 [15:04:10]MH_SAM_APDU [15:04:10]CAPDU: 80 13 01 00 [15:04:10]Write to MH i2c: E2 08 00 DD 18 80 13 01 00 00 00 00 00 72 [15:04:10]Write i2c OK [15:04:10]MH_I2C_Read... [15:04:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:04:10]Read from MH i2c: E2 [15:04:10]MH_I2C_Read... [15:04:10]Read from MH i2c: E2 0E 00 [15:04:10]MH_I2C_Read... [15:04:10]Read from MH i2c: E2 0E 00 DD 18 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 3E [15:04:10]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [15:04:10]wFMCommunicate OK [15:04:10]SAM_PROTO_GetShiftState done [15:04:10]FM_GetShiftState done [15:04:10]opened in 1717373173 [15:04:10]opened+sec_in_day 1717459573 [15:04:10]quantity*price = 67033 [15:04:10]sum+1 = 67035 [15:04:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.34 ИТОГО: 670.00 Внесено: 670.00 СДАЧА: 0.00 НСП 1% : 5.93 НДС 12% : 71.19 Наличными: 670.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 90 03.06.2024 15:04 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63832 ФПД: 75413490482807 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T150413&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63832&fm=75413490482807&tin=02508201610067®Number=0000000000092737&sum=67000 [15:04:11]StoreToDocumentArchive [15:04:11]shift 373 fd 63832 [15:04:11]save to /storage/0373/doc_00063832 [15:04:11]save last doc name /storage/0373/doc_00063832 to /storage/kkm_last_doc_name [15:04:11]save OK [15:04:11]Clear old archive folders... [15:04:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:04:11]tlvbuf is 00D3D1E0 [15:04:11]SAM_PROTO_ClearQueue [15:04:11]wFMCommunicate request_size=4 [15:04:11]MH_SAM_APDU [15:04:11]CAPDU: 80 09 00 00 [15:04:11]Write to MH i2c: E2 08 00 EA 18 80 09 00 00 00 00 00 00 74 [15:04:11]Write i2c OK [15:04:11]MH_I2C_Read... [15:04:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:04:11]Read from MH i2c: E2 [15:04:11]MH_I2C_Read... [15:04:11]Read from MH i2c: E2 03 00 [15:04:11]MH_I2C_Read... [15:04:11]Read from MH i2c: E2 03 00 EA 18 00 90 00 76 [15:04:11]RAPDU: 90 00 [15:04:11]wFMCommunicate OK [15:04:11]SAM_PROTO_ClearQueue done [15:04:11]KKMCreateOFDPacket [15:04:11]OFDProtocolAddRootSTLVToBuf [15:04:11]FM_MakeSignedData [15:04:11]FM_MakeSignedData [15:04:11]SAM_PROTO_SignData [15:04:11]wFMCommunicate request_size=4 [15:04:11]MH_SAM_APDU [15:04:11]CAPDU: 80 0D 01 02 [15:04:11]Write to MH i2c: E2 08 00 EB 18 80 0D 01 02 00 00 00 00 7C [15:04:11]Write i2c OK [15:04:11]MH_I2C_Read... [15:04:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:04:11]Read from MH i2c: E2 [15:04:11]MH_I2C_Read... [15:04:11]Read from MH i2c: E2 03 00 [15:04:11]MH_I2C_Read... [15:04:11]Read from MH i2c: E2 03 00 EB 18 00 90 00 77 [15:04:11]RAPDU: 90 00 [15:04:11]wFMCommunicate OK [15:04:11]wFMCommunicate request_size=255 [15:04:11]MH_SAM_APDU [15:04:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 DA 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 6D DB 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 58 F9 00 00 35 04 06 00 44 [15:04:11]Write to MH i2c: E2 02 01 EC 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 35 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 DA 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 6D DB 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 58 F9 00 00 35 04 06 00 44 00 00 18 [15:04:11]Write i2c OK [15:04:11]MH_I2C_Read... [15:04:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:04:11]Read from MH i2c: E2 [15:04:11]MH_I2C_Read... [15:04:11]Read from MH i2c: E2 03 00 [15:04:11]MH_I2C_Read... [15:04:11]Read from MH i2c: E2 03 00 EC 18 00 90 00 78 [15:04:11]RAPDU: 90 00 [15:04:11]wFMCommunicate OK [15:04:11]wFMCommunicate request_size=10 [15:04:11]MH_SAM_APDU [15:04:11]CAPDU: 80 0D 02 02 05 96 92 4F BE 77 [15:04:11]Write to MH i2c: E2 0D 00 ED 18 80 0D 02 02 05 00 96 92 4F BE 77 00 00 35 [15:04:11]Write i2c OK [15:04:11]MH_I2C_Read... [15:04:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:04:11]Read from MH i2c: E2 [15:04:11]MH_I2C_Read... [15:04:11]Read from MH i2c: E2 03 00 [15:04:11]MH_I2C_Read... [15:04:11]Read from MH i2c: E2 03 00 ED 18 00 90 00 79 [15:04:11]RAPDU: 90 00 [15:04:11]wFMCommunicate OK [15:04:11]wFMCommunicate request_size=4 [15:04:11]MH_SAM_APDU [15:04:11]CAPDU: 80 0D 03 02 [15:04:11]Write to MH i2c: E2 08 00 EE 18 80 0D 03 02 00 00 00 00 81 [15:04:11]Write i2c OK [15:04:11]MH_I2C_Read... [15:04:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:04:11]Read from MH i2c: E2 [15:04:11]MH_I2C_Read... [15:04:11]Read from MH i2c: E2 0B 00 [15:04:11]MH_I2C_Read... [15:04:11]Read from MH i2c: E2 0B 00 EE 18 00 4B 5E 70 02 AA 44 AF 8E 90 00 C8 [15:04:11]RAPDU: 4B 5E 70 02 AA 44 AF 8E 90 00 [15:04:11]wFMCommunicate OK [15:04:11]SAM_PROTO_SignData done [15:04:11]FM_MakeSignedData done [15:04:11]CreateOFDProtocolMessage [15:04:11]wFMCommunicate request_size=4 [15:04:11]MH_SAM_APDU [15:04:11]CAPDU: 80 11 00 00 [15:04:11]Write to MH i2c: E2 08 00 EF 18 80 11 00 00 00 00 00 00 81 [15:04:11]Write i2c OK [15:04:11]MH_I2C_Read... [15:04:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:04:12]Read from MH i2c: E2 [15:04:12]MH_I2C_Read... [15:04:12]Read from MH i2c: E2 17 00 [15:04:12]MH_I2C_Read... [15:04:12]Read from MH i2c: E2 17 00 EF 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 D3 [15:04:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [15:04:12]wFMCommunicate OK [15:04:12]CreateOFDProtocolMessage done [15:04:12]OFDSenderStorePacket 63832 [15:04:12]StoreOFDPacket docnum=63832 [15:04:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0F 01 00 00 02 EC 07 01 E7 3C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 DA 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 6D DB 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 58 F9 00 00 35 04 06 00 44 96 92 4F BE 77 4B 5E 70 02 AA 44 AF 8E [15:04:12]CheckFolder [15:04:12]dirname=/storage/ofd_packets [15:04:12]CheckFolder done [15:04:12]ProducePacketName [15:04:12]name=ofd_packets/00063832 [15:04:12]NVStorageSaveData ofd_packets/00063832 [15:04:12]File name is /storage/ofd_packets/00063832 [15:04:12]Write 301 bytes [15:04:12]NVStorageSaveData done [15:04:12]OFDSenderStorePacket done [15:04:12]KKMCreateOFDPacket done [15:04:12]NVStorageSaveData kkm_last_timestamp [15:04:12]File name is /storage/kkm_last_timestamp [15:04:12]Write 4 bytes [15:04:12]NVStorageSaveData done [15:04:12]ExternCall_PrintAddStr [15:04:12]wPrintStart [15:04:12]Write to MH i2c: 01 00 00 F0 18 08 [15:04:12]Write i2c OK [15:04:12]MH_I2C_Read... [15:04:12]Read from MH i2c: 01 [15:04:12]MH_I2C_Read... [15:04:12]Read from MH i2c: 01 07 00 [15:04:12]MH_I2C_Read... [15:04:12]Read from MH i2c: 01 07 00 F0 18 00 00 00 00 00 FF 0F 1D [15:04:12]RasterBufferAndPrint [15:04:12]line Счет N : (1)543815 [15:04:12]line ИНН: 02508201610067 [15:04:12]line Контрольно-Кассовый Чек [15:04:12]line ПРОДАЖА [15:04:12]line ТРК (МРК, ГНК) : 12 [15:04:12]line Товар: 2710124130 [15:04:12]line Аи-92-К-5 [15:04:12]line 10.020 * 66.90 [15:04:12]line = 670.34 [15:04:12]line НДС 12% НСП 1% [15:04:12]line > о реализуемом товаре [15:04:12]line ОКРУГЛЕНИЕ: -0.34 [15:04:12]line ИТОГО: 670.00 [15:04:12]line Внесено: 670.00 [15:04:12]line СДАЧА: 0.00 [15:04:12]line НСП 1% : 5.93 [15:04:12]line НДС 12% : 71.19 [15:04:12]line Наличными: 670.00 [15:04:12]line Безнал.: 0.00 [15:04:12]line Место: АЗС № 117 "Партнер Нефть" [15:04:12]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [15:04:12]line СНО: Общий режим [15:04:12]line Чек 90 03.06.2024 15:04 [15:04:12]line Смена: 373 ФФД: 1.0 [15:04:12]line ЗНМ: 0300000031 [15:04:12]line РНМ: 0000000000092737 [15:04:12]line Версия ККМ: 001 [15:04:12]line ФМ: 0000000000875074 [15:04:12]line ФД: 63832 [15:04:12]line ФПД: 75413490482807 [15:04:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T150413&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63832&fm=75413490482807&tin=02508201610067®Number=0000000000092737&sum=67000 [15:04:12]OFD Sender: Processing packet 63832 [packets to send 14, broken 13] [15:04:12]ProducePacketName [15:04:12]name=ofd_packets/00063832 [15:04:12]OFD Sender: To server: pG, [15:04:12]CommunicateWithHost lk.salyk.kg:30040 [15:04:12]ConnectInit lk.salyk.kg [15:04:12]written 0, free lines is 4095 [15:04:12]Connected sock=10 [15:04:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0F 01 00 00 02 EC 07 01 E7 3C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 DA 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 6D DB 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 58 F9 00 00 35 04 06 00 44 96 92 4F BE 77 4B 5E 70 02 AA 44 AF 8E [15:04:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 1D 84 47 00 DD 2A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 58 F9 00 00 F4 03 04 00 3E 87 5D 66 B6 04 01 00 00 B9 AA DD E3 12 D6 5C 25 [15:04:12]CommunicateWithHost err = 0 [15:04:12]CheckOFDResponse [15:04:12]1017 (14) - 77093643461234 [15:04:12]1041 (16) - 0000000000875074 [15:04:12]1040 (4) - 63832 [15:04:12]1012 (4) - 03.06.2024 09:05 [15:04:12]1206 (1) - 0 [15:04:12]OFD Sender: Remove packet 63832 [15:04:12]ProducePacketName [15:04:12]name=ofd_packets/00063832 [15:04:12]NVStorageDeleteData [15:04:12]Write to MH i2c: 01 00 00 1B 19 34 [15:04:12]Write i2c OK [15:04:12]MH_I2C_Read... [15:04:12]Read from MH i2c: 01 [15:04:12]MH_I2C_Read... [15:04:12]Read from MH i2c: 01 07 00 [15:04:12]MH_I2C_Read... [15:04:12]Read from MH i2c: 01 07 00 1B 19 00 00 00 00 00 D1 0C 18 [15:04:12]RasterBufferAndPrint [15:04:12]line [15:04:12]line [15:04:12]line [15:04:12]line [15:04:12]line [15:04:12]written 0, free lines is 3289 [15:04:12]MH_Cut [15:04:12]Write to MH i2c: D1 01 00 22 19 01 0D [15:04:12]Write i2c OK [15:04:12]MH_I2C_Read... [15:04:12]Read from MH i2c: D1 [15:04:12]MH_I2C_Read... [15:04:12]Read from MH i2c: D1 01 00 [15:04:12]MH_I2C_Read... [15:04:12]Read from MH i2c: D1 01 00 22 19 00 0C [15:04:12]Write to MH i2c: 01 00 00 23 19 3C [15:04:12]Write i2c OK [15:04:12]MH_I2C_Read... [15:04:13]OFD Sender: No OFD packet to send [15:04:13]*** Cut start [15:04:13]*** Partial cut [15:04:13]*** CUTSNS_PIN = 1 [15:04:13]*** CUTSNS_PIN = 0 [15:04:13]*** Brake cut motor [15:04:14]Read from MH i2c: 01 [15:04:14]MH_I2C_Read... [15:04:14]*** Stop cut motor [15:04:14]*** Cut end [15:04:14]Read from MH i2c: 01 07 00 [15:04:14]MH_I2C_Read... [15:04:14]Read from MH i2c: 01 07 00 23 19 00 00 00 00 00 FF 0F 51 [15:04:14]process_action close_receipt done [15:04:14]requested_data is exist [15:04:14]produce_requested_data [15:04:14]requested_item fm.sn is exist - process it [15:04:14]wFMCommunicate request_size=4 [15:04:14]MH_SAM_APDU [15:04:14]CAPDU: 80 11 00 00 [15:04:14]Write to MH i2c: E2 08 00 24 19 80 11 00 00 00 00 00 00 B7 [15:04:14]Write i2c OK [15:04:14]MH_I2C_Read... [15:04:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:04:14]Read from MH i2c: E2 [15:04:14]MH_I2C_Read... [15:04:14]Read from MH i2c: E2 17 00 [15:04:14]MH_I2C_Read... [15:04:14]Read from MH i2c: E2 17 00 24 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 09 [15:04:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [15:04:14]wFMCommunicate OK [15:04:14]requested_item fd.num is exist - process it [15:04:14]SAM_PROTO_GetFieldsCounters [15:04:14]wFMCommunicate request_size=4 [15:04:14]MH_SAM_APDU [15:04:14]CAPDU: 80 13 00 00 [15:04:14]Write to MH i2c: E2 08 00 25 19 80 13 00 00 00 00 00 00 BA [15:04:14]Write i2c OK [15:04:14]MH_I2C_Read... [15:04:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:04:14]Read from MH i2c: E2 [15:04:14]MH_I2C_Read... [15:04:14]Read from MH i2c: E2 62 00 [15:04:14]MH_I2C_Read... [15:04:14]Read from MH i2c: E2 62 00 25 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 58 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 B2 [15:04:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 58 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:04:14]wFMCommunicate OK [15:04:14]SAM_PROTO_GetFieldsCounters done [15:04:14]requested_item shift.num is exist - process it [15:04:14]requested_item shift.opened is exist - process it [15:04:14]req_shift_opened [15:04:14]FM_GetShiftState [15:04:14]SAM_PROTO_GetShiftState [15:04:14]wFMCommunicate request_size=4 [15:04:14]MH_SAM_APDU [15:04:14]CAPDU: 80 13 01 00 [15:04:14]Write to MH i2c: E2 08 00 26 19 80 13 01 00 00 00 00 00 BC [15:04:14]Write i2c OK [15:04:14]MH_I2C_Read... [15:04:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:04:14]Read from MH i2c: E2 [15:04:14]MH_I2C_Read... [15:04:14]Read from MH i2c: E2 0E 00 [15:04:14]MH_I2C_Read... [15:04:14]Read from MH i2c: E2 0E 00 26 19 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 88 [15:04:14]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [15:04:14]wFMCommunicate OK [15:04:14]SAM_PROTO_GetShiftState done [15:04:14]FM_GetShiftState done [15:04:14]req_shift_opened done [15:04:14]requested_item shift.open_date is exist - process it [15:04:14]req_shift_open_date [15:04:14]req_shift_open_date done [15:04:14]produce_requested_data done [15:04:14]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63832,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [15:04:14]process_action_free close_receipt [15:04:14]json_value_free [15:04:14]json_value_free done [15:04:14]process_json_proto returns [15:04:14]Send response to host [15:04:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63832,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [15:04:14]free response buf [15:04:14]execute_script done [15:04:14]execute_script returns [15:04:14]free content buf [15:04:14]Sock 7.Close socket [15:04:14]Sock 7.Thread stoped [15:04:18]OFD Sender: No OFD packet to send [15:04:23]OFD Sender: No OFD packet to send [15:04:28]OFD Sender: No OFD packet to send [15:04:33]OFD Sender: No OFD packet to send [15:04:38]OFD Sender: No OFD packet to send [15:04:43]OFD Sender: No OFD packet to send [15:04:48]OFD Sender: No OFD packet to send [15:04:53]OFD Sender: No OFD packet to send [15:04:58]OFD Sender: No OFD packet to send [15:05:03]OFD Sender: No OFD packet to send [15:05:08]OFD Sender: No OFD packet to send [15:05:13]OFD Sender: No OFD packet to send [15:05:18]OFD Sender: No OFD packet to send [15:05:23]OFD Sender: No OFD packet to send [15:05:26]accept exits with 9 [15:05:26]New connection [15:05:26]New thread 3067374948 created [15:05:26]Thread 3067518308 joined [15:05:26]Waiting for new connection... [15:05:26] Sock 9.Parse request [15:05:26]Sock 9.Check first char [15:05:26]Sock 9.First char is OK [15:05:26]request: POST /json_proto HTTP/1.0 [15:05:26]Method: POST [15:05:26]URL: /json_proto [15:05:26]Method is POST - this is cgi request [15:05:26]url: /json_proto [15:05:26]query_string will be loaded in cgi processing [15:05:26]execute_cgi json_proto POST (null) [15:05:26]execute_cgi path=json_proto method=POST [15:05:26]POST find Content-Length [15:05:26]Host: 172.17.60.69:8080 [15:05:26]Content-Length: 625 [15:05:26]Content-Type: application/json [15:05:26] [15:05:26]POST finish read [15:05:26]Found Content-Length = 625 [15:05:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73411", "tax_sys" : 0, "items" : [ { "code": "2000036240010", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 115.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:05:26]execute_script... [15:05:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73411", "tax_sys" : 0, "items" : [ { "code": "2000036240010", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 115.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:05:26]POST & json_proto [15:05:26]process_json_proto [15:05:26]json parsed OK: [15:05:26]protocol is kg_v1.0 [15:05:26]action value=close_receipt [15:05:26]process_action close_receipt [15:05:26]cmd_close_receipt [15:05:26]MH_GetDate [15:05:26]Write to MH i2c: F0 00 00 27 19 2F [15:05:26]Write i2c OK [15:05:26]MH_I2C_Read... [15:05:26]Read from MH i2c: F0 [15:05:26]MH_I2C_Read... [15:05:26]Read from MH i2c: F0 09 00 [15:05:26]MH_I2C_Read... [15:05:26]Read from MH i2c: F0 09 00 27 19 00 B8 DB 5D 66 6A 96 4A 66 3E [15:05:26]GetLastDocTimeStamp 1717427053 [15:05:26]current date 1717427128 [15:05:26]FM_GetShiftState [15:05:26]SAM_PROTO_GetShiftState [15:05:26]wFMCommunicate request_size=4 [15:05:26]MH_SAM_APDU [15:05:26]CAPDU: 80 13 01 00 [15:05:26]Write to MH i2c: E2 08 00 28 19 80 13 01 00 00 00 00 00 BE [15:05:26]Write i2c OK [15:05:26]MH_I2C_Read... [15:05:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:05:26]Read from MH i2c: E2 [15:05:26]MH_I2C_Read... [15:05:26]Read from MH i2c: E2 0E 00 [15:05:26]MH_I2C_Read... [15:05:26]Read from MH i2c: E2 0E 00 28 19 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 8A [15:05:26]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [15:05:26]wFMCommunicate OK [15:05:26]SAM_PROTO_GetShiftState done [15:05:26]FM_GetShiftState done [15:05:26]opened in 1717373173 [15:05:26]opened+sec_in_day 1717459573 [15:05:26]quantity*price = 11500 [15:05:26]sum+1 = 11501 [15:05:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 115.00 НСП 1% : 1.02 НДС 12% : 12.21 Наличными: 115.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 91 03.06.2024 15:05 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63833 ФПД: 273121901416110 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T150529&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63833&fm=273121901416110&tin=02508201610067®Number=0000000000092737&sum=11500 0 [15:05:27]StoreToDocumentArchive [15:05:27]shift 373 fd 63833 [15:05:27]save to /storage/0373/doc_00063833 [15:05:27]save last doc name /storage/0373/doc_00063833 to /storage/kkm_last_doc_name [15:05:27]save OK [15:05:27]Clear old archive folders... [15:05:27]ProcessDocumentItem done err = 0, tmpTLVsize=274 [15:05:27]tlvbuf is B6FE24D0 [15:05:27]SAM_PROTO_ClearQueue [15:05:27]wFMCommunicate request_size=4 [15:05:27]MH_SAM_APDU [15:05:27]CAPDU: 80 09 00 00 [15:05:27]Write to MH i2c: E2 08 00 35 19 80 09 00 00 00 00 00 00 C0 [15:05:27]Write i2c OK [15:05:27]MH_I2C_Read... [15:05:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:05:27]Read from MH i2c: E2 [15:05:27]MH_I2C_Read... [15:05:27]Read from MH i2c: E2 03 00 [15:05:27]MH_I2C_Read... [15:05:27]Read from MH i2c: E2 03 00 35 19 00 90 00 C2 [15:05:27]RAPDU: 90 00 [15:05:27]wFMCommunicate OK [15:05:27]SAM_PROTO_ClearQueue done [15:05:27]KKMCreateOFDPacket [15:05:27]OFDProtocolAddRootSTLVToBuf [15:05:27]FM_MakeSignedData [15:05:27]FM_MakeSignedData [15:05:27]SAM_PROTO_SignData [15:05:27]wFMCommunicate request_size=4 [15:05:27]MH_SAM_APDU [15:05:27]CAPDU: 80 0D 01 02 [15:05:27]Write to MH i2c: E2 08 00 36 19 80 0D 01 02 00 00 00 00 C8 [15:05:27]Write i2c OK [15:05:27]MH_I2C_Read... [15:05:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:05:27]Read from MH i2c: E2 [15:05:27]MH_I2C_Read... [15:05:27]Read from MH i2c: E2 03 00 [15:05:27]MH_I2C_Read... [15:05:27]Read from MH i2c: E2 03 00 36 19 00 90 00 C3 [15:05:27]RAPDU: 90 00 [15:05:27]wFMCommunicate OK [15:05:27]wFMCommunicate request_size=255 [15:05:27]MH_SAM_APDU [15:05:27]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 B9 DB 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 [15:05:27]Write to MH i2c: E2 02 01 37 19 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 B9 DB 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 00 00 8F [15:05:27]Write i2c OK [15:05:27]MH_I2C_Read... [15:05:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:05:27]Read from MH i2c: E2 [15:05:27]MH_I2C_Read... [15:05:27]Read from MH i2c: E2 03 00 [15:05:27]MH_I2C_Read... [15:05:27]Read from MH i2c: E2 03 00 37 19 00 90 00 C4 [15:05:27]RAPDU: 90 00 [15:05:27]wFMCommunicate OK [15:05:27]wFMCommunicate request_size=33 [15:05:27]MH_SAM_APDU [15:05:27]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 35 30 37 34 10 04 04 00 59 F9 00 00 35 04 06 00 F8 67 25 EA 0E AE [15:05:27]Write to MH i2c: E2 24 00 38 19 80 0D 02 02 1C 00 30 30 30 30 38 37 35 30 37 34 10 04 04 00 59 F9 00 00 35 04 06 00 F8 67 25 EA 0E AE 00 00 D5 [15:05:27]Write i2c OK [15:05:27]MH_I2C_Read... [15:05:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:05:27]Read from MH i2c: E2 [15:05:27]MH_I2C_Read... [15:05:27]Read from MH i2c: E2 03 00 [15:05:27]MH_I2C_Read... [15:05:27]Read from MH i2c: E2 03 00 38 19 00 90 00 C5 [15:05:27]RAPDU: 90 00 [15:05:27]wFMCommunicate OK [15:05:27]wFMCommunicate request_size=4 [15:05:27]MH_SAM_APDU [15:05:27]CAPDU: 80 0D 03 02 [15:05:27]Write to MH i2c: E2 08 00 39 19 80 0D 03 02 00 00 00 00 CD [15:05:27]Write i2c OK [15:05:27]MH_I2C_Read... [15:05:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:05:27]Read from MH i2c: E2 [15:05:27]MH_I2C_Read... [15:05:27]Read from MH i2c: E2 0B 00 [15:05:27]MH_I2C_Read... [15:05:27]Read from MH i2c: E2 0B 00 39 19 00 8B 3A 83 FF 94 D9 8D 64 90 00 73 [15:05:27]RAPDU: 8B 3A 83 FF 94 D9 8D 64 90 00 [15:05:27]wFMCommunicate OK [15:05:27]SAM_PROTO_SignData done [15:05:27]FM_MakeSignedData done [15:05:27]CreateOFDProtocolMessage [15:05:27]wFMCommunicate request_size=4 [15:05:27]MH_SAM_APDU [15:05:27]CAPDU: 80 11 00 00 [15:05:27]Write to MH i2c: E2 08 00 3A 19 80 11 00 00 00 00 00 00 CD [15:05:27]Write i2c OK [15:05:27]MH_I2C_Read... [15:05:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:05:27]Read from MH i2c: E2 [15:05:27]MH_I2C_Read... [15:05:27]Read from MH i2c: E2 17 00 [15:05:27]MH_I2C_Read... [15:05:27]Read from MH i2c: E2 17 00 3A 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 1F [15:05:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [15:05:27]wFMCommunicate OK [15:05:27]CreateOFDProtocolMessage done [15:05:27]OFDSenderStorePacket 63833 [15:05:27]StoreOFDPacket docnum=63833 [15:05:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 26 01 00 00 E0 05 1E 01 E5 3F 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 B9 DB 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 59 F9 00 00 35 04 06 00 F8 67 25 EA 0E AE 8B 3A 83 FF 94 D9 8D 64 [15:05:27]CheckFolder [15:05:27]dirname=/storage/ofd_packets [15:05:27]CheckFolder done [15:05:27]ProducePacketName [15:05:27]name=ofd_packets/00063833 [15:05:27]NVStorageSaveData ofd_packets/00063833 [15:05:27]File name is /storage/ofd_packets/00063833 [15:05:27]Write 324 bytes [15:05:27]NVStorageSaveData done [15:05:27]OFDSenderStorePacket done [15:05:27]KKMCreateOFDPacket done [15:05:27]NVStorageSaveData kkm_last_timestamp [15:05:27]File name is /storage/kkm_last_timestamp [15:05:27]Write 4 bytes [15:05:27]NVStorageSaveData done [15:05:27]ExternCall_PrintAddStr [15:05:27]wPrintStart [15:05:27]Write to MH i2c: 01 00 00 3B 19 54 [15:05:27]Write i2c OK [15:05:27]MH_I2C_Read... [15:05:27]Read from MH i2c: 01 [15:05:27]MH_I2C_Read... [15:05:27]Read from MH i2c: 01 07 00 [15:05:27]MH_I2C_Read... [15:05:27]Read from MH i2c: 01 07 00 3B 19 00 00 00 00 00 FF 0F 69 [15:05:27]RasterBufferAndPrint [15:05:27]line Счет N : (3)73411 [15:05:27]line ИНН: 02508201610067 [15:05:27]line Контрольно-Кассовый Чек [15:05:27]line ПРОДАЖА [15:05:27]line Товар: 2000036240010 [15:05:27]line Кофе Латте (GABB TRADE) [15:05:27]line 1.000 * 115.00 [15:05:27]line = 115.00 [15:05:27]line НДС 12% НСП 1% [15:05:27]line > о реализуемом товаре [15:05:27]line ИТОГО: 115.00 [15:05:27]line НСП 1% : 1.02 [15:05:27]line НДС 12% : 12.21 [15:05:27]line Наличными: 115.00 [15:05:27]line Безнал.: 0.00 [15:05:27]line Место: АЗС № 117 "Партнер Нефть" [15:05:27]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [15:05:27]line СНО: Общий режим [15:05:27]line Чек 91 03.06.2024 15:05 [15:05:27]line Смена: 373 ФФД: 1.0 [15:05:28]line ЗНМ: 0300000031 [15:05:28]line РНМ: 0000000000092737 [15:05:28]line Версия ККМ: 001 [15:05:28]line ФМ: 0000000000875074 [15:05:28]line ФД: 63833 [15:05:28]line ФПД: 273121901416110 [15:05:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T150529&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63833&fm=273121901416110&tin=02508201610067®Number=0000000000092737&sum=11500 [15:05:28]line 0 [15:05:28]OFD Sender: Processing packet 63833 [packets to send 14, broken 13] [15:05:28]ProducePacketName [15:05:28]name=ofd_packets/00063833 [15:05:28]OFD Sender: To server: pG, [15:05:28]CommunicateWithHost lk.salyk.kg:30040 [15:05:28]ConnectInit lk.salyk.kg [15:05:28]written 0, free lines is 4095 [15:05:28]Connected sock=10 [15:05:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 26 01 00 00 E0 05 1E 01 E5 3F 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 B9 DB 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 59 F9 00 00 35 04 06 00 F8 67 25 EA 0E AE 8B 3A 83 FF 94 D9 8D 64 [15:05:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 AD 6E 47 00 A1 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 35 30 37 34 10 04 04 00 59 F9 00 00 F4 03 04 00 8A 87 5D 66 B6 04 01 00 00 2A CE 56 4A 96 C8 F0 75 [15:05:28]CommunicateWithHost err = 0 [15:05:28]CheckOFDResponse [15:05:28]1017 (14) - 77093643461234 [15:05:28]1041 (16) - 0000000000875074 [15:05:28]1040 (4) - 63833 [15:05:28]1012 (4) - 03.06.2024 09:06 [15:05:28]1206 (1) - 0 [15:05:28]OFD Sender: Remove packet 63833 [15:05:28]ProducePacketName [15:05:28]name=ofd_packets/00063833 [15:05:28]NVStorageDeleteData [15:05:28]Write to MH i2c: 01 00 00 63 19 7C [15:05:28]Write i2c OK [15:05:28]MH_I2C_Read... [15:05:28]Read from MH i2c: 01 [15:05:28]MH_I2C_Read... [15:05:28]Read from MH i2c: 01 07 00 [15:05:28]MH_I2C_Read... [15:05:28]Read from MH i2c: 01 07 00 63 19 00 00 00 00 00 F7 0C 86 [15:05:28]RasterBufferAndPrint [15:05:28]line [15:05:28]line [15:05:28]line [15:05:28]line [15:05:28]line [15:05:28]written 0, free lines is 3324 [15:05:28]MH_Cut [15:05:28]Write to MH i2c: D1 01 00 6A 19 01 55 [15:05:28]Write i2c OK [15:05:28]MH_I2C_Read... [15:05:28]Read from MH i2c: D1 [15:05:28]MH_I2C_Read... [15:05:28]Read from MH i2c: D1 01 00 [15:05:28]MH_I2C_Read... [15:05:28]Read from MH i2c: D1 01 00 6A 19 00 54 [15:05:28]Write to MH i2c: 01 00 00 6B 19 84 [15:05:28]Write i2c OK [15:05:28]MH_I2C_Read... [15:05:28]OFD Sender: No OFD packet to send [15:05:29]*** Cut start [15:05:29]*** Partial cut [15:05:29]*** CUTSNS_PIN = 1 [15:05:29]*** CUTSNS_PIN = 0 [15:05:29]*** Brake cut motor [15:05:29]Read from MH i2c: 01 [15:05:29]MH_I2C_Read... [15:05:29]*** Stop cut motor [15:05:29]*** Cut end [15:05:29]Read from MH i2c: 01 07 00 [15:05:29]MH_I2C_Read... [15:05:29]Read from MH i2c: 01 07 00 6B 19 00 00 00 00 00 FF 0F 99 [15:05:29]process_action close_receipt done [15:05:29]requested_data is exist [15:05:29]produce_requested_data [15:05:29]requested_item fm.sn is exist - process it [15:05:29]wFMCommunicate request_size=4 [15:05:29]MH_SAM_APDU [15:05:29]CAPDU: 80 11 00 00 [15:05:29]Write to MH i2c: E2 08 00 6C 19 80 11 00 00 00 00 00 00 FF [15:05:29]Write i2c OK [15:05:29]MH_I2C_Read... [15:05:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:05:30]Read from MH i2c: E2 [15:05:30]MH_I2C_Read... [15:05:30]Read from MH i2c: E2 17 00 [15:05:30]MH_I2C_Read... [15:05:30]Read from MH i2c: E2 17 00 6C 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 51 [15:05:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [15:05:30]wFMCommunicate OK [15:05:30]requested_item fd.num is exist - process it [15:05:30]SAM_PROTO_GetFieldsCounters [15:05:30]wFMCommunicate request_size=4 [15:05:30]MH_SAM_APDU [15:05:30]CAPDU: 80 13 00 00 [15:05:30]Write to MH i2c: E2 08 00 6D 19 80 13 00 00 00 00 00 00 02 [15:05:30]Write i2c OK [15:05:30]MH_I2C_Read... [15:05:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:05:30]Read from MH i2c: E2 [15:05:30]MH_I2C_Read... [15:05:30]Read from MH i2c: E2 62 00 [15:05:30]MH_I2C_Read... [15:05:30]Read from MH i2c: E2 62 00 6D 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 59 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 FE [15:05: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 59 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:05:30]wFMCommunicate OK [15:05:30]SAM_PROTO_GetFieldsCounters done [15:05:30]requested_item shift.num is exist - process it [15:05:30]requested_item shift.opened is exist - process it [15:05:30]req_shift_opened [15:05:30]FM_GetShiftState [15:05:30]SAM_PROTO_GetShiftState [15:05:30]wFMCommunicate request_size=4 [15:05:30]MH_SAM_APDU [15:05:30]CAPDU: 80 13 01 00 [15:05:30]Write to MH i2c: E2 08 00 6E 19 80 13 01 00 00 00 00 00 04 [15:05:30]Write i2c OK [15:05:30]MH_I2C_Read... [15:05:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:05:30]Read from MH i2c: E2 [15:05:30]MH_I2C_Read... [15:05:30]Read from MH i2c: E2 0E 00 [15:05:30]MH_I2C_Read... [15:05:30]Read from MH i2c: E2 0E 00 6E 19 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 D0 [15:05:30]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [15:05:30]wFMCommunicate OK [15:05:30]SAM_PROTO_GetShiftState done [15:05:30]FM_GetShiftState done [15:05:30]req_shift_opened done [15:05:30]requested_item shift.open_date is exist - process it [15:05:30]req_shift_open_date [15:05:30]req_shift_open_date done [15:05:30]produce_requested_data done [15:05:30]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63833,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [15:05:30]process_action_free close_receipt [15:05:30]json_value_free [15:05:30]json_value_free done [15:05:30]process_json_proto returns [15:05:30]Send response to host [15:05:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63833,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [15:05:30]free response buf [15:05:30]execute_script done [15:05:30]execute_script returns [15:05:30]free content buf [15:05:30]Sock 9.Close socket [15:05:30]Sock 9.Thread stoped [15:05:33]OFD Sender: No OFD packet to send [15:05:38]OFD Sender: No OFD packet to send [15:05:43]OFD Sender: No OFD packet to send [15:05:48]OFD Sender: No OFD packet to send [15:05:53]OFD Sender: No OFD packet to send [15:05:58]OFD Sender: No OFD packet to send [15:06:03]OFD Sender: No OFD packet to send [15:06:08]OFD Sender: No OFD packet to send [15:06:13]OFD Sender: No OFD packet to send [15:06:18]OFD Sender: No OFD packet to send [15:06:23]OFD Sender: No OFD packet to send [15:06:25]accept exits with 7 [15:06:25]New connection [15:06:25]New thread 3067518308 created [15:06:25]Thread 3067374948 joined [15:06:25]Waiting for new connection... [15:06:25] Sock 7.Parse request [15:06:25]Sock 7.Check first char [15:06:25]Sock 7.First char is OK [15:06:25]request: POST /json_proto HTTP/1.0 [15:06:25]Method: POST [15:06:25]URL: /json_proto [15:06:25]Method is POST - this is cgi request [15:06:25]url: /json_proto [15:06:25]query_string will be loaded in cgi processing [15:06:25]execute_cgi json_proto POST (null) [15:06:25]execute_cgi path=json_proto method=POST [15:06:25]POST find Content-Length [15:06:25]Host: 172.17.60.69:8080 [15:06:25]Content-Length: 677 [15:06:25]Content-Type: application/json [15:06:25] [15:06:25]POST finish read [15:06:25]Found Content-Length = 677 [15:06:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543817", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:06:25]execute_script... [15:06:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543817", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:06:25]POST & json_proto [15:06:25]process_json_proto [15:06:25]json parsed OK: [15:06:25]protocol is kg_v1.0 [15:06:25]action value=close_receipt [15:06:25]process_action close_receipt [15:06:25]cmd_close_receipt [15:06:25]MH_GetDate [15:06:25]Write to MH i2c: F0 00 00 6F 19 77 [15:06:25]Write i2c OK [15:06:25]MH_I2C_Read... [15:06:25]Read from MH i2c: F0 [15:06:25]MH_I2C_Read... [15:06:25]Read from MH i2c: F0 09 00 [15:06:25]MH_I2C_Read... [15:06:25]Read from MH i2c: F0 09 00 6F 19 00 F4 DB 5D 66 6A 96 4A 66 C2 [15:06:25]GetLastDocTimeStamp 1717427129 [15:06:25]current date 1717427188 [15:06:25]FM_GetShiftState [15:06:25]SAM_PROTO_GetShiftState [15:06:25]wFMCommunicate request_size=4 [15:06:25]MH_SAM_APDU [15:06:25]CAPDU: 80 13 01 00 [15:06:25]Write to MH i2c: E2 08 00 70 19 80 13 01 00 00 00 00 00 06 [15:06:25]Write i2c OK [15:06:25]MH_I2C_Read... [15:06:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:06:25]Read from MH i2c: E2 [15:06:25]MH_I2C_Read... [15:06:25]Read from MH i2c: E2 0E 00 [15:06:25]MH_I2C_Read... [15:06:25]Read from MH i2c: E2 0E 00 70 19 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 D2 [15:06:25]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [15:06:25]wFMCommunicate OK [15:06:25]SAM_PROTO_GetShiftState done [15:06:25]FM_GetShiftState done [15:06:25]opened in 1717373173 [15:06:25]opened+sec_in_day 1717459573 [15:06:25]quantity*price = 50041 [15:06:25]sum+1 = 50042 [15:06:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 92 03.06.2024 15:06 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63834 ФПД: 19259940058228 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T150628&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63834&fm=19259940058228&tin=02508201610067®Number=0000000000092737&sum=50000 [15:06:26]StoreToDocumentArchive [15:06:26]shift 373 fd 63834 [15:06:26]save to /storage/0373/doc_00063834 [15:06:26]save last doc name /storage/0373/doc_00063834 to /storage/kkm_last_doc_name [15:06:26]save OK [15:06:26]Clear old archive folders... [15:06:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:06:26]tlvbuf is 00D1EB00 [15:06:26]SAM_PROTO_ClearQueue [15:06:26]wFMCommunicate request_size=4 [15:06:26]MH_SAM_APDU [15:06:26]CAPDU: 80 09 00 00 [15:06:26]Write to MH i2c: E2 08 00 7D 19 80 09 00 00 00 00 00 00 08 [15:06:26]Write i2c OK [15:06:26]MH_I2C_Read... [15:06:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:06:26]Read from MH i2c: E2 [15:06:26]MH_I2C_Read... [15:06:26]Read from MH i2c: E2 03 00 [15:06:26]MH_I2C_Read... [15:06:26]Read from MH i2c: E2 03 00 7D 19 00 90 00 0A [15:06:26]RAPDU: 90 00 [15:06:26]wFMCommunicate OK [15:06:26]SAM_PROTO_ClearQueue done [15:06:26]KKMCreateOFDPacket [15:06:26]OFDProtocolAddRootSTLVToBuf [15:06:26]FM_MakeSignedData [15:06:26]FM_MakeSignedData [15:06:26]SAM_PROTO_SignData [15:06:26]wFMCommunicate request_size=4 [15:06:26]MH_SAM_APDU [15:06:26]CAPDU: 80 0D 01 02 [15:06:26]Write to MH i2c: E2 08 00 7E 19 80 0D 01 02 00 00 00 00 10 [15:06:26]Write i2c OK [15:06:26]MH_I2C_Read... [15:06:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:06:26]Read from MH i2c: E2 [15:06:26]MH_I2C_Read... [15:06:26]Read from MH i2c: E2 03 00 [15:06:26]MH_I2C_Read... [15:06:26]Read from MH i2c: E2 03 00 7E 19 00 90 00 0B [15:06:26]RAPDU: 90 00 [15:06:26]wFMCommunicate OK [15:06:26]wFMCommunicate request_size=255 [15:06:26]MH_SAM_APDU [15:06:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 F4 DB 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 5A F9 00 00 35 04 06 00 11 [15:06:26]Write to MH i2c: E2 02 01 7F 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 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 F4 DB 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 5A F9 00 00 35 04 06 00 11 00 00 69 [15:06:26]Write i2c OK [15:06:26]MH_I2C_Read... [15:06:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:06:26]Read from MH i2c: E2 [15:06:26]MH_I2C_Read... [15:06:26]Read from MH i2c: E2 03 00 [15:06:26]MH_I2C_Read... [15:06:26]Read from MH i2c: E2 03 00 7F 19 00 90 00 0C [15:06:26]RAPDU: 90 00 [15:06:26]wFMCommunicate OK [15:06:26]wFMCommunicate request_size=10 [15:06:26]MH_SAM_APDU [15:06:26]CAPDU: 80 0D 02 02 05 84 4D E2 B4 74 [15:06:26]Write to MH i2c: E2 0D 00 80 19 80 0D 02 02 05 00 84 4D E2 B4 74 00 00 F8 [15:06:26]Write i2c OK [15:06:26]MH_I2C_Read... [15:06:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:06:26]Read from MH i2c: E2 [15:06:26]MH_I2C_Read... [15:06:26]Read from MH i2c: E2 03 00 [15:06:26]MH_I2C_Read... [15:06:26]Read from MH i2c: E2 03 00 80 19 00 90 00 0D [15:06:26]RAPDU: 90 00 [15:06:26]wFMCommunicate OK [15:06:26]wFMCommunicate request_size=4 [15:06:26]MH_SAM_APDU [15:06:26]CAPDU: 80 0D 03 02 [15:06:26]Write to MH i2c: E2 08 00 81 19 80 0D 03 02 00 00 00 00 15 [15:06:26]Write i2c OK [15:06:26]MH_I2C_Read... [15:06:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:06:27]Read from MH i2c: E2 [15:06:27]MH_I2C_Read... [15:06:27]Read from MH i2c: E2 0B 00 [15:06:27]MH_I2C_Read... [15:06:27]Read from MH i2c: E2 0B 00 81 19 00 07 7E 28 C7 47 8F 31 13 90 00 A4 [15:06:27]RAPDU: 07 7E 28 C7 47 8F 31 13 90 00 [15:06:27]wFMCommunicate OK [15:06:27]SAM_PROTO_SignData done [15:06:27]FM_MakeSignedData done [15:06:27]CreateOFDProtocolMessage [15:06:27]wFMCommunicate request_size=4 [15:06:27]MH_SAM_APDU [15:06:27]CAPDU: 80 11 00 00 [15:06:27]Write to MH i2c: E2 08 00 82 19 80 11 00 00 00 00 00 00 15 [15:06:27]Write i2c OK [15:06:27]MH_I2C_Read... [15:06:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:06:27]Read from MH i2c: E2 [15:06:27]MH_I2C_Read... [15:06:27]Read from MH i2c: E2 17 00 [15:06:27]MH_I2C_Read... [15:06:27]Read from MH i2c: E2 17 00 82 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 67 [15:06:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [15:06:27]wFMCommunicate OK [15:06:27]CreateOFDProtocolMessage done [15:06:27]OFDSenderStorePacket 63834 [15:06:27]StoreOFDPacket docnum=63834 [15:06:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0F 01 00 00 F3 0A 07 01 EC 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 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 F4 DB 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 5A F9 00 00 35 04 06 00 11 84 4D E2 B4 74 07 7E 28 C7 47 8F 31 13 [15:06:27]CheckFolder [15:06:27]dirname=/storage/ofd_packets [15:06:27]CheckFolder done [15:06:27]ProducePacketName [15:06:27]name=ofd_packets/00063834 [15:06:27]NVStorageSaveData ofd_packets/00063834 [15:06:27]File name is /storage/ofd_packets/00063834 [15:06:27]Write 301 bytes [15:06:27]NVStorageSaveData done [15:06:27]OFDSenderStorePacket done [15:06:27]KKMCreateOFDPacket done [15:06:27]NVStorageSaveData kkm_last_timestamp [15:06:27]File name is /storage/kkm_last_timestamp [15:06:27]Write 4 bytes [15:06:27]NVStorageSaveData done [15:06:27]ExternCall_PrintAddStr [15:06:27]wPrintStart [15:06:27]Write to MH i2c: 01 00 00 83 19 9C [15:06:27]Write i2c OK [15:06:27]MH_I2C_Read... [15:06:27]Read from MH i2c: 01 [15:06:27]MH_I2C_Read... [15:06:27]Read from MH i2c: 01 07 00 [15:06:27]MH_I2C_Read... [15:06:27]Read from MH i2c: 01 07 00 83 19 00 00 00 00 00 FF 0F B1 [15:06:27]RasterBufferAndPrint [15:06:27]line Счет N : (1)543817 [15:06:27]line ИНН: 02508201610067 [15:06:27]line Контрольно-Кассовый Чек [15:06:27]line ПРОДАЖА [15:06:27]line ТРК (МРК, ГНК) : 22 [15:06:27]line Товар: 2710124130 [15:06:27]line Аи-92-К-5 [15:06:27]line 7.480 * 66.90 [15:06:27]line = 500.41 [15:06:27]line НДС 12% НСП 1% [15:06:27]line > о реализуемом товаре [15:06:27]line ОКРУГЛЕНИЕ: -0.41 [15:06:27]line ИТОГО: 500.00 [15:06:27]line Внесено: 500.00 [15:06:27]line СДАЧА: 0.00 [15:06:27]line НСП 1% : 4.43 [15:06:27]line НДС 12% : 53.14 [15:06:27]line Наличными: 500.00 [15:06:27]line Безнал.: 0.00 [15:06:27]line Место: АЗС № 117 "Партнер Нефть" [15:06:27]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [15:06:27]line СНО: Общий режим [15:06:27]line Чек 92 03.06.2024 15:06 [15:06:27]line Смена: 373 ФФД: 1.0 [15:06:27]line ЗНМ: 0300000031 [15:06:27]line РНМ: 0000000000092737 [15:06:27]line Версия ККМ: 001 [15:06:27]line ФМ: 0000000000875074 [15:06:27]line ФД: 63834 [15:06:27]line ФПД: 19259940058228 [15:06:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T150628&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63834&fm=19259940058228&tin=02508201610067®Number=0000000000092737&sum=50000 [15:06:27]OFD Sender: Processing packet 63834 [packets to send 14, broken 13] [15:06:27]ProducePacketName [15:06:27]name=ofd_packets/00063834 [15:06:27]OFD Sender: To server: pG, [15:06:27]CommunicateWithHost lk.salyk.kg:30040 [15:06:27]ConnectInit lk.salyk.kg [15:06:27]written 0, free lines is 4095 [15:06:27]Connected sock=10 [15:06:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0F 01 00 00 F3 0A 07 01 EC 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 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 F4 DB 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 5A F9 00 00 35 04 06 00 11 84 4D E2 B4 74 07 7E 28 C7 47 8F 31 13 [15:06:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 7E ED 47 00 38 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 35 30 37 34 10 04 04 00 5A F9 00 00 F4 03 04 00 C5 87 5D 66 B6 04 01 00 00 1D CC DF D2 08 E6 45 D8 [15:06:27]CommunicateWithHost err = 0 [15:06:27]CheckOFDResponse [15:06:27]1017 (14) - 77093643461234 [15:06:27]1041 (16) - 0000000000875074 [15:06:27]1040 (4) - 63834 [15:06:27]1012 (4) - 03.06.2024 09:07 [15:06:27]1206 (1) - 0 [15:06:27]OFD Sender: Remove packet 63834 [15:06:27]ProducePacketName [15:06:27]name=ofd_packets/00063834 [15:06:27]NVStorageDeleteData [15:06:27]Write to MH i2c: 01 00 00 AE 19 C7 [15:06:27]Write i2c OK [15:06:27]MH_I2C_Read... [15:06:27]Read from MH i2c: 01 [15:06:27]MH_I2C_Read... [15:06:27]Read from MH i2c: 01 07 00 [15:06:27]MH_I2C_Read... [15:06:27]Read from MH i2c: 01 07 00 AE 19 00 00 00 00 00 D4 0C AE [15:06:27]RasterBufferAndPrint [15:06:27]line [15:06:27]line [15:06:27]line [15:06:27]line [15:06:27]line [15:06:27]written 0, free lines is 3292 [15:06:27]MH_Cut [15:06:27]Write to MH i2c: D1 01 00 B5 19 01 A0 [15:06:27]Write i2c OK [15:06:27]MH_I2C_Read... [15:06:27]Read from MH i2c: D1 [15:06:27]MH_I2C_Read... [15:06:27]Read from MH i2c: D1 01 00 [15:06:27]MH_I2C_Read... [15:06:27]Read from MH i2c: D1 01 00 B5 19 00 9F [15:06:27]Write to MH i2c: 01 00 00 B6 19 CF [15:06:27]Write i2c OK [15:06:27]MH_I2C_Read... [15:06:28]OFD Sender: No OFD packet to send [15:06:28]*** Cut start [15:06:28]*** Partial cut [15:06:28]*** CUTSNS_PIN = 1 [15:06:28]*** CUTSNS_PIN = 0 [15:06:28]*** Brake cut motor [15:06:29]Read from MH i2c: 01 [15:06:29]MH_I2C_Read... [15:06:29]*** Stop cut motor [15:06:29]*** Cut end [15:06:29]Read from MH i2c: 01 07 00 [15:06:29]MH_I2C_Read... [15:06:29]Read from MH i2c: 01 07 00 B6 19 00 00 00 00 00 FF 0F E4 [15:06:29]process_action close_receipt done [15:06:29]requested_data is exist [15:06:29]produce_requested_data [15:06:29]requested_item fm.sn is exist - process it [15:06:29]wFMCommunicate request_size=4 [15:06:29]MH_SAM_APDU [15:06:29]CAPDU: 80 11 00 00 [15:06:29]Write to MH i2c: E2 08 00 B7 19 80 11 00 00 00 00 00 00 4A [15:06:29]Write i2c OK [15:06:29]MH_I2C_Read... [15:06:29]Read from MH i2c: E2 [15:06:29]MH_I2C_Read... [15:06:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:06:29]Read from MH i2c: E2 17 00 [15:06:29]MH_I2C_Read... [15:06:29]Read from MH i2c: E2 17 00 B7 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 9C [15:06:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [15:06:29]wFMCommunicate OK [15:06:29]requested_item fd.num is exist - process it [15:06:29]SAM_PROTO_GetFieldsCounters [15:06:29]wFMCommunicate request_size=4 [15:06:29]MH_SAM_APDU [15:06:29]CAPDU: 80 13 00 00 [15:06:29]Write to MH i2c: E2 08 00 B8 19 80 13 00 00 00 00 00 00 4D [15:06:29]Write i2c OK [15:06:29]MH_I2C_Read... [15:06:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:06:29]Read from MH i2c: E2 [15:06:29]MH_I2C_Read... [15:06:29]Read from MH i2c: E2 62 00 [15:06:29]MH_I2C_Read... [15:06:29]Read from MH i2c: E2 62 00 B8 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 5A F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 4D [15:06:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 5A F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:06:29]wFMCommunicate OK [15:06:29]SAM_PROTO_GetFieldsCounters done [15:06:29]requested_item shift.num is exist - process it [15:06:29]requested_item shift.opened is exist - process it [15:06:29]req_shift_opened [15:06:29]FM_GetShiftState [15:06:29]SAM_PROTO_GetShiftState [15:06:29]wFMCommunicate request_size=4 [15:06:29]MH_SAM_APDU [15:06:29]CAPDU: 80 13 01 00 [15:06:29]Write to MH i2c: E2 08 00 B9 19 80 13 01 00 00 00 00 00 4F [15:06:29]Write i2c OK [15:06:29]MH_I2C_Read... [15:06:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:06:29]Read from MH i2c: E2 [15:06:29]MH_I2C_Read... [15:06:29]Read from MH i2c: E2 0E 00 [15:06:29]MH_I2C_Read... [15:06:29]Read from MH i2c: E2 0E 00 B9 19 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 1B [15:06:29]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [15:06:29]wFMCommunicate OK [15:06:29]SAM_PROTO_GetShiftState done [15:06:29]FM_GetShiftState done [15:06:29]req_shift_opened done [15:06:29]requested_item shift.open_date is exist - process it [15:06:29]req_shift_open_date [15:06:29]req_shift_open_date done [15:06:29]produce_requested_data done [15:06:29]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63834,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [15:06:29]process_action_free close_receipt [15:06:29]json_value_free [15:06:29]json_value_free done [15:06:29]process_json_proto returns [15:06:29]Send response to host [15:06:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63834,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [15:06:29]free response buf [15:06:29]execute_script done [15:06:29]execute_script returns [15:06:29]free content buf [15:06:29]Sock 7.Close socket [15:06:29]Sock 7.Thread stoped [15:06:33]OFD Sender: No OFD packet to send [15:06:38]OFD Sender: No OFD packet to send [15:06:43]OFD Sender: No OFD packet to send [15:06:48]OFD Sender: No OFD packet to send [15:06:53]OFD Sender: No OFD packet to send [15:06:58]OFD Sender: No OFD packet to send [15:07:03]OFD Sender: No OFD packet to send [15:07:08]OFD Sender: No OFD packet to send [15:07:13]OFD Sender: No OFD packet to send [15:07:18]OFD Sender: No OFD packet to send [15:07:23]OFD Sender: No OFD packet to send [15:07:28]OFD Sender: No OFD packet to send [15:07:33]OFD Sender: No OFD packet to send [15:07:38]OFD Sender: No OFD packet to send [15:07:43]OFD Sender: No OFD packet to send [15:07:48]OFD Sender: No OFD packet to send [15:07:53]OFD Sender: No OFD packet to send [15:07:58]OFD Sender: No OFD packet to send [15:08:03]OFD Sender: No OFD packet to send [15:08:08]OFD Sender: No OFD packet to send [15:08:13]OFD Sender: No OFD packet to send [15:08:18]OFD Sender: No OFD packet to send [15:08:23]OFD Sender: No OFD packet to send [15:08:28]OFD Sender: No OFD packet to send [15:08:33]OFD Sender: No OFD packet to send [15:08:38]OFD Sender: No OFD packet to send [15:08:43]OFD Sender: No OFD packet to send [15:08:48]OFD Sender: No OFD packet to send [15:08:53]OFD Sender: No OFD packet to send [15:08:58]OFD Sender: No OFD packet to send [15:09:03]OFD Sender: No OFD packet to send [15:09:08]OFD Sender: No OFD packet to send [15:09:13]OFD Sender: No OFD packet to send [15:09:18]OFD Sender: No OFD packet to send [15:09:23]OFD Sender: No OFD packet to send [15:09:28]OFD Sender: No OFD packet to send [15:09:33]OFD Sender: No OFD packet to send [15:09:38]OFD Sender: No OFD packet to send [15:09:43]OFD Sender: No OFD packet to send [15:09:48]OFD Sender: No OFD packet to send [15:09:53]OFD Sender: No OFD packet to send [15:09:58]OFD Sender: No OFD packet to send [15:10:03]OFD Sender: No OFD packet to send [15:10:08]OFD Sender: No OFD packet to send [15:10:13]OFD Sender: No OFD packet to send [15:10:18]OFD Sender: No OFD packet to send [15:10:23]OFD Sender: No OFD packet to send [15:10:28]OFD Sender: No OFD packet to send [15:10:33]OFD Sender: No OFD packet to send [15:10:38]OFD Sender: No OFD packet to send [15:10:43]OFD Sender: No OFD packet to send [15:10:48]OFD Sender: No OFD packet to send [15:10:53]OFD Sender: No OFD packet to send [15:10:58]OFD Sender: No OFD packet to send [15:11:03]OFD Sender: No OFD packet to send [15:11:08]OFD Sender: No OFD packet to send [15:11:13]accept exits with 9 [15:11:13]New connection [15:11:13]New thread 3067374948 created [15:11:13]Thread 3067518308 joined [15:11:13]Waiting for new connection... [15:11:13] Sock 9.Parse request [15:11:13]Sock 9.Check first char [15:11:13]Sock 9.First char is OK [15:11:13]request: POST /json_proto HTTP/1.0 [15:11:13]Method: POST [15:11:13]URL: /json_proto [15:11:13]Method is POST - this is cgi request [15:11:13]url: /json_proto [15:11:13]query_string will be loaded in cgi processing [15:11:13]execute_cgi json_proto POST (null) [15:11:13]execute_cgi path=json_proto method=POST [15:11:13]POST find Content-Length [15:11:13]Host: 172.17.60.69:8080 [15:11:13]Content-Length: 215 [15:11:13]Content-Type: application/json [15:11:13] [15:11:13]POST finish read [15:11:13]Found Content-Length = 215 [15:11:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:11:13]execute_script... [15:11:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:11:13]POST & json_proto [15:11:13]process_json_proto [15:11:13]json parsed OK: [15:11:13]protocol is kg_v1.0 [15:11:13]action value=get_value [15:11:13]process_action get_value [15:11:13]cmd_get_value [15:11:13]process_action get_value done [15:11:13]requested_data is exist [15:11:13]produce_requested_data [15:11:13]requested_item kkm.sn is exist - process it [15:11:13]requested_item kkm.ver is exist - process it [15:11:13]requested_item fm.sn is exist - process it [15:11:13]wFMCommunicate request_size=4 [15:11:13]MH_SAM_APDU [15:11:13]CAPDU: 80 11 00 00 [15:11:13]Write to MH i2c: E2 08 00 BA 19 80 11 00 00 00 00 00 00 4D [15:11:13]Write i2c OK [15:11:13]MH_I2C_Read... [15:11:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:11:13]Read from MH i2c: E2 [15:11:13]MH_I2C_Read... [15:11:13]Read from MH i2c: E2 17 00 [15:11:13]MH_I2C_Read... [15:11:13]Read from MH i2c: E2 17 00 BA 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 9F [15:11:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [15:11:13]wFMCommunicate OK [15:11:13]requested_item fd.num is exist - process it [15:11:13]SAM_PROTO_GetFieldsCounters [15:11:13]wFMCommunicate request_size=4 [15:11:13]MH_SAM_APDU [15:11:13]CAPDU: 80 13 00 00 [15:11:13]Write to MH i2c: E2 08 00 BB 19 80 13 00 00 00 00 00 00 50 [15:11:13]Write i2c OK [15:11:13]MH_I2C_Read... [15:11:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:11:13]Read from MH i2c: E2 [15:11:13]MH_I2C_Read... [15:11:13]Read from MH i2c: E2 62 00 [15:11:13]MH_I2C_Read... [15:11:13]Read from MH i2c: E2 62 00 BB 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 5A F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 50 [15:11: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 5A F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:11:13]wFMCommunicate OK [15:11:13]SAM_PROTO_GetFieldsCounters done [15:11:13]requested_item shift.num is exist - process it [15:11:13]requested_item shift.opened is exist - process it [15:11:13]req_shift_opened [15:11:13]FM_GetShiftState [15:11:13]SAM_PROTO_GetShiftState [15:11:13]wFMCommunicate request_size=4 [15:11:13]MH_SAM_APDU [15:11:13]CAPDU: 80 13 01 00 [15:11:13]Write to MH i2c: E2 08 00 BC 19 80 13 01 00 00 00 00 00 52 [15:11:13]Write i2c OK [15:11:13]MH_I2C_Read... [15:11:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:11:13]Read from MH i2c: E2 [15:11:13]MH_I2C_Read... [15:11:13]Read from MH i2c: E2 0E 00 [15:11:13]MH_I2C_Read... [15:11:13]Read from MH i2c: E2 0E 00 BC 19 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 1E [15:11:13]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [15:11:13]wFMCommunicate OK [15:11:13]SAM_PROTO_GetShiftState done [15:11:13]FM_GetShiftState done [15:11:13]req_shift_opened done [15:11:13]requested_item shift.open_date is exist - process it [15:11:13]req_shift_open_date [15:11:13]req_shift_open_date done [15:11:13]produce_requested_data done [15:11:13]produce_requested_data return {"kkm.sn":"0300000031","kkm.ver":"001","fm.sn":"0000000000875074","fd.num":63834,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [15:11:13]process_action_free get_value [15:11:13]json_value_free [15:11:13]json_value_free done [15:11:13]process_json_proto returns [15:11:13]Send response to host [15:11:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000031","kkm.ver":"001","fm.sn":"0000000000875074","fd.num":63834,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [15:11:13]free response buf [15:11:13]execute_script done [15:11:13]execute_script returns [15:11:13]free content buf [15:11:13]Sock 9.Close socket [15:11:13]Sock 9.Thread stoped [15:11:13]OFD Sender: No OFD packet to send [15:11:16]accept exits with 7 [15:11:16]New connection [15:11:16]New thread 3067518308 created [15:11:16]Thread 3067374948 joined [15:11:16]Waiting for new connection... [15:11:16] Sock 7.Parse request [15:11:16]Sock 7.Check first char [15:11:16]Sock 7.First char is OK [15:11:16]request: POST /json_proto HTTP/1.0 [15:11:16]Method: POST [15:11:16]URL: /json_proto [15:11:16]Method is POST - this is cgi request [15:11:16]url: /json_proto [15:11:16]query_string will be loaded in cgi processing [15:11:16]execute_cgi json_proto POST (null) [15:11:16]execute_cgi path=json_proto method=POST [15:11:16]POST find Content-Length [15:11:16]Host: 172.17.60.69:8080 [15:11:16]Content-Length: 331 [15:11:16]Content-Type: application/json [15:11:16] [15:11:16]POST finish read [15:11:16]Found Content-Length = 331 [15:11:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [15:11:16]execute_script... [15:11:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [15:11:16]POST & json_proto [15:11:16]process_json_proto [15:11:16]json parsed OK: [15:11:16]protocol is kg_v1.0 [15:11:16]action value=get_value [15:11:16]process_action get_value [15:11:16]cmd_get_value [15:11:16]process_action get_value done [15:11:16]requested_data is exist [15:11:16]produce_requested_data [15:11:16]requested_item fm.sale.total is exist - process it [15:11:16]SAM_PROTO_GetFMData [15:11:16]wFMCommunicate request_size=4 [15:11:16]MH_SAM_APDU [15:11:16]CAPDU: 80 13 03 00 [15:11:16]Write to MH i2c: E2 08 00 BD 19 80 13 03 00 00 00 00 00 55 [15:11:16]Write i2c OK [15:11:16]MH_I2C_Read... [15:11:16]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [15:11:16]Read from MH i2c: E2 [15:11:16]MH_I2C_Read... [15:11:16]Read from MH i2c: E2 FD 00 [15:11:16]MH_I2C_Read... [15:11:16]Read from MH i2c: E2 FD 00 BD 19 00 C5 04 85 04 C1 04 6E 04 04 00 70 F6 00 00 69 04 A1 00 6F 04 04 00 13 F4 00 00 B1 04 04 00 55 2B A5 76 70 04 04 00 0A 2A ED 65 72 04 04 00 4B 01 B8 10 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 F3 E2 99 0C 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 42 BF 0C 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 5D 02 00 00 B1 04 04 00 64 11 7D 03 70 04 04 00 E0 B5 61 03 72 04 03 00 84 5B 1B 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 F2 D8 5E EF 03 09 90 00 10 [15:11:16]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 70 F6 00 00 69 04 A1 00 6F 04 04 00 13 F4 00 00 B1 04 04 00 55 2B A5 76 70 04 04 00 0A 2A ED 65 72 04 04 00 4B 01 B8 10 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 F3 E2 99 0C 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 42 BF 0C 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 5D 02 00 00 B1 04 04 00 64 11 7D 03 70 04 04 00 E0 B5 61 03 72 04 03 00 84 5B 1B 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 F2 D8 5E EF 03 09 90 00 [15:11:16]wFMCommunicate OK [15:11:16]wFMCommunicate request_size=4 [15:11:16]MH_SAM_APDU [15:11:16]CAPDU: 80 17 00 00 [15:11:16]Write to MH i2c: E2 08 00 BE 19 80 17 00 00 00 00 00 00 57 [15:11:16]Write i2c OK [15:11:16]MH_I2C_Read... [15:11:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:11:17]Read from MH i2c: E2 [15:11:17]MH_I2C_Read... [15:11:17]Read from MH i2c: E2 FD 00 [15:11:17]MH_I2C_Read... [15:11:17]Read from MH i2c: E2 FD 00 BE 19 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 2E E7 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 29 [15:11:17]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 2E E7 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [15:11:17]wFMCommunicate OK [15:11:17]wFMCommunicate request_size=4 [15:11:17]MH_SAM_APDU [15:11:17]CAPDU: 80 17 00 00 [15:11:17]Write to MH i2c: E2 08 00 BF 19 80 17 00 00 00 00 00 00 58 [15:11:17]Write i2c OK [15:11:17]MH_I2C_Read... [15:11:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:11:17]Read from MH i2c: E2 [15:11:17]MH_I2C_Read... [15:11:17]Read from MH i2c: E2 FD 00 [15:11:17]MH_I2C_Read... [15:11:17]Read from MH i2c: E2 FD 00 BF 19 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 6A [15:11:17]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [15:11:17]wFMCommunicate OK [15:11:17]wFMCommunicate request_size=4 [15:11:17]MH_SAM_APDU [15:11:17]CAPDU: 80 17 00 00 [15:11:17]Write to MH i2c: E2 08 00 C0 19 80 17 00 00 00 00 00 00 59 [15:11:17]Write i2c OK [15:11:17]MH_I2C_Read... [15:11:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:11:17]Read from MH i2c: E2 [15:11:17]MH_I2C_Read... [15:11:17]Read from MH i2c: E2 FD 00 [15:11:17]MH_I2C_Read... [15:11:17]Read from MH i2c: E2 FD 00 C0 19 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 E5 [15:11:17]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [15:11:17]wFMCommunicate OK [15:11:17]wFMCommunicate request_size=4 [15:11:17]MH_SAM_APDU [15:11:17]CAPDU: 80 17 00 00 [15:11:17]Write to MH i2c: E2 08 00 C1 19 80 17 00 00 00 00 00 00 5A [15:11:17]Write i2c OK [15:11:17]MH_I2C_Read... [15:11:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [15:11:17]Read from MH i2c: E2 [15:11:17]MH_I2C_Read... [15:11:17]Read from MH i2c: E2 E2 00 [15:11:17]MH_I2C_Read... [15:11:17]Read from MH i2c: E2 E2 00 C1 19 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 38 [15:11:17]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [15:11:17]wFMCommunicate OK [15:11:17]SAM_PROTO_GetFMData done [15:11:17]requested_item fm.sale_refund.total is exist - process it [15:11:17]requested_item fm.buy.total is exist - process it [15:11:17]requested_item shift.sale.total is exist - process it [15:11:17]SAM_PROTO_GetShiftData [15:11:17]wFMCommunicate request_size=4 [15:11:17]MH_SAM_APDU [15:11:17]CAPDU: 80 13 02 00 [15:11:17]Write to MH i2c: E2 08 00 C2 19 80 13 02 00 00 00 00 00 59 [15:11:17]Write i2c OK [15:11:17]MH_I2C_Read... [15:11:18]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [15:11:18]Read from MH i2c: E2 [15:11:18]MH_I2C_Read... [15:11:18]Read from MH i2c: E2 FD 00 [15:11:18]MH_I2C_Read... [15:11:18]Read from MH i2c: E2 FD 00 C2 19 00 AE 04 AA 04 AA 04 6E 04 04 00 5C 00 00 00 69 04 9B 00 6F 04 04 00 5C 00 00 00 B1 04 03 00 68 36 2D 70 04 03 00 04 8F 21 72 04 03 00 64 A7 0B 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 43 CD 04 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 6E 66 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 4F [15:11:18]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 5C 00 00 00 69 04 9B 00 6F 04 04 00 5C 00 00 00 B1 04 03 00 68 36 2D 70 04 03 00 04 8F 21 72 04 03 00 64 A7 0B 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 43 CD 04 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 6E 66 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [15:11:18]wFMCommunicate OK [15:11:18]wFMCommunicate request_size=4 [15:11:18]MH_SAM_APDU [15:11:18]CAPDU: 80 17 00 00 [15:11:18]Write to MH i2c: E2 08 00 C3 19 80 17 00 00 00 00 00 00 5C [15:11:18]Write i2c OK [15:11:18]MH_I2C_Read... [15:11:18]OFD Sender: No OFD packet to send [15:11:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:11:18]Read from MH i2c: E2 [15:11:18]MH_I2C_Read... [15:11:18]Read from MH i2c: E2 FD 00 [15:11:18]MH_I2C_Read... [15:11:18]Read from MH i2c: E2 FD 00 C3 19 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 7E [15:11:18]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [15:11:18]wFMCommunicate OK [15:11:18]wFMCommunicate request_size=4 [15:11:18]MH_SAM_APDU [15:11:18]CAPDU: 80 17 00 00 [15:11:18]Write to MH i2c: E2 08 00 C4 19 80 17 00 00 00 00 00 00 5D [15:11:18]Write i2c OK [15:11:18]MH_I2C_Read... [15:11:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:11:18]Read from MH i2c: E2 [15:11:18]MH_I2C_Read... [15:11:18]Read from MH i2c: E2 FD 00 [15:11:18]MH_I2C_Read... [15:11:18]Read from MH i2c: E2 FD 00 C4 19 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 14 [15:11:18]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [15:11:19]wFMCommunicate OK [15:11:19]wFMCommunicate request_size=4 [15:11:19]MH_SAM_APDU [15:11:19]CAPDU: 80 17 00 00 [15:11:19]Write to MH i2c: E2 08 00 C5 19 80 17 00 00 00 00 00 00 5E [15:11:19]Write i2c OK [15:11:19]MH_I2C_Read... [15:11:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:11:19]Read from MH i2c: E2 [15:11:19]MH_I2C_Read... [15:11:19]Read from MH i2c: E2 FD 00 [15:11:19]MH_I2C_Read... [15:11:19]Read from MH i2c: E2 FD 00 C5 19 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 D0 [15:11:19]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [15:11:19]wFMCommunicate OK [15:11:19]wFMCommunicate request_size=4 [15:11:19]MH_SAM_APDU [15:11:19]CAPDU: 80 17 00 00 [15:11:19]Write to MH i2c: E2 08 00 C6 19 80 17 00 00 00 00 00 00 5F [15:11:19]Write i2c OK [15:11:19]MH_I2C_Read... [15:11:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [15:11:19]Read from MH i2c: E2 [15:11:19]MH_I2C_Read... [15:11:19]Read from MH i2c: E2 CB 00 [15:11:19]MH_I2C_Read... [15:11:19]Read from MH i2c: E2 CB 00 C6 19 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 48 [15:11:19]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [15:11:19]wFMCommunicate OK [15:11:19]SAM_PROTO_GetShiftData done [15:11:19]requested_item shift.sale.total_cash is exist - process it [15:11:19]requested_item shift.sale_refund.total is exist - process it [15:11:19]requested_item shift.sale_refund.total_cash is exist - process it [15:11:19]requested_item shift.buy.total is exist - process it [15:11:19]requested_item shift.buy.total_cash is exist - process it [15:11:19]produce_requested_data done [15:11:19]produce_requested_data return {"fm.sale.total":19905360.21,"fm.sale_refund.total":585281.00,"fm.buy.total":0.00,"shift.sale.total":29630.48,"shift.sale.total_cash":21993.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} [15:11:19]process_action_free get_value [15:11:19]json_value_free [15:11:19]json_value_free done [15:11:19]process_json_proto returns [15:11:19]Send response to host [15:11:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":19905360.21,"fm.sale_refund.total":585281.00,"fm.buy.total":0.00,"shift.sale.total":29630.48,"shift.sale.total_cash":21993.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}}} [15:11:19]free response buf [15:11:19]execute_script done [15:11:19]execute_script returns [15:11:19]free content buf [15:11:19]Sock 7.Close socket [15:11:19]Sock 7.Thread stoped [15:11:23]OFD Sender: No OFD packet to send [15:11:28]OFD Sender: No OFD packet to send [15:11:33]OFD Sender: No OFD packet to send [15:11:38]OFD Sender: No OFD packet to send [15:11:43]OFD Sender: No OFD packet to send [15:11:48]OFD Sender: No OFD packet to send [15:11:53]OFD Sender: No OFD packet to send [15:11:58]OFD Sender: No OFD packet to send [15:12:03]OFD Sender: No OFD packet to send [15:12:08]OFD Sender: No OFD packet to send [15:12:13]OFD Sender: No OFD packet to send [15:12:18]OFD Sender: No OFD packet to send [15:12:23]OFD Sender: No OFD packet to send [15:12:28]OFD Sender: No OFD packet to send [15:12:33]OFD Sender: No OFD packet to send [15:12:38]OFD Sender: No OFD packet to send [15:12:43]OFD Sender: No OFD packet to send [15:12:48]OFD Sender: No OFD packet to send [15:12:53]OFD Sender: No OFD packet to send [15:12:58]OFD Sender: No OFD packet to send [15:13:03]OFD Sender: No OFD packet to send [15:13:08]OFD Sender: No OFD packet to send [15:13:13]OFD Sender: No OFD packet to send [15:13:18]OFD Sender: No OFD packet to send [15:13:23]OFD Sender: No OFD packet to send [15:13:28]OFD Sender: No OFD packet to send [15:13:33]OFD Sender: No OFD packet to send [15:13:38]OFD Sender: No OFD packet to send [15:13:43]OFD Sender: No OFD packet to send [15:13:48]OFD Sender: No OFD packet to send [15:13:53]OFD Sender: No OFD packet to send [15:13:58]OFD Sender: No OFD packet to send [15:14:03]OFD Sender: No OFD packet to send [15:14:08]OFD Sender: No OFD packet to send [15:14:13]OFD Sender: No OFD packet to send [15:14:18]OFD Sender: No OFD packet to send [15:14:23]OFD Sender: No OFD packet to send [15:14:28]OFD Sender: No OFD packet to send [15:14:33]OFD Sender: No OFD packet to send [15:14:36]accept exits with 9 [15:14:36]New connection [15:14:36]New thread 3067374948 created [15:14:36]Thread 3067518308 joined [15:14:36]Waiting for new connection... [15:14:36] Sock 9.Parse request [15:14:36]Sock 9.Check first char [15:14:36]Sock 9.First char is OK [15:14:36]request: POST /json_proto HTTP/1.0 [15:14:36]Method: POST [15:14:36]URL: /json_proto [15:14:36]Method is POST - this is cgi request [15:14:36]url: /json_proto [15:14:36]query_string will be loaded in cgi processing [15:14:36]execute_cgi json_proto POST (null) [15:14:36]execute_cgi path=json_proto method=POST [15:14:36]POST find Content-Length [15:14:36]Host: 172.17.60.69:8080 [15:14:36]Content-Length: 792 [15:14:36]Content-Type: application/json [15:14:36] [15:14:36]POST finish read [15:14:36]Found Content-Length = 792 [15:14:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73412", "tax_sys" : 0, "items" : [ { "code": "4640030090075", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Esse Blue", "price" : 138.00, "quantity" : 1.000, "sum" : 138.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 138.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:14:36]execute_script... [15:14:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73412", "tax_sys" : 0, "items" : [ { "code": "4640030090075", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Esse Blue", "price" : 138.00, "quantity" : 1.000, "sum" : 138.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 138.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:14:36]POST & json_proto [15:14:36]process_json_proto [15:14:36]json parsed OK: [15:14:36]protocol is kg_v1.0 [15:14:36]action value=close_receipt [15:14:36]process_action close_receipt [15:14:36]cmd_close_receipt [15:14:36]MH_GetDate [15:14:36]Write to MH i2c: F0 00 00 C7 19 CF [15:14:36]Write i2c OK [15:14:36]MH_I2C_Read... [15:14:36]Read from MH i2c: F0 [15:14:36]MH_I2C_Read... [15:14:36]Read from MH i2c: F0 09 00 [15:14:36]MH_I2C_Read... [15:14:36]Read from MH i2c: F0 09 00 C7 19 00 DF DD 5D 66 6A 96 4A 66 07 [15:14:36]GetLastDocTimeStamp 1717427188 [15:14:36]current date 1717427679 [15:14:36]FM_GetShiftState [15:14:36]SAM_PROTO_GetShiftState [15:14:36]wFMCommunicate request_size=4 [15:14:36]MH_SAM_APDU [15:14:36]CAPDU: 80 13 01 00 [15:14:36]Write to MH i2c: E2 08 00 C8 19 80 13 01 00 00 00 00 00 5E [15:14:36]Write i2c OK [15:14:36]MH_I2C_Read... [15:14:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:14:36]Read from MH i2c: E2 [15:14:36]MH_I2C_Read... [15:14:36]Read from MH i2c: E2 0E 00 [15:14:36]MH_I2C_Read... [15:14:36]Read from MH i2c: E2 0E 00 C8 19 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 2A [15:14:36]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [15:14:36]wFMCommunicate OK [15:14:36]SAM_PROTO_GetShiftState done [15:14:36]FM_GetShiftState done [15:14:36]opened in 1717373173 [15:14:36]opened+sec_in_day 1717459573 [15:14:36]quantity*price = 13800 [15:14:36]sum+1 = 13801 [15:14:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 138.00 НСП 1% : 1.22 НДС 12% : 14.65 Наличными: 0.00 Безнал.: 138.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 93 03.06.2024 15:14 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875074 ФД: 63835 ФПД: 191327748330652 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T151439&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63835&fm=191327748330652&tin=02508201610067®Number=0000000000092737&sum=13800 0 [15:14:37]StoreToDocumentArchive [15:14:37]shift 373 fd 63835 [15:14:37]save to /storage/0373/doc_00063835 [15:14:37]save last doc name /storage/0373/doc_00063835 to /storage/kkm_last_doc_name [15:14:37]save OK [15:14:37]Clear old archive folders... [15:14:37]ProcessDocumentItem done err = 0, tmpTLVsize=268 [15:14:37]tlvbuf is 00D2F160 [15:14:37]SAM_PROTO_ClearQueue [15:14:37]wFMCommunicate request_size=4 [15:14:37]MH_SAM_APDU [15:14:37]CAPDU: 80 09 00 00 [15:14:37]Write to MH i2c: E2 08 00 D5 19 80 09 00 00 00 00 00 00 60 [15:14:37]Write i2c OK [15:14:37]MH_I2C_Read... [15:14:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:14:37]Read from MH i2c: E2 [15:14:37]MH_I2C_Read... [15:14:37]Read from MH i2c: E2 03 00 [15:14:37]MH_I2C_Read... [15:14:37]Read from MH i2c: E2 03 00 D5 19 00 90 00 62 [15:14:37]RAPDU: 90 00 [15:14:37]wFMCommunicate OK [15:14:37]SAM_PROTO_ClearQueue done [15:14:37]KKMCreateOFDPacket [15:14:37]OFDProtocolAddRootSTLVToBuf [15:14:37]FM_MakeSignedData [15:14:37]FM_MakeSignedData [15:14:37]SAM_PROTO_SignData [15:14:37]wFMCommunicate request_size=4 [15:14:37]MH_SAM_APDU [15:14:37]CAPDU: 80 0D 01 02 [15:14:37]Write to MH i2c: E2 08 00 D6 19 80 0D 01 02 00 00 00 00 68 [15:14:37]Write i2c OK [15:14:37]MH_I2C_Read... [15:14:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:14:37]Read from MH i2c: E2 [15:14:37]MH_I2C_Read... [15:14:37]Read from MH i2c: E2 03 00 [15:14:37]MH_I2C_Read... [15:14:37]Read from MH i2c: E2 03 00 D6 19 00 90 00 63 [15:14:37]RAPDU: 90 00 [15:14:37]wFMCommunicate OK [15:14:37]wFMCommunicate request_size=255 [15:14:37]MH_SAM_APDU [15:14:37]CAPDU: 80 0D 02 02 FA 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 30 30 37 35 06 04 1A 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 73 73 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 E8 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 35 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E8 35 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 DF DD 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 [15:14:37]Write to MH i2c: E2 02 01 D7 19 80 0D 02 02 FA 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 30 30 37 35 06 04 1A 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 73 73 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 E8 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 35 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E8 35 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 DF DD 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 00 00 6B [15:14:37]Write i2c OK [15:14:37]MH_I2C_Read... [15:14:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:14:38]Read from MH i2c: E2 [15:14:38]MH_I2C_Read... [15:14:38]Read from MH i2c: E2 03 00 [15:14:38]MH_I2C_Read... [15:14:38]Read from MH i2c: E2 03 00 D7 19 00 90 00 64 [15:14:38]RAPDU: 90 00 [15:14:38]wFMCommunicate OK [15:14:38]wFMCommunicate request_size=27 [15:14:38]MH_SAM_APDU [15:14:38]CAPDU: 80 0D 02 02 16 35 30 37 34 10 04 04 00 5B F9 00 00 35 04 06 00 AE 02 F6 79 94 9C [15:14:38]Write to MH i2c: E2 1E 00 D8 19 80 0D 02 02 16 00 35 30 37 34 10 04 04 00 5B F9 00 00 35 04 06 00 AE 02 F6 79 94 9C 00 00 61 [15:14:38]Write i2c OK [15:14:38]MH_I2C_Read... [15:14:38]Read from MH i2c: E2 [15:14:38]MH_I2C_Read... [15:14:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:14:38]Read from MH i2c: E2 03 00 [15:14:38]MH_I2C_Read... [15:14:38]Read from MH i2c: E2 03 00 D8 19 00 90 00 65 [15:14:38]RAPDU: 90 00 [15:14:38]wFMCommunicate OK [15:14:38]wFMCommunicate request_size=4 [15:14:38]MH_SAM_APDU [15:14:38]CAPDU: 80 0D 03 02 [15:14:38]Write to MH i2c: E2 08 00 D9 19 80 0D 03 02 00 00 00 00 6D [15:14:38]Write i2c OK [15:14:38]MH_I2C_Read... [15:14:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:14:38]Read from MH i2c: E2 [15:14:38]MH_I2C_Read... [15:14:38]Read from MH i2c: E2 0B 00 [15:14:38]MH_I2C_Read... [15:14:38]Read from MH i2c: E2 0B 00 D9 19 00 3B 18 48 39 9D 84 00 B6 90 00 19 [15:14:38]RAPDU: 3B 18 48 39 9D 84 00 B6 90 00 [15:14:38]wFMCommunicate OK [15:14:38]SAM_PROTO_SignData done [15:14:38]FM_MakeSignedData done [15:14:38]CreateOFDProtocolMessage [15:14:38]wFMCommunicate request_size=4 [15:14:38]MH_SAM_APDU [15:14:38]CAPDU: 80 11 00 00 [15:14:38]Write to MH i2c: E2 08 00 DA 19 80 11 00 00 00 00 00 00 6D [15:14:38]Write i2c OK [15:14:38]MH_I2C_Read... [15:14:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:14:38]Read from MH i2c: E2 [15:14:38]MH_I2C_Read... [15:14:38]Read from MH i2c: E2 17 00 [15:14:38]MH_I2C_Read... [15:14:38]Read from MH i2c: E2 17 00 DA 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 BF [15:14:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [15:14:38]wFMCommunicate OK [15:14:38]CreateOFDProtocolMessage done [15:14:38]OFDSenderStorePacket 63835 [15:14:38]StoreOFDPacket docnum=63835 [15:14:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 20 01 00 00 9B 5A 18 01 F4 02 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 30 30 37 35 06 04 1A 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 73 73 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 E8 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 35 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E8 35 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 DF DD 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 5B F9 00 00 35 04 06 00 AE 02 F6 79 94 9C 3B 18 48 39 9D 84 00 B6 [15:14:38]CheckFolder [15:14:38]dirname=/storage/ofd_packets [15:14:38]CheckFolder done [15:14:38]ProducePacketName [15:14:38]name=ofd_packets/00063835 [15:14:38]NVStorageSaveData ofd_packets/00063835 [15:14:38]File name is /storage/ofd_packets/00063835 [15:14:38]Write 318 bytes [15:14:38]NVStorageSaveData done [15:14:38]OFDSenderStorePacket done [15:14:38]KKMCreateOFDPacket done [15:14:38]NVStorageSaveData kkm_last_timestamp [15:14:38]File name is /storage/kkm_last_timestamp [15:14:38]Write 4 bytes [15:14:38]NVStorageSaveData done [15:14:38]ExternCall_PrintAddStr [15:14:38]wPrintStart [15:14:38]Write to MH i2c: 01 00 00 DB 19 F4 [15:14:38]Write i2c OK [15:14:38]MH_I2C_Read... [15:14:38]Read from MH i2c: 01 [15:14:38]MH_I2C_Read... [15:14:38]Read from MH i2c: 01 07 00 [15:14:38]MH_I2C_Read... [15:14:38]Read from MH i2c: 01 07 00 DB 19 00 00 00 00 00 FF 0F 09 [15:14:38]RasterBufferAndPrint [15:14:38]line Счет N : (3)73412 [15:14:38]line ИНН: 02508201610067 [15:14:38]line Контрольно-Кассовый Чек [15:14:38]line ПРОДАЖА [15:14:38]line Товар: 4640030090075 [15:14:38]line Сигареты Esse Blue [15:14:38]line 1.000 * 138.00 [15:14:38]line = 138.00 [15:14:38]line НДС 12% НСП 1% [15:14:38]line > о реализуемом товаре [15:14:38]line ИТОГО: 138.00 [15:14:38]line НСП 1% : 1.22 [15:14:38]line НДС 12% : 14.65 [15:14:38]line Наличными: 0.00 [15:14:38]line Безнал.: 138.00 [15:14:38]line Место: АЗС № 117 "Партнер Нефть" [15:14:38]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [15:14:38]line СНО: Общий режим [15:14:38]line Чек 93 03.06.2024 15:14 [15:14:38]line Смена: 373 ФФД: 1.0 [15:14:38]line ЗНМ: 0300000031 [15:14:38]line РНМ: 0000000000092737 [15:14:38]line Версия ККМ: 001 [15:14:38]line Платежная система: Бакай Банк [15:14:38]line ФМ: 0000000000875074 [15:14:38]line ФД: 63835 [15:14:38]line ФПД: 191327748330652 [15:14:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T151439&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63835&fm=191327748330652&tin=02508201610067®Number=0000000000092737&sum=13800 [15:14:38]line 0 [15:14:38]written 0, free lines is 4095 [15:14:38]OFD Sender: Processing packet 63835 [packets to send 14, broken 13] [15:14:38]ProducePacketName [15:14:38]name=ofd_packets/00063835 [15:14:38]OFD Sender: To server: pG, [15:14:38]CommunicateWithHost lk.salyk.kg:30040 [15:14:38]ConnectInit lk.salyk.kg [15:14:38]Connected sock=10 [15:14:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 20 01 00 00 9B 5A 18 01 F4 02 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 30 30 37 35 06 04 1A 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 73 73 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 E8 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 35 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E8 35 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 DF DD 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 5B F9 00 00 35 04 06 00 AE 02 F6 79 94 9C 3B 18 48 39 9D 84 00 B6 [15:14:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 C6 05 47 00 BB 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 35 30 37 34 10 04 04 00 5B F9 00 00 F4 03 04 00 B0 89 5D 66 B6 04 01 00 00 00 98 A5 89 76 11 85 39 [15:14:38]CommunicateWithHost err = 0 [15:14:38]CheckOFDResponse [15:14:38]1017 (14) - 77093643461234 [15:14:38]1041 (16) - 0000000000875074 [15:14:38]1040 (4) - 63835 [15:14:38]1012 (4) - 03.06.2024 09:15 [15:14:38]1206 (1) - 0 [15:14:38]OFD Sender: Remove packet 63835 [15:14:38]ProducePacketName [15:14:38]name=ofd_packets/00063835 [15:14:38]NVStorageDeleteData [15:14:38]Write to MH i2c: 01 00 00 05 1A 1F [15:14:38]Write i2c OK [15:14:38]MH_I2C_Read... [15:14:38]Read from MH i2c: 01 [15:14:38]MH_I2C_Read... [15:14:38]Read from MH i2c: 01 07 00 [15:14:38]MH_I2C_Read... [15:14:38]Read from MH i2c: 01 07 00 05 1A 00 00 00 00 00 E7 0C 19 [15:14:38]RasterBufferAndPrint [15:14:38]line [15:14:38]line [15:14:38]line [15:14:38]line [15:14:38]line [15:14:38]written 0, free lines is 3309 [15:14:38]MH_Cut [15:14:38]Write to MH i2c: D1 01 00 0C 1A 01 F8 [15:14:38]Write i2c OK [15:14:38]MH_I2C_Read... [15:14:38]Read from MH i2c: D1 [15:14:38]MH_I2C_Read... [15:14:38]Read from MH i2c: D1 01 00 [15:14:38]MH_I2C_Read... [15:14:38]Read from MH i2c: D1 01 00 0C 1A 00 F7 [15:14:38]Write to MH i2c: 01 00 00 0D 1A 27 [15:14:38]Write i2c OK [15:14:38]MH_I2C_Read... [15:14:39]OFD Sender: No OFD packet to send [15:14:39]*** Cut start [15:14:39]*** Partial cut [15:14:39]*** CUTSNS_PIN = 1 [15:14:39]*** CUTSNS_PIN = 0 [15:14:39]*** Brake cut motor [15:14:40]Read from MH i2c: 01 [15:14:40]MH_I2C_Read... [15:14:40]*** Stop cut motor [15:14:40]*** Cut end [15:14:40]Read from MH i2c: 01 07 00 [15:14:40]MH_I2C_Read... [15:14:40]Read from MH i2c: 01 07 00 0D 1A 00 00 00 00 00 FF 0F 3C [15:14:40]process_action close_receipt done [15:14:40]requested_data is exist [15:14:40]produce_requested_data [15:14:40]requested_item fm.sn is exist - process it [15:14:40]wFMCommunicate request_size=4 [15:14:40]MH_SAM_APDU [15:14:40]CAPDU: 80 11 00 00 [15:14:40]Write to MH i2c: E2 08 00 0E 1A 80 11 00 00 00 00 00 00 A2 [15:14:40]Write i2c OK [15:14:40]MH_I2C_Read... [15:14:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:14:40]Read from MH i2c: E2 [15:14:40]MH_I2C_Read... [15:14:40]Read from MH i2c: E2 17 00 [15:14:40]MH_I2C_Read... [15:14:40]Read from MH i2c: E2 17 00 0E 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 F4 [15:14:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [15:14:40]wFMCommunicate OK [15:14:40]requested_item fd.num is exist - process it [15:14:40]SAM_PROTO_GetFieldsCounters [15:14:40]wFMCommunicate request_size=4 [15:14:40]MH_SAM_APDU [15:14:40]CAPDU: 80 13 00 00 [15:14:40]Write to MH i2c: E2 08 00 0F 1A 80 13 00 00 00 00 00 00 A5 [15:14:40]Write i2c OK [15:14:40]MH_I2C_Read... [15:14:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:14:40]Read from MH i2c: E2 [15:14:40]MH_I2C_Read... [15:14:40]Read from MH i2c: E2 62 00 [15:14:40]MH_I2C_Read... [15:14:40]Read from MH i2c: E2 62 00 0F 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 5B F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 A9 [15:14: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 5B F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:14:40]wFMCommunicate OK [15:14:40]SAM_PROTO_GetFieldsCounters done [15:14:40]requested_item shift.num is exist - process it [15:14:40]requested_item shift.opened is exist - process it [15:14:40]req_shift_opened [15:14:40]FM_GetShiftState [15:14:40]SAM_PROTO_GetShiftState [15:14:40]wFMCommunicate request_size=4 [15:14:40]MH_SAM_APDU [15:14:40]CAPDU: 80 13 01 00 [15:14:40]Write to MH i2c: E2 08 00 10 1A 80 13 01 00 00 00 00 00 A7 [15:14:40]Write i2c OK [15:14:40]MH_I2C_Read... [15:14:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:14:40]Read from MH i2c: E2 [15:14:40]MH_I2C_Read... [15:14:40]Read from MH i2c: E2 0E 00 [15:14:40]MH_I2C_Read... [15:14:40]Read from MH i2c: E2 0E 00 10 1A 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 73 [15:14:40]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [15:14:40]wFMCommunicate OK [15:14:40]SAM_PROTO_GetShiftState done [15:14:40]FM_GetShiftState done [15:14:40]req_shift_opened done [15:14:40]requested_item shift.open_date is exist - process it [15:14:40]req_shift_open_date [15:14:40]req_shift_open_date done [15:14:40]produce_requested_data done [15:14:40]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63835,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [15:14:40]process_action_free close_receipt [15:14:40]json_value_free [15:14:40]json_value_free done [15:14:40]process_json_proto returns [15:14:40]Send response to host [15:14:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63835,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [15:14:40]free response buf [15:14:40]execute_script done [15:14:40]execute_script returns [15:14:40]free content buf [15:14:40]Sock 9.Close socket [15:14:40]Sock 9.Thread stoped [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:19]OFD Sender: No OFD packet to send [15:16:24]OFD Sender: No OFD packet to send [15:16:29]OFD Sender: No OFD packet to send [15:16:34]OFD Sender: No OFD packet to send [15:16:39]OFD Sender: No OFD packet to send [15:16:44]OFD Sender: No OFD packet to send [15:16:49]OFD Sender: No OFD packet to send [15:16:54]OFD Sender: No OFD packet to send [15:16:59]OFD Sender: No OFD packet to send [15:17:04]OFD Sender: No OFD packet to send [15:17:09]OFD Sender: No OFD packet to send [15:17:14]OFD Sender: No OFD packet to send [15:17:19]OFD Sender: No OFD packet to send [15:17:24]OFD Sender: No OFD packet to send [15:17:29]OFD Sender: No OFD packet to send [15:17:34]OFD Sender: No OFD packet to send [15:17:39]OFD Sender: No OFD packet to send [15:17:44]OFD Sender: No OFD packet to send [15:17:49]OFD Sender: No OFD packet to send [15:17:54]OFD Sender: No OFD packet to send [15:17:59]OFD Sender: No OFD packet to send [15:18:04]OFD Sender: No OFD packet to send [15:18:09]OFD Sender: No OFD packet to send [15:18:14]OFD Sender: No OFD packet to send [15:18:19]OFD Sender: No OFD packet to send [15:18:24]OFD Sender: No OFD packet to send [15:18:29]OFD Sender: No OFD packet to send [15:18:34]OFD Sender: No OFD packet to send [15:18:39]OFD Sender: No OFD packet to send [15:18:44]OFD Sender: No OFD packet to send [15:18:49]OFD Sender: No OFD packet to send [15:18:54]OFD Sender: No OFD packet to send [15:18:59]OFD Sender: No OFD packet to send [15:19:04]OFD Sender: No OFD packet to send [15:19:09]OFD Sender: No OFD packet to send [15:19:14]OFD Sender: No OFD packet to send [15:19:19]OFD Sender: No OFD packet to send [15:19:24]OFD Sender: No OFD packet to send [15:19:29]OFD Sender: No OFD packet to send [15:19:34]OFD Sender: No OFD packet to send [15:19:39]OFD Sender: No OFD packet to send [15:19:44]OFD Sender: No OFD packet to send [15:19:49]OFD Sender: No OFD packet to send [15:19:54]OFD Sender: No OFD packet to send [15:19:59]OFD Sender: No OFD packet to send [15:20:04]OFD Sender: No OFD packet to send [15:20:09]OFD Sender: No OFD packet to send [15:20:14]OFD Sender: No OFD packet to send [15:20:19]OFD Sender: No OFD packet to send [15:20:24]OFD Sender: No OFD packet to send [15:20:29]OFD Sender: No OFD packet to send [15:20:34]OFD Sender: No OFD packet to send [15:20:39]OFD Sender: No OFD packet to send [15:20:44]OFD Sender: No OFD packet to send [15:20:49]OFD Sender: No OFD packet to send [15:20:53]accept exits with 7 [15:20:53]New connection [15:20:53]New thread 3067518308 created [15:20:53]Thread 3067374948 joined [15:20:53]Waiting for new connection... [15:20:53] Sock 7.Parse request [15:20:53]Sock 7.Check first char [15:20:53]Sock 7.First char is OK [15:20:53]request: POST /json_proto HTTP/1.0 [15:20:53]Method: POST [15:20:53]URL: /json_proto [15:20:53]Method is POST - this is cgi request [15:20:53]url: /json_proto [15:20:53]query_string will be loaded in cgi processing [15:20:53]execute_cgi json_proto POST (null) [15:20:53]execute_cgi path=json_proto method=POST [15:20:53]POST find Content-Length [15:20:53]Host: 172.17.60.69:8080 [15:20:53]Content-Length: 613 [15:20:53]Content-Type: application/json [15:20:53] [15:20:53]POST finish read [15:20:53]Found Content-Length = 613 [15:20:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73413", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:20:53]execute_script... [15:20:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73413", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:20:53]POST & json_proto [15:20:53]process_json_proto [15:20:53]json parsed OK: [15:20:53]protocol is kg_v1.0 [15:20:53]action value=close_receipt [15:20:53]process_action close_receipt [15:20:53]cmd_close_receipt [15:20:53]MH_GetDate [15:20:53]Write to MH i2c: F0 00 00 11 1A 1A [15:20:53]Write i2c OK [15:20:53]MH_I2C_Read... [15:20:53]Read from MH i2c: F0 [15:20:53]MH_I2C_Read... [15:20:53]Read from MH i2c: F0 09 00 [15:20:53]MH_I2C_Read... [15:20:53]Read from MH i2c: F0 09 00 11 1A 00 58 DF 5D 66 6A 96 4A 66 CD [15:20:53]GetLastDocTimeStamp 1717427679 [15:20:53]current date 1717428056 [15:20:53]FM_GetShiftState [15:20:53]SAM_PROTO_GetShiftState [15:20:53]wFMCommunicate request_size=4 [15:20:53]MH_SAM_APDU [15:20:53]CAPDU: 80 13 01 00 [15:20:53]Write to MH i2c: E2 08 00 12 1A 80 13 01 00 00 00 00 00 A9 [15:20:53]Write i2c OK [15:20:53]MH_I2C_Read... [15:20:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:20:53]Read from MH i2c: E2 [15:20:53]MH_I2C_Read... [15:20:53]Read from MH i2c: E2 0E 00 [15:20:53]MH_I2C_Read... [15:20:53]Read from MH i2c: E2 0E 00 12 1A 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 75 [15:20:53]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [15:20:53]wFMCommunicate OK [15:20:53]SAM_PROTO_GetShiftState done [15:20:53]FM_GetShiftState done [15:20:53]opened in 1717373173 [15:20:53]opened+sec_in_day 1717459573 [15:20:53]quantity*price = 11000 [15:20:53]sum+1 = 11001 [15:20:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 110.00 НСП 1% : 0.97 НДС 12% : 11.68 Наличными: 110.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 94 03.06.2024 15:20 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63836 ФПД: 245160081734792 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T152056&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63836&fm=245160081734792&tin=02508201610067®Number=0000000000092737&sum=11000 0 [15:20:54]StoreToDocumentArchive [15:20:54]shift 373 fd 63836 [15:20:54]save to /storage/0373/doc_00063836 [15:20:54]save last doc name /storage/0373/doc_00063836 to /storage/kkm_last_doc_name [15:20:54]save OK [15:20:54]Clear old archive folders... [15:20:54]ProcessDocumentItem done err = 0, tmpTLVsize=266 [15:20:54]tlvbuf is 00D2FA80 [15:20:54]SAM_PROTO_ClearQueue [15:20:54]wFMCommunicate request_size=4 [15:20:54]MH_SAM_APDU [15:20:54]CAPDU: 80 09 00 00 [15:20:54]Write to MH i2c: E2 08 00 1F 1A 80 09 00 00 00 00 00 00 AB [15:20:54]Write i2c OK [15:20:54]MH_I2C_Read... [15:20:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:20:54]Read from MH i2c: E2 [15:20:54]MH_I2C_Read... [15:20:54]Read from MH i2c: E2 03 00 [15:20:54]MH_I2C_Read... [15:20:54]Read from MH i2c: E2 03 00 1F 1A 00 90 00 AD [15:20:54]RAPDU: 90 00 [15:20:54]wFMCommunicate OK [15:20:54]SAM_PROTO_ClearQueue done [15:20:54]KKMCreateOFDPacket [15:20:54]OFDProtocolAddRootSTLVToBuf [15:20:54]FM_MakeSignedData [15:20:54]FM_MakeSignedData [15:20:54]SAM_PROTO_SignData [15:20:54]wFMCommunicate request_size=4 [15:20:54]MH_SAM_APDU [15:20:54]CAPDU: 80 0D 01 02 [15:20:54]Write to MH i2c: E2 08 00 20 1A 80 0D 01 02 00 00 00 00 B3 [15:20:54]Write i2c OK [15:20:54]MH_I2C_Read... [15:20:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:20:54]Read from MH i2c: E2 [15:20:54]MH_I2C_Read... [15:20:54]Read from MH i2c: E2 03 00 [15:20:54]MH_I2C_Read... [15:20:54]Read from MH i2c: E2 03 00 20 1A 00 90 00 AE [15:20:54]RAPDU: 90 00 [15:20:54]wFMCommunicate OK [15:20:54]wFMCommunicate request_size=255 [15:20:54]MH_SAM_APDU [15:20:54]CAPDU: 80 0D 02 02 FA 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 58 DF 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 [15:20:54]Write to MH i2c: E2 02 01 21 1A 80 0D 02 02 FA 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 58 DF 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 00 00 F7 [15:20:54]Write i2c OK [15:20:54]MH_I2C_Read... [15:20:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:20:55]Read from MH i2c: E2 [15:20:55]MH_I2C_Read... [15:20:55]Read from MH i2c: E2 03 00 [15:20:55]MH_I2C_Read... [15:20:55]Read from MH i2c: E2 03 00 21 1A 00 90 00 AF [15:20:55]RAPDU: 90 00 [15:20:55]wFMCommunicate OK [15:20:55]wFMCommunicate request_size=25 [15:20:55]MH_SAM_APDU [15:20:55]CAPDU: 80 0D 02 02 14 37 34 10 04 04 00 5C F9 00 00 35 04 06 00 DE F8 C7 95 BC 88 [15:20:55]Write to MH i2c: E2 1C 00 22 1A 80 0D 02 02 14 00 37 34 10 04 04 00 5C F9 00 00 35 04 06 00 DE F8 C7 95 BC 88 00 00 6B [15:20:55]Write i2c OK [15:20:55]MH_I2C_Read... [15:20:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:20:55]Read from MH i2c: E2 [15:20:55]MH_I2C_Read... [15:20:55]Read from MH i2c: E2 03 00 [15:20:55]MH_I2C_Read... [15:20:55]Read from MH i2c: E2 03 00 22 1A 00 90 00 B0 [15:20:55]RAPDU: 90 00 [15:20:55]wFMCommunicate OK [15:20:55]wFMCommunicate request_size=4 [15:20:55]MH_SAM_APDU [15:20:55]CAPDU: 80 0D 03 02 [15:20:55]Write to MH i2c: E2 08 00 23 1A 80 0D 03 02 00 00 00 00 B8 [15:20:55]Write i2c OK [15:20:55]MH_I2C_Read... [15:20:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:20:55]Read from MH i2c: E2 [15:20:55]MH_I2C_Read... [15:20:55]Read from MH i2c: E2 0B 00 [15:20:55]MH_I2C_Read... [15:20:55]Read from MH i2c: E2 0B 00 23 1A 00 D4 89 3B 35 64 FE 67 5F 90 00 AE [15:20:55]RAPDU: D4 89 3B 35 64 FE 67 5F 90 00 [15:20:55]wFMCommunicate OK [15:20:55]SAM_PROTO_SignData done [15:20:55]FM_MakeSignedData done [15:20:55]CreateOFDProtocolMessage [15:20:55]wFMCommunicate request_size=4 [15:20:55]MH_SAM_APDU [15:20:55]CAPDU: 80 11 00 00 [15:20:55]Write to MH i2c: E2 08 00 24 1A 80 11 00 00 00 00 00 00 B8 [15:20:55]Write i2c OK [15:20:55]MH_I2C_Read... [15:20:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:20:55]Read from MH i2c: E2 [15:20:55]MH_I2C_Read... [15:20:55]Read from MH i2c: E2 17 00 [15:20:55]MH_I2C_Read... [15:20:55]Read from MH i2c: E2 17 00 24 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 0A [15:20:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [15:20:55]wFMCommunicate OK [15:20:55]CreateOFDProtocolMessage done [15:20:55]OFDSenderStorePacket 63836 [15:20:55]StoreOFDPacket docnum=63836 [15:20:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 1E 01 00 00 82 EB 16 01 5D 54 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 58 DF 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 5C F9 00 00 35 04 06 00 DE F8 C7 95 BC 88 D4 89 3B 35 64 FE 67 5F [15:20:55]CheckFolder [15:20:55]dirname=/storage/ofd_packets [15:20:55]CheckFolder done [15:20:55]ProducePacketName [15:20:55]name=ofd_packets/00063836 [15:20:55]NVStorageSaveData ofd_packets/00063836 [15:20:55]File name is /storage/ofd_packets/00063836 [15:20:55]Write 316 bytes [15:20:55]NVStorageSaveData done [15:20:55]OFDSenderStorePacket done [15:20:55]KKMCreateOFDPacket done [15:20:55]NVStorageSaveData kkm_last_timestamp [15:20:55]File name is /storage/kkm_last_timestamp [15:20:55]Write 4 bytes [15:20:55]NVStorageSaveData done [15:20:55]ExternCall_PrintAddStr [15:20:55]wPrintStart [15:20:55]Write to MH i2c: 01 00 00 25 1A 3F [15:20:55]Write i2c OK [15:20:55]MH_I2C_Read... [15:20:55]Read from MH i2c: 01 [15:20:55]MH_I2C_Read... [15:20:55]Read from MH i2c: 01 07 00 [15:20:55]MH_I2C_Read... [15:20:55]Read from MH i2c: 01 07 00 25 1A 00 00 00 00 00 FF 0F 54 [15:20:55]RasterBufferAndPrint [15:20:55]line Счет N : (3)73413 [15:20:55]line ИНН: 02508201610067 [15:20:55]line Контрольно-Кассовый Чек [15:20:55]line ПРОДАЖА [15:20:55]line Товар: 4870001570071 [15:20:55]line Напиток Pepsi 1л [15:20:55]line 1.000 * 110.00 [15:20:55]line = 110.00 [15:20:55]line НДС 12% НСП 1% [15:20:55]line > о реализуемом товаре [15:20:55]line ИТОГО: 110.00 [15:20:55]line НСП 1% : 0.97 [15:20:55]line НДС 12% : 11.68 [15:20:55]line Наличными: 110.00 [15:20:55]line Безнал.: 0.00 [15:20:55]line Место: АЗС № 117 "Партнер Нефть" [15:20:55]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [15:20:55]line СНО: Общий режим [15:20:55]line Чек 94 03.06.2024 15:20 [15:20:55]line Смена: 373 ФФД: 1.0 [15:20:55]line ЗНМ: 0300000031 [15:20:55]line РНМ: 0000000000092737 [15:20:55]line Версия ККМ: 001 [15:20:55]line ФМ: 0000000000875074 [15:20:55]line ФД: 63836 [15:20:55]line ФПД: 245160081734792 [15:20:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T152056&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63836&fm=245160081734792&tin=02508201610067®Number=0000000000092737&sum=11000 [15:20:55]line 0 [15:20:55]OFD Sender: Processing packet 63836 [packets to send 14, broken 13] [15:20:55]ProducePacketName [15:20:55]name=ofd_packets/00063836 [15:20:55]OFD Sender: To server: pG, [15:20:55]CommunicateWithHost lk.salyk.kg:30040 [15:20:55]ConnectInit lk.salyk.kg [15:20:55]written 0, free lines is 4095 [15:20:55]Connected sock=10 [15:20:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 1E 01 00 00 82 EB 16 01 5D 54 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 58 DF 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 5C F9 00 00 35 04 06 00 DE F8 C7 95 BC 88 D4 89 3B 35 64 FE 67 5F [15:20:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 41 8D 47 00 CD 95 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 5C F9 00 00 F4 03 04 00 29 8B 5D 66 B6 04 01 00 00 44 B5 F2 63 D8 79 3F 05 [15:20:55]CommunicateWithHost err = 0 [15:20:55]CheckOFDResponse [15:20:55]1017 (14) - 77093643461234 [15:20:55]1041 (16) - 0000000000875074 [15:20:55]1040 (4) - 63836 [15:20:55]1012 (4) - 03.06.2024 09:21 [15:20:55]1206 (1) - 0 [15:20:55]OFD Sender: Remove packet 63836 [15:20:55]ProducePacketName [15:20:55]name=ofd_packets/00063836 [15:20:55]NVStorageDeleteData [15:20:56]Write to MH i2c: 01 00 00 4D 1A 67 [15:20:56]Write i2c OK [15:20:56]MH_I2C_Read... [15:20:56]Read from MH i2c: 01 [15:20:56]MH_I2C_Read... [15:20:56]Read from MH i2c: 01 07 00 [15:20:56]MH_I2C_Read... [15:20:56]Read from MH i2c: 01 07 00 4D 1A 00 00 00 00 00 F2 0C 6C [15:20:56]RasterBufferAndPrint [15:20:56]line [15:20:56]line [15:20:56]line [15:20:56]line [15:20:56]line [15:20:56]written 0, free lines is 3320 [15:20:56]MH_Cut [15:20:56]Write to MH i2c: D1 01 00 54 1A 01 40 [15:20:56]Write i2c OK [15:20:56]MH_I2C_Read... [15:20:56]Read from MH i2c: D1 [15:20:56]MH_I2C_Read... [15:20:56]Read from MH i2c: D1 01 00 [15:20:56]MH_I2C_Read... [15:20:56]Read from MH i2c: D1 01 00 54 1A 00 3F [15:20:56]Write to MH i2c: 01 00 00 55 1A 6F [15:20:56]Write i2c OK [15:20:56]MH_I2C_Read... [15:20:56]OFD Sender: No OFD packet to send [15:20:56]*** Cut start [15:20:56]*** Partial cut [15:20:56]*** CUTSNS_PIN = 1 [15:20:56]*** CUTSNS_PIN = 0 [15:20:57]*** Brake cut motor [15:20:57]Read from MH i2c: 01 [15:20:57]MH_I2C_Read... [15:20:57]*** Stop cut motor [15:20:57]*** Cut end [15:20:57]Read from MH i2c: 01 07 00 [15:20:57]MH_I2C_Read... [15:20:57]Read from MH i2c: 01 07 00 55 1A 00 00 00 00 00 FF 0F 84 [15:20:57]process_action close_receipt done [15:20:57]requested_data is exist [15:20:57]produce_requested_data [15:20:57]requested_item fm.sn is exist - process it [15:20:57]wFMCommunicate request_size=4 [15:20:57]MH_SAM_APDU [15:20:57]CAPDU: 80 11 00 00 [15:20:57]Write to MH i2c: E2 08 00 56 1A 80 11 00 00 00 00 00 00 EA [15:20:57]Write i2c OK [15:20:57]MH_I2C_Read... [15:20:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:20:57]Read from MH i2c: E2 [15:20:57]MH_I2C_Read... [15:20:57]Read from MH i2c: E2 17 00 [15:20:57]MH_I2C_Read... [15:20:57]Read from MH i2c: E2 17 00 56 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 3C [15:20:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [15:20:57]wFMCommunicate OK [15:20:57]requested_item fd.num is exist - process it [15:20:57]SAM_PROTO_GetFieldsCounters [15:20:57]wFMCommunicate request_size=4 [15:20:57]MH_SAM_APDU [15:20:57]CAPDU: 80 13 00 00 [15:20:57]Write to MH i2c: E2 08 00 57 1A 80 13 00 00 00 00 00 00 ED [15:20:57]Write i2c OK [15:20:57]MH_I2C_Read... [15:20:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:20:57]Read from MH i2c: E2 [15:20:57]MH_I2C_Read... [15:20:57]Read from MH i2c: E2 62 00 [15:20:57]MH_I2C_Read... [15:20:57]Read from MH i2c: E2 62 00 57 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 5C F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 F5 [15:20: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 5C F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:20:57]wFMCommunicate OK [15:20:57]SAM_PROTO_GetFieldsCounters done [15:20:57]requested_item shift.num is exist - process it [15:20:57]requested_item shift.opened is exist - process it [15:20:57]req_shift_opened [15:20:57]FM_GetShiftState [15:20:57]SAM_PROTO_GetShiftState [15:20:57]wFMCommunicate request_size=4 [15:20:57]MH_SAM_APDU [15:20:57]CAPDU: 80 13 01 00 [15:20:57]Write to MH i2c: E2 08 00 58 1A 80 13 01 00 00 00 00 00 EF [15:20:57]Write i2c OK [15:20:57]MH_I2C_Read... [15:20:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:20:57]Read from MH i2c: E2 [15:20:57]MH_I2C_Read... [15:20:57]Read from MH i2c: E2 0E 00 [15:20:57]MH_I2C_Read... [15:20:57]Read from MH i2c: E2 0E 00 58 1A 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 BB [15:20:57]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [15:20:57]wFMCommunicate OK [15:20:57]SAM_PROTO_GetShiftState done [15:20:57]FM_GetShiftState done [15:20:57]req_shift_opened done [15:20:57]requested_item shift.open_date is exist - process it [15:20:57]req_shift_open_date [15:20:57]req_shift_open_date done [15:20:57]produce_requested_data done [15:20:57]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63836,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [15:20:57]process_action_free close_receipt [15:20:57]json_value_free [15:20:57]json_value_free done [15:20:57]process_json_proto returns [15:20:57]Send response to host [15:20:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63836,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [15:20:57]free response buf [15:20:57]execute_script done [15:20:57]execute_script returns [15:20:57]free content buf [15:20:57]Sock 7.Close socket [15:20:57]Sock 7.Thread stoped [15:21:01]OFD Sender: No OFD packet to send [15:21:06]OFD Sender: No OFD packet to send [15:21:11]OFD Sender: No OFD packet to send [15:21:16]OFD Sender: No OFD packet to send [15:21:21]OFD Sender: No OFD packet to send [15:21:26]OFD Sender: No OFD packet to send [15:21:31]OFD Sender: No OFD packet to send [15:21:36]OFD Sender: No OFD packet to send [15:21:41]OFD Sender: No OFD packet to send [15:21:46]OFD Sender: No OFD packet to send [15:21:51]OFD Sender: No OFD packet to send [15:21:56]OFD Sender: No OFD packet to send [15:22:01]OFD Sender: No OFD packet to send [15:22:06]OFD Sender: No OFD packet to send [15:22:11]OFD Sender: No OFD packet to send [15:22:16]OFD Sender: No OFD packet to send [15:22:21]OFD Sender: No OFD packet to send [15:22:26]OFD Sender: No OFD packet to send [15:22:31]OFD Sender: No OFD packet to send [15:22:36]OFD Sender: No OFD packet to send [15:22:41]OFD Sender: No OFD packet to send [15:22:46]OFD Sender: No OFD packet to send [15:22:51]OFD Sender: No OFD packet to send [15:22:56]OFD Sender: No OFD packet to send [15:23:01]OFD Sender: No OFD packet to send [15:23:06]OFD Sender: No OFD packet to send [15:23:11]OFD Sender: No OFD packet to send [15:23:16]OFD Sender: No OFD packet to send [15:23:21]OFD Sender: No OFD packet to send [15:23:26]OFD Sender: No OFD packet to send [15:23:31]OFD Sender: No OFD packet to send [15:23:36]OFD Sender: No OFD packet to send [15:23:41]OFD Sender: No OFD packet to send [15:23:46]OFD Sender: No OFD packet to send [15:23:51]OFD Sender: No OFD packet to send [15:23:56]OFD Sender: No OFD packet to send [15:24:01]OFD Sender: No OFD packet to send [15:24:06]OFD Sender: No OFD packet to send [15:24:11]OFD Sender: No OFD packet to send [15:24:16]OFD Sender: No OFD packet to send [15:24:21]OFD Sender: No OFD packet to send [15:24:26]OFD Sender: No OFD packet to send [15:24:31]OFD Sender: No OFD packet to send [15:24:36]OFD Sender: No OFD packet to send [15:24:41]OFD Sender: No OFD packet to send [15:24:46]OFD Sender: No OFD packet to send [15:24:51]OFD Sender: No OFD packet to send [15:24:56]OFD Sender: No OFD packet to send [15:25:01]OFD Sender: No OFD packet to send [15:25:06]OFD Sender: No OFD packet to send [15:25:11]OFD Sender: No OFD packet to send [15:25:16]OFD Sender: No OFD packet to send [15:25:21]OFD Sender: No OFD packet to send [15:25:26]OFD Sender: No OFD packet to send [15:25:31]OFD Sender: No OFD packet to send [15:25:36]OFD Sender: No OFD packet to send [15:25:41]OFD Sender: No OFD packet to send [15:25:46]OFD Sender: No OFD packet to send [15:25:51]OFD Sender: No OFD packet to send [15:25:56]OFD Sender: No OFD packet to send [15:26:01]OFD Sender: No OFD packet to send [15:26:06]OFD Sender: No OFD packet to send [15:26:11]OFD Sender: No OFD packet to send [15:26:16]OFD Sender: No OFD packet to send [15:26:21]OFD Sender: No OFD packet to send [15:26:26]OFD Sender: No OFD packet to send [15:26:31]OFD Sender: No OFD packet to send [15:26:36]OFD Sender: No OFD packet to send [15:26:41]OFD Sender: No OFD packet to send [15:26:46]OFD Sender: No OFD packet to send [15:26:51]OFD Sender: No OFD packet to send [15:26:56]OFD Sender: No OFD packet to send [15:27:01]OFD Sender: No OFD packet to send [15:27:06]OFD Sender: No OFD packet to send [15:27:11]OFD Sender: No OFD packet to send [15:27:16]OFD Sender: No OFD packet to send [15:27:21]OFD Sender: No OFD packet to send [15:27:26]OFD Sender: No OFD packet to send [15:27:31]OFD Sender: No OFD packet to send [15:27:36]OFD Sender: No OFD packet to send [15:27:41]OFD Sender: No OFD packet to send [15:27:46]OFD Sender: No OFD packet to send [15:27:51]OFD Sender: No OFD packet to send [15:27:56]OFD Sender: No OFD packet to send [15:28:01]OFD Sender: No OFD packet to send [15:28:06]OFD Sender: No OFD packet to send [15:28:11]OFD Sender: No OFD packet to send [15:28:16]OFD Sender: No OFD packet to send [15:28:21]OFD Sender: No OFD packet to send [15:28:26]OFD Sender: No OFD packet to send [15:28:31]OFD Sender: No OFD packet to send [15:28:36]OFD Sender: No OFD packet to send [15:28:41]OFD Sender: No OFD packet to send [15:28:46]OFD Sender: No OFD packet to send [15:28:51]OFD Sender: No OFD packet to send [15:28:56]OFD Sender: No OFD packet to send [15:29:01]OFD Sender: No OFD packet to send [15:29:06]OFD Sender: No OFD packet to send [15:29:11]OFD Sender: No OFD packet to send [15:29:16]OFD Sender: No OFD packet to send [15:29:21]OFD Sender: No OFD packet to send [15:29:26]OFD Sender: No OFD packet to send [15:29:31]OFD Sender: No OFD packet to send [15:29:36]OFD Sender: No OFD packet to send [15:29:41]OFD Sender: No OFD packet to send [15:29:46]OFD Sender: No OFD packet to send [15:29:51]OFD Sender: No OFD packet to send [15:29:56]OFD Sender: No OFD packet to send [15:30:01]OFD Sender: No OFD packet to send [15:30:06]OFD Sender: No OFD packet to send [15:30:11]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]accept exits with 9 [15:31:26]New connection [15:31:26]New thread 3067374948 created [15:31:26]Thread 3067518308 joined [15:31:26]Waiting for new connection... [15:31:26] Sock 9.Parse request [15:31:26]Sock 9.Check first char [15:31:26]Sock 9.First char is OK [15:31:26]request: POST /json_proto HTTP/1.0 [15:31:26]Method: POST [15:31:26]URL: /json_proto [15:31:26]Method is POST - this is cgi request [15:31:26]url: /json_proto [15:31:26]query_string will be loaded in cgi processing [15:31:26]execute_cgi json_proto POST (null) [15:31:26]execute_cgi path=json_proto method=POST [15:31:26]POST find Content-Length [15:31:26]Host: 172.17.60.69:8080 [15:31:26]Content-Length: 1041 [15:31:26]Content-Type: application/json [15:31:26] [15:31:26]POST finish read [15:31:26]Found Content-Length = 1041 [15:31:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73414", "tax_sys" : 0, "items" : [ { "code": "2000036240010", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 (GABB TRADE)", "price" : 115.00, "quantity" : 2.000, "sum" : 230.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 3.000, "sum" : 420.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 650.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:31:26]execute_script... [15:31:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73414", "tax_sys" : 0, "items" : [ { "code": "2000036240010", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 (GABB TRADE)", "price" : 115.00, "quantity" : 2.000, "sum" : 230.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 3.000, "sum" : 420.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 650.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:31:26]POST & json_proto [15:31:26]process_json_proto [15:31:26]json parsed OK: [15:31:26]protocol is kg_v1.0 [15:31:26]action value=close_receipt [15:31:26]process_action close_receipt [15:31:26]cmd_close_receipt [15:31:26]MH_GetDate [15:31:26]Write to MH i2c: F0 00 00 59 1A 62 [15:31:26]Write i2c OK [15:31:26]MH_I2C_Read... [15:31:26]Read from MH i2c: F0 [15:31:26]MH_I2C_Read... [15:31:26]Read from MH i2c: F0 09 00 [15:31:26]MH_I2C_Read... [15:31:26]Read from MH i2c: F0 09 00 59 1A 00 D1 E1 5D 66 6A 96 4A 66 90 [15:31:26]GetLastDocTimeStamp 1717428056 [15:31:26]current date 1717428689 [15:31:26]FM_GetShiftState [15:31:26]SAM_PROTO_GetShiftState [15:31:26]wFMCommunicate request_size=4 [15:31:26]MH_SAM_APDU [15:31:26]CAPDU: 80 13 01 00 [15:31:26]Write to MH i2c: E2 08 00 5A 1A 80 13 01 00 00 00 00 00 F1 [15:31:26]Write i2c OK [15:31:26]MH_I2C_Read... [15:31:26]OFD Sender: No OFD packet to send [15:31:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:31:26]Read from MH i2c: E2 [15:31:26]MH_I2C_Read... [15:31:26]Read from MH i2c: E2 0E 00 [15:31:26]MH_I2C_Read... [15:31:26]Read from MH i2c: E2 0E 00 5A 1A 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 BD [15:31:26]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [15:31:26]wFMCommunicate OK [15:31:26]SAM_PROTO_GetShiftState done [15:31:26]FM_GetShiftState done [15:31:26]opened in 1717373173 [15:31:26]opened+sec_in_day 1717459573 [15:31:26]quantity*price = 23000 [15:31:26]sum+1 = 23001 [15:31:26]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48743587 Сигареты Winston XStyle Silver 3.000 * 140.00 = 420.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 650.00 НСП 1% : 5.75 НДС 12% : 69.02 Наличными: 0.00 Безнал.: 650.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 95 03.06.2024 15:31 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875074 ФД: 63837 ФПД: 99233851462620 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T153129&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63837&fm=99233851462620&tin=02508201610067®Number=0000000000092737&sum=65000 0 [15:31:28]StoreToDocumentArchive [15:31:28]shift 373 fd 63837 [15:31:28]save to /storage/0373/doc_00063837 [15:31:28]save last doc name /storage/0373/doc_00063837 to /storage/kkm_last_doc_name [15:31:28]save OK [15:31:28]Clear old archive folders... [15:31:28]ProcessDocumentItem done err = 0, tmpTLVsize=379 [15:31:28]tlvbuf is 00D72D40 [15:31:28]SAM_PROTO_ClearQueue [15:31:28]wFMCommunicate request_size=4 [15:31:28]MH_SAM_APDU [15:31:28]CAPDU: 80 09 00 00 [15:31:28]Write to MH i2c: E2 08 00 67 1A 80 09 00 00 00 00 00 00 F3 [15:31:28]Write i2c OK [15:31:28]MH_I2C_Read... [15:31:28]Read from MH i2c: E2 [15:31:28]MH_I2C_Read... [15:31:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:31:28]Read from MH i2c: E2 03 00 [15:31:28]MH_I2C_Read... [15:31:28]Read from MH i2c: E2 03 00 67 1A 00 90 00 F5 [15:31:28]RAPDU: 90 00 [15:31:28]wFMCommunicate OK [15:31:28]SAM_PROTO_ClearQueue done [15:31:28]KKMCreateOFDPacket [15:31:28]OFDProtocolAddRootSTLVToBuf [15:31:28]FM_MakeSignedData [15:31:28]FM_MakeSignedData [15:31:28]SAM_PROTO_SignData [15:31:28]wFMCommunicate request_size=4 [15:31:28]MH_SAM_APDU [15:31:28]CAPDU: 80 0D 01 02 [15:31:28]Write to MH i2c: E2 08 00 68 1A 80 0D 01 02 00 00 00 00 FB [15:31:28]Write i2c OK [15:31:28]MH_I2C_Read... [15:31:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:31:28]Read from MH i2c: E2 [15:31:28]MH_I2C_Read... [15:31:28]Read from MH i2c: E2 03 00 [15:31:28]MH_I2C_Read... [15:31:28]Read from MH i2c: E2 03 00 68 1A 00 90 00 F6 [15:31:28]RAPDU: 90 00 [15:31:28]wFMCommunicate OK [15:31:28]wFMCommunicate request_size=255 [15:31:28]MH_SAM_APDU [15:31:28]CAPDU: 80 0D 02 02 FA 03 00 7B 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 10 A4 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 [15:31:28]Write to MH i2c: E2 02 01 69 1A 80 0D 02 02 FA 00 03 00 7B 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 10 A4 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 00 23 [15:31:28]Write i2c OK [15:31:28]MH_I2C_Read... [15:31:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:31:28]Read from MH i2c: E2 [15:31:28]MH_I2C_Read... [15:31:28]Read from MH i2c: E2 03 00 [15:31:28]MH_I2C_Read... [15:31:28]Read from MH i2c: E2 03 00 69 1A 00 90 00 F7 [15:31:28]RAPDU: 90 00 [15:31:28]wFMCommunicate OK [15:31:28]wFMCommunicate request_size=138 [15:31:28]MH_SAM_APDU [15:31:28]CAPDU: 80 0D 02 02 85 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F6 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E8 FD 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 D1 E1 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 5D F9 00 00 35 04 06 00 5A 40 AE 77 53 DC [15:31:28]Write to MH i2c: E2 8D 00 6A 1A 80 0D 02 02 85 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F6 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E8 FD 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 D1 E1 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 5D F9 00 00 35 04 06 00 5A 40 AE 77 53 DC 00 00 BA [15:31:28]Write i2c OK [15:31:28]MH_I2C_Read... [15:31:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:31:28]Read from MH i2c: E2 [15:31:28]MH_I2C_Read... [15:31:28]Read from MH i2c: E2 03 00 [15:31:28]MH_I2C_Read... [15:31:28]Read from MH i2c: E2 03 00 6A 1A 00 90 00 F8 [15:31:28]RAPDU: 90 00 [15:31:28]wFMCommunicate OK [15:31:28]wFMCommunicate request_size=4 [15:31:28]MH_SAM_APDU [15:31:28]CAPDU: 80 0D 03 02 [15:31:28]Write to MH i2c: E2 08 00 6B 1A 80 0D 03 02 00 00 00 00 00 [15:31:28]Write i2c OK [15:31:28]MH_I2C_Read... [15:31:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:31:28]Read from MH i2c: E2 [15:31:28]MH_I2C_Read... [15:31:28]Read from MH i2c: E2 0B 00 [15:31:28]MH_I2C_Read... [15:31:28]Read from MH i2c: E2 0B 00 6B 1A 00 44 12 B8 4A 98 C0 0B 77 90 00 33 [15:31:28]RAPDU: 44 12 B8 4A 98 C0 0B 77 90 00 [15:31:28]wFMCommunicate OK [15:31:28]SAM_PROTO_SignData done [15:31:28]FM_MakeSignedData done [15:31:28]CreateOFDProtocolMessage [15:31:28]wFMCommunicate request_size=4 [15:31:28]MH_SAM_APDU [15:31:28]CAPDU: 80 11 00 00 [15:31:28]Write to MH i2c: E2 08 00 6C 1A 80 11 00 00 00 00 00 00 00 [15:31:28]Write i2c OK [15:31:28]MH_I2C_Read... [15:31:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:31:28]Read from MH i2c: E2 [15:31:28]MH_I2C_Read... [15:31:28]Read from MH i2c: E2 17 00 [15:31:28]MH_I2C_Read... [15:31:28]Read from MH i2c: E2 17 00 6C 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 52 [15:31:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [15:31:28]wFMCommunicate OK [15:31:28]CreateOFDProtocolMessage done [15:31:28]OFDSenderStorePacket 63837 [15:31:28]StoreOFDPacket docnum=63837 [15:31:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 8F 01 00 00 19 96 87 01 E1 A6 5A 03 01 00 03 00 7B 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 10 A4 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 F6 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E8 FD 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 D1 E1 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 5D F9 00 00 35 04 06 00 5A 40 AE 77 53 DC 44 12 B8 4A 98 C0 0B 77 [15:31:28]CheckFolder [15:31:28]dirname=/storage/ofd_packets [15:31:28]CheckFolder done [15:31:28]ProducePacketName [15:31:28]name=ofd_packets/00063837 [15:31:28]NVStorageSaveData ofd_packets/00063837 [15:31:28]File name is /storage/ofd_packets/00063837 [15:31:28]Write 429 bytes [15:31:28]NVStorageSaveData done [15:31:28]OFDSenderStorePacket done [15:31:28]KKMCreateOFDPacket done [15:31:28]NVStorageSaveData kkm_last_timestamp [15:31:28]File name is /storage/kkm_last_timestamp [15:31:28]Write 4 bytes [15:31:28]NVStorageSaveData done [15:31:29]ExternCall_PrintAddStr [15:31:29]wPrintStart [15:31:29]Write to MH i2c: 01 00 00 6D 1A 87 [15:31:29]OFD Sender: Processing packet 63837 [packets to send 14, broken 13] [15:31:29]ProducePacketName [15:31:29]name=ofd_packets/00063837 [15:31:29]OFD Sender: To server: pG, [15:31:29]CommunicateWithHost lk.salyk.kg:30040 [15:31:29]ConnectInit lk.salyk.kg [15:31:29]Write i2c OK [15:31:29]MH_I2C_Read... [15:31:29]Read from MH i2c: 01 [15:31:29]MH_I2C_Read... [15:31:29]Read from MH i2c: 01 07 00 [15:31:29]MH_I2C_Read... [15:31:29]Read from MH i2c: 01 07 00 6D 1A 00 00 00 00 00 FF 0F 9C [15:31:29]RasterBufferAndPrint [15:31:29]line Счет N : (3)73414 [15:31:29]line ИНН: 02508201610067 [15:31:29]line Контрольно-Кассовый Чек [15:31:29]line ПРОДАЖА [15:31:29]line Товар: 2000036240010 [15:31:29]line Кофе Латте (GABB TRADE) [15:31:29]line 2.000 * 115.00 [15:31:29]line = 230.00 [15:31:29]line НДС 12% НСП 1% [15:31:29]line > о реализуемом товаре [15:31:29]line Товар: 48743587 [15:31:29]line Сигареты Winston XStyle Silver [15:31:29]line 3.000 * 140.00 [15:31:29]line = 420.00 [15:31:29]line НДС 12% НСП 1% [15:31:29]line > о реализуемом товаре [15:31:29]line ИТОГО: 650.00 [15:31:29]line НСП 1% : 5.75 [15:31:29]line НДС 12% : 69.02 [15:31:29]line Наличными: 0.00 [15:31:29]line Безнал.: 650.00 [15:31:29]line Место: АЗС № 117 "Партнер Нефть" [15:31:29]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [15:31:29]line СНО: Общий режим [15:31:29]line Чек 95 03.06.2024 15:31 [15:31:29]line Смена: 373 ФФД: 1.0 [15:31:29]line ЗНМ: 0300000031 [15:31:29]line РНМ: 0000000000092737 [15:31:29]line Версия ККМ: 001 [15:31:29]line Платежная система: Бакай Банк [15:31:29]line ФМ: 0000000000875074 [15:31:29]line ФД: 63837 [15:31:29]line ФПД: 99233851462620 [15:31:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T153129&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63837&fm=99233851462620&tin=02508201610067®Number=0000000000092737&sum=65000 [15:31:29]line 0 [15:31:29]written 0, free lines is 4095 [15:31:29]Connected sock=10 [15:31:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 8F 01 00 00 19 96 87 01 E1 A6 5A 03 01 00 03 00 7B 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 10 A4 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 F6 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E8 FD 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 D1 E1 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 5D F9 00 00 35 04 06 00 5A 40 AE 77 53 DC 44 12 B8 4A 98 C0 0B 77 [15:31:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 DF 70 47 00 F2 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 35 30 37 34 10 04 04 00 5D F9 00 00 F4 03 04 00 A2 8D 5D 66 B6 04 01 00 00 88 4A 62 49 F6 44 7E 78 [15:31:29]CommunicateWithHost err = 0 [15:31:29]CheckOFDResponse [15:31:29]1017 (14) - 77093643461234 [15:31:29]1041 (16) - 0000000000875074 [15:31:29]1040 (4) - 63837 [15:31:29]1012 (4) - 03.06.2024 09:32 [15:31:29]1206 (1) - 0 [15:31:29]OFD Sender: Remove packet 63837 [15:31:29]ProducePacketName [15:31:29]name=ofd_packets/00063837 [15:31:29]NVStorageDeleteData [15:31:29]Write to MH i2c: 01 00 00 9E 1A B8 [15:31:29]Write i2c OK [15:31:29]MH_I2C_Read... [15:31:29]Read from MH i2c: 01 [15:31:29]MH_I2C_Read... [15:31:29]Read from MH i2c: 01 07 00 [15:31:29]MH_I2C_Read... [15:31:29]Read from MH i2c: 01 07 00 9E 1A 00 00 00 00 00 73 0C 3E [15:31:29]RasterBufferAndPrint [15:31:29]line [15:31:29]line [15:31:29]line [15:31:29]line [15:31:29]line [15:31:29]written 0, free lines is 3194 [15:31:29]MH_Cut [15:31:29]Write to MH i2c: D1 01 00 A5 1A 01 91 [15:31:29]Write i2c OK [15:31:29]MH_I2C_Read... [15:31:29]Read from MH i2c: D1 [15:31:29]MH_I2C_Read... [15:31:29]Read from MH i2c: D1 01 00 [15:31:29]MH_I2C_Read... [15:31:29]Read from MH i2c: D1 01 00 A5 1A 00 90 [15:31:29]Write to MH i2c: 01 00 00 A6 1A C0 [15:31:29]Write i2c OK [15:31:29]MH_I2C_Read... [15:31:29]OFD Sender: No OFD packet to send [15:31:30]*** Cut start [15:31:30]*** Partial cut [15:31:30]*** CUTSNS_PIN = 1 [15:31:30]*** CUTSNS_PIN = 0 [15:31:30]*** Brake cut motor [15:31:31]Read from MH i2c: 01 [15:31:31]MH_I2C_Read... [15:31:31]*** Stop cut motor [15:31:31]*** Cut end [15:31:31]Read from MH i2c: 01 07 00 [15:31:31]MH_I2C_Read... [15:31:31]Read from MH i2c: 01 07 00 A6 1A 00 00 00 00 00 FF 0F D5 [15:31:31]process_action close_receipt done [15:31:31]requested_data is exist [15:31:31]produce_requested_data [15:31:31]requested_item fm.sn is exist - process it [15:31:31]wFMCommunicate request_size=4 [15:31:31]MH_SAM_APDU [15:31:31]CAPDU: 80 11 00 00 [15:31:31]Write to MH i2c: E2 08 00 A7 1A 80 11 00 00 00 00 00 00 3B [15:31:31]Write i2c OK [15:31:31]MH_I2C_Read... [15:31:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:31:31]Read from MH i2c: E2 [15:31:31]MH_I2C_Read... [15:31:31]Read from MH i2c: E2 17 00 [15:31:31]MH_I2C_Read... [15:31:31]Read from MH i2c: E2 17 00 A7 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 8D [15:31:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [15:31:31]wFMCommunicate OK [15:31:31]requested_item fd.num is exist - process it [15:31:31]SAM_PROTO_GetFieldsCounters [15:31:31]wFMCommunicate request_size=4 [15:31:31]MH_SAM_APDU [15:31:31]CAPDU: 80 13 00 00 [15:31:31]Write to MH i2c: E2 08 00 A8 1A 80 13 00 00 00 00 00 00 3E [15:31:31]Write i2c OK [15:31:31]MH_I2C_Read... [15:31:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:31:31]Read from MH i2c: E2 [15:31:31]MH_I2C_Read... [15:31:31]Read from MH i2c: E2 62 00 [15:31:31]MH_I2C_Read... [15:31:31]Read from MH i2c: E2 62 00 A8 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 5D F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 4A [15:31: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 5D F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:31:31]wFMCommunicate OK [15:31:31]SAM_PROTO_GetFieldsCounters done [15:31:31]requested_item shift.num is exist - process it [15:31:31]requested_item shift.opened is exist - process it [15:31:31]req_shift_opened [15:31:31]FM_GetShiftState [15:31:31]SAM_PROTO_GetShiftState [15:31:31]wFMCommunicate request_size=4 [15:31:31]MH_SAM_APDU [15:31:31]CAPDU: 80 13 01 00 [15:31:31]Write to MH i2c: E2 08 00 A9 1A 80 13 01 00 00 00 00 00 40 [15:31:31]Write i2c OK [15:31:31]MH_I2C_Read... [15:31:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:31:31]Read from MH i2c: E2 [15:31:31]MH_I2C_Read... [15:31:31]Read from MH i2c: E2 0E 00 [15:31:31]MH_I2C_Read... [15:31:31]Read from MH i2c: E2 0E 00 A9 1A 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 0C [15:31:31]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [15:31:31]wFMCommunicate OK [15:31:31]SAM_PROTO_GetShiftState done [15:31:31]FM_GetShiftState done [15:31:31]req_shift_opened done [15:31:31]requested_item shift.open_date is exist - process it [15:31:31]req_shift_open_date [15:31:31]req_shift_open_date done [15:31:31]produce_requested_data done [15:31:31]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63837,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [15:31:31]process_action_free close_receipt [15:31:31]json_value_free [15:31:31]json_value_free done [15:31:31]process_json_proto returns [15:31:31]Send response to host [15:31:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63837,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [15:31:31]free response buf [15:31:31]execute_script done [15:31:31]execute_script returns [15:31:31]free content buf [15:31:31]Sock 9.Close socket [15:31:31]Sock 9.Thread stoped [15:31:34]OFD Sender: No OFD packet to send [15:31:39]OFD Sender: No OFD packet to send [15:31:44]OFD Sender: No OFD packet to send [15:31:49]OFD Sender: No OFD packet to send [15:31:54]OFD Sender: No OFD packet to send [15:31:59]OFD Sender: No OFD packet to send [15:32:04]accept exits with 7 [15:32:04]New connection [15:32:04]New thread 3067518308 created [15:32:04]Thread 3067374948 joined [15:32:04]Waiting for new connection... [15:32:04] Sock 7.Parse request [15:32:04]Sock 7.Check first char [15:32:04]Sock 7.First char is OK [15:32:04]request: POST /json_proto HTTP/1.0 [15:32:04]Method: POST [15:32:04]URL: /json_proto [15:32:04]Method is POST - this is cgi request [15:32:04]url: /json_proto [15:32:04]query_string will be loaded in cgi processing [15:32:04]execute_cgi json_proto POST (null) [15:32:04]execute_cgi path=json_proto method=POST [15:32:04]POST find Content-Length [15:32:04]Host: 172.17.60.69:8080 [15:32:04]Content-Length: 631 [15:32:04]Content-Type: application/json [15:32:04] [15:32:04]POST finish read [15:32:04]Found Content-Length = 631 [15:32:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73415", "tax_sys" : 0, "items" : [ { "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 40.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:32:04]execute_script... [15:32:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73415", "tax_sys" : 0, "items" : [ { "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 40.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:32:04]POST & json_proto [15:32:04]process_json_proto [15:32:04]json parsed OK: [15:32:04]protocol is kg_v1.0 [15:32:04]action value=close_receipt [15:32:04]process_action close_receipt [15:32:04]cmd_close_receipt [15:32:04]MH_GetDate [15:32:04]Write to MH i2c: F0 00 00 AA 1A B3 [15:32:04]Write i2c OK [15:32:04]MH_I2C_Read... [15:32:04]Read from MH i2c: F0 [15:32:04]MH_I2C_Read... [15:32:04]Read from MH i2c: F0 09 00 [15:32:04]MH_I2C_Read... [15:32:04]Read from MH i2c: F0 09 00 AA 1A 00 F7 E1 5D 66 6A 96 4A 66 07 [15:32:04]GetLastDocTimeStamp 1717428689 [15:32:04]current date 1717428727 [15:32:04]FM_GetShiftState [15:32:04]SAM_PROTO_GetShiftState [15:32:04]wFMCommunicate request_size=4 [15:32:04]MH_SAM_APDU [15:32:04]CAPDU: 80 13 01 00 [15:32:04]Write to MH i2c: E2 08 00 AB 1A 80 13 01 00 00 00 00 00 42 [15:32:04]Write i2c OK [15:32:04]MH_I2C_Read... [15:32:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:32:04]Read from MH i2c: E2 [15:32:04]MH_I2C_Read... [15:32:04]Read from MH i2c: E2 0E 00 [15:32:04]MH_I2C_Read... [15:32:04]Read from MH i2c: E2 0E 00 AB 1A 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 0E [15:32:04]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [15:32:04]wFMCommunicate OK [15:32:04]SAM_PROTO_GetShiftState done [15:32:04]FM_GetShiftState done [15:32:04]opened in 1717373173 [15:32:04]opened+sec_in_day 1717459573 [15:32:04]quantity*price = 4000 [15:32:04]sum+1 = 4001 [15:32:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 40.00 НСП 1% : 0.35 НДС 12% : 4.25 Наличными: 40.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 96 03.06.2024 15:32 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63838 ФПД: 46128217253017 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T153207&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63838&fm=46128217253017&tin=02508201610067®Number=0000000000092737&sum=4000 0 [15:32:05]StoreToDocumentArchive [15:32:05]shift 373 fd 63838 [15:32:05]save to /storage/0373/doc_00063838 [15:32:05]save last doc name /storage/0373/doc_00063838 to /storage/kkm_last_doc_name [15:32:05]save OK [15:32:05]Clear old archive folders... [15:32:05]ProcessDocumentItem done err = 0, tmpTLVsize=271 [15:32:05]tlvbuf is 00D1DF50 [15:32:05]SAM_PROTO_ClearQueue [15:32:05]wFMCommunicate request_size=4 [15:32:05]MH_SAM_APDU [15:32:05]CAPDU: 80 09 00 00 [15:32:05]Write to MH i2c: E2 08 00 B8 1A 80 09 00 00 00 00 00 00 44 [15:32:05]Write i2c OK [15:32:05]MH_I2C_Read... [15:32:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:32:05]Read from MH i2c: E2 [15:32:05]MH_I2C_Read... [15:32:05]Read from MH i2c: E2 03 00 [15:32:05]MH_I2C_Read... [15:32:05]Read from MH i2c: E2 03 00 B8 1A 00 90 00 46 [15:32:05]RAPDU: 90 00 [15:32:05]wFMCommunicate OK [15:32:05]SAM_PROTO_ClearQueue done [15:32:05]KKMCreateOFDPacket [15:32:05]OFDProtocolAddRootSTLVToBuf [15:32:05]FM_MakeSignedData [15:32:05]FM_MakeSignedData [15:32:05]SAM_PROTO_SignData [15:32:05]wFMCommunicate request_size=4 [15:32:05]MH_SAM_APDU [15:32:05]CAPDU: 80 0D 01 02 [15:32:05]Write to MH i2c: E2 08 00 B9 1A 80 0D 01 02 00 00 00 00 4C [15:32:05]Write i2c OK [15:32:05]MH_I2C_Read... [15:32:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:32:05]Read from MH i2c: E2 [15:32:05]MH_I2C_Read... [15:32:05]Read from MH i2c: E2 03 00 [15:32:05]MH_I2C_Read... [15:32:05]Read from MH i2c: E2 03 00 B9 1A 00 90 00 47 [15:32:05]RAPDU: 90 00 [15:32:05]wFMCommunicate OK [15:32:05]wFMCommunicate request_size=255 [15:32:05]MH_SAM_APDU [15:32:05]CAPDU: 80 0D 02 02 FA 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 F7 E1 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 [15:32:05]Write to MH i2c: E2 02 01 BA 1A 80 0D 02 02 FA 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 F7 E1 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 A5 [15:32:05]Write i2c OK [15:32:05]MH_I2C_Read... [15:32:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:32:06]Read from MH i2c: E2 [15:32:06]MH_I2C_Read... [15:32:06]Read from MH i2c: E2 03 00 [15:32:06]MH_I2C_Read... [15:32:06]Read from MH i2c: E2 03 00 BA 1A 00 90 00 48 [15:32:06]RAPDU: 90 00 [15:32:06]wFMCommunicate OK [15:32:06]wFMCommunicate request_size=30 [15:32:06]MH_SAM_APDU [15:32:06]CAPDU: 80 0D 02 02 19 30 38 37 35 30 37 34 10 04 04 00 5E F9 00 00 35 04 06 00 29 F4 10 00 E4 99 [15:32:06]Write to MH i2c: E2 21 00 BB 1A 80 0D 02 02 19 00 30 38 37 35 30 37 34 10 04 04 00 5E F9 00 00 35 04 06 00 29 F4 10 00 E4 99 00 00 48 [15:32:06]Write i2c OK [15:32:06]MH_I2C_Read... [15:32:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:32:06]Read from MH i2c: E2 [15:32:06]MH_I2C_Read... [15:32:06]Read from MH i2c: E2 03 00 [15:32:06]MH_I2C_Read... [15:32:06]Read from MH i2c: E2 03 00 BB 1A 00 90 00 49 [15:32:06]RAPDU: 90 00 [15:32:06]wFMCommunicate OK [15:32:06]wFMCommunicate request_size=4 [15:32:06]MH_SAM_APDU [15:32:06]CAPDU: 80 0D 03 02 [15:32:06]Write to MH i2c: E2 08 00 BC 1A 80 0D 03 02 00 00 00 00 51 [15:32:06]Write i2c OK [15:32:06]MH_I2C_Read... [15:32:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:32:06]Read from MH i2c: E2 [15:32:06]MH_I2C_Read... [15:32:06]Read from MH i2c: E2 0B 00 [15:32:06]MH_I2C_Read... [15:32:06]Read from MH i2c: E2 0B 00 BC 1A 00 A1 A4 52 15 3F ED 1B BB 90 00 00 [15:32:06]RAPDU: A1 A4 52 15 3F ED 1B BB 90 00 [15:32:06]wFMCommunicate OK [15:32:06]SAM_PROTO_SignData done [15:32:06]FM_MakeSignedData done [15:32:06]CreateOFDProtocolMessage [15:32:06]wFMCommunicate request_size=4 [15:32:06]MH_SAM_APDU [15:32:06]CAPDU: 80 11 00 00 [15:32:06]Write to MH i2c: E2 08 00 BD 1A 80 11 00 00 00 00 00 00 51 [15:32:06]Write i2c OK [15:32:06]MH_I2C_Read... [15:32:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:32:06]Read from MH i2c: E2 [15:32:06]MH_I2C_Read... [15:32:06]Read from MH i2c: E2 17 00 [15:32:06]MH_I2C_Read... [15:32:06]Read from MH i2c: E2 17 00 BD 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 A3 [15:32:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [15:32:06]wFMCommunicate OK [15:32:06]CreateOFDProtocolMessage done [15:32:06]OFDSenderStorePacket 63838 [15:32:06]StoreOFDPacket docnum=63838 [15:32:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 23 01 00 00 51 7E 1B 01 86 6A 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 F7 E1 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 5E F9 00 00 35 04 06 00 29 F4 10 00 E4 99 A1 A4 52 15 3F ED 1B BB [15:32:06]CheckFolder [15:32:06]dirname=/storage/ofd_packets [15:32:06]CheckFolder done [15:32:06]ProducePacketName [15:32:06]name=ofd_packets/00063838 [15:32:06]NVStorageSaveData ofd_packets/00063838 [15:32:06]File name is /storage/ofd_packets/00063838 [15:32:06]Write 321 bytes [15:32:06]NVStorageSaveData done [15:32:06]OFDSenderStorePacket done [15:32:06]KKMCreateOFDPacket done [15:32:06]NVStorageSaveData kkm_last_timestamp [15:32:06]File name is /storage/kkm_last_timestamp [15:32:06]Write 4 bytes [15:32:06]NVStorageSaveData done [15:32:06]ExternCall_PrintAddStr [15:32:06]wPrintStart [15:32:06]Write to MH i2c: 01 00 00 BE 1A D8 [15:32:06]Write i2c OK [15:32:06]MH_I2C_Read... [15:32:06]Read from MH i2c: 01 [15:32:06]MH_I2C_Read... [15:32:06]Read from MH i2c: 01 07 00 [15:32:06]MH_I2C_Read... [15:32:06]Read from MH i2c: 01 07 00 BE 1A 00 00 00 00 00 FF 0F ED [15:32:06]RasterBufferAndPrint [15:32:06]line Счет N : (3)73415 [15:32:06]line ИНН: 02508201610067 [15:32:06]line Контрольно-Кассовый Чек [15:32:06]line ПРОДАЖА [15:32:06]line Товар: 4700000160211 [15:32:06]line Вода Легенда 0,5л [15:32:06]line 1.000 * 40.00 [15:32:06]line = 40.00 [15:32:06]line НДС 12% НСП 1% [15:32:06]line > о реализуемом товаре [15:32:06]line ИТОГО: 40.00 [15:32:06]line НСП 1% : 0.35 [15:32:06]line НДС 12% : 4.25 [15:32:06]line Наличными: 40.00 [15:32:06]line Безнал.: 0.00 [15:32:06]line Место: АЗС № 117 "Партнер Нефть" [15:32:06]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [15:32:06]line СНО: Общий режим [15:32:06]line Чек 96 03.06.2024 15:32 [15:32:06]line Смена: 373 ФФД: 1.0 [15:32:06]line ЗНМ: 0300000031 [15:32:06]line РНМ: 0000000000092737 [15:32:06]line Версия ККМ: 001 [15:32:06]line ФМ: 0000000000875074 [15:32:06]line ФД: 63838 [15:32:06]line ФПД: 46128217253017 [15:32:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T153207&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63838&fm=46128217253017&tin=02508201610067®Number=0000000000092737&sum=4000 [15:32:06]line 0 [15:32:06]OFD Sender: Processing packet 63838 [packets to send 14, broken 13] [15:32:06]ProducePacketName [15:32:06]name=ofd_packets/00063838 [15:32:06]OFD Sender: To server: pG, [15:32:06]CommunicateWithHost lk.salyk.kg:30040 [15:32:06]ConnectInit lk.salyk.kg [15:32:06]written 0, free lines is 4095 [15:32:06]Connected sock=10 [15:32:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 23 01 00 00 51 7E 1B 01 86 6A 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 F7 E1 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 5E F9 00 00 35 04 06 00 29 F4 10 00 E4 99 A1 A4 52 15 3F ED 1B BB [15:32:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 13 15 47 00 B9 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 35 30 37 34 10 04 04 00 5E F9 00 00 F4 03 04 00 C8 8D 5D 66 B6 04 01 00 00 E5 51 BA BE 73 F6 64 F3 [15:32:07]CommunicateWithHost err = 0 [15:32:07]CheckOFDResponse [15:32:07]1017 (14) - 77093643461234 [15:32:07]1041 (16) - 0000000000875074 [15:32:07]1040 (4) - 63838 [15:32:07]1012 (4) - 03.06.2024 09:32 [15:32:07]1206 (1) - 0 [15:32:07]OFD Sender: Remove packet 63838 [15:32:07]ProducePacketName [15:32:07]name=ofd_packets/00063838 [15:32:07]NVStorageDeleteData [15:32:07]Write to MH i2c: 01 00 00 E6 1A 00 [15:32:07]Write i2c OK [15:32:07]MH_I2C_Read... [15:32:07]Read from MH i2c: 01 [15:32:07]MH_I2C_Read... [15:32:07]Read from MH i2c: 01 07 00 [15:32:07]MH_I2C_Read... [15:32:07]Read from MH i2c: 01 07 00 E6 1A 00 00 00 00 00 EC 0C FF [15:32:07]RasterBufferAndPrint [15:32:07]line [15:32:07]line [15:32:07]line [15:32:07]line [15:32:07]line [15:32:07]written 0, free lines is 3314 [15:32:07]MH_Cut [15:32:07]Write to MH i2c: D1 01 00 ED 1A 01 D9 [15:32:07]Write i2c OK [15:32:07]MH_I2C_Read... [15:32:07]Read from MH i2c: D1 [15:32:07]MH_I2C_Read... [15:32:07]Read from MH i2c: D1 01 00 [15:32:07]MH_I2C_Read... [15:32:07]Read from MH i2c: D1 01 00 ED 1A 00 D8 [15:32:07]Write to MH i2c: 01 00 00 EE 1A 08 [15:32:07]Write i2c OK [15:32:07]MH_I2C_Read... [15:32:07]OFD Sender: No OFD packet to send [15:32:07]*** Cut start [15:32:07]*** Partial cut [15:32:07]*** CUTSNS_PIN = 1 [15:32:07]*** CUTSNS_PIN = 0 [15:32:08]*** Brake cut motor [15:32:08]Read from MH i2c: 01 [15:32:08]MH_I2C_Read... [15:32:08]*** Stop cut motor [15:32:08]*** Cut end [15:32:08]Read from MH i2c: 01 07 00 [15:32:08]MH_I2C_Read... [15:32:08]Read from MH i2c: 01 07 00 EE 1A 00 00 00 00 00 FF 0F 1D [15:32:08]process_action close_receipt done [15:32:08]requested_data is exist [15:32:08]produce_requested_data [15:32:08]requested_item fm.sn is exist - process it [15:32:08]wFMCommunicate request_size=4 [15:32:08]MH_SAM_APDU [15:32:08]CAPDU: 80 11 00 00 [15:32:08]Write to MH i2c: E2 08 00 EF 1A 80 11 00 00 00 00 00 00 83 [15:32:08]Write i2c OK [15:32:08]MH_I2C_Read... [15:32:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:32:08]Read from MH i2c: E2 [15:32:08]MH_I2C_Read... [15:32:08]Read from MH i2c: E2 17 00 [15:32:08]MH_I2C_Read... [15:32:08]Read from MH i2c: E2 17 00 EF 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 D5 [15:32:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [15:32:08]wFMCommunicate OK [15:32:08]requested_item fd.num is exist - process it [15:32:08]SAM_PROTO_GetFieldsCounters [15:32:08]wFMCommunicate request_size=4 [15:32:08]MH_SAM_APDU [15:32:08]CAPDU: 80 13 00 00 [15:32:08]Write to MH i2c: E2 08 00 F0 1A 80 13 00 00 00 00 00 00 86 [15:32:08]Write i2c OK [15:32:08]MH_I2C_Read... [15:32:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:32:08]Read from MH i2c: E2 [15:32:08]MH_I2C_Read... [15:32:08]Read from MH i2c: E2 62 00 [15:32:08]MH_I2C_Read... [15:32:08]Read from MH i2c: E2 62 00 F0 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 5E F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 96 [15:32: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 5E F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:32:08]wFMCommunicate OK [15:32:08]SAM_PROTO_GetFieldsCounters done [15:32:08]requested_item shift.num is exist - process it [15:32:08]requested_item shift.opened is exist - process it [15:32:08]req_shift_opened [15:32:08]FM_GetShiftState [15:32:08]SAM_PROTO_GetShiftState [15:32:08]wFMCommunicate request_size=4 [15:32:08]MH_SAM_APDU [15:32:08]CAPDU: 80 13 01 00 [15:32:08]Write to MH i2c: E2 08 00 F1 1A 80 13 01 00 00 00 00 00 88 [15:32:08]Write i2c OK [15:32:08]MH_I2C_Read... [15:32:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:32:08]Read from MH i2c: E2 [15:32:08]MH_I2C_Read... [15:32:08]Read from MH i2c: E2 0E 00 [15:32:08]MH_I2C_Read... [15:32:08]Read from MH i2c: E2 0E 00 F1 1A 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 54 [15:32:08]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [15:32:08]wFMCommunicate OK [15:32:08]SAM_PROTO_GetShiftState done [15:32:08]FM_GetShiftState done [15:32:08]req_shift_opened done [15:32:08]requested_item shift.open_date is exist - process it [15:32:08]req_shift_open_date [15:32:08]req_shift_open_date done [15:32:08]produce_requested_data done [15:32:08]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63838,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [15:32:08]process_action_free close_receipt [15:32:08]json_value_free [15:32:08]json_value_free done [15:32:08]process_json_proto returns [15:32:08]Send response to host [15:32:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63838,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [15:32:08]free response buf [15:32:08]execute_script done [15:32:08]execute_script returns [15:32:08]free content buf [15:32:08]Sock 7.Close socket [15:32:08]Sock 7.Thread stoped [15:32:12]OFD Sender: No OFD packet to send [15:32:17]OFD Sender: No OFD packet to send [15:32:22]OFD Sender: No OFD packet to send [15:32:27]OFD Sender: No OFD packet to send [15:32:32]OFD Sender: No OFD packet to send [15:32:37]OFD Sender: No OFD packet to send [15:32:42]OFD Sender: No OFD packet to send [15:32:47]OFD Sender: No OFD packet to send [15:32:52]OFD Sender: No OFD packet to send [15:32:57]OFD Sender: No OFD packet to send [15:33:02]OFD Sender: No OFD packet to send [15:33:07]OFD Sender: No OFD packet to send [15:33:12]OFD Sender: No OFD packet to send [15:33:17]OFD Sender: No OFD packet to send [15:33:22]OFD Sender: No OFD packet to send [15:33:27]OFD Sender: No OFD packet to send [15:33:32]OFD Sender: No OFD packet to send [15:33:37]OFD Sender: No OFD packet to send [15:33:42]OFD Sender: No OFD packet to send [15:33:47]OFD Sender: No OFD packet to send [15:33:52]OFD Sender: No OFD packet to send [15:33:57]OFD Sender: No OFD packet to send [15:34:02]OFD Sender: No OFD packet to send [15:34:07]OFD Sender: No OFD packet to send [15:34:12]OFD Sender: No OFD packet to send [15:34:17]OFD Sender: No OFD packet to send [15:34:22]OFD Sender: No OFD packet to send [15:34:27]OFD Sender: No OFD packet to send [15:34:32]OFD Sender: No OFD packet to send [15:34:37]OFD Sender: No OFD packet to send [15:34:42]OFD Sender: No OFD packet to send [15:34:47]OFD Sender: No OFD packet to send [15:34:52]OFD Sender: No OFD packet to send [15:34:57]OFD Sender: No OFD packet to send [15:35:02]OFD Sender: No OFD packet to send [15:35:07]OFD Sender: No OFD packet to send [15:35:12]OFD Sender: No OFD packet to send [15:35:17]OFD Sender: No OFD packet to send [15:35:22]OFD Sender: No OFD packet to send [15:35:27]OFD Sender: No OFD packet to send [15:35:32]OFD Sender: No OFD packet to send [15:35:37]OFD Sender: No OFD packet to send [15:35:42]OFD Sender: No OFD packet to send [15:35:47]OFD Sender: No OFD packet to send [15:35:52]OFD Sender: No OFD packet to send [15:35:57]OFD Sender: No OFD packet to send [15:36:02]OFD Sender: No OFD packet to send [15:36:07]OFD Sender: No OFD packet to send [15:36:12]OFD Sender: No OFD packet to send [15:36:17]OFD Sender: No OFD packet to send [15:36:22]OFD Sender: No OFD packet to send [15:36:27]OFD Sender: No OFD packet to send [15:36:32]OFD Sender: No OFD packet to send [15:36:37]OFD Sender: No OFD packet to send [15:36:42]OFD Sender: No OFD packet to send [15:36:47]OFD Sender: No OFD packet to send [15:36:52]OFD Sender: No OFD packet to send [15:36:57]OFD Sender: No OFD packet to send [15:37:02]OFD Sender: No OFD packet to send [15:37:07]OFD Sender: No OFD packet to send [15:37:12]OFD Sender: No OFD packet to send [15:37:17]OFD Sender: No OFD packet to send [15:37:20]accept exits with 9 [15:37:20]New connection [15:37:20]New thread 3067374948 created [15:37:20]Thread 3067518308 joined [15:37:20]Waiting for new connection... [15:37:20] Sock 9.Parse request [15:37:20]Sock 9.Check first char [15:37:20]Sock 9.First char is OK [15:37:20]request: POST /json_proto HTTP/1.0 [15:37:20]Method: POST [15:37:20]URL: /json_proto [15:37:20]Method is POST - this is cgi request [15:37:20]url: /json_proto [15:37:20]query_string will be loaded in cgi processing [15:37:20]execute_cgi json_proto POST (null) [15:37:20]execute_cgi path=json_proto method=POST [15:37:20]POST find Content-Length [15:37:20]Host: 172.17.60.69:8080 [15:37:20]Content-Length: 695 [15:37:20]Content-Type: application/json [15:37:20] [15:37:20]POST finish read [15:37:20]Found Content-Length = 695 [15:37:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73416", "tax_sys" : 0, "items" : [ { "code": "4700000480364", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u044D\u043A\u0437\u043E\u0442\u0438\u043A 0.45 \u0436/\u0431", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 85.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:37:20]execute_script... [15:37:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73416", "tax_sys" : 0, "items" : [ { "code": "4700000480364", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u044D\u043A\u0437\u043E\u0442\u0438\u043A 0.45 \u0436/\u0431", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 85.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:37:20]POST & json_proto [15:37:20]process_json_proto [15:37:20]json parsed OK: [15:37:20]protocol is kg_v1.0 [15:37:20]action value=close_receipt [15:37:20]process_action close_receipt [15:37:20]cmd_close_receipt [15:37:20]MH_GetDate [15:37:20]Write to MH i2c: F0 00 00 F2 1A FB [15:37:20]Write i2c OK [15:37:20]MH_I2C_Read... [15:37:20]Read from MH i2c: F0 [15:37:20]MH_I2C_Read... [15:37:20]Read from MH i2c: F0 09 00 [15:37:20]MH_I2C_Read... [15:37:20]Read from MH i2c: F0 09 00 F2 1A 00 33 E3 5D 66 6A 96 4A 66 8D [15:37:20]GetLastDocTimeStamp 1717428727 [15:37:20]current date 1717429043 [15:37:20]FM_GetShiftState [15:37:20]SAM_PROTO_GetShiftState [15:37:20]wFMCommunicate request_size=4 [15:37:20]MH_SAM_APDU [15:37:20]CAPDU: 80 13 01 00 [15:37:20]Write to MH i2c: E2 08 00 F3 1A 80 13 01 00 00 00 00 00 8A [15:37:20]Write i2c OK [15:37:20]MH_I2C_Read... [15:37:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:37:20]Read from MH i2c: E2 [15:37:20]MH_I2C_Read... [15:37:20]Read from MH i2c: E2 0E 00 [15:37:20]MH_I2C_Read... [15:37:20]Read from MH i2c: E2 0E 00 F3 1A 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 56 [15:37:20]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [15:37:20]wFMCommunicate OK [15:37:20]SAM_PROTO_GetShiftState done [15:37:20]FM_GetShiftState done [15:37:20]opened in 1717373173 [15:37:20]opened+sec_in_day 1717459573 [15:37:20]quantity*price = 8500 [15:37:20]sum+1 = 8501 [15:37:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 85.00 НСП 1% : 0.75 НДС 12% : 9.03 Наличными: 85.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 97 03.06.2024 15:37 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63839 ФПД: 206807000133860 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T153723&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63839&fm=206807000133860&tin=02508201610067®Number=0000000000092737&sum=8500 0 [15:37:21]StoreToDocumentArchive [15:37:21]shift 373 fd 63839 [15:37:21]save to /storage/0373/doc_00063839 [15:37:21]save last doc name /storage/0373/doc_00063839 to /storage/kkm_last_doc_name [15:37:21]save OK [15:37:21]Clear old archive folders... [15:37:21]ProcessDocumentItem done err = 0, tmpTLVsize=299 [15:37:21]tlvbuf is 00D1E5E0 [15:37:21]SAM_PROTO_ClearQueue [15:37:21]wFMCommunicate request_size=4 [15:37:21]MH_SAM_APDU [15:37:21]CAPDU: 80 09 00 00 [15:37:21]Write to MH i2c: E2 08 00 00 1B 80 09 00 00 00 00 00 00 8D [15:37:21]Write i2c OK [15:37:21]MH_I2C_Read... [15:37:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:37:21]Read from MH i2c: E2 [15:37:21]MH_I2C_Read... [15:37:21]Read from MH i2c: E2 03 00 [15:37:21]MH_I2C_Read... [15:37:21]Read from MH i2c: E2 03 00 00 1B 00 90 00 8F [15:37:21]RAPDU: 90 00 [15:37:21]wFMCommunicate OK [15:37:21]SAM_PROTO_ClearQueue done [15:37:21]KKMCreateOFDPacket [15:37:21]OFDProtocolAddRootSTLVToBuf [15:37:21]FM_MakeSignedData [15:37:21]FM_MakeSignedData [15:37:21]SAM_PROTO_SignData [15:37:21]wFMCommunicate request_size=4 [15:37:21]MH_SAM_APDU [15:37:21]CAPDU: 80 0D 01 02 [15:37:21]Write to MH i2c: E2 08 00 01 1B 80 0D 01 02 00 00 00 00 95 [15:37:21]Write i2c OK [15:37:21]MH_I2C_Read... [15:37:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:37:22]Read from MH i2c: E2 [15:37:22]MH_I2C_Read... [15:37:22]Read from MH i2c: E2 03 00 [15:37:22]MH_I2C_Read... [15:37:22]Read from MH i2c: E2 03 00 01 1B 00 90 00 90 [15:37:22]RAPDU: 90 00 [15:37:22]wFMCommunicate OK [15:37:22]wFMCommunicate request_size=255 [15:37:22]MH_SAM_APDU [15:37:22]CAPDU: 80 0D 02 02 FA 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 33 E3 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 [15:37:22]Write to MH i2c: E2 02 01 02 1B 80 0D 02 02 FA 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 33 E3 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 00 00 53 [15:37:22]Write i2c OK [15:37:22]MH_I2C_Read... [15:37:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:37:22]Read from MH i2c: E2 [15:37:22]MH_I2C_Read... [15:37:22]Read from MH i2c: E2 03 00 [15:37:22]MH_I2C_Read... [15:37:22]Read from MH i2c: E2 03 00 02 1B 00 90 00 91 [15:37:22]RAPDU: 90 00 [15:37:22]wFMCommunicate OK [15:37:22]wFMCommunicate request_size=58 [15:37:22]MH_SAM_APDU [15:37:22]CAPDU: 80 0D 02 02 35 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 5F F9 00 00 35 04 06 00 BC 17 01 C7 B0 E4 [15:37:22]Write to MH i2c: E2 3D 00 03 1B 80 0D 02 02 35 00 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 5F F9 00 00 35 04 06 00 BC 17 01 C7 B0 E4 00 00 10 [15:37:22]Write i2c OK [15:37:22]MH_I2C_Read... [15:37:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:37:22]Read from MH i2c: E2 [15:37:22]MH_I2C_Read... [15:37:22]Read from MH i2c: E2 03 00 [15:37:22]MH_I2C_Read... [15:37:22]Read from MH i2c: E2 03 00 03 1B 00 90 00 92 [15:37:22]RAPDU: 90 00 [15:37:22]wFMCommunicate OK [15:37:22]wFMCommunicate request_size=4 [15:37:22]MH_SAM_APDU [15:37:22]CAPDU: 80 0D 03 02 [15:37:22]Write to MH i2c: E2 08 00 04 1B 80 0D 03 02 00 00 00 00 9A [15:37:22]Write i2c OK [15:37:22]MH_I2C_Read... [15:37:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:37:22]Read from MH i2c: E2 [15:37:22]MH_I2C_Read... [15:37:22]Read from MH i2c: E2 0B 00 [15:37:22]MH_I2C_Read... [15:37:22]Read from MH i2c: E2 0B 00 04 1B 00 47 84 BA F5 54 2D 90 03 90 00 29 [15:37:22]RAPDU: 47 84 BA F5 54 2D 90 03 90 00 [15:37:22]wFMCommunicate OK [15:37:22]SAM_PROTO_SignData done [15:37:22]FM_MakeSignedData done [15:37:22]CreateOFDProtocolMessage [15:37:22]wFMCommunicate request_size=4 [15:37:22]MH_SAM_APDU [15:37:22]CAPDU: 80 11 00 00 [15:37:22]Write to MH i2c: E2 08 00 05 1B 80 11 00 00 00 00 00 00 9A [15:37:22]Write i2c OK [15:37:22]MH_I2C_Read... [15:37:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:37:22]Read from MH i2c: E2 [15:37:22]MH_I2C_Read... [15:37:22]Read from MH i2c: E2 17 00 [15:37:22]MH_I2C_Read... [15:37:22]Read from MH i2c: E2 17 00 05 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 EC [15:37:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [15:37:22]wFMCommunicate OK [15:37:22]CreateOFDProtocolMessage done [15:37:22]OFDSenderStorePacket 63839 [15:37:22]StoreOFDPacket docnum=63839 [15:37:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 3F 01 00 00 ED 63 37 01 10 7C 5A 03 01 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 33 E3 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 5F F9 00 00 35 04 06 00 BC 17 01 C7 B0 E4 47 84 BA F5 54 2D 90 03 [15:37:22]CheckFolder [15:37:22]dirname=/storage/ofd_packets [15:37:22]CheckFolder done [15:37:22]ProducePacketName [15:37:22]name=ofd_packets/00063839 [15:37:22]NVStorageSaveData ofd_packets/00063839 [15:37:22]File name is /storage/ofd_packets/00063839 [15:37:22]Write 349 bytes [15:37:22]NVStorageSaveData done [15:37:22]OFDSenderStorePacket done [15:37:22]KKMCreateOFDPacket done [15:37:22]NVStorageSaveData kkm_last_timestamp [15:37:22]File name is /storage/kkm_last_timestamp [15:37:22]Write 4 bytes [15:37:22]NVStorageSaveData done [15:37:22]ExternCall_PrintAddStr [15:37:22]wPrintStart [15:37:22]Write to MH i2c: 01 00 00 06 1B 21 [15:37:22]Write i2c OK [15:37:22]MH_I2C_Read... [15:37:22]Read from MH i2c: 01 [15:37:22]MH_I2C_Read... [15:37:22]Read from MH i2c: 01 07 00 [15:37:22]MH_I2C_Read... [15:37:22]Read from MH i2c: 01 07 00 06 1B 00 00 00 00 00 FF 0F 36 [15:37:22]RasterBufferAndPrint [15:37:22]line Счет N : (3)73416 [15:37:22]line ИНН: 02508201610067 [15:37:22]line Контрольно-Кассовый Чек [15:37:22]line ПРОДАЖА [15:37:22]line Товар: 4700000480364 [15:37:22]line Напиток энерг Nitro экзотик 0.45 ж/б [15:37:22]line 1.000 * 85.00 [15:37:22]line = 85.00 [15:37:22]line НДС 12% НСП 1% [15:37:22]line > о реализуемом товаре [15:37:22]line ИТОГО: 85.00 [15:37:22]line НСП 1% : 0.75 [15:37:22]line НДС 12% : 9.03 [15:37:22]line Наличными: 85.00 [15:37:22]line Безнал.: 0.00 [15:37:22]line Место: АЗС № 117 "Партнер Нефть" [15:37:22]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [15:37:22]line СНО: Общий режим [15:37:22]line Чек 97 03.06.2024 15:37 [15:37:22]line Смена: 373 ФФД: 1.0 [15:37:22]line ЗНМ: 0300000031 [15:37:22]line РНМ: 0000000000092737 [15:37:22]line Версия ККМ: 001 [15:37:22]line ФМ: 0000000000875074 [15:37:22]line ФД: 63839 [15:37:22]line ФПД: 206807000133860 [15:37:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T153723&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63839&fm=206807000133860&tin=02508201610067®Number=0000000000092737&sum=8500 [15:37:22]line 0 [15:37:22]OFD Sender: Processing packet 63839 [packets to send 14, broken 13] [15:37:22]ProducePacketName [15:37:22]name=ofd_packets/00063839 [15:37:22]OFD Sender: To server: pG, [15:37:22]CommunicateWithHost lk.salyk.kg:30040 [15:37:22]ConnectInit lk.salyk.kg [15:37:22]written 0, free lines is 4095 [15:37:22]Connected sock=10 [15:37:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 3F 01 00 00 ED 63 37 01 10 7C 5A 03 01 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 33 E3 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 5F F9 00 00 35 04 06 00 BC 17 01 C7 B0 E4 47 84 BA F5 54 2D 90 03 [15:37:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 EC 76 47 00 C3 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 35 30 37 34 10 04 04 00 5F F9 00 00 F4 03 04 00 04 8F 5D 66 B6 04 01 00 00 3C D8 07 CB E9 0B 58 8F [15:37:23]CommunicateWithHost err = 0 [15:37:23]CheckOFDResponse [15:37:23]1017 (14) - 77093643461234 [15:37:23]1041 (16) - 0000000000875074 [15:37:23]1040 (4) - 63839 [15:37:23]1012 (4) - 03.06.2024 09:38 [15:37:23]1206 (1) - 0 [15:37:23]OFD Sender: Remove packet 63839 [15:37:23]ProducePacketName [15:37:23]name=ofd_packets/00063839 [15:37:23]NVStorageDeleteData [15:37:23]Write to MH i2c: 01 00 00 2F 1B 4A [15:37:23]Write i2c OK [15:37:23]MH_I2C_Read... [15:37:23]Read from MH i2c: 01 [15:37:23]MH_I2C_Read... [15:37:23]Read from MH i2c: 01 07 00 [15:37:23]MH_I2C_Read... [15:37:23]Read from MH i2c: 01 07 00 2F 1B 00 00 00 00 00 D7 0C 34 [15:37:23]RasterBufferAndPrint [15:37:23]line [15:37:23]line [15:37:23]line [15:37:23]line [15:37:23]line [15:37:23]written 0, free lines is 3295 [15:37:23]MH_Cut [15:37:23]Write to MH i2c: D1 01 00 36 1B 01 23 [15:37:23]Write i2c OK [15:37:23]MH_I2C_Read... [15:37:23]Read from MH i2c: D1 [15:37:23]MH_I2C_Read... [15:37:23]Read from MH i2c: D1 01 00 [15:37:23]MH_I2C_Read... [15:37:23]Read from MH i2c: D1 01 00 36 1B 00 22 [15:37:23]Write to MH i2c: 01 00 00 37 1B 52 [15:37:23]Write i2c OK [15:37:23]MH_I2C_Read... [15:37:23]OFD Sender: No OFD packet to send [15:37:24]*** Cut start [15:37:24]*** Partial cut [15:37:24]*** CUTSNS_PIN = 1 [15:37:24]*** CUTSNS_PIN = 0 [15:37:24]*** Brake cut motor [15:37:24]Read from MH i2c: 01 [15:37:24]MH_I2C_Read... [15:37:24]*** Stop cut motor [15:37:24]*** Cut end [15:37:24]Read from MH i2c: 01 07 00 [15:37:24]MH_I2C_Read... [15:37:24]Read from MH i2c: 01 07 00 37 1B 00 00 00 00 00 FF 0F 67 [15:37:24]process_action close_receipt done [15:37:24]requested_data is exist [15:37:24]produce_requested_data [15:37:24]requested_item fm.sn is exist - process it [15:37:24]wFMCommunicate request_size=4 [15:37:24]MH_SAM_APDU [15:37:24]CAPDU: 80 11 00 00 [15:37:24]Write to MH i2c: E2 08 00 38 1B 80 11 00 00 00 00 00 00 CD [15:37:24]Write i2c OK [15:37:24]MH_I2C_Read... [15:37:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:37:24]Read from MH i2c: E2 [15:37:24]MH_I2C_Read... [15:37:24]Read from MH i2c: E2 17 00 [15:37:24]MH_I2C_Read... [15:37:24]Read from MH i2c: E2 17 00 38 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 1F [15:37:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [15:37:24]wFMCommunicate OK [15:37:24]requested_item fd.num is exist - process it [15:37:24]SAM_PROTO_GetFieldsCounters [15:37:24]wFMCommunicate request_size=4 [15:37:24]MH_SAM_APDU [15:37:24]CAPDU: 80 13 00 00 [15:37:24]Write to MH i2c: E2 08 00 39 1B 80 13 00 00 00 00 00 00 D0 [15:37:24]Write i2c OK [15:37:24]MH_I2C_Read... [15:37:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:37:24]Read from MH i2c: E2 [15:37:24]MH_I2C_Read... [15:37:24]Read from MH i2c: E2 62 00 [15:37:24]MH_I2C_Read... [15:37:24]Read from MH i2c: E2 62 00 39 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 5F F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 E4 [15:37: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 5F F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:37:24]wFMCommunicate OK [15:37:24]SAM_PROTO_GetFieldsCounters done [15:37:24]requested_item shift.num is exist - process it [15:37:24]requested_item shift.opened is exist - process it [15:37:24]req_shift_opened [15:37:24]FM_GetShiftState [15:37:24]SAM_PROTO_GetShiftState [15:37:24]wFMCommunicate request_size=4 [15:37:24]MH_SAM_APDU [15:37:24]CAPDU: 80 13 01 00 [15:37:24]Write to MH i2c: E2 08 00 3A 1B 80 13 01 00 00 00 00 00 D2 [15:37:24]Write i2c OK [15:37:24]MH_I2C_Read... [15:37:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:37:24]Read from MH i2c: E2 [15:37:24]MH_I2C_Read... [15:37:24]Read from MH i2c: E2 0E 00 [15:37:24]MH_I2C_Read... [15:37:24]Read from MH i2c: E2 0E 00 3A 1B 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 9E [15:37:24]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [15:37:24]wFMCommunicate OK [15:37:24]SAM_PROTO_GetShiftState done [15:37:24]FM_GetShiftState done [15:37:24]req_shift_opened done [15:37:24]requested_item shift.open_date is exist - process it [15:37:24]req_shift_open_date [15:37:24]req_shift_open_date done [15:37:24]produce_requested_data done [15:37:24]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63839,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [15:37:24]process_action_free close_receipt [15:37:24]json_value_free [15:37:24]json_value_free done [15:37:24]process_json_proto returns [15:37:24]Send response to host [15:37:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63839,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [15:37:24]free response buf [15:37:24]execute_script done [15:37:24]execute_script returns [15:37:24]free content buf [15:37:24]Sock 9.Close socket [15:37:24]Sock 9.Thread stoped [15:37:28]OFD Sender: No OFD packet to send [15:37:33]OFD Sender: No OFD packet to send [15:37:38]OFD Sender: No OFD packet to send [15:37:43]OFD Sender: No OFD packet to send [15:37:48]OFD Sender: No OFD packet to send [15:37:53]OFD Sender: No OFD packet to send [15:37:54]accept exits with 7 [15:37:54]New connection [15:37:54]New thread 3067518308 created [15:37:54]Thread 3067374948 joined [15:37:54]Waiting for new connection... [15:37:54] Sock 7.Parse request [15:37:54]Sock 7.Check first char [15:37:54]Sock 7.First char is OK [15:37:54]request: POST /json_proto HTTP/1.0 [15:37:54]Method: POST [15:37:54]URL: /json_proto [15:37:54]Method is POST - this is cgi request [15:37:54]url: /json_proto [15:37:54]query_string will be loaded in cgi processing [15:37:54]execute_cgi json_proto POST (null) [15:37:54]execute_cgi path=json_proto method=POST [15:37:54]POST find Content-Length [15:37:54]Host: 172.17.60.69:8080 [15:37:54]Content-Length: 684 [15:37:54]Content-Type: application/json [15:37:54] [15:37:54]POST finish read [15:37:54]Found Content-Length = 684 [15:37:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73417", "tax_sys" : 0, "items" : [ { "code": "4870227272933", "name": "\u041B\u0438\u043C\u043E\u043D\u0430\u0434 Sunbel \u041A\u043B\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043A\u0438\u0439 1\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 85.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:37:54]execute_script... [15:37:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73417", "tax_sys" : 0, "items" : [ { "code": "4870227272933", "name": "\u041B\u0438\u043C\u043E\u043D\u0430\u0434 Sunbel \u041A\u043B\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043A\u0438\u0439 1\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 85.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:37:54]POST & json_proto [15:37:54]process_json_proto [15:37:54]json parsed OK: [15:37:54]protocol is kg_v1.0 [15:37:54]action value=close_receipt [15:37:54]process_action close_receipt [15:37:54]cmd_close_receipt [15:37:54]MH_GetDate [15:37:54]Write to MH i2c: F0 00 00 3B 1B 45 [15:37:54]Write i2c OK [15:37:54]MH_I2C_Read... [15:37:54]Read from MH i2c: F0 [15:37:54]MH_I2C_Read... [15:37:54]Read from MH i2c: F0 09 00 [15:37:54]MH_I2C_Read... [15:37:54]Read from MH i2c: F0 09 00 3B 1B 00 55 E3 5D 66 6A 96 4A 66 F9 [15:37:54]GetLastDocTimeStamp 1717429043 [15:37:54]current date 1717429077 [15:37:54]FM_GetShiftState [15:37:54]SAM_PROTO_GetShiftState [15:37:54]wFMCommunicate request_size=4 [15:37:54]MH_SAM_APDU [15:37:54]CAPDU: 80 13 01 00 [15:37:54]Write to MH i2c: E2 08 00 3C 1B 80 13 01 00 00 00 00 00 D4 [15:37:54]Write i2c OK [15:37:54]MH_I2C_Read... [15:37:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:37:54]Read from MH i2c: E2 [15:37:54]MH_I2C_Read... [15:37:54]Read from MH i2c: E2 0E 00 [15:37:54]MH_I2C_Read... [15:37:54]Read from MH i2c: E2 0E 00 3C 1B 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 A0 [15:37:54]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [15:37:54]wFMCommunicate OK [15:37:54]SAM_PROTO_GetShiftState done [15:37:54]FM_GetShiftState done [15:37:54]opened in 1717373173 [15:37:54]opened+sec_in_day 1717459573 [15:37:54]quantity*price = 8500 [15:37:54]sum+1 = 8501 [15:37:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 85.00 НСП 1% : 0.75 НДС 12% : 9.03 Наличными: 85.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 98 03.06.2024 15:37 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63840 ФПД: 60200760270241 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T153757&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63840&fm=60200760270241&tin=02508201610067®Number=0000000000092737&sum=8500 0 [15:37:55]StoreToDocumentArchive [15:37:55]shift 373 fd 63840 [15:37:55]save to /storage/0373/doc_00063840 [15:37:55]save last doc name /storage/0373/doc_00063840 to /storage/kkm_last_doc_name [15:37:55]save OK [15:37:55]Clear old archive folders... [15:37:55]ProcessDocumentItem done err = 0, tmpTLVsize=292 [15:37:55]tlvbuf is B6F328F0 [15:37:55]SAM_PROTO_ClearQueue [15:37:55]wFMCommunicate request_size=4 [15:37:55]MH_SAM_APDU [15:37:55]CAPDU: 80 09 00 00 [15:37:55]Write to MH i2c: E2 08 00 49 1B 80 09 00 00 00 00 00 00 D6 [15:37:55]Write i2c OK [15:37:55]MH_I2C_Read... [15:37:55]Read from MH i2c: E2 [15:37:55]MH_I2C_Read... [15:37:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:37:55]Read from MH i2c: E2 03 00 [15:37:55]MH_I2C_Read... [15:37:55]Read from MH i2c: E2 03 00 49 1B 00 90 00 D8 [15:37:55]RAPDU: 90 00 [15:37:55]wFMCommunicate OK [15:37:55]SAM_PROTO_ClearQueue done [15:37:55]KKMCreateOFDPacket [15:37:55]OFDProtocolAddRootSTLVToBuf [15:37:55]FM_MakeSignedData [15:37:55]FM_MakeSignedData [15:37:55]SAM_PROTO_SignData [15:37:55]wFMCommunicate request_size=4 [15:37:55]MH_SAM_APDU [15:37:55]CAPDU: 80 0D 01 02 [15:37:55]Write to MH i2c: E2 08 00 4A 1B 80 0D 01 02 00 00 00 00 DE [15:37:55]Write i2c OK [15:37:55]MH_I2C_Read... [15:37:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:37:55]Read from MH i2c: E2 [15:37:55]MH_I2C_Read... [15:37:55]Read from MH i2c: E2 03 00 [15:37:55]MH_I2C_Read... [15:37:55]Read from MH i2c: E2 03 00 4A 1B 00 90 00 D9 [15:37:55]RAPDU: 90 00 [15:37:55]wFMCommunicate OK [15:37:55]wFMCommunicate request_size=255 [15:37:55]MH_SAM_APDU [15:37:55]CAPDU: 80 0D 02 02 FA 03 00 24 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 38 37 30 32 32 37 32 37 32 39 33 33 06 04 32 00 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 53 75 6E 62 65 6C 20 D0 9A D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 55 E3 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 [15:37:55]Write to MH i2c: E2 02 01 4B 1B 80 0D 02 02 FA 00 03 00 24 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 38 37 30 32 32 37 32 37 32 39 33 33 06 04 32 00 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 53 75 6E 62 65 6C 20 D0 9A D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 55 E3 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 00 00 DE [15:37:55]Write i2c OK [15:37:55]MH_I2C_Read... [15:37:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:37:56]Read from MH i2c: E2 [15:37:56]MH_I2C_Read... [15:37:56]Read from MH i2c: E2 03 00 [15:37:56]MH_I2C_Read... [15:37:56]Read from MH i2c: E2 03 00 4B 1B 00 90 00 DA [15:37:56]RAPDU: 90 00 [15:37:56]wFMCommunicate OK [15:37:56]wFMCommunicate request_size=51 [15:37:56]MH_SAM_APDU [15:37:56]CAPDU: 80 0D 02 02 2E 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 60 F9 00 00 35 04 06 00 36 C0 94 EE 5D A1 [15:37:56]Write to MH i2c: E2 36 00 4C 1B 80 0D 02 02 2E 00 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 60 F9 00 00 35 04 06 00 36 C0 94 EE 5D A1 00 00 43 [15:37:56]Write i2c OK [15:37:56]MH_I2C_Read... [15:37:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:37:56]Read from MH i2c: E2 [15:37:56]MH_I2C_Read... [15:37:56]Read from MH i2c: E2 03 00 [15:37:56]MH_I2C_Read... [15:37:56]Read from MH i2c: E2 03 00 4C 1B 00 90 00 DB [15:37:56]RAPDU: 90 00 [15:37:56]wFMCommunicate OK [15:37:56]wFMCommunicate request_size=4 [15:37:56]MH_SAM_APDU [15:37:56]CAPDU: 80 0D 03 02 [15:37:56]Write to MH i2c: E2 08 00 4D 1B 80 0D 03 02 00 00 00 00 E3 [15:37:56]Write i2c OK [15:37:56]MH_I2C_Read... [15:37:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:37:56]Read from MH i2c: E2 [15:37:56]MH_I2C_Read... [15:37:56]Read from MH i2c: E2 0B 00 [15:37:56]MH_I2C_Read... [15:37:56]Read from MH i2c: E2 0B 00 4D 1B 00 B3 8A 7E 42 FE F5 F8 98 90 00 64 [15:37:56]RAPDU: B3 8A 7E 42 FE F5 F8 98 90 00 [15:37:56]wFMCommunicate OK [15:37:56]SAM_PROTO_SignData done [15:37:56]FM_MakeSignedData done [15:37:56]CreateOFDProtocolMessage [15:37:56]wFMCommunicate request_size=4 [15:37:56]MH_SAM_APDU [15:37:56]CAPDU: 80 11 00 00 [15:37:56]Write to MH i2c: E2 08 00 4E 1B 80 11 00 00 00 00 00 00 E3 [15:37:56]Write i2c OK [15:37:56]MH_I2C_Read... [15:37:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:37:56]Read from MH i2c: E2 [15:37:56]MH_I2C_Read... [15:37:56]Read from MH i2c: E2 17 00 [15:37:56]MH_I2C_Read... [15:37:56]Read from MH i2c: E2 17 00 4E 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 35 [15:37:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [15:37:56]wFMCommunicate OK [15:37:56]CreateOFDProtocolMessage done [15:37:56]OFDSenderStorePacket 63840 [15:37:56]StoreOFDPacket docnum=63840 [15:37:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 38 01 00 00 9B 72 30 01 9E 45 5A 03 01 00 03 00 24 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 38 37 30 32 32 37 32 37 32 39 33 33 06 04 32 00 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 53 75 6E 62 65 6C 20 D0 9A D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 55 E3 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 60 F9 00 00 35 04 06 00 36 C0 94 EE 5D A1 B3 8A 7E 42 FE F5 F8 98 [15:37:56]CheckFolder [15:37:56]dirname=/storage/ofd_packets [15:37:56]CheckFolder done [15:37:56]ProducePacketName [15:37:56]name=ofd_packets/00063840 [15:37:56]NVStorageSaveData ofd_packets/00063840 [15:37:56]File name is /storage/ofd_packets/00063840 [15:37:56]Write 342 bytes [15:37:56]NVStorageSaveData done [15:37:56]OFDSenderStorePacket done [15:37:56]KKMCreateOFDPacket done [15:37:56]NVStorageSaveData kkm_last_timestamp [15:37:56]File name is /storage/kkm_last_timestamp [15:37:56]Write 4 bytes [15:37:56]NVStorageSaveData done [15:37:56]ExternCall_PrintAddStr [15:37:56]wPrintStart [15:37:56]Write to MH i2c: 01 00 00 4F 1B 6A [15:37:56]Write i2c OK [15:37:56]MH_I2C_Read... [15:37:56]Read from MH i2c: 01 [15:37:56]MH_I2C_Read... [15:37:56]Read from MH i2c: 01 07 00 [15:37:56]MH_I2C_Read... [15:37:56]Read from MH i2c: 01 07 00 4F 1B 00 00 00 00 00 FF 0F 7F [15:37:56]RasterBufferAndPrint [15:37:56]line Счет N : (3)73417 [15:37:56]line ИНН: 02508201610067 [15:37:56]line Контрольно-Кассовый Чек [15:37:56]line ПРОДАЖА [15:37:56]line Товар: 4870227272933 [15:37:56]line Лимонад Sunbel Классический 1л [15:37:56]line 1.000 * 85.00 [15:37:56]line = 85.00 [15:37:56]line НДС 12% НСП 1% [15:37:56]line > о реализуемом товаре [15:37:56]line ИТОГО: 85.00 [15:37:56]line НСП 1% : 0.75 [15:37:56]line НДС 12% : 9.03 [15:37:56]line Наличными: 85.00 [15:37:56]line Безнал.: 0.00 [15:37:56]line Место: АЗС № 117 "Партнер Нефть" [15:37:56]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [15:37:56]line СНО: Общий режим [15:37:56]line Чек 98 03.06.2024 15:37 [15:37:56]line Смена: 373 ФФД: 1.0 [15:37:56]line ЗНМ: 0300000031 [15:37:56]line РНМ: 0000000000092737 [15:37:56]line Версия ККМ: 001 [15:37:56]line ФМ: 0000000000875074 [15:37:56]line ФД: 63840 [15:37:56]line ФПД: 60200760270241 [15:37:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T153757&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63840&fm=60200760270241&tin=02508201610067®Number=0000000000092737&sum=8500 [15:37:56]line 0 [15:37:56]OFD Sender: Processing packet 63840 [packets to send 14, broken 13] [15:37:56]ProducePacketName [15:37:56]name=ofd_packets/00063840 [15:37:56]OFD Sender: To server: pG, [15:37:56]CommunicateWithHost lk.salyk.kg:30040 [15:37:56]ConnectInit lk.salyk.kg [15:37:56]written 0, free lines is 4095 [15:37:56]Connected sock=10 [15:37:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 38 01 00 00 9B 72 30 01 9E 45 5A 03 01 00 03 00 24 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 38 37 30 32 32 37 32 37 32 39 33 33 06 04 32 00 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 53 75 6E 62 65 6C 20 D0 9A D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 55 E3 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 60 F9 00 00 35 04 06 00 36 C0 94 EE 5D A1 B3 8A 7E 42 FE F5 F8 98 [15:37:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 AB 40 47 00 5B 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 35 30 37 34 10 04 04 00 60 F9 00 00 F4 03 04 00 26 8F 5D 66 B6 04 01 00 00 15 09 40 83 91 B5 82 EA [15:37:56]CommunicateWithHost err = 0 [15:37:56]CheckOFDResponse [15:37:56]1017 (14) - 77093643461234 [15:37:56]1041 (16) - 0000000000875074 [15:37:56]1040 (4) - 63840 [15:37:56]1012 (4) - 03.06.2024 09:38 [15:37:56]1206 (1) - 0 [15:37:56]OFD Sender: Remove packet 63840 [15:37:56]ProducePacketName [15:37:56]name=ofd_packets/00063840 [15:37:56]NVStorageDeleteData [15:37:57]Write to MH i2c: 01 00 00 78 1B 93 [15:37:57]Write i2c OK [15:37:57]MH_I2C_Read... [15:37:57]Read from MH i2c: 01 [15:37:57]MH_I2C_Read... [15:37:57]Read from MH i2c: 01 07 00 [15:37:57]MH_I2C_Read... [15:37:57]Read from MH i2c: 01 07 00 78 1B 00 00 00 00 00 DD 0C 83 [15:37:57]RasterBufferAndPrint [15:37:57]line [15:37:57]line [15:37:57]line [15:37:57]line [15:37:57]line [15:37:57]written 0, free lines is 3299 [15:37:57]MH_Cut [15:37:57]Write to MH i2c: D1 01 00 7F 1B 01 6C [15:37:57]Write i2c OK [15:37:57]MH_I2C_Read... [15:37:57]Read from MH i2c: D1 [15:37:57]MH_I2C_Read... [15:37:57]Read from MH i2c: D1 01 00 [15:37:57]MH_I2C_Read... [15:37:57]Read from MH i2c: D1 01 00 7F 1B 00 6B [15:37:57]Write to MH i2c: 01 00 00 80 1B 9B [15:37:57]Write i2c OK [15:37:57]MH_I2C_Read... [15:37:57]OFD Sender: No OFD packet to send [15:37:57]*** Cut start [15:37:57]*** Partial cut [15:37:57]*** CUTSNS_PIN = 1 [15:37:57]*** CUTSNS_PIN = 0 [15:37:58]*** Brake cut motor [15:37:58]Read from MH i2c: 01 [15:37:58]MH_I2C_Read... [15:37:58]*** Stop cut motor [15:37:58]*** Cut end [15:37:58]Read from MH i2c: 01 07 00 [15:37:58]MH_I2C_Read... [15:37:58]Read from MH i2c: 01 07 00 80 1B 00 00 00 00 00 FF 0F B0 [15:37:58]process_action close_receipt done [15:37:58]requested_data is exist [15:37:58]produce_requested_data [15:37:58]requested_item fm.sn is exist - process it [15:37:58]wFMCommunicate request_size=4 [15:37:58]MH_SAM_APDU [15:37:58]CAPDU: 80 11 00 00 [15:37:58]Write to MH i2c: E2 08 00 81 1B 80 11 00 00 00 00 00 00 16 [15:37:58]Write i2c OK [15:37:58]MH_I2C_Read... [15:37:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:37:58]Read from MH i2c: E2 [15:37:58]MH_I2C_Read... [15:37:58]Read from MH i2c: E2 17 00 [15:37:58]MH_I2C_Read... [15:37:58]Read from MH i2c: E2 17 00 81 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 68 [15:37:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [15:37:58]wFMCommunicate OK [15:37:58]requested_item fd.num is exist - process it [15:37:58]SAM_PROTO_GetFieldsCounters [15:37:58]wFMCommunicate request_size=4 [15:37:58]MH_SAM_APDU [15:37:58]CAPDU: 80 13 00 00 [15:37:58]Write to MH i2c: E2 08 00 82 1B 80 13 00 00 00 00 00 00 19 [15:37:58]Write i2c OK [15:37:58]MH_I2C_Read... [15:37:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:37:58]Read from MH i2c: E2 [15:37:58]MH_I2C_Read... [15:37:58]Read from MH i2c: E2 62 00 [15:37:58]MH_I2C_Read... [15:37:58]Read from MH i2c: E2 62 00 82 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 60 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 62 00 00 00 5E 04 04 00 62 00 00 00 57 04 04 00 63 00 00 00 19 04 04 00 00 00 00 00 90 00 31 [15:37:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 60 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 62 00 00 00 5E 04 04 00 62 00 00 00 57 04 04 00 63 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:37:58]wFMCommunicate OK [15:37:58]SAM_PROTO_GetFieldsCounters done [15:37:58]requested_item shift.num is exist - process it [15:37:58]requested_item shift.opened is exist - process it [15:37:58]req_shift_opened [15:37:58]FM_GetShiftState [15:37:58]SAM_PROTO_GetShiftState [15:37:58]wFMCommunicate request_size=4 [15:37:58]MH_SAM_APDU [15:37:58]CAPDU: 80 13 01 00 [15:37:58]Write to MH i2c: E2 08 00 83 1B 80 13 01 00 00 00 00 00 1B [15:37:58]Write i2c OK [15:37:58]MH_I2C_Read... [15:37:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:37:58]Read from MH i2c: E2 [15:37:58]MH_I2C_Read... [15:37:58]Read from MH i2c: E2 0E 00 [15:37:58]MH_I2C_Read... [15:37:58]Read from MH i2c: E2 0E 00 83 1B 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 E7 [15:37:58]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [15:37:58]wFMCommunicate OK [15:37:58]SAM_PROTO_GetShiftState done [15:37:58]FM_GetShiftState done [15:37:58]req_shift_opened done [15:37:58]requested_item shift.open_date is exist - process it [15:37:58]req_shift_open_date [15:37:58]req_shift_open_date done [15:37:58]produce_requested_data done [15:37:58]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63840,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [15:37:58]process_action_free close_receipt [15:37:58]json_value_free [15:37:58]json_value_free done [15:37:58]process_json_proto returns [15:37:58]Send response to host [15:37:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63840,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [15:37:58]free response buf [15:37:58]execute_script done [15:37:58]execute_script returns [15:37:58]free content buf [15:37:58]Sock 7.Close socket [15:37:58]Sock 7.Thread stoped [15:38:02]OFD Sender: No OFD packet to send [15:38:07]OFD Sender: No OFD packet to send [15:38:12]OFD Sender: No OFD packet to send [15:38:17]OFD Sender: No OFD packet to send [15:38:22]OFD Sender: No OFD packet to send [15:38:27]OFD Sender: No OFD packet to send [15:38:32]OFD Sender: No OFD packet to send [15:38:37]OFD Sender: No OFD packet to send [15:38:42]OFD Sender: No OFD packet to send [15:38:47]OFD Sender: No OFD packet to send [15:38:52]OFD Sender: No OFD packet to send [15:38:57]OFD Sender: No OFD packet to send [15:39:02]OFD Sender: No OFD packet to send [15:39:07]OFD Sender: No OFD packet to send [15:39:12]OFD Sender: No OFD packet to send [15:39:17]OFD Sender: No OFD packet to send [15:39:22]OFD Sender: No OFD packet to send [15:39:27]OFD Sender: No OFD packet to send [15:39:32]OFD Sender: No OFD packet to send [15:39:37]OFD Sender: No OFD packet to send [15:39:42]OFD Sender: No OFD packet to send [15:39:47]OFD Sender: No OFD packet to send [15:39:52]OFD Sender: No OFD packet to send [15:39:57]OFD Sender: No OFD packet to send [15:40:02]OFD Sender: No OFD packet to send [15:40:07]OFD Sender: No OFD packet to send [15:40:12]OFD Sender: No OFD packet to send [15:40:17]OFD Sender: No OFD packet to send [15:40:22]OFD Sender: No OFD packet to send [15:40:27]OFD Sender: No OFD packet to send [15:40:32]OFD Sender: No OFD packet to send [15:40:37]OFD Sender: No OFD packet to send [15:40:42]OFD Sender: No OFD packet to send [15:40:47]OFD Sender: No OFD packet to send [15:40:52]OFD Sender: No OFD packet to send [15:40:57]OFD Sender: No OFD packet to send [15:41:02]OFD Sender: No OFD packet to send [15:41:07]OFD Sender: No OFD packet to send [15:41:12]OFD Sender: No OFD packet to send [15:41:17]OFD Sender: No OFD packet to send [15:41:22]OFD Sender: No OFD packet to send [15:41:27]OFD Sender: No OFD packet to send [15:41: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:41]accept exits with 9 [15:43:41]New connection [15:43:41]New thread 3067374948 created [15:43:41]Thread 3067518308 joined [15:43:41]Waiting for new connection... [15:43:41] Sock 9.Parse request [15:43:41]Sock 9.Check first char [15:43:41]Sock 9.First char is OK [15:43:41]request: POST /json_proto HTTP/1.0 [15:43:41]Method: POST [15:43:41]URL: /json_proto [15:43:41]Method is POST - this is cgi request [15:43:41]url: /json_proto [15:43:41]query_string will be loaded in cgi processing [15:43:41]execute_cgi json_proto POST (null) [15:43:41]execute_cgi path=json_proto method=POST [15:43:41]POST find Content-Length [15:43:41]Host: 172.17.60.69:8080 [15:43:41]Content-Length: 819 [15:43:41]Content-Type: application/json [15:43:41] [15:43:41]POST finish read [15:43:41]Found Content-Length = 819 [15:43:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73418", "tax_sys" : 0, "items" : [ { "code": "46198051", "name": "\u0420/\u0436 mentos pure white \u043D\u0435\u0436\u043D \u043C\u044F\u0442\u0430 54\u0433", "price" : 205.00, "quantity" : 1.000, "sum" : 205.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 205.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:43:41]execute_script... [15:43:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73418", "tax_sys" : 0, "items" : [ { "code": "46198051", "name": "\u0420/\u0436 mentos pure white \u043D\u0435\u0436\u043D \u043C\u044F\u0442\u0430 54\u0433", "price" : 205.00, "quantity" : 1.000, "sum" : 205.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 205.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:43:41]POST & json_proto [15:43:41]process_json_proto [15:43:41]json parsed OK: [15:43:41]protocol is kg_v1.0 [15:43:41]action value=close_receipt [15:43:41]process_action close_receipt [15:43:41]cmd_close_receipt [15:43:41]MH_GetDate [15:43:41]Write to MH i2c: F0 00 00 84 1B 8E [15:43:41]Write i2c OK [15:43:41]MH_I2C_Read... [15:43:41]Read from MH i2c: F0 [15:43:41]MH_I2C_Read... [15:43:41]Read from MH i2c: F0 09 00 [15:43:41]MH_I2C_Read... [15:43:41]Read from MH i2c: F0 09 00 84 1B 00 B0 E4 5D 66 6A 96 4A 66 9E [15:43:41]GetLastDocTimeStamp 1717429077 [15:43:41]current date 1717429424 [15:43:41]FM_GetShiftState [15:43:41]SAM_PROTO_GetShiftState [15:43:41]wFMCommunicate request_size=4 [15:43:41]MH_SAM_APDU [15:43:41]CAPDU: 80 13 01 00 [15:43:41]Write to MH i2c: E2 08 00 85 1B 80 13 01 00 00 00 00 00 1D [15:43:41]Write i2c OK [15:43:41]MH_I2C_Read... [15:43:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:43:41]Read from MH i2c: E2 [15:43:41]MH_I2C_Read... [15:43:41]Read from MH i2c: E2 0E 00 [15:43:41]MH_I2C_Read... [15:43:41]Read from MH i2c: E2 0E 00 85 1B 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 E9 [15:43:41]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [15:43:41]wFMCommunicate OK [15:43:41]SAM_PROTO_GetShiftState done [15:43:41]FM_GetShiftState done [15:43:41]opened in 1717373173 [15:43:41]opened+sec_in_day 1717459573 [15:43:41]quantity*price = 20500 [15:43:41]sum+1 = 20501 [15:43:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 205.00 НСП 1% : 1.81 НДС 12% : 21.77 Наличными: 0.00 Безнал.: 205.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 99 03.06.2024 15:43 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875074 ФД: 63841 ФПД: 191649445097227 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T154344&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63841&fm=191649445097227&tin=02508201610067®Number=0000000000092737&sum=20500 0 [15:43:42]StoreToDocumentArchive [15:43:42]shift 373 fd 63841 [15:43:42]save to /storage/0373/doc_00063841 [15:43:42]save last doc name /storage/0373/doc_00063841 to /storage/kkm_last_doc_name [15:43:42]save OK [15:43:42]Clear old archive folders... [15:43:42]ProcessDocumentItem done err = 0, tmpTLVsize=283 [15:43:42]tlvbuf is 00D73060 [15:43:42]SAM_PROTO_ClearQueue [15:43:42]wFMCommunicate request_size=4 [15:43:42]MH_SAM_APDU [15:43:42]CAPDU: 80 09 00 00 [15:43:42]Write to MH i2c: E2 08 00 92 1B 80 09 00 00 00 00 00 00 1F [15:43:42]Write i2c OK [15:43:42]MH_I2C_Read... [15:43:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:43:43]Read from MH i2c: E2 [15:43:43]MH_I2C_Read... [15:43:43]Read from MH i2c: E2 03 00 [15:43:43]MH_I2C_Read... [15:43:43]Read from MH i2c: E2 03 00 92 1B 00 90 00 21 [15:43:43]RAPDU: 90 00 [15:43:43]wFMCommunicate OK [15:43:43]SAM_PROTO_ClearQueue done [15:43:43]KKMCreateOFDPacket [15:43:43]OFDProtocolAddRootSTLVToBuf [15:43:43]FM_MakeSignedData [15:43:43]FM_MakeSignedData [15:43:43]SAM_PROTO_SignData [15:43:43]wFMCommunicate request_size=4 [15:43:43]MH_SAM_APDU [15:43:43]CAPDU: 80 0D 01 02 [15:43:43]Write to MH i2c: E2 08 00 93 1B 80 0D 01 02 00 00 00 00 27 [15:43:43]Write i2c OK [15:43:43]MH_I2C_Read... [15:43:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:43:43]Read from MH i2c: E2 [15:43:43]MH_I2C_Read... [15:43:43]Read from MH i2c: E2 03 00 [15:43:43]MH_I2C_Read... [15:43:43]Read from MH i2c: E2 03 00 93 1B 00 90 00 22 [15:43:43]RAPDU: 90 00 [15:43:43]wFMCommunicate OK [15:43:43]wFMCommunicate request_size=255 [15:43:43]MH_SAM_APDU [15:43:43]CAPDU: 80 0D 02 02 FA 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 08 00 34 36 31 39 38 30 35 31 06 04 2E 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 75 72 65 20 77 68 69 74 65 20 D0 BD D0 B5 D0 B6 D0 BD 20 D0 BC D1 8F D1 82 D0 B0 20 35 34 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 14 50 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 B0 E4 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 [15:43:43]Write to MH i2c: E2 02 01 94 1B 80 0D 02 02 FA 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 08 00 34 36 31 39 38 30 35 31 06 04 2E 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 75 72 65 20 77 68 69 74 65 20 D0 BD D0 B5 D0 B6 D0 BD 20 D0 BC D1 8F D1 82 D0 B0 20 35 34 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 14 50 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 B0 E4 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 00 00 4F [15:43:43]Write i2c OK [15:43:43]MH_I2C_Read... [15:43:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:43:43]Read from MH i2c: E2 [15:43:43]MH_I2C_Read... [15:43:43]Read from MH i2c: E2 03 00 [15:43:43]MH_I2C_Read... [15:43:43]Read from MH i2c: E2 03 00 94 1B 00 90 00 23 [15:43:43]RAPDU: 90 00 [15:43:43]wFMCommunicate OK [15:43:43]wFMCommunicate request_size=42 [15:43:43]MH_SAM_APDU [15:43:43]CAPDU: 80 0D 02 02 25 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 61 F9 00 00 35 04 06 00 AE 4D DD 18 AF 0B [15:43:43]Write to MH i2c: E2 2D 00 95 1B 80 0D 02 02 25 00 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 61 F9 00 00 35 04 06 00 AE 4D DD 18 AF 0B 00 00 02 [15:43:43]Write i2c OK [15:43:43]MH_I2C_Read... [15:43:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:43:43]Read from MH i2c: E2 [15:43:43]MH_I2C_Read... [15:43:43]Read from MH i2c: E2 03 00 [15:43:43]MH_I2C_Read... [15:43:43]Read from MH i2c: E2 03 00 95 1B 00 90 00 24 [15:43:43]RAPDU: 90 00 [15:43:43]wFMCommunicate OK [15:43:43]wFMCommunicate request_size=4 [15:43:43]MH_SAM_APDU [15:43:43]CAPDU: 80 0D 03 02 [15:43:43]Write to MH i2c: E2 08 00 96 1B 80 0D 03 02 00 00 00 00 2C [15:43:43]Write i2c OK [15:43:43]MH_I2C_Read... [15:43:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:43:43]Read from MH i2c: E2 [15:43:43]MH_I2C_Read... [15:43:43]Read from MH i2c: E2 0B 00 [15:43:43]MH_I2C_Read... [15:43:43]Read from MH i2c: E2 0B 00 96 1B 00 38 84 75 10 61 69 06 C1 90 00 FF [15:43:43]RAPDU: 38 84 75 10 61 69 06 C1 90 00 [15:43:43]wFMCommunicate OK [15:43:43]SAM_PROTO_SignData done [15:43:43]FM_MakeSignedData done [15:43:43]CreateOFDProtocolMessage [15:43:43]wFMCommunicate request_size=4 [15:43:43]MH_SAM_APDU [15:43:43]CAPDU: 80 11 00 00 [15:43:43]Write to MH i2c: E2 08 00 97 1B 80 11 00 00 00 00 00 00 2C [15:43:43]Write i2c OK [15:43:43]MH_I2C_Read... [15:43:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:43:43]Read from MH i2c: E2 [15:43:43]MH_I2C_Read... [15:43:43]Read from MH i2c: E2 17 00 [15:43:43]MH_I2C_Read... [15:43:43]Read from MH i2c: E2 17 00 97 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 7E [15:43:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [15:43:43]wFMCommunicate OK [15:43:43]CreateOFDProtocolMessage done [15:43:43]OFDSenderStorePacket 63841 [15:43:43]StoreOFDPacket docnum=63841 [15:43:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 2F 01 00 00 81 7F 27 01 6B B4 5A 03 01 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 08 00 34 36 31 39 38 30 35 31 06 04 2E 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 75 72 65 20 77 68 69 74 65 20 D0 BD D0 B5 D0 B6 D0 BD 20 D0 BC D1 8F D1 82 D0 B0 20 35 34 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 14 50 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 B0 E4 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 61 F9 00 00 35 04 06 00 AE 4D DD 18 AF 0B 38 84 75 10 61 69 06 C1 [15:43:43]CheckFolder [15:43:43]dirname=/storage/ofd_packets [15:43:43]CheckFolder done [15:43:43]ProducePacketName [15:43:43]name=ofd_packets/00063841 [15:43:43]NVStorageSaveData ofd_packets/00063841 [15:43:43]File name is /storage/ofd_packets/00063841 [15:43:43]Write 333 bytes [15:43:43]NVStorageSaveData done [15:43:43]OFDSenderStorePacket done [15:43:43]KKMCreateOFDPacket done [15:43:43]NVStorageSaveData kkm_last_timestamp [15:43:43]File name is /storage/kkm_last_timestamp [15:43:43]Write 4 bytes [15:43:43]NVStorageSaveData done [15:43:43]ExternCall_PrintAddStr [15:43:43]wPrintStart [15:43:43]Write to MH i2c: 01 00 00 98 1B B3 [15:43:43]Write i2c OK [15:43:43]MH_I2C_Read... [15:43:43]Read from MH i2c: 01 [15:43:43]MH_I2C_Read... [15:43:43]Read from MH i2c: 01 07 00 [15:43:43]MH_I2C_Read... [15:43:43]Read from MH i2c: 01 07 00 98 1B 00 00 00 00 00 FF 0F C8 [15:43:43]RasterBufferAndPrint [15:43:43]line Счет N : (3)73418 [15:43:43]line ИНН: 02508201610067 [15:43:43]line Контрольно-Кассовый Чек [15:43:43]line ПРОДАЖА [15:43:43]line Товар: 46198051 [15:43:43]line Р/ж mentos pure white нежн мята 54г [15:43:43]line 1.000 * 205.00 [15:43:43]line = 205.00 [15:43:43]line НДС 12% НСП 1% [15:43:43]line > о реализуемом товаре [15:43:43]line ИТОГО: 205.00 [15:43:43]line НСП 1% : 1.81 [15:43:43]line НДС 12% : 21.77 [15:43:43]line Наличными: 0.00 [15:43:43]line Безнал.: 205.00 [15:43:43]line Место: АЗС № 117 "Партнер Нефть" [15:43:43]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [15:43:43]line СНО: Общий режим [15:43:43]line Чек 99 03.06.2024 15:43 [15:43:43]line Смена: 373 ФФД: 1.0 [15:43:43]line ЗНМ: 0300000031 [15:43:43]line РНМ: 0000000000092737 [15:43:43]line Версия ККМ: 001 [15:43:43]line Платежная система: Бакай Банк [15:43:43]line ФМ: 0000000000875074 [15:43:43]line ФД: 63841 [15:43:43]line ФПД: 191649445097227 [15:43:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T154344&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63841&fm=191649445097227&tin=02508201610067®Number=0000000000092737&sum=20500 [15:43:43]line 0 [15:43:43]OFD Sender: Processing packet 63841 [packets to send 14, broken 13] [15:43:43]ProducePacketName [15:43:43]name=ofd_packets/00063841 [15:43:43]OFD Sender: To server: pG, [15:43:43]CommunicateWithHost lk.salyk.kg:30040 [15:43:43]ConnectInit lk.salyk.kg [15:43:43]written 0, free lines is 4095 [15:43:43]Connected sock=10 [15:43:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 2F 01 00 00 81 7F 27 01 6B B4 5A 03 01 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 08 00 34 36 31 39 38 30 35 31 06 04 2E 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 75 72 65 20 77 68 69 74 65 20 D0 BD D0 B5 D0 B6 D0 BD 20 D0 BC D1 8F D1 82 D0 B0 20 35 34 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 14 50 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 B0 E4 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 61 F9 00 00 35 04 06 00 AE 4D DD 18 AF 0B 38 84 75 10 61 69 06 C1 [15:43:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 CE 2C 47 00 AC 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 35 30 37 34 10 04 04 00 61 F9 00 00 F4 03 04 00 81 90 5D 66 B6 04 01 00 00 CF 5A 8B 52 BA D9 98 7A [15:43:44]CommunicateWithHost err = 0 [15:43:44]CheckOFDResponse [15:43:44]1017 (14) - 77093643461234 [15:43:44]1041 (16) - 0000000000875074 [15:43:44]1040 (4) - 63841 [15:43:44]1012 (4) - 03.06.2024 09:44 [15:43:44]1206 (1) - 0 [15:43:44]OFD Sender: Remove packet 63841 [15:43:44]ProducePacketName [15:43:44]name=ofd_packets/00063841 [15:43:44]NVStorageDeleteData [15:43:44]Write to MH i2c: 01 00 00 C3 1B DE [15:43:44]Write i2c OK [15:43:44]MH_I2C_Read... [15:43:44]Read from MH i2c: 01 [15:43:44]MH_I2C_Read... [15:43:44]Read from MH i2c: 01 07 00 [15:43:44]MH_I2C_Read... [15:43:44]Read from MH i2c: 01 07 00 C3 1B 00 00 00 00 00 CD 0C BE [15:43:44]RasterBufferAndPrint [15:43:44]line [15:43:44]line [15:43:44]line [15:43:44]line [15:43:44]line [15:43:44]written 0, free lines is 3283 [15:43:44]MH_Cut [15:43:44]Write to MH i2c: D1 01 00 CA 1B 01 B7 [15:43:44]Write i2c OK [15:43:44]MH_I2C_Read... [15:43:44]Read from MH i2c: D1 [15:43:44]MH_I2C_Read... [15:43:44]Read from MH i2c: D1 01 00 [15:43:44]MH_I2C_Read... [15:43:44]Read from MH i2c: D1 01 00 CA 1B 00 B6 [15:43:44]Write to MH i2c: 01 00 00 CB 1B E6 [15:43:44]Write i2c OK [15:43:44]MH_I2C_Read... [15:43:44]OFD Sender: No OFD packet to send [15:43:45]*** Cut start [15:43:45]*** Partial cut [15:43:45]*** CUTSNS_PIN = 1 [15:43:45]*** CUTSNS_PIN = 0 [15:43:45]*** Brake cut motor [15:43:45]Read from MH i2c: 01 [15:43:45]MH_I2C_Read... [15:43:45]*** Stop cut motor [15:43:45]*** Cut end [15:43:45]Read from MH i2c: 01 07 00 [15:43:45]MH_I2C_Read... [15:43:45]Read from MH i2c: 01 07 00 CB 1B 00 00 00 00 00 FF 0F FB [15:43:45]process_action close_receipt done [15:43:45]requested_data is exist [15:43:45]produce_requested_data [15:43:45]requested_item fm.sn is exist - process it [15:43:45]wFMCommunicate request_size=4 [15:43:45]MH_SAM_APDU [15:43:45]CAPDU: 80 11 00 00 [15:43:45]Write to MH i2c: E2 08 00 CC 1B 80 11 00 00 00 00 00 00 61 [15:43:45]Write i2c OK [15:43:45]MH_I2C_Read... [15:43:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:43:45]Read from MH i2c: E2 [15:43:45]MH_I2C_Read... [15:43:45]Read from MH i2c: E2 17 00 [15:43:45]MH_I2C_Read... [15:43:45]Read from MH i2c: E2 17 00 CC 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 B3 [15:43:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [15:43:45]wFMCommunicate OK [15:43:45]requested_item fd.num is exist - process it [15:43:45]SAM_PROTO_GetFieldsCounters [15:43:45]wFMCommunicate request_size=4 [15:43:45]MH_SAM_APDU [15:43:45]CAPDU: 80 13 00 00 [15:43:45]Write to MH i2c: E2 08 00 CD 1B 80 13 00 00 00 00 00 00 64 [15:43:45]Write i2c OK [15:43:45]MH_I2C_Read... [15:43:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:43:45]Read from MH i2c: E2 [15:43:45]MH_I2C_Read... [15:43:45]Read from MH i2c: E2 62 00 [15:43:45]MH_I2C_Read... [15:43:45]Read from MH i2c: E2 62 00 CD 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 61 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 80 [15:43: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 61 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:43:45]wFMCommunicate OK [15:43:45]SAM_PROTO_GetFieldsCounters done [15:43:45]requested_item shift.num is exist - process it [15:43:45]requested_item shift.opened is exist - process it [15:43:45]req_shift_opened [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 CE 1B 80 13 01 00 00 00 00 00 66 [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 CE 1B 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 32 [15:43:45]RAPDU: 09 00 01 F5 08 5D 66 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]req_shift_opened done [15:43:45]requested_item shift.open_date is exist - process it [15:43:45]req_shift_open_date [15:43:45]req_shift_open_date done [15:43:45]produce_requested_data done [15:43:45]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63841,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [15:43:45]process_action_free close_receipt [15:43:45]json_value_free [15:43:45]json_value_free done [15:43:45]process_json_proto returns [15:43:45]Send response to host [15:43:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63841,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [15:43:45]free response buf [15:43:45]execute_script done [15:43:45]execute_script returns [15:43:45]free content buf [15:43:45]Sock 9.Close socket [15:43:45]Sock 9.Thread stoped [15:43:49]OFD Sender: No OFD packet to send [15:43:54]OFD Sender: No OFD packet to send [15:43:59]OFD Sender: No OFD packet to send [15:44:04]OFD Sender: No OFD packet to send [15:44:09]OFD Sender: No OFD packet to send [15:44:14]OFD Sender: No OFD packet to send [15:44:19]OFD Sender: No OFD packet to send [15:44:24]OFD Sender: No OFD packet to send [15:44:29]OFD Sender: No OFD packet to send [15:44:34]OFD Sender: No OFD packet to send [15:44:39]OFD Sender: No OFD packet to send [15:44:44]OFD Sender: No OFD packet to send [15:44:49]OFD Sender: No OFD packet to send [15:44:54]OFD Sender: No OFD packet to send [15:44:59]OFD Sender: No OFD packet to send [15:45:04]OFD Sender: No OFD packet to send [15:45:09]OFD Sender: No OFD packet to send [15:45:14]OFD Sender: No OFD packet to send [15:45:19]OFD Sender: No OFD packet to send [15:45:24]OFD Sender: No OFD packet to send [15:45:29]OFD Sender: No OFD packet to send [15:45:34]OFD Sender: No OFD packet to send [15:45:39]OFD Sender: No OFD packet to send [15:45:44]OFD Sender: No OFD packet to send [15:45:49]OFD Sender: No OFD packet to send [15:45:54]OFD Sender: No OFD packet to send [15:45:59]OFD Sender: No OFD packet to send [15:46:04]OFD Sender: No OFD packet to send [15:46:09]OFD Sender: No OFD packet to send [15:46:14]OFD Sender: No OFD packet to send [15:46:19]OFD Sender: No OFD packet to send [15:46:24]OFD Sender: No OFD packet to send [15:46:29]OFD Sender: No OFD packet to send [15:46:34]OFD Sender: No OFD packet to send [15:46:39]OFD Sender: No OFD packet to send [15:46:44]OFD Sender: No OFD packet to send [15:46:49]OFD Sender: No OFD packet to send [15:46:54]OFD Sender: No OFD packet to send [15:46:59]OFD Sender: No OFD packet to send [15:47:04]OFD Sender: No OFD packet to send [15:47:09]OFD Sender: No OFD packet to send [15:47:14]OFD Sender: No OFD packet to send [15:47:19]OFD Sender: No OFD packet to send [15:47:24]OFD Sender: No OFD packet to send [15:47:29]OFD Sender: No OFD packet to send [15:47:34]OFD Sender: No OFD packet to send [15:47: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:39]OFD Sender: No OFD packet to send [15:48:44]OFD Sender: No OFD packet to send [15:48:49]OFD Sender: No OFD packet to send [15:48:54]OFD Sender: No OFD packet to send [15:48:59]OFD Sender: No OFD packet to send [15:49:04]OFD Sender: No OFD packet to send [15:49:09]OFD Sender: No OFD packet to send [15:49:14]OFD Sender: No OFD packet to send [15:49:19]OFD Sender: No OFD packet to send [15:49:24]OFD Sender: No OFD packet to send [15:49:29]OFD Sender: No OFD packet to send [15:49:34]OFD Sender: No OFD packet to send [15:49:39]OFD Sender: No OFD packet to send [15:49:44]OFD Sender: No OFD packet to send [15:49:49]OFD Sender: No OFD packet to send [15:49:54]OFD Sender: No OFD packet to send [15:49:57]accept exits with 7 [15:49:57]New connection [15:49:57]New thread 3067518308 created [15:49:57]Thread 3067374948 joined [15:49:57]Waiting for new connection... [15:49:57] Sock 7.Parse request [15:49:57]Sock 7.Check first char [15:49:57]Sock 7.First char is OK [15:49:57]request: POST /json_proto HTTP/1.0 [15:49:57]Method: POST [15:49:57]URL: /json_proto [15:49:57]Method is POST - this is cgi request [15:49:57]url: /json_proto [15:49:57]query_string will be loaded in cgi processing [15:49:57]execute_cgi json_proto POST (null) [15:49:57]execute_cgi path=json_proto method=POST [15:49:57]POST find Content-Length [15:49:57]Host: 172.17.60.69:8080 [15:49:57]Content-Length: 215 [15:49:57]Content-Type: application/json [15:49:57] [15:49:57]POST finish read [15:49:57]Found Content-Length = 215 [15:49:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:49:57]execute_script... [15:49:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:49:57]POST & json_proto [15:49:57]process_json_proto [15:49:57]json parsed OK: [15:49:57]protocol is kg_v1.0 [15:49:57]action value=get_value [15:49:57]process_action get_value [15:49:57]cmd_get_value [15:49:57]process_action get_value done [15:49:57]requested_data is exist [15:49:57]produce_requested_data [15:49:57]requested_item kkm.sn is exist - process it [15:49:57]requested_item kkm.ver is exist - process it [15:49:57]requested_item fm.sn is exist - process it [15:49:57]wFMCommunicate request_size=4 [15:49:57]MH_SAM_APDU [15:49:57]CAPDU: 80 11 00 00 [15:49:57]Write to MH i2c: E2 08 00 CF 1B 80 11 00 00 00 00 00 00 64 [15:49:57]Write i2c OK [15:49:57]MH_I2C_Read... [15:49:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:49:57]Read from MH i2c: E2 [15:49:57]MH_I2C_Read... [15:49:57]Read from MH i2c: E2 17 00 [15:49:57]MH_I2C_Read... [15:49:57]Read from MH i2c: E2 17 00 CF 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 B6 [15:49:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [15:49:57]wFMCommunicate OK [15:49:57]requested_item fd.num is exist - process it [15:49:57]SAM_PROTO_GetFieldsCounters [15:49:57]wFMCommunicate request_size=4 [15:49:57]MH_SAM_APDU [15:49:57]CAPDU: 80 13 00 00 [15:49:57]Write to MH i2c: E2 08 00 D0 1B 80 13 00 00 00 00 00 00 67 [15:49:57]Write i2c OK [15:49:57]MH_I2C_Read... [15:49:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:49:57]Read from MH i2c: E2 [15:49:57]MH_I2C_Read... [15:49:57]Read from MH i2c: E2 62 00 [15:49:57]MH_I2C_Read... [15:49:57]Read from MH i2c: E2 62 00 D0 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 61 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 83 [15:49: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 61 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:49:57]wFMCommunicate OK [15:49:57]SAM_PROTO_GetFieldsCounters done [15:49:57]requested_item shift.num is exist - process it [15:49:57]requested_item shift.opened is exist - process it [15:49:57]req_shift_opened [15:49:57]FM_GetShiftState [15:49:57]SAM_PROTO_GetShiftState [15:49:57]wFMCommunicate request_size=4 [15:49:57]MH_SAM_APDU [15:49:57]CAPDU: 80 13 01 00 [15:49:57]Write to MH i2c: E2 08 00 D1 1B 80 13 01 00 00 00 00 00 69 [15:49:57]Write i2c OK [15:49:57]MH_I2C_Read... [15:49:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:49:57]Read from MH i2c: E2 [15:49:57]MH_I2C_Read... [15:49:57]Read from MH i2c: E2 0E 00 [15:49:57]MH_I2C_Read... [15:49:57]Read from MH i2c: E2 0E 00 D1 1B 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 35 [15:49:57]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [15:49:57]wFMCommunicate OK [15:49:57]SAM_PROTO_GetShiftState done [15:49:57]FM_GetShiftState done [15:49:57]req_shift_opened done [15:49:57]requested_item shift.open_date is exist - process it [15:49:57]req_shift_open_date [15:49:57]req_shift_open_date done [15:49:57]produce_requested_data done [15:49:57]produce_requested_data return {"kkm.sn":"0300000031","kkm.ver":"001","fm.sn":"0000000000875074","fd.num":63841,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [15:49:57]process_action_free get_value [15:49:57]json_value_free [15:49:57]json_value_free done [15:49:57]process_json_proto returns [15:49:57]Send response to host [15:49:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000031","kkm.ver":"001","fm.sn":"0000000000875074","fd.num":63841,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [15:49:57]free response buf [15:49:57]execute_script done [15:49:57]execute_script returns [15:49:57]free content buf [15:49:57]Sock 7.Close socket [15:49:57]Sock 7.Thread stoped [15:49:59]OFD Sender: No OFD packet to send [15:50:00]accept exits with 9 [15:50:00]New connection [15:50:00]New thread 3067374948 created [15:50:00]Thread 3067518308 joined [15:50:00]Waiting for new connection... [15:50:00] Sock 9.Parse request [15:50:00]Sock 9.Check first char [15:50:00]Sock 9.First char is OK [15:50:00]request: POST /json_proto HTTP/1.0 [15:50:00]Method: POST [15:50:00]URL: /json_proto [15:50:00]Method is POST - this is cgi request [15:50:00]url: /json_proto [15:50:00]query_string will be loaded in cgi processing [15:50:00]execute_cgi json_proto POST (null) [15:50:00]execute_cgi path=json_proto method=POST [15:50:00]POST find Content-Length [15:50:00]Host: 172.17.60.69:8080 [15:50:00]Content-Length: 331 [15:50:00]Content-Type: application/json [15:50:00] [15:50:00]POST finish read [15:50:00]Found Content-Length = 331 [15:50:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [15:50:00]execute_script... [15:50:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [15:50:00]POST & json_proto [15:50:00]process_json_proto [15:50:00]json parsed OK: [15:50:00]protocol is kg_v1.0 [15:50:00]action value=get_value [15:50:00]process_action get_value [15:50:00]cmd_get_value [15:50:00]process_action get_value done [15:50:00]requested_data is exist [15:50:00]produce_requested_data [15:50:00]requested_item fm.sale.total is exist - process it [15:50:00]SAM_PROTO_GetFMData [15:50:00]wFMCommunicate request_size=4 [15:50:00]MH_SAM_APDU [15:50:00]CAPDU: 80 13 03 00 [15:50:00]Write to MH i2c: E2 08 00 D2 1B 80 13 03 00 00 00 00 00 6C [15:50:00]Write i2c OK [15:50:00]MH_I2C_Read... [15:50:01]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [15:50:01]Read from MH i2c: E2 [15:50:01]MH_I2C_Read... [15:50:01]Read from MH i2c: E2 FD 00 [15:50:01]MH_I2C_Read... [15:50:01]Read from MH i2c: E2 FD 00 D2 1B 00 C5 04 85 04 C1 04 6E 04 04 00 77 F6 00 00 69 04 A1 00 6F 04 04 00 1A F4 00 00 B1 04 04 00 39 2C A7 76 70 04 04 00 0A A7 ED 65 72 04 04 00 2F 85 B9 10 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 6A 19 9A 0C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 CA C3 0C 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 5D 02 00 00 B1 04 04 00 64 11 7D 03 70 04 04 00 E0 B5 61 03 72 04 03 00 84 5B 1B 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 F2 D8 5E EF 03 09 90 00 3D [15:50:01]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 77 F6 00 00 69 04 A1 00 6F 04 04 00 1A F4 00 00 B1 04 04 00 39 2C A7 76 70 04 04 00 0A A7 ED 65 72 04 04 00 2F 85 B9 10 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 6A 19 9A 0C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 CA C3 0C 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 5D 02 00 00 B1 04 04 00 64 11 7D 03 70 04 04 00 E0 B5 61 03 72 04 03 00 84 5B 1B 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 F2 D8 5E EF 03 09 90 00 [15:50:01]wFMCommunicate OK [15:50:01]wFMCommunicate request_size=4 [15:50:01]MH_SAM_APDU [15:50:01]CAPDU: 80 17 00 00 [15:50:01]Write to MH i2c: E2 08 00 D3 1B 80 17 00 00 00 00 00 00 6E [15:50:01]Write i2c OK [15:50:01]MH_I2C_Read... [15:50:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:50:01]Read from MH i2c: E2 [15:50:01]MH_I2C_Read... [15:50:01]Read from MH i2c: E2 FD 00 [15:50:01]MH_I2C_Read... [15:50:01]Read from MH i2c: E2 FD 00 D3 1B 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 2E E7 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 40 [15:50:01]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 2E E7 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [15:50:01]wFMCommunicate OK [15:50:01]wFMCommunicate request_size=4 [15:50:01]MH_SAM_APDU [15:50:01]CAPDU: 80 17 00 00 [15:50:01]Write to MH i2c: E2 08 00 D4 1B 80 17 00 00 00 00 00 00 6F [15:50:01]Write i2c OK [15:50:01]MH_I2C_Read... [15:50:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:50:01]Read from MH i2c: E2 [15:50:01]MH_I2C_Read... [15:50:01]Read from MH i2c: E2 FD 00 [15:50:01]MH_I2C_Read... [15:50:01]Read from MH i2c: E2 FD 00 D4 1B 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 81 [15:50:01]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [15:50:01]wFMCommunicate OK [15:50:01]wFMCommunicate request_size=4 [15:50:01]MH_SAM_APDU [15:50:01]CAPDU: 80 17 00 00 [15:50:01]Write to MH i2c: E2 08 00 D5 1B 80 17 00 00 00 00 00 00 70 [15:50:01]Write i2c OK [15:50:01]MH_I2C_Read... [15:50:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:50:01]Read from MH i2c: E2 [15:50:01]MH_I2C_Read... [15:50:01]Read from MH i2c: E2 FD 00 [15:50:01]MH_I2C_Read... [15:50:01]Read from MH i2c: E2 FD 00 D5 1B 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 FC [15:50:01]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [15:50:01]wFMCommunicate OK [15:50:01]wFMCommunicate request_size=4 [15:50:01]MH_SAM_APDU [15:50:01]CAPDU: 80 17 00 00 [15:50:01]Write to MH i2c: E2 08 00 D6 1B 80 17 00 00 00 00 00 00 71 [15:50:01]Write i2c OK [15:50:01]MH_I2C_Read... [15:50:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [15:50:02]Read from MH i2c: E2 [15:50:02]MH_I2C_Read... [15:50:02]Read from MH i2c: E2 E2 00 [15:50:02]MH_I2C_Read... [15:50:02]Read from MH i2c: E2 E2 00 D6 1B 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 4F [15:50:02]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [15:50:02]wFMCommunicate OK [15:50:02]SAM_PROTO_GetFMData done [15:50:02]requested_item fm.sale_refund.total is exist - process it [15:50:02]requested_item fm.buy.total is exist - process it [15:50:02]requested_item shift.sale.total is exist - process it [15:50:02]SAM_PROTO_GetShiftData [15:50:02]wFMCommunicate request_size=4 [15:50:02]MH_SAM_APDU [15:50:02]CAPDU: 80 13 02 00 [15:50:02]Write to MH i2c: E2 08 00 D7 1B 80 13 02 00 00 00 00 00 70 [15:50:02]Write i2c OK [15:50:02]MH_I2C_Read... [15:50:02]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [15:50:02]Read from MH i2c: E2 [15:50:02]MH_I2C_Read... [15:50:02]Read from MH i2c: E2 FD 00 [15:50:02]MH_I2C_Read... [15:50:02]Read from MH i2c: E2 FD 00 D7 1B 00 AE 04 AA 04 AA 04 6E 04 04 00 63 00 00 00 69 04 9B 00 6F 04 04 00 63 00 00 00 B1 04 03 00 4C 37 2F 70 04 03 00 04 0C 22 72 04 03 00 48 2B 0D 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 BA 03 05 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 F6 6A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 7D [15:50:02]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 63 00 00 00 69 04 9B 00 6F 04 04 00 63 00 00 00 B1 04 03 00 4C 37 2F 70 04 03 00 04 0C 22 72 04 03 00 48 2B 0D 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 BA 03 05 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 F6 6A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [15:50:02]wFMCommunicate OK [15:50:02]wFMCommunicate request_size=4 [15:50:02]MH_SAM_APDU [15:50:02]CAPDU: 80 17 00 00 [15:50:02]Write to MH i2c: E2 08 00 D8 1B 80 17 00 00 00 00 00 00 73 [15:50:02]Write i2c OK [15:50:02]MH_I2C_Read... [15:50:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:50:02]Read from MH i2c: E2 [15:50:02]MH_I2C_Read... [15:50:02]Read from MH i2c: E2 FD 00 [15:50:02]MH_I2C_Read... [15:50:02]Read from MH i2c: E2 FD 00 D8 1B 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 95 [15:50:02]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [15:50:02]wFMCommunicate OK [15:50:02]wFMCommunicate request_size=4 [15:50:02]MH_SAM_APDU [15:50:02]CAPDU: 80 17 00 00 [15:50:02]Write to MH i2c: E2 08 00 D9 1B 80 17 00 00 00 00 00 00 74 [15:50:02]Write i2c OK [15:50:02]MH_I2C_Read... [15:50:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:50:03]Read from MH i2c: E2 [15:50:03]MH_I2C_Read... [15:50:03]Read from MH i2c: E2 FD 00 [15:50:03]MH_I2C_Read... [15:50:03]Read from MH i2c: E2 FD 00 D9 1B 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 2B [15:50:03]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [15:50:03]wFMCommunicate OK [15:50:03]wFMCommunicate request_size=4 [15:50:03]MH_SAM_APDU [15:50:03]CAPDU: 80 17 00 00 [15:50:03]Write to MH i2c: E2 08 00 DA 1B 80 17 00 00 00 00 00 00 75 [15:50:03]Write i2c OK [15:50:03]MH_I2C_Read... [15:50:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:50:03]Read from MH i2c: E2 [15:50:03]MH_I2C_Read... [15:50:03]Read from MH i2c: E2 FD 00 [15:50:03]MH_I2C_Read... [15:50:03]Read from MH i2c: E2 FD 00 DA 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 90 00 E7 [15:50:03]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [15:50:03]wFMCommunicate OK [15:50:03]wFMCommunicate request_size=4 [15:50:03]MH_SAM_APDU [15:50:03]CAPDU: 80 17 00 00 [15:50:03]Write to MH i2c: E2 08 00 DB 1B 80 17 00 00 00 00 00 00 76 [15:50:03]Write i2c OK [15:50:03]MH_I2C_Read... [15:50:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [15:50:03]Read from MH i2c: E2 [15:50:03]MH_I2C_Read... [15:50:03]Read from MH i2c: E2 CB 00 [15:50:03]MH_I2C_Read... [15:50:03]Read from MH i2c: E2 CB 00 DB 1B 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 5F [15:50:03]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [15:50:03]wFMCommunicate OK [15:50:03]SAM_PROTO_GetShiftData done [15:50:03]requested_item shift.sale.total_cash is exist - process it [15:50:03]requested_item shift.sale_refund.total is exist - process it [15:50:03]requested_item shift.sale_refund.total_cash is exist - process it [15:50:03]requested_item shift.buy.total is exist - process it [15:50:03]requested_item shift.buy.total_cash is exist - process it [15:50:03]produce_requested_data done [15:50:03]produce_requested_data return {"fm.sale.total":19906673.21,"fm.sale_refund.total":585281.00,"fm.buy.total":0.00,"shift.sale.total":30943.48,"shift.sale.total_cash":22313.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} [15:50:03]process_action_free get_value [15:50:03]json_value_free [15:50:03]json_value_free done [15:50:03]process_json_proto returns [15:50:03]Send response to host [15:50:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":19906673.21,"fm.sale_refund.total":585281.00,"fm.buy.total":0.00,"shift.sale.total":30943.48,"shift.sale.total_cash":22313.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}}} [15:50:03]free response buf [15:50:03]execute_script done [15:50:03]execute_script returns [15:50:03]free content buf [15:50:03]Sock 9.Close socket [15:50:03]Sock 9.Thread stoped [15:50:05]OFD Sender: No OFD packet to send [15:50:10]OFD Sender: No OFD packet to send [15:50:15]OFD Sender: No OFD packet to send [15:50:20]OFD Sender: No OFD packet to send [15:50:25]OFD Sender: No OFD packet to send [15:50:30]OFD Sender: No OFD packet to send [15:50:35]OFD Sender: No OFD packet to send [15:50:40]OFD Sender: No OFD packet to send [15:50:45]OFD Sender: No OFD packet to send [15:50:50]OFD Sender: No OFD packet to send [15:50:55]OFD Sender: No OFD packet to send [15:51:00]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:55]OFD Sender: No OFD packet to send [15:52:00]OFD Sender: No OFD packet to send [15:52:05]OFD Sender: No OFD packet to send [15:52:10]OFD Sender: No OFD packet to send [15:52:11]accept exits with 7 [15:52:11]New connection [15:52:11]New thread 3067518308 created [15:52:11]Thread 3067374948 joined [15:52:11]Waiting for new connection... [15:52:11] Sock 7.Parse request [15:52:11]Sock 7.Check first char [15:52:11]Sock 7.First char is OK [15:52:11]request: POST /json_proto HTTP/1.0 [15:52:11]Method: POST [15:52:11]URL: /json_proto [15:52:11]Method is POST - this is cgi request [15:52:11]url: /json_proto [15:52:11]query_string will be loaded in cgi processing [15:52:11]execute_cgi json_proto POST (null) [15:52:11]execute_cgi path=json_proto method=POST [15:52:11]POST find Content-Length [15:52:11]Host: 172.17.60.69:8080 [15:52:11]Content-Length: 659 [15:52:11]Content-Type: application/json [15:52:11] [15:52:11]POST finish read [15:52:11]Found Content-Length = 659 [15:52:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73419", "tax_sys" : 0, "items" : [ { "code": "5449000000439", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1,5\u043B", "price" : 155.00, "quantity" : 1.000, "sum" : 155.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 155.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:52:11]execute_script... [15:52:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73419", "tax_sys" : 0, "items" : [ { "code": "5449000000439", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1,5\u043B", "price" : 155.00, "quantity" : 1.000, "sum" : 155.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 155.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:52:11]POST & json_proto [15:52:11]process_json_proto [15:52:11]json parsed OK: [15:52:11]protocol is kg_v1.0 [15:52:11]action value=close_receipt [15:52:11]process_action close_receipt [15:52:11]cmd_close_receipt [15:52:11]MH_GetDate [15:52:11]Write to MH i2c: F0 00 00 DC 1B E6 [15:52:11]Write i2c OK [15:52:11]MH_I2C_Read... [15:52:11]Read from MH i2c: F0 [15:52:11]MH_I2C_Read... [15:52:11]Read from MH i2c: F0 09 00 [15:52:11]MH_I2C_Read... [15:52:11]Read from MH i2c: F0 09 00 DC 1B 00 AE E6 5D 66 6A 96 4A 66 F6 [15:52:11]GetLastDocTimeStamp 1717429424 [15:52:11]current date 1717429934 [15:52:11]FM_GetShiftState [15:52:11]SAM_PROTO_GetShiftState [15:52:11]wFMCommunicate request_size=4 [15:52:11]MH_SAM_APDU [15:52:11]CAPDU: 80 13 01 00 [15:52:11]Write to MH i2c: E2 08 00 DD 1B 80 13 01 00 00 00 00 00 75 [15:52:11]Write i2c OK [15:52:11]MH_I2C_Read... [15:52:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:52:11]Read from MH i2c: E2 [15:52:11]MH_I2C_Read... [15:52:11]Read from MH i2c: E2 0E 00 [15:52:11]MH_I2C_Read... [15:52:11]Read from MH i2c: E2 0E 00 DD 1B 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 41 [15:52:11]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [15:52:11]wFMCommunicate OK [15:52:11]SAM_PROTO_GetShiftState done [15:52:11]FM_GetShiftState done [15:52:11]opened in 1717373173 [15:52:11]opened+sec_in_day 1717459573 [15:52:11]quantity*price = 15500 [15:52:11]sum+1 = 15501 [15:52:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 155.00 НСП 1% : 1.37 НДС 12% : 16.46 Наличными: 155.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 100 03.06.2024 15:52 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63842 ФПД: 32525720112265 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T155214&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63842&fm=32525720112265&tin=02508201610067®Number=0000000000092737&sum=15500 0 [15:52:12]StoreToDocumentArchive [15:52:12]shift 373 fd 63842 [15:52:12]save to /storage/0373/doc_00063842 [15:52:12]save last doc name /storage/0373/doc_00063842 to /storage/kkm_last_doc_name [15:52:12]save OK [15:52:12]Clear old archive folders... [15:52:12]ProcessDocumentItem done err = 0, tmpTLVsize=280 [15:52:12]tlvbuf is B6F4B990 [15:52:12]SAM_PROTO_ClearQueue [15:52:12]wFMCommunicate request_size=4 [15:52:12]MH_SAM_APDU [15:52:12]CAPDU: 80 09 00 00 [15:52:12]Write to MH i2c: E2 08 00 EA 1B 80 09 00 00 00 00 00 00 77 [15:52:12]Write i2c OK [15:52:12]MH_I2C_Read... [15:52:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:52:12]Read from MH i2c: E2 [15:52:12]MH_I2C_Read... [15:52:12]Read from MH i2c: E2 03 00 [15:52:12]MH_I2C_Read... [15:52:12]Read from MH i2c: E2 03 00 EA 1B 00 90 00 79 [15:52:12]RAPDU: 90 00 [15:52:12]wFMCommunicate OK [15:52:12]SAM_PROTO_ClearQueue done [15:52:12]KKMCreateOFDPacket [15:52:12]OFDProtocolAddRootSTLVToBuf [15:52:12]FM_MakeSignedData [15:52:12]FM_MakeSignedData [15:52:12]SAM_PROTO_SignData [15:52:12]wFMCommunicate request_size=4 [15:52:12]MH_SAM_APDU [15:52:12]CAPDU: 80 0D 01 02 [15:52:12]Write to MH i2c: E2 08 00 EB 1B 80 0D 01 02 00 00 00 00 7F [15:52:12]Write i2c OK [15:52:12]MH_I2C_Read... [15:52:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:52:12]Read from MH i2c: E2 [15:52:12]MH_I2C_Read... [15:52:12]Read from MH i2c: E2 03 00 [15:52:12]MH_I2C_Read... [15:52:12]Read from MH i2c: E2 03 00 EB 1B 00 90 00 7A [15:52:12]RAPDU: 90 00 [15:52:12]wFMCommunicate OK [15:52:12]wFMCommunicate request_size=255 [15:52:12]MH_SAM_APDU [15:52:12]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 34 33 39 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 8C 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 AE E6 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 [15:52:12]Write to MH i2c: E2 02 01 EC 1B 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 34 33 39 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 8C 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 AE E6 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 00 00 CC [15:52:12]Write i2c OK [15:52:12]MH_I2C_Read... [15:52:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:52:13]Read from MH i2c: E2 [15:52:13]MH_I2C_Read... [15:52:13]Read from MH i2c: E2 03 00 [15:52:13]MH_I2C_Read... [15:52:13]Read from MH i2c: E2 03 00 EC 1B 00 90 00 7B [15:52:13]RAPDU: 90 00 [15:52:13]wFMCommunicate OK [15:52:13]wFMCommunicate request_size=39 [15:52:13]MH_SAM_APDU [15:52:13]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 62 F9 00 00 35 04 06 00 1D 94 FB FE 4C 89 [15:52:13]Write to MH i2c: E2 2A 00 ED 1B 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 62 F9 00 00 35 04 06 00 1D 94 FB FE 4C 89 00 00 16 [15:52:13]Write i2c OK [15:52:13]MH_I2C_Read... [15:52:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:52:13]Read from MH i2c: E2 [15:52:13]MH_I2C_Read... [15:52:13]Read from MH i2c: E2 03 00 [15:52:13]MH_I2C_Read... [15:52:13]Read from MH i2c: E2 03 00 ED 1B 00 90 00 7C [15:52:13]RAPDU: 90 00 [15:52:13]wFMCommunicate OK [15:52:13]wFMCommunicate request_size=4 [15:52:13]MH_SAM_APDU [15:52:13]CAPDU: 80 0D 03 02 [15:52:13]Write to MH i2c: E2 08 00 EE 1B 80 0D 03 02 00 00 00 00 84 [15:52:13]Write i2c OK [15:52:13]MH_I2C_Read... [15:52:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:52:13]Read from MH i2c: E2 [15:52:13]MH_I2C_Read... [15:52:13]Read from MH i2c: E2 0B 00 [15:52:13]MH_I2C_Read... [15:52:13]Read from MH i2c: E2 0B 00 EE 1B 00 FE 99 76 3C AA 32 A0 DD 90 00 27 [15:52:13]RAPDU: FE 99 76 3C AA 32 A0 DD 90 00 [15:52:13]wFMCommunicate OK [15:52:13]SAM_PROTO_SignData done [15:52:13]FM_MakeSignedData done [15:52:13]CreateOFDProtocolMessage [15:52:13]wFMCommunicate request_size=4 [15:52:13]MH_SAM_APDU [15:52:13]CAPDU: 80 11 00 00 [15:52:13]Write to MH i2c: E2 08 00 EF 1B 80 11 00 00 00 00 00 00 84 [15:52:13]Write i2c OK [15:52:13]MH_I2C_Read... [15:52:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:52:13]Read from MH i2c: E2 [15:52:13]MH_I2C_Read... [15:52:13]Read from MH i2c: E2 17 00 [15:52:13]MH_I2C_Read... [15:52:13]Read from MH i2c: E2 17 00 EF 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 D6 [15:52:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [15:52:13]wFMCommunicate OK [15:52:13]CreateOFDProtocolMessage done [15:52:13]OFDSenderStorePacket 63842 [15:52:13]StoreOFDPacket docnum=63842 [15:52:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 2C 01 00 00 6E 3C 24 01 11 20 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 34 33 39 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 8C 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 AE E6 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 62 F9 00 00 35 04 06 00 1D 94 FB FE 4C 89 FE 99 76 3C AA 32 A0 DD [15:52:13]CheckFolder [15:52:13]dirname=/storage/ofd_packets [15:52:13]CheckFolder done [15:52:13]ProducePacketName [15:52:13]name=ofd_packets/00063842 [15:52:13]NVStorageSaveData ofd_packets/00063842 [15:52:13]File name is /storage/ofd_packets/00063842 [15:52:13]Write 330 bytes [15:52:13]NVStorageSaveData done [15:52:13]OFDSenderStorePacket done [15:52:13]KKMCreateOFDPacket done [15:52:13]NVStorageSaveData kkm_last_timestamp [15:52:13]File name is /storage/kkm_last_timestamp [15:52:13]Write 4 bytes [15:52:13]NVStorageSaveData done [15:52:13]ExternCall_PrintAddStr [15:52:13]wPrintStart [15:52:13]Write to MH i2c: 01 00 00 F0 1B 0B [15:52:13]Write i2c OK [15:52:13]MH_I2C_Read... [15:52:13]Read from MH i2c: 01 [15:52:13]MH_I2C_Read... [15:52:13]Read from MH i2c: 01 07 00 [15:52:13]MH_I2C_Read... [15:52:13]Read from MH i2c: 01 07 00 F0 1B 00 00 00 00 00 FF 0F 20 [15:52:13]RasterBufferAndPrint [15:52:13]line Счет N : (3)73419 [15:52:13]line ИНН: 02508201610067 [15:52:13]line Контрольно-Кассовый Чек [15:52:13]line ПРОДАЖА [15:52:13]line Товар: 5449000000439 [15:52:13]line Напиток Кока-Кола 1,5л [15:52:13]line 1.000 * 155.00 [15:52:13]line = 155.00 [15:52:13]line НДС 12% НСП 1% [15:52:13]line > о реализуемом товаре [15:52:13]line ИТОГО: 155.00 [15:52:13]line НСП 1% : 1.37 [15:52:13]line НДС 12% : 16.46 [15:52:13]line Наличными: 155.00 [15:52:13]line Безнал.: 0.00 [15:52:13]line Место: АЗС № 117 "Партнер Нефть" [15:52:13]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [15:52:13]line СНО: Общий режим [15:52:13]line Чек 100 03.06.2024 15:52 [15:52:13]line Смена: 373 ФФД: 1.0 [15:52:13]line ЗНМ: 0300000031 [15:52:13]line РНМ: 0000000000092737 [15:52:13]line Версия ККМ: 001 [15:52:13]line ФМ: 0000000000875074 [15:52:13]line ФД: 63842 [15:52:13]line ФПД: 32525720112265 [15:52:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T155214&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63842&fm=32525720112265&tin=02508201610067®Number=0000000000092737&sum=15500 [15:52:13]line 0 [15:52:13]OFD Sender: Processing packet 63842 [packets to send 14, broken 13] [15:52:13]ProducePacketName [15:52:13]name=ofd_packets/00063842 [15:52:13]OFD Sender: To server: pG, [15:52:13]CommunicateWithHost lk.salyk.kg:30040 [15:52:13]ConnectInit lk.salyk.kg [15:52:13]written 0, free lines is 4095 [15:52:14]Write to MH i2c: 01 00 00 18 1C 34 [15:52:14]Write i2c OK [15:52:14]MH_I2C_Read... [15:52:14]Read from MH i2c: 01 [15:52:14]MH_I2C_Read... [15:52:14]Read from MH i2c: 01 07 00 [15:52:14]MH_I2C_Read... [15:52:14]Read from MH i2c: 01 07 00 18 1C 00 00 00 00 00 F8 0C 3F [15:52:14]RasterBufferAndPrint [15:52:14]line [15:52:14]line [15:52:14]line [15:52:14]line [15:52:14]line [15:52:14]written 0, free lines is 3328 [15:52:14]MH_Cut [15:52:14]Write to MH i2c: D1 01 00 1F 1C 01 0D [15:52:14]Write i2c OK [15:52:14]MH_I2C_Read... [15:52:14]Read from MH i2c: D1 [15:52:14]MH_I2C_Read... [15:52:14]Read from MH i2c: D1 01 00 [15:52:14]MH_I2C_Read... [15:52:14]Read from MH i2c: D1 01 00 1F 1C 00 0C [15:52:14]Write to MH i2c: 01 00 00 20 1C 3C [15:52:14]Write i2c OK [15:52:14]MH_I2C_Read... [15:52:14]*** Cut start [15:52:14]*** Partial cut [15:52:14]*** CUTSNS_PIN = 1 [15:52:14]*** CUTSNS_PIN = 0 [15:52:15]*** Brake cut motor [15:52:15]Read from MH i2c: 01 [15:52:15]MH_I2C_Read... [15:52:15]*** Stop cut motor [15:52:15]*** Cut end [15:52:15]Read from MH i2c: 01 07 00 [15:52:15]MH_I2C_Read... [15:52:15]Read from MH i2c: 01 07 00 20 1C 00 00 00 00 00 FF 0F 51 [15:52:15]process_action close_receipt done [15:52:15]requested_data is exist [15:52:15]produce_requested_data [15:52:15]requested_item fm.sn is exist - process it [15:52:15]wFMCommunicate request_size=4 [15:52:15]MH_SAM_APDU [15:52:15]CAPDU: 80 11 00 00 [15:52:15]Write to MH i2c: E2 08 00 21 1C 80 11 00 00 00 00 00 00 B7 [15:52:15]Write i2c OK [15:52:15]MH_I2C_Read... [15:52:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:52:15]Read from MH i2c: E2 [15:52:15]MH_I2C_Read... [15:52:15]Read from MH i2c: E2 17 00 [15:52:15]MH_I2C_Read... [15:52:15]Read from MH i2c: E2 17 00 21 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 09 [15:52:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [15:52:15]wFMCommunicate OK [15:52:15]requested_item fd.num is exist - process it [15:52:15]SAM_PROTO_GetFieldsCounters [15:52:15]wFMCommunicate request_size=4 [15:52:15]MH_SAM_APDU [15:52:15]CAPDU: 80 13 00 00 [15:52:15]Write to MH i2c: E2 08 00 22 1C 80 13 00 00 00 00 00 00 BA [15:52:15]Write i2c OK [15:52:15]MH_I2C_Read... [15:52:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:52:15]Read from MH i2c: E2 [15:52:15]MH_I2C_Read... [15:52:15]Read from MH i2c: E2 62 00 [15:52:15]MH_I2C_Read... [15:52:15]Read from MH i2c: E2 62 00 22 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 62 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 DA [15:52: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 62 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:52:15]wFMCommunicate OK [15:52:15]SAM_PROTO_GetFieldsCounters done [15:52:15]requested_item shift.num is exist - process it [15:52:15]requested_item shift.opened is exist - process it [15:52:15]req_shift_opened [15:52:15]FM_GetShiftState [15:52:15]SAM_PROTO_GetShiftState [15:52:15]wFMCommunicate request_size=4 [15:52:15]MH_SAM_APDU [15:52:15]CAPDU: 80 13 01 00 [15:52:15]Write to MH i2c: E2 08 00 23 1C 80 13 01 00 00 00 00 00 BC [15:52:15]Write i2c OK [15:52:15]MH_I2C_Read... [15:52:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:52:15]Read from MH i2c: E2 [15:52:15]MH_I2C_Read... [15:52:15]Read from MH i2c: E2 0E 00 [15:52:15]MH_I2C_Read... [15:52:15]Read from MH i2c: E2 0E 00 23 1C 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 88 [15:52:15]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [15:52:15]wFMCommunicate OK [15:52:15]SAM_PROTO_GetShiftState done [15:52:15]FM_GetShiftState done [15:52:15]req_shift_opened done [15:52:15]requested_item shift.open_date is exist - process it [15:52:15]req_shift_open_date [15:52:15]req_shift_open_date done [15:52:15]produce_requested_data done [15:52:15]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63842,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [15:52:15]process_action_free close_receipt [15:52:15]json_value_free [15:52:15]json_value_free done [15:52:15]process_json_proto returns [15:52:15]Send response to host [15:52:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63842,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [15:52:15]free response buf [15:52:15]execute_script done [15:52:15]execute_script returns [15:52:15]free content buf [15:52:15]Sock 7.Close socket [15:52:15]Sock 7.Thread stoped [15:52:23]accept exits with 9 [15:52:23]New connection [15:52:23]New thread 3067374948 created [15:52:23]Thread 3067518308 joined [15:52:23]Waiting for new connection... [15:52:23] Sock 9.Parse request [15:52:23]Sock 9.Check first char [15:52:23]Sock 9.First char is OK [15:52:23]request: POST /json_proto HTTP/1.0 [15:52:23]Method: POST [15:52:23]URL: /json_proto [15:52:23]Method is POST - this is cgi request [15:52:23]url: /json_proto [15:52:23]query_string will be loaded in cgi processing [15:52:23]execute_cgi json_proto POST (null) [15:52:23]execute_cgi path=json_proto method=POST [15:52:23]POST find Content-Length [15:52:23]Host: 172.17.60.69:8080 [15:52:23]Content-Length: 677 [15:52:23]Content-Type: application/json [15:52:23] [15:52:23]POST finish read [15:52:23]Found Content-Length = 677 [15:52:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543867", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:52:23]execute_script... [15:52:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543867", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:52:23]POST & json_proto [15:52:23]process_json_proto [15:52:23]json parsed OK: [15:52:23]protocol is kg_v1.0 [15:52:23]action value=close_receipt [15:52:23]process_action close_receipt [15:52:23]cmd_close_receipt [15:52:23]MH_GetDate [15:52:23]Write to MH i2c: F0 00 00 24 1C 2F [15:52:23]Write i2c OK [15:52:23]MH_I2C_Read... [15:52:23]Read from MH i2c: F0 [15:52:23]MH_I2C_Read... [15:52:23]Read from MH i2c: F0 09 00 [15:52:23]MH_I2C_Read... [15:52:23]Read from MH i2c: F0 09 00 24 1C 00 BA E6 5D 66 6A 96 4A 66 4B [15:52:23]GetLastDocTimeStamp 1717429934 [15:52:23]current date 1717429946 [15:52:23]FM_GetShiftState [15:52:23]SAM_PROTO_GetShiftState [15:52:23]wFMCommunicate request_size=4 [15:52:23]MH_SAM_APDU [15:52:23]CAPDU: 80 13 01 00 [15:52:23]Write to MH i2c: E2 08 00 25 1C 80 13 01 00 00 00 00 00 BE [15:52:23]Write i2c OK [15:52:23]MH_I2C_Read... [15:52:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:52:23]Read from MH i2c: E2 [15:52:23]MH_I2C_Read... [15:52:23]Read from MH i2c: E2 0E 00 [15:52:23]MH_I2C_Read... [15:52:23]Read from MH i2c: E2 0E 00 25 1C 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 8A [15:52:23]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [15:52:23]wFMCommunicate OK [15:52:23]SAM_PROTO_GetShiftState done [15:52:23]FM_GetShiftState done [15:52:23]opened in 1717373173 [15:52:23]opened+sec_in_day 1717459573 [15:52:23]quantity*price = 50041 [15:52:23]sum+1 = 50042 [15:52: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 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 101 03.06.2024 15:52 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63843 ФПД: 255771845829194 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T155226&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63843&fm=255771845829194&tin=02508201610067®Number=0000000000092737&sum=50000 [15:52:24]StoreToDocumentArchive [15:52:24]shift 373 fd 63843 [15:52:24]save to /storage/0373/doc_00063843 [15:52:24]save last doc name /storage/0373/doc_00063843 to /storage/kkm_last_doc_name [15:52:24]save OK [15:52:24]Clear old archive folders... [15:52:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:52:24]tlvbuf is 00D2F810 [15:52:24]SAM_PROTO_ClearQueue [15:52:24]wFMCommunicate request_size=4 [15:52:24]MH_SAM_APDU [15:52:24]CAPDU: 80 09 00 00 [15:52:24]Write to MH i2c: E2 08 00 32 1C 80 09 00 00 00 00 00 00 C0 [15:52:24]Write i2c OK [15:52:24]MH_I2C_Read... [15:52:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:52:24]Read from MH i2c: E2 [15:52:24]MH_I2C_Read... [15:52:24]Read from MH i2c: E2 03 00 [15:52:24]MH_I2C_Read... [15:52:24]Read from MH i2c: E2 03 00 32 1C 00 90 00 C2 [15:52:24]RAPDU: 90 00 [15:52:24]wFMCommunicate OK [15:52:24]SAM_PROTO_ClearQueue done [15:52:24]KKMCreateOFDPacket [15:52:24]OFDProtocolAddRootSTLVToBuf [15:52:24]FM_MakeSignedData [15:52:24]FM_MakeSignedData [15:52:24]SAM_PROTO_SignData [15:52:24]wFMCommunicate request_size=4 [15:52:24]MH_SAM_APDU [15:52:24]CAPDU: 80 0D 01 02 [15:52:24]Write to MH i2c: E2 08 00 33 1C 80 0D 01 02 00 00 00 00 C8 [15:52:24]Write i2c OK [15:52:24]MH_I2C_Read... [15:52:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:52:24]Read from MH i2c: E2 [15:52:24]MH_I2C_Read... [15:52:24]Read from MH i2c: E2 03 00 [15:52:24]MH_I2C_Read... [15:52:24]Read from MH i2c: E2 03 00 33 1C 00 90 00 C3 [15:52:24]RAPDU: 90 00 [15:52:24]wFMCommunicate OK [15:52:24]wFMCommunicate request_size=255 [15:52:24]MH_SAM_APDU [15:52:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 BA E6 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 63 F9 00 00 35 04 06 00 E8 [15:52:24]Write to MH i2c: E2 02 01 34 1C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 BA E6 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 63 F9 00 00 35 04 06 00 E8 00 00 DB [15:52:24]Write i2c OK [15:52:24]MH_I2C_Read... [15:52:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:52:25]Read from MH i2c: E2 [15:52:25]MH_I2C_Read... [15:52:25]Read from MH i2c: E2 03 00 [15:52:25]MH_I2C_Read... [15:52:25]Read from MH i2c: E2 03 00 34 1C 00 90 00 C4 [15:52:25]RAPDU: 90 00 [15:52:25]wFMCommunicate OK [15:52:25]wFMCommunicate request_size=10 [15:52:25]MH_SAM_APDU [15:52:25]CAPDU: 80 0D 02 02 05 9F 86 03 A2 4A [15:52:25]Write to MH i2c: E2 0D 00 35 1C 80 0D 02 02 05 00 9F 86 03 A2 4A 00 00 E9 [15:52:25]Write i2c OK [15:52:25]MH_I2C_Read... [15:52:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:52:25]Read from MH i2c: E2 [15:52:25]MH_I2C_Read... [15:52:25]Read from MH i2c: E2 03 00 [15:52:25]MH_I2C_Read... [15:52:25]Read from MH i2c: E2 03 00 35 1C 00 90 00 C5 [15:52:25]RAPDU: 90 00 [15:52:25]wFMCommunicate OK [15:52:25]wFMCommunicate request_size=4 [15:52:25]MH_SAM_APDU [15:52:25]CAPDU: 80 0D 03 02 [15:52:25]Write to MH i2c: E2 08 00 36 1C 80 0D 03 02 00 00 00 00 CD [15:52:25]Write i2c OK [15:52:25]MH_I2C_Read... [15:52:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:52:25]Read from MH i2c: E2 [15:52:25]MH_I2C_Read... [15:52:25]Read from MH i2c: E2 0B 00 [15:52:25]MH_I2C_Read... [15:52:25]Read from MH i2c: E2 0B 00 36 1C 00 60 E5 78 B0 6E 7E 2A 62 90 00 B3 [15:52:25]RAPDU: 60 E5 78 B0 6E 7E 2A 62 90 00 [15:52:25]wFMCommunicate OK [15:52:25]SAM_PROTO_SignData done [15:52:25]FM_MakeSignedData done [15:52:25]CreateOFDProtocolMessage [15:52:25]wFMCommunicate request_size=4 [15:52:25]MH_SAM_APDU [15:52:25]CAPDU: 80 11 00 00 [15:52:25]Write to MH i2c: E2 08 00 37 1C 80 11 00 00 00 00 00 00 CD [15:52:25]Write i2c OK [15:52:25]MH_I2C_Read... [15:52:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:52:25]Read from MH i2c: E2 [15:52:25]MH_I2C_Read... [15:52:25]Read from MH i2c: E2 17 00 [15:52:25]MH_I2C_Read... [15:52:25]Read from MH i2c: E2 17 00 37 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 1F [15:52:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [15:52:25]wFMCommunicate OK [15:52:25]CreateOFDProtocolMessage done [15:52:25]OFDSenderStorePacket 63843 [15:52:25]StoreOFDPacket docnum=63843 [15:52:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0F 01 00 00 2F 0D 07 01 CE 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 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 BA E6 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 63 F9 00 00 35 04 06 00 E8 9F 86 03 A2 4A 60 E5 78 B0 6E 7E 2A 62 [15:52:25]CheckFolder [15:52:25]dirname=/storage/ofd_packets [15:52:25]CheckFolder done [15:52:25]ProducePacketName [15:52:25]name=ofd_packets/00063843 [15:52:25]NVStorageSaveData ofd_packets/00063843 [15:52:25]File name is /storage/ofd_packets/00063843 [15:52:25]Write 301 bytes [15:52:25]NVStorageSaveData done [15:52:25]OFDSenderStorePacket done [15:52:25]KKMCreateOFDPacket done [15:52:25]NVStorageSaveData kkm_last_timestamp [15:52:25]File name is /storage/kkm_last_timestamp [15:52:25]Write 4 bytes [15:52:25]NVStorageSaveData done [15:52:25]ExternCall_PrintAddStr [15:52:25]wPrintStart [15:52:25]Write to MH i2c: 01 00 00 38 1C 54 [15:52:25]Write i2c OK [15:52:25]MH_I2C_Read... [15:52:25]Read from MH i2c: 01 [15:52:25]MH_I2C_Read... [15:52:25]Read from MH i2c: 01 07 00 [15:52:25]MH_I2C_Read... [15:52:25]Read from MH i2c: 01 07 00 38 1C 00 00 00 00 00 FF 0F 69 [15:52:25]RasterBufferAndPrint [15:52:25]line Счет N : (1)543867 [15:52:25]line ИНН: 02508201610067 [15:52:25]line Контрольно-Кассовый Чек [15:52:25]line ПРОДАЖА [15:52:25]line ТРК (МРК, ГНК) : 42 [15:52:25]line Товар: 2710124130 [15:52:25]line Аи-92-К-5 [15:52:25]line 7.480 * 66.90 [15:52:25]line = 500.41 [15:52:25]line НДС 12% НСП 1% [15:52:25]line > о реализуемом товаре [15:52:25]line ОКРУГЛЕНИЕ: -0.41 [15:52:25]line ИТОГО: 500.00 [15:52:25]line Внесено: 500.00 [15:52:25]line СДАЧА: 0.00 [15:52:25]line НСП 1% : 4.43 [15:52:25]line НДС 12% : 53.14 [15:52:25]line Наличными: 500.00 [15:52:25]line Безнал.: 0.00 [15:52:25]line Место: АЗС № 117 "Партнер Нефть" [15:52:25]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [15:52:25]line СНО: Общий режим [15:52:25]line Чек 101 03.06.2024 15:52 [15:52:25]line Смена: 373 ФФД: 1.0 [15:52:25]line ЗНМ: 0300000031 [15:52:25]line РНМ: 0000000000092737 [15:52:25]line Версия ККМ: 001 [15:52:25]line ФМ: 0000000000875074 [15:52:25]line ФД: 63843 [15:52:25]line ФПД: 255771845829194 [15:52:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T155226&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63843&fm=255771845829194&tin=02508201610067®Number=0000000000092737&sum=50000 [15:52:25]written 0, free lines is 4095 [15:52:26]Write to MH i2c: 01 00 00 63 1C 7F [15:52:26]Write i2c OK [15:52:26]MH_I2C_Read... [15:52:26]Read from MH i2c: 01 [15:52:26]MH_I2C_Read... [15:52:26]Read from MH i2c: 01 07 00 [15:52:26]MH_I2C_Read... [15:52:26]Read from MH i2c: 01 07 00 63 1C 00 00 00 00 00 D9 0C 6B [15:52:26]RasterBufferAndPrint [15:52:26]line [15:52:26]line [15:52:26]line [15:52:26]line [15:52:26]line [15:52:26]written 0, free lines is 3296 [15:52:26]MH_Cut [15:52:26]Write to MH i2c: D1 01 00 6A 1C 01 58 [15:52:26]Write i2c OK [15:52:26]MH_I2C_Read... [15:52:26]Read from MH i2c: D1 [15:52:26]MH_I2C_Read... [15:52:26]Read from MH i2c: D1 01 00 [15:52:26]MH_I2C_Read... [15:52:26]Read from MH i2c: D1 01 00 6A 1C 00 57 [15:52:26]Write to MH i2c: 01 00 00 6B 1C 87 [15:52:26]Write i2c OK [15:52:26]MH_I2C_Read... [15:52:26]*** Cut start [15:52:26]*** Partial cut [15:52:26]*** CUTSNS_PIN = 1 [15:52:26]*** CUTSNS_PIN = 0 [15:52:27]*** Brake cut motor [15:52:27]Read from MH i2c: 01 [15:52:27]MH_I2C_Read... [15:52:27]*** Stop cut motor [15:52:27]*** Cut end [15:52:27]Read from MH i2c: 01 07 00 [15:52:27]MH_I2C_Read... [15:52:27]Read from MH i2c: 01 07 00 6B 1C 00 00 00 00 00 FF 0F 9C [15:52:27]process_action close_receipt done [15:52:27]requested_data is exist [15:52:27]produce_requested_data [15:52:27]requested_item fm.sn is exist - process it [15:52:27]wFMCommunicate request_size=4 [15:52:27]MH_SAM_APDU [15:52:27]CAPDU: 80 11 00 00 [15:52:27]Write to MH i2c: E2 08 00 6C 1C 80 11 00 00 00 00 00 00 02 [15:52:27]Write i2c OK [15:52:27]MH_I2C_Read... [15:52:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:52:27]Read from MH i2c: E2 [15:52:27]MH_I2C_Read... [15:52:27]Read from MH i2c: E2 17 00 [15:52:27]MH_I2C_Read... [15:52:27]Read from MH i2c: E2 17 00 6C 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 54 [15:52:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [15:52:27]wFMCommunicate OK [15:52:27]requested_item fd.num is exist - process it [15:52:27]SAM_PROTO_GetFieldsCounters [15:52:27]wFMCommunicate request_size=4 [15:52:27]MH_SAM_APDU [15:52:27]CAPDU: 80 13 00 00 [15:52:27]Write to MH i2c: E2 08 00 6D 1C 80 13 00 00 00 00 00 00 05 [15:52:27]Write i2c OK [15:52:27]MH_I2C_Read... [15:52:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:52:27]Read from MH i2c: E2 [15:52:27]MH_I2C_Read... [15:52:27]Read from MH i2c: E2 62 00 [15:52:27]MH_I2C_Read... [15:52:27]Read from MH i2c: E2 62 00 6D 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 63 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 29 [15:52: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 63 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:52:27]wFMCommunicate OK [15:52:27]SAM_PROTO_GetFieldsCounters done [15:52:27]requested_item shift.num is exist - process it [15:52:27]requested_item shift.opened is exist - process it [15:52:27]req_shift_opened [15:52:27]FM_GetShiftState [15:52:27]SAM_PROTO_GetShiftState [15:52:27]wFMCommunicate request_size=4 [15:52:27]MH_SAM_APDU [15:52:27]CAPDU: 80 13 01 00 [15:52:27]Write to MH i2c: E2 08 00 6E 1C 80 13 01 00 00 00 00 00 07 [15:52:27]Write i2c OK [15:52:27]MH_I2C_Read... [15:52:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:52:27]Read from MH i2c: E2 [15:52:27]MH_I2C_Read... [15:52:27]Read from MH i2c: E2 0E 00 [15:52:27]MH_I2C_Read... [15:52:27]Read from MH i2c: E2 0E 00 6E 1C 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 D3 [15:52:27]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [15:52:27]wFMCommunicate OK [15:52:27]SAM_PROTO_GetShiftState done [15:52:27]FM_GetShiftState done [15:52:27]req_shift_opened done [15:52:27]requested_item shift.open_date is exist - process it [15:52:27]req_shift_open_date [15:52:27]req_shift_open_date done [15:52:27]produce_requested_data done [15:52:27]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63843,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [15:52:27]process_action_free close_receipt [15:52:27]json_value_free [15:52:27]json_value_free done [15:52:27]process_json_proto returns [15:52:27]Send response to host [15:52:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63843,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [15:52:27]free response buf [15:52:27]execute_script done [15:52:27]execute_script returns [15:52:27]free content buf [15:52:27]Sock 9.Close socket [15:52:27]Sock 9.Thread stoped [15:52:57]accept exits with 7 [15:52:57]New connection [15:52:57]New thread 3067518308 created [15:52:57]Thread 3067374948 joined [15:52:57]Waiting for new connection... [15:52:57] Sock 7.Parse request [15:52:57]Sock 7.Check first char [15:52:57]Sock 7.First char is OK [15:52:57]request: POST /json_proto HTTP/1.0 [15:52:57]Method: POST [15:52:57]URL: /json_proto [15:52:57]Method is POST - this is cgi request [15:52:57]url: /json_proto [15:52:57]query_string will be loaded in cgi processing [15:52:57]execute_cgi json_proto POST (null) [15:52:57]execute_cgi path=json_proto method=POST [15:52:57]POST find Content-Length [15:52:57]Host: 172.17.60.69:8080 [15:52:57]Content-Length: 678 [15:52:57]Content-Type: application/json [15:52:57] [15:52:57]POST finish read [15:52:57]Found Content-Length = 678 [15:52:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543869", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:52:57]execute_script... [15: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)543869", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:52:57]POST & json_proto [15:52:57]process_json_proto [15:52:57]json parsed OK: [15:52:57]protocol is kg_v1.0 [15:52:57]action value=close_receipt [15:52:57]process_action close_receipt [15:52:57]cmd_close_receipt [15:52:57]MH_GetDate [15:52:57]Write to MH i2c: F0 00 00 6F 1C 7A [15:52:57]Write i2c OK [15:52:57]MH_I2C_Read... [15:52:57]Read from MH i2c: F0 [15:52:57]MH_I2C_Read... [15:52:57]Read from MH i2c: F0 09 00 [15:52:57]MH_I2C_Read... [15:52:57]Read from MH i2c: F0 09 00 6F 1C 00 DC E6 5D 66 6A 96 4A 66 B8 [15:52:57]GetLastDocTimeStamp 1717429946 [15:52:57]current date 1717429980 [15:52:57]FM_GetShiftState [15:52:57]SAM_PROTO_GetShiftState [15:52:57]wFMCommunicate request_size=4 [15:52:57]MH_SAM_APDU [15:52:57]CAPDU: 80 13 01 00 [15:52:57]Write to MH i2c: E2 08 00 70 1C 80 13 01 00 00 00 00 00 09 [15:52:57]Write i2c OK [15:52:57]MH_I2C_Read... [15:52:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:52:57]Read from MH i2c: E2 [15:52:57]MH_I2C_Read... [15:52:57]Read from MH i2c: E2 0E 00 [15:52:57]MH_I2C_Read... [15:52:57]Read from MH i2c: E2 0E 00 70 1C 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 D5 [15:52:57]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [15:52:57]wFMCommunicate OK [15:52:57]SAM_PROTO_GetShiftState done [15:52:57]FM_GetShiftState done [15:52:57]opened in 1717373173 [15:52:57]opened+sec_in_day 1717459573 [15:52:57]quantity*price = 70044 [15:52:57]sum+1 = 70045 [15:52:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 102 03.06.2024 15:53 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63844 ФПД: 105586557552050 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T155300&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63844&fm=105586557552050&tin=02508201610067®Number=0000000000092737&sum=70000 [15:52:58]StoreToDocumentArchive [15:52:58]shift 373 fd 63844 [15:52:58]save to /storage/0373/doc_00063844 [15:52:58]save last doc name /storage/0373/doc_00063844 to /storage/kkm_last_doc_name [15:52:58]save OK [15:52:58]Clear old archive folders... [15:52:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:52:58]tlvbuf is B6F32AA0 [15:52:58]SAM_PROTO_ClearQueue [15:52:58]wFMCommunicate request_size=4 [15:52:58]MH_SAM_APDU [15:52:58]CAPDU: 80 09 00 00 [15:52:58]Write to MH i2c: E2 08 00 7D 1C 80 09 00 00 00 00 00 00 0B [15:52:58]Write i2c OK [15:52:58]MH_I2C_Read... [15:52:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:52:58]Read from MH i2c: E2 [15:52:58]MH_I2C_Read... [15:52:58]Read from MH i2c: E2 03 00 [15:52:58]MH_I2C_Read... [15:52:58]Read from MH i2c: E2 03 00 7D 1C 00 90 00 0D [15:52:58]RAPDU: 90 00 [15:52:58]wFMCommunicate OK [15:52:58]SAM_PROTO_ClearQueue done [15:52:58]KKMCreateOFDPacket [15:52:58]OFDProtocolAddRootSTLVToBuf [15:52:58]FM_MakeSignedData [15:52:58]FM_MakeSignedData [15:52:58]SAM_PROTO_SignData [15:52:58]wFMCommunicate request_size=4 [15:52:58]MH_SAM_APDU [15:52:58]CAPDU: 80 0D 01 02 [15:52:58]Write to MH i2c: E2 08 00 7E 1C 80 0D 01 02 00 00 00 00 13 [15:52:58]Write i2c OK [15:52:58]MH_I2C_Read... [15:52:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:52:58]Read from MH i2c: E2 [15:52:58]MH_I2C_Read... [15:52:58]Read from MH i2c: E2 03 00 [15:52:58]MH_I2C_Read... [15:52:58]Read from MH i2c: E2 03 00 7E 1C 00 90 00 0E [15:52:58]RAPDU: 90 00 [15:52:58]wFMCommunicate OK [15:52:58]wFMCommunicate request_size=255 [15:52:58]MH_SAM_APDU [15: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 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 DC E6 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 64 F9 00 00 35 04 06 00 60 [15:52:58]Write to MH i2c: E2 02 01 7F 1C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 DC E6 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 64 F9 00 00 35 04 06 00 60 00 00 D2 [15:52:58]Write i2c OK [15:52:58]MH_I2C_Read... [15:52:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:52:58]Read from MH i2c: E2 [15:52:58]MH_I2C_Read... [15:52:58]Read from MH i2c: E2 03 00 [15:52:58]MH_I2C_Read... [15:52:58]Read from MH i2c: E2 03 00 7F 1C 00 90 00 0F [15:52:58]RAPDU: 90 00 [15:52:58]wFMCommunicate OK [15:52:58]wFMCommunicate request_size=10 [15:52:58]MH_SAM_APDU [15:52:58]CAPDU: 80 0D 02 02 05 07 C9 41 85 B2 [15:52:58]Write to MH i2c: E2 0D 00 80 1C 80 0D 02 02 05 00 07 C9 41 85 B2 00 00 68 [15:52:58]Write i2c OK [15:52:58]MH_I2C_Read... [15:52:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:52:59]Read from MH i2c: E2 [15:52:59]MH_I2C_Read... [15:52:59]Read from MH i2c: E2 03 00 [15:52:59]MH_I2C_Read... [15:52:59]Read from MH i2c: E2 03 00 80 1C 00 90 00 10 [15:52:59]RAPDU: 90 00 [15:52:59]wFMCommunicate OK [15:52:59]wFMCommunicate request_size=4 [15:52:59]MH_SAM_APDU [15:52:59]CAPDU: 80 0D 03 02 [15:52:59]Write to MH i2c: E2 08 00 81 1C 80 0D 03 02 00 00 00 00 18 [15:52:59]Write i2c OK [15:52:59]MH_I2C_Read... [15:52:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:52:59]Read from MH i2c: E2 [15:52:59]MH_I2C_Read... [15:52:59]Read from MH i2c: E2 0B 00 [15:52:59]MH_I2C_Read... [15:52:59]Read from MH i2c: E2 0B 00 81 1C 00 34 92 EF 07 9B F9 06 61 90 00 D0 [15:52:59]RAPDU: 34 92 EF 07 9B F9 06 61 90 00 [15:52:59]wFMCommunicate OK [15:52:59]SAM_PROTO_SignData done [15:52:59]FM_MakeSignedData done [15:52:59]CreateOFDProtocolMessage [15:52:59]wFMCommunicate request_size=4 [15:52:59]MH_SAM_APDU [15:52:59]CAPDU: 80 11 00 00 [15:52:59]Write to MH i2c: E2 08 00 82 1C 80 11 00 00 00 00 00 00 18 [15:52:59]Write i2c OK [15:52:59]MH_I2C_Read... [15:52:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:52:59]Read from MH i2c: E2 [15:52:59]MH_I2C_Read... [15:52:59]Read from MH i2c: E2 17 00 [15:52:59]MH_I2C_Read... [15:52:59]Read from MH i2c: E2 17 00 82 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 6A [15:52:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [15:52:59]wFMCommunicate OK [15:52:59]CreateOFDProtocolMessage done [15:52:59]OFDSenderStorePacket 63844 [15:52:59]StoreOFDPacket docnum=63844 [15:52:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0F 01 00 00 0D 1A 07 01 1E C3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 66 00 00 00 F4 03 04 00 DC E6 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 64 F9 00 00 35 04 06 00 60 07 C9 41 85 B2 34 92 EF 07 9B F9 06 61 [15:52:59]CheckFolder [15:52:59]dirname=/storage/ofd_packets [15:52:59]CheckFolder done [15:52:59]ProducePacketName [15:52:59]name=ofd_packets/00063844 [15:52:59]NVStorageSaveData ofd_packets/00063844 [15:52:59]File name is /storage/ofd_packets/00063844 [15:52:59]Write 301 bytes [15:52:59]NVStorageSaveData done [15:52:59]OFDSenderStorePacket done [15:52:59]KKMCreateOFDPacket done [15:52:59]NVStorageSaveData kkm_last_timestamp [15:52:59]File name is /storage/kkm_last_timestamp [15:52:59]Write 4 bytes [15:52:59]NVStorageSaveData done [15:52:59]ExternCall_PrintAddStr [15:52:59]wPrintStart [15:52:59]Write to MH i2c: 01 00 00 83 1C 9F [15:52:59]Write i2c OK [15:52:59]MH_I2C_Read... [15:52:59]Read from MH i2c: 01 [15:52:59]MH_I2C_Read... [15:52:59]Read from MH i2c: 01 07 00 [15:52:59]MH_I2C_Read... [15:52:59]Read from MH i2c: 01 07 00 83 1C 00 00 00 00 00 FF 0F B4 [15:52:59]RasterBufferAndPrint [15:52:59]line Счет N : (1)543869 [15:52:59]line ИНН: 02508201610067 [15:52:59]line Контрольно-Кассовый Чек [15:52:59]line ПРОДАЖА [15:52:59]line ТРК (МРК, ГНК) : 12 [15:52:59]line Товар: 2710124130 [15:52:59]line Аи-92-К-5 [15:52:59]line 10.470 * 66.90 [15:52:59]line = 700.44 [15:52:59]line НДС 12% НСП 1% [15:52:59]line > о реализуемом товаре [15:52:59]line ОКРУГЛЕНИЕ: -0.44 [15:52:59]line ИТОГО: 700.00 [15:52:59]line Внесено: 700.00 [15:52:59]line СДАЧА: 0.00 [15:52:59]line НСП 1% : 6.20 [15:52:59]line НДС 12% : 74.38 [15:52:59]line Наличными: 700.00 [15:52:59]line Безнал.: 0.00 [15:52:59]line Место: АЗС № 117 "Партнер Нефть" [15:52:59]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [15:52:59]line СНО: Общий режим [15:52:59]line Чек 102 03.06.2024 15:53 [15:52:59]line Смена: 373 ФФД: 1.0 [15:52:59]line ЗНМ: 0300000031 [15:52:59]line РНМ: 0000000000092737 [15:52:59]line Версия ККМ: 001 [15:52:59]line ФМ: 0000000000875074 [15:52:59]line ФД: 63844 [15:52:59]line ФПД: 105586557552050 [15:52:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T155300&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63844&fm=105586557552050&tin=02508201610067®Number=0000000000092737&sum=70000 [15:52:59]written 0, free lines is 4095 [15:52:59]Write to MH i2c: 01 00 00 AE 1C CA [15:52:59]Write i2c OK [15:52:59]MH_I2C_Read... [15:52:59]Read from MH i2c: 01 [15:52:59]MH_I2C_Read... [15:52:59]Read from MH i2c: 01 07 00 [15:52:59]MH_I2C_Read... [15:52:59]Read from MH i2c: 01 07 00 AE 1C 00 00 00 00 00 D6 0C B3 [15:52:59]RasterBufferAndPrint [15:52:59]line [15:52:59]line [15:52:59]line [15:52:59]line [15:52:59]line [15:52:59]written 0, free lines is 3293 [15:52:59]MH_Cut [15:52:59]Write to MH i2c: D1 01 00 B5 1C 01 A3 [15:52:59]Write i2c OK [15:52:59]MH_I2C_Read... [15:52:59]Read from MH i2c: D1 [15:52:59]MH_I2C_Read... [15:52:59]Read from MH i2c: D1 01 00 [15:52:59]MH_I2C_Read... [15:52:59]Read from MH i2c: D1 01 00 B5 1C 00 A2 [15:52:59]Write to MH i2c: 01 00 00 B6 1C D2 [15:52:59]Write i2c OK [15:52:59]MH_I2C_Read... [15:53:00]*** Cut start [15:53:00]*** Partial cut [15:53:00]*** CUTSNS_PIN = 1 [15:53:00]*** CUTSNS_PIN = 0 [15:53:01]*** Brake cut motor [15:53:01]Read from MH i2c: 01 [15:53:01]MH_I2C_Read... [15:53:01]*** Stop cut motor [15:53:01]*** Cut end [15:53:01]Read from MH i2c: 01 07 00 [15:53:01]MH_I2C_Read... [15:53:01]Read from MH i2c: 01 07 00 B6 1C 00 00 00 00 00 FF 0F E7 [15:53:01]process_action close_receipt done [15:53:01]requested_data is exist [15:53:01]produce_requested_data [15:53:01]requested_item fm.sn is exist - process it [15:53:01]wFMCommunicate request_size=4 [15:53:01]MH_SAM_APDU [15:53:01]CAPDU: 80 11 00 00 [15:53:01]Write to MH i2c: E2 08 00 B7 1C 80 11 00 00 00 00 00 00 4D [15:53:01]Write i2c OK [15:53:01]MH_I2C_Read... [15:53:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:53:01]Read from MH i2c: E2 [15:53:01]MH_I2C_Read... [15:53:01]Read from MH i2c: E2 17 00 [15:53:01]MH_I2C_Read... [15:53:01]Read from MH i2c: E2 17 00 B7 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 9F [15:53:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [15:53:01]wFMCommunicate OK [15:53:01]requested_item fd.num is exist - process it [15:53:01]SAM_PROTO_GetFieldsCounters [15:53:01]wFMCommunicate request_size=4 [15:53:01]MH_SAM_APDU [15:53:01]CAPDU: 80 13 00 00 [15:53:01]Write to MH i2c: E2 08 00 B8 1C 80 13 00 00 00 00 00 00 50 [15:53:01]Write i2c OK [15:53:01]MH_I2C_Read... [15:53:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:53:01]Read from MH i2c: E2 [15:53:01]MH_I2C_Read... [15:53:01]Read from MH i2c: E2 62 00 [15:53:01]MH_I2C_Read... [15:53:01]Read from MH i2c: E2 62 00 B8 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 64 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 78 [15: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 64 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:53:01]wFMCommunicate OK [15:53:01]SAM_PROTO_GetFieldsCounters done [15:53:01]requested_item shift.num is exist - process it [15:53:01]requested_item shift.opened is exist - process it [15:53:01]req_shift_opened [15:53:01]FM_GetShiftState [15:53:01]SAM_PROTO_GetShiftState [15:53:01]wFMCommunicate request_size=4 [15:53:01]MH_SAM_APDU [15:53:01]CAPDU: 80 13 01 00 [15:53:01]Write to MH i2c: E2 08 00 B9 1C 80 13 01 00 00 00 00 00 52 [15:53:01]Write i2c OK [15:53:01]MH_I2C_Read... [15:53:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:53:01]Read from MH i2c: E2 [15:53:01]MH_I2C_Read... [15:53:01]Read from MH i2c: E2 0E 00 [15:53:01]MH_I2C_Read... [15:53:01]Read from MH i2c: E2 0E 00 B9 1C 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 1E [15:53:01]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [15:53:01]wFMCommunicate OK [15:53:01]SAM_PROTO_GetShiftState done [15:53:01]FM_GetShiftState done [15:53:01]req_shift_opened done [15:53:01]requested_item shift.open_date is exist - process it [15:53:01]req_shift_open_date [15:53:01]req_shift_open_date done [15:53:01]produce_requested_data done [15:53:01]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63844,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [15:53:01]process_action_free close_receipt [15:53:01]json_value_free [15:53:01]json_value_free done [15:53:01]process_json_proto returns [15:53:01]Send response to host [15:53:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63844,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [15:53:01]free response buf [15:53:01]execute_script done [15:53:01]execute_script returns [15:53:01]free content buf [15:53:01]Sock 7.Close socket [15:53:01]Sock 7.Thread stoped [15:54:25]ConnectInit Can't connect to host [15:54:26]CommunicateWithHost connect error [15:54:26]CommunicateWithHost err = -1 [15:54:26]OFD Sender: Server communicate error [15:54:26]OFD Sender: Processing packet 63842 [packets to send 16, broken 13] [15:54:26]ProducePacketName [15:54:26]name=ofd_packets/00063842 [15:54:26]OFD Sender: To server: pG, [15:54:26]CommunicateWithHost lk.salyk.kg:30040 [15:54:26]ConnectInit lk.salyk.kg [00:00:11] *** EcrCore started. Build 196 *** [00:00:11]/dev/ttyS4 opened [00:00:11]MH_InterfaceInit /dev/i2c-1 [00:00:11]Malloc ok [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 01 00 00 [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 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 5F FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 04 [00:00:11]Are we in boot? [00:00:11]We are in boot - try to switch [00:00:11]Write to MH i2c: A0 00 00 02 00 A1 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: A0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: A0 01 00 [00:00:11]MH_I2C_Read... [00:00:11]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:11]*** [00:00:11]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:11]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:11]*** Waiting for read because exit forced [00:00:11]*** 10 ms more... [00:00:11]*** MH1903S init start (LINUX_LIGHT) [00:00:11]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:11]*** Serial: 3139303353513838 540000000057255F (1903SQ88T) [00:00:11]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:11]*** step 0: 5000 (2650, 2350 REF) [00:00:11]*** step 1: 4835 (2500, 2335 REF) [00:00:11]*** step 2: 4676 (2440, 2236 REF) [00:00:11]*** step 3: 4523 (2280, 2243 REF) [00:00:11]*** step 4: 4376 (2160, 2216 REF) [00:00:11]*** step 5: 4235 (2050, 2185 REF) [00:00:11]*** step 6: 4098 (1950, 2148 REF) [00:00:11]*** step 7: 3967 (1870, 2097 REF) [00:00:11]*** step 8: 3840 (1828, 2012 REF) [00:00:11]*** step 9: 3719 (1728, 1991 REF) [00:00:11]*** step 10: 3601 (1675, 1926 REF) [00:00:11]*** step 11: 3488 (1635, 1853 REF) [00:00:11]*** step 12: 3379 (1595, 1784 REF) [00:00:11]*** step 13: 3275 (1565, 1710 REF) [00:00:11]*** step 14: 3174 (1543, 1631 REF) [00:00:11]*** step 15: 3077 (1523, 1554 REF) [00:00:11]*** step 16: 2983 (1503, 1480 REF) [00:00:11]*** step 17: 2893 (1486, 1407 REF) [00:00:11]*** step 18: 2806 (1466, 1340 REF) [00:00:11]*** step 19: 2723 (1426, 1297 REF) [00:00:11]*** step 20: 2642 (1406, 1236 REF) [00:00:11]*** step 21: 2565 (1384, 1181 REF) [00:00:11]*** step 22: 2490 (1364, 1126 REF) [00:00:11]*** step 23: 2418 (1344, 1074 REF) [00:00:11]*** step 24: 2349 (1322, 1027 REF) [00:00:11]*** step 25: 2283 (1302, 981 REF) [00:00:11]*** step 26: 2218 (1282, 936 REF) [00:00:11]*** step 27: 2157 (1262, 895 REF) [00:00:11]*** step 28: 2097 (1242, 855 REF) [00:00:11]*** step 29: 2040 (1222, 818 REF) [00:00:11]*** step 30: 1985 (1202, 783 REF) [00:00:11]*** step 31: 1932 (1191, 741 REF) [00:00:11]*** step 32: 1880 (1181, 699 REF) [00:00:11]*** step 33: 1831 (1171, 660 REF) [00:00:11]*** step 34: 1784 (1161, 623 REF) [00:00:11]*** step 35: 1738 (1151, 587 REF) [00:00:11]*** step 36: 1694 (1141, 553 REF) [00:00:11]*** step 37: 1652 (1131, 521 REF) [00:00:11]*** step 38: 1611 (1121, 490 REF) [00:00:11]*** step 39: 1572 (1111, 461 REF) [00:00:11]*** step 40: 1534 (1103, 431 REF) [00:00:11]*** step 41: 1497 (1093, 404 REF) [00:00:11]*** step 42: 1462 (1083, 379 REF) [00:00:11]*** step 43: 1428 (1073, 355 REF) [00:00:11]*** step 44: 1396 (1063, 333 REF) [00:00:11]*** step 45: 1365 (1053, 312 REF) [00:00:11]*** step 46: 1334 (1043, 291 REF) [00:00:11]*** step 47: 1305 (1033, 272 REF) [00:00:11]*** step 48: 1277 (1023, 254 REF) [00:00:11]*** step 49: 1250 (1013, 237 REF) [00:00:11]*** step 50: 1224 (990, 234 REF) [00:00:11]*** step 51: 1199 (980, 219 REF) [00:00:11]*** step 52: 1175 (970, 205 REF) [00:00:11]*** step 53: 1152 (960, 192 REF) [00:00:11]*** step 54: 1130 (950, 180 REF) [00:00:11]*** step 55: 1108 (940, 168 REF) [00:00:11]*** step 56: 1088 (930, 158 REF) [00:00:11]*** step 57: 1068 (920, 148 REF) [00:00:11]*** step 58: 1049 (910, 139 REF) [00:00:11]*** step 59: 1030 (900, 130 REF) [00:00:11]*** step 60: 1012 (890, 122 REF) [00:00:11]*** step 61: 995 (880, 115 REF) [00:00:11]*** step 62: 979 (870, 109 REF) [00:00:11]*** step 63: 963 (860, 103 REF) [00:00:11]*** step 64: 948 (850, 98 REF) [00:00:11]*** step 65: 933 (840, 93 REF) [00:00:11]*** step 66: 919 (830, 89 REF) [00:00:11]*** step 67: 905 (820, 85 REF) [00:00:11]*** step 68: 892 (810, 82 REF) [00:00:11]*** step 69: 879 (800, 79 REF) [00:00:11]*** step 70: 867 (790, 77 REF) [00:00:11]*** step 71: 855 (780, 75 REF) [00:00:11]*** step 72: 844 (770, 74 REF) [00:00:11]*** step 73: 833 (760, 73 REF) [00:00:11]*** step 74: 822 (750, 72 REF) [00:00:11]*** step 75: 812 (740, 72 REF) [00:00:11]*** step 76: 803 (730, 73 REF) [00:00:11]*** step 77: 793 (720, 73 REF) [00:00:11]*** step 78: 784 (710, 74 REF) [00:00:11]*** step 79: 776 (700, 76 REF) [00:00:11]*** step 80: 767 (690, 77 REF) [00:00:11]*** step 81: 759 (680, 79 REF) [00:00:11]*** step 82: 751 (670, 81 REF) [00:00:11]*** step 83: 744 (660, 84 REF) [00:00:11]*** step 84: 737 (650, 87 REF) [00:00:11]*** step 85: 730 (640, 90 REF) [00:00:11]*** step 86: 723 (630, 93 REF) [00:00:11]*** step 87: 717 (620, 97 REF) [00:00:11]*** step 88: 710 (610, 100 REF) [00:00:11]*** step 89: 705 (600, 105 REF) [00:00:11]*** step 90: 699 [00:00:11]*** step 91: 693 [00:00:11]*** step 92: 688 [00:00:11]*** step 93: 683 [00:00:11]*** step 94: 678 [00:00:11]*** step 95: 673 [00:00:11]*** step 96: 669 [00:00:11]*** step 97: 664 [00:00:11]*** step 98: 660 [00:00:11]*** step 99: 656 [00:00:11]*** step 100: 652 [00:00:11]*** step 101: 648 [00:00:11]*** step 102: 644 [00:00:11]*** step 103: 641 [00:00:11]*** step 104: 638 [00:00:11]*** step 105: 634 [00:00:11]*** step 106: 631 [00:00:11]*** step 107: 628 [00:00:11]*** step 108: 625 [00:00:11]*** step 109: 622 [00:00:11]*** step 110: 620 [00:00:11]*** step 111: 617 [00:00:11]*** step 112: 615 [00:00:11]*** step 113: 612 [00:00:11]*** step 114: 610 [00:00:11]*** step 115: 608 [00:00:11]*** step 116: 605 [00:00:11]*** step 117: 603 [00:00:11]*** step 118: 601 [00:00:11]*** step 119: 599 [00:00:11]*** printer: Printer HW initialized [00:00:11]*** initSamCard finished [00:00:11]*** RTC: 1272102+1716164202=1717436304 [00:00:11]*** BPK Status Register BPK_RDY = 0x0 [00:00:11]*** SEN State Register SEN_STATE = 0x20ff [00:00:11]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:11]*** Analog Control Register 0 SEN_ANA0 = 0x33510623 [00:00:11]*** Is cutter blocked? [00:00:12]MH_GetMetrics [00:00:12]Write to MH i2c: 00 00 00 03 00 02 [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 00 29 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 5F FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 05 [00:00:12]Are we in boot? [00:00:12]We are not in boot now [00:00:12]Write to MH i2c: 01 00 00 04 00 04 [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 01 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 01 07 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:12]Model is 3 [00:00:12]MH firmware is 30620 [00:00:12]MH boot firmware is 3 [00:00:12]MH_SetPrinterDots 448 [00:00:12]HeadWidthInBytes 56 [00:00:12]maxmasksize 7 [00:00:12]Write to MH i2c: D6 06 00 05 00 46 00 40 00 FF FF 64 [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D6 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D6 01 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:12]Write to MH i2c: D5 00 00 06 00 DA [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D5 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D5 01 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]ExternCall_SetCallbacks [00:00:12]NVStorageInit [00:00:12]MH_GetDate [00:00:12]Write to MH i2c: F0 00 00 07 00 F6 [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: F0 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: F0 09 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: F0 09 00 07 00 00 91 FF 5D 66 6A 96 4A 66 02 [17:38:25]Current date/time: 03.06.2024 17:38 [17:38:25]FM_Init [17:38:25]wFMConnect [17:38:25]MH_SAM_On [17:38:25]Write to MH i2c: E0 00 00 08 00 E7 [17:38:25]Write i2c OK [17:38:25]MH_I2C_Read... [17:38:25]*** iso7816_init finished! [17:38:25]*** atr: [17:38:25]*** 0F 3B D5 18 FF 81 91 FE [17:38:25]*** 1F C3 80 73 C8 21 10 0A [17:38:25]*** 00 00 00 00 00 00 00 00 [17:38:25]*** 00 00 00 00 00 00 00 00 [17:38:25]*** 00 00 00 00 00 00 00 00 [17:38:25]*** 00 00 00 00 00 00 00 00 [17:38:25]*** 00 00 00 00 00 00 00 00 [17:38:25]*** 00 00 00 00 00 00 00 00 [17:38:25]Read from MH i2c: E0 [17:38:25]MH_I2C_Read... [17:38:25]Read from MH i2c: E0 10 00 [17:38:25]MH_I2C_Read... [17:38:25]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [17:38:25]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [17:38:25]wFMCommunicate request_size=10 [17:38:25]MH_SAM_APDU [17:38:25]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [17:38:25]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [17:38:25]Write i2c OK [17:38:25]MH_I2C_Read... [17:38:25]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [17:38:25]Read from MH i2c: E2 [17:38:25]MH_I2C_Read... [17:38:25]Read from MH i2c: E2 03 00 [17:38:25]MH_I2C_Read... [17:38:25]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [17:38:25]RAPDU: 90 00 [17:38:25]wFMCommunicate OK [17:38:25]wFMCommunicate request_size=4 [17:38:25]MH_SAM_APDU [17:38:25]CAPDU: 80 11 00 00 [17:38:25]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [17:38:25]Write i2c OK [17:38:25]MH_I2C_Read... [17:38:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:38:25]Read from MH i2c: E2 [17:38:25]MH_I2C_Read... [17:38:25]Read from MH i2c: E2 17 00 [17:38:25]MH_I2C_Read... [17:38:25]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 D6 [17:38:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [17:38:25]wFMCommunicate OK [17:38:25]Detected FM SN is 0000000000875074 [17:38:25]Stored FM SN is 0000000000875074 [17:38:25]wFMCommunicate request_size=9 [17:38:25]MH_SAM_APDU [17:38:25]CAPDU: 80 16 00 00 04 FA 15 01 00 [17:38:25]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 FA 15 01 00 00 00 A2 [17:38:25]Write i2c OK [17:38:25]MH_I2C_Read... [17:38:25]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [17:38:25]Read from MH i2c: E2 [17:38:25]MH_I2C_Read... [17:38:25]Read from MH i2c: E2 03 00 [17:38:25]MH_I2C_Read... [17:38:25]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [17:38:25]RAPDU: 90 00 [17:38:25]wFMCommunicate OK [17:38:25]FM PIN OK [17:38:25]wFMCommunicate request_size=8 [17:38:25]MH_SAM_APDU [17:38:25]CAPDU: 80 14 04 00 03 02 00 01 [17:38:25]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [17:38:25]Write i2c OK [17:38:25]MH_I2C_Read... [17:38:25]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [17:38:25]Read from MH i2c: E2 [17:38:25]MH_I2C_Read... [17:38:25]Read from MH i2c: E2 03 00 [17:38:25]MH_I2C_Read... [17:38:25]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [17:38:25]RAPDU: 90 00 [17:38:25]wFMCommunicate OK [17:38:25]wFMCommunicate request_size=13 [17:38:25]MH_SAM_APDU [17:38:25]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [17:38:25]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [17:38:25]Write i2c OK [17:38:25]MH_I2C_Read... [17:38:25]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [17:38:25]Read from MH i2c: E2 [17:38:25]MH_I2C_Read... [17:38:25]Read from MH i2c: E2 03 00 [17:38:25]MH_I2C_Read... [17:38:25]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [17:38:25]RAPDU: 90 00 [17:38:25]wFMCommunicate OK [17:38:25]wFMCommunicate request_size=4 [17:38:25]MH_SAM_APDU [17:38:25]CAPDU: 80 11 00 00 [17:38:25]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [17:38:25]Write i2c OK [17:38:25]MH_I2C_Read... [17:38:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:38:25]Read from MH i2c: E2 [17:38:25]MH_I2C_Read... [17:38:25]Read from MH i2c: E2 17 00 [17:38:25]MH_I2C_Read... [17:38:25]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 DA [17:38:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [17:38:25]wFMCommunicate OK [17:38:25]DocumentArchiveInit [17:38:25]Start Httpd... [17:38:25]Httpd thread 3066940772 created [17:38:25]Write to MH i2c: 01 00 00 0F 00 0F [17:38:25]Write i2c OK [17:38:25]MH_I2C_Read... [17:38:25]Read from MH i2c: 01 [17:38:25]MH_I2C_Read... [17:38:25]Read from MH i2c: 01 07 00 [17:38:25]MH_I2C_Read... [17:38:25]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [17:38:25]MH Int Process started [17:38:25]Allocated Socket 7 [17:38:25]Bind OK [17:38:25]Listen OK [17:38:25]httpd running on port 8080 [17:38:25]Waiting for new connection... [17:38:25]OFD Sender: Processing packet 63842 [packets to send 16, broken 13] [17:38:25]ProducePacketName [17:38:25]name=ofd_packets/00063842 [17:38:25]OFD Sender: To server: pG, [17:38:25]CommunicateWithHost lk.salyk.kg:30040 [17:38:25]ConnectInit lk.salyk.kg [17:38:25]Connected sock=6 [17:38:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 2C 01 00 00 6E 3C 24 01 11 20 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 34 33 39 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 8C 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 AE E6 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 62 F9 00 00 35 04 06 00 1D 94 FB FE 4C 89 FE 99 76 3C AA 32 A0 DD [17:38:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 51 31 47 00 6D ED A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 62 F9 00 00 F4 03 04 00 60 AB 5D 66 B6 04 01 00 00 10 EB 10 22 8F AF 36 94 [17:38:25]CommunicateWithHost err = 0 [17:38:25]CheckOFDResponse [17:38:25]1017 (14) - 77093643461234 [17:38:25]1041 (16) - 0000000000875074 [17:38:25]1040 (4) - 63842 [17:38:25]1012 (4) - 03.06.2024 11:39 [17:38:25]1206 (1) - 0 [17:38:25]OFD Sender: Remove packet 63842 [17:38:25]ProducePacketName [17:38:25]name=ofd_packets/00063842 [17:38:25]NVStorageDeleteData [17:38:26]OFD Sender: Processing packet 63843 [packets to send 15, broken 13] [17:38:26]ProducePacketName [17:38:26]name=ofd_packets/00063843 [17:38:26]OFD Sender: To server: pG, [17:38:26]CommunicateWithHost lk.salyk.kg:30040 [17:38:26]ConnectInit lk.salyk.kg [17:38:26]Connected sock=6 [17:38:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0F 01 00 00 2F 0D 07 01 CE 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 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 BA E6 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 63 F9 00 00 35 04 06 00 E8 9F 86 03 A2 4A 60 E5 78 B0 6E 7E 2A 62 [17:38:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 9D F1 47 00 37 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 35 30 37 34 10 04 04 00 63 F9 00 00 F4 03 04 00 61 AB 5D 66 B6 04 01 00 00 C3 1B C1 13 7C DB 99 E5 [17:38:26]CommunicateWithHost err = 0 [17:38:26]CheckOFDResponse [17:38:26]1017 (14) - 77093643461234 [17:38:26]1041 (16) - 0000000000875074 [17:38:26]1040 (4) - 63843 [17:38:26]1012 (4) - 03.06.2024 11:39 [17:38:26]1206 (1) - 0 [17:38:26]OFD Sender: Remove packet 63843 [17:38:26]ProducePacketName [17:38:26]name=ofd_packets/00063843 [17:38:26]NVStorageDeleteData [17:38:27]OFD Sender: Processing packet 63844 [packets to send 14, broken 13] [17:38:27]ProducePacketName [17:38:27]name=ofd_packets/00063844 [17:38:27]OFD Sender: To server: pG, [17:38:27]CommunicateWithHost lk.salyk.kg:30040 [17:38:27]ConnectInit lk.salyk.kg [17:38:27]Connected sock=6 [17:38:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0F 01 00 00 0D 1A 07 01 1E C3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 66 00 00 00 F4 03 04 00 DC E6 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 64 F9 00 00 35 04 06 00 60 07 C9 41 85 B2 34 92 EF 07 9B F9 06 61 [17:38:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 01 2A 47 00 6F AA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 64 F9 00 00 F4 03 04 00 62 AB 5D 66 B6 04 01 00 00 73 47 2C DC 2B AD E8 36 [17:38:27]CommunicateWithHost err = 0 [17:38:27]CheckOFDResponse [17:38:27]1017 (14) - 77093643461234 [17:38:27]1041 (16) - 0000000000875074 [17:38:27]1040 (4) - 63844 [17:38:27]1012 (4) - 03.06.2024 11:39 [17:38:27]1206 (1) - 0 [17:38:27]OFD Sender: Remove packet 63844 [17:38:27]ProducePacketName [17:38:27]name=ofd_packets/00063844 [17:38:27]NVStorageDeleteData [17:38:27]OFD Sender: No OFD packet to send [17:38:28]accept exits with 8 [17:38:28]New connection [17:38:28]New thread 3066654052 created [17:38:28]Waiting for new connection... [17:38:28] Sock 8.Parse request [17:38:28]Sock 8.Check first char [17:38:28]Sock 8.First char is OK [17:38:28]request: POST /json_proto HTTP/1.0 [17:38:28]Method: POST [17:38:28]URL: /json_proto [17:38:28]Method is POST - this is cgi request [17:38:28]url: /json_proto [17:38:28]query_string will be loaded in cgi processing [17:38:28]execute_cgi json_proto POST (null) [17:38:28]execute_cgi path=json_proto method=POST [17:38:28]POST find Content-Length [17:38:28]Host: 172.17.60.69:8080 [17:38:28]Content-Length: 215 [17:38:28]Content-Type: application/json [17:38:28] [17:38:28]POST finish read [17:38:28]Found Content-Length = 215 [17:38:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:38:28]execute_script... [17:38:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:38:28]POST & json_proto [17:38:28]process_json_proto [17:38:28]json parsed OK: [17:38:28]protocol is kg_v1.0 [17:38:28]action value=get_value [17:38:28]process_action get_value [17:38:28]cmd_get_value [17:38:28]process_action get_value done [17:38:28]requested_data is exist [17:38:28]produce_requested_data [17:38:28]requested_item kkm.sn is exist - process it [17:38:28]requested_item kkm.ver is exist - process it [17:38:28]requested_item fm.sn is exist - process it [17:38:28]wFMCommunicate request_size=4 [17:38:28]MH_SAM_APDU [17:38:28]CAPDU: 80 11 00 00 [17:38:28]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [17:38:28]Write i2c OK [17:38:28]MH_I2C_Read... [17:38:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:38:28]Read from MH i2c: E2 [17:38:28]MH_I2C_Read... [17:38:28]Read from MH i2c: E2 17 00 [17:38:28]MH_I2C_Read... [17:38:28]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 35 30 37 34 90 00 DC [17:38:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [17:38:28]wFMCommunicate OK [17:38:28]requested_item fd.num is exist - process it [17:38:28]SAM_PROTO_GetFieldsCounters [17:38:28]wFMCommunicate request_size=4 [17:38:28]MH_SAM_APDU [17:38:28]CAPDU: 80 13 00 00 [17:38:28]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [17:38:28]Write i2c OK [17:38:28]MH_I2C_Read... [17:38:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:38:29]Read from MH i2c: E2 [17:38:29]MH_I2C_Read... [17:38:29]Read from MH i2c: E2 62 00 [17:38:29]MH_I2C_Read... [17:38:29]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 64 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 B5 [17:38: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 64 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:38:29]wFMCommunicate OK [17:38:29]SAM_PROTO_GetFieldsCounters done [17:38:29]requested_item shift.num is exist - process it [17:38:29]requested_item shift.opened is exist - process it [17:38:29]req_shift_opened [17:38:29]FM_GetShiftState [17:38:29]SAM_PROTO_GetShiftState [17:38:29]wFMCommunicate request_size=4 [17:38:29]MH_SAM_APDU [17:38:29]CAPDU: 80 13 01 00 [17:38:29]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [17:38:29]Write i2c OK [17:38:29]MH_I2C_Read... [17:38:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:38:29]Read from MH i2c: E2 [17:38:29]MH_I2C_Read... [17:38:29]Read from MH i2c: E2 0E 00 [17:38:29]MH_I2C_Read... [17:38:29]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 5B [17:38:29]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [17:38:29]wFMCommunicate OK [17:38:29]SAM_PROTO_GetShiftState done [17:38:29]FM_GetShiftState done [17:38:29]req_shift_opened done [17:38:29]requested_item shift.open_date is exist - process it [17:38:29]req_shift_open_date [17:38:29]req_shift_open_date done [17:38:29]produce_requested_data done [17:38:29]produce_requested_data return {"kkm.sn":"0300000031","kkm.ver":"001","fm.sn":"0000000000875074","fd.num":63844,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [17:38:29]process_action_free get_value [17:38:29]json_value_free [17:38:29]json_value_free done [17:38:29]process_json_proto returns [17:38:29]Send response to host [17:38:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000031","kkm.ver":"001","fm.sn":"0000000000875074","fd.num":63844,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [17:38:29]free response buf [17:38:29]execute_script done [17:38:29]execute_script returns [17:38:29]free content buf [17:38:29]Sock 8.Close socket [17:38:29]Sock 8.Thread stoped [17:38:29]accept exits with 6 [17:38:29]New connection [17:38:29]New thread 3066510692 created [17:38:29]Thread 3066654052 joined [17:38:29]Waiting for new connection... [17:38:29] Sock 6.Parse request [17:38:29]Sock 6.Check first char [17:38:29]Sock 6.First char is OK [17:38:29]request: POST /json_proto HTTP/1.0 [17:38:29]Method: POST [17:38:29]URL: /json_proto [17:38:29]Method is POST - this is cgi request [17:38:29]url: /json_proto [17:38:29]query_string will be loaded in cgi processing [17:38:29]execute_cgi json_proto POST (null) [17:38:29]execute_cgi path=json_proto method=POST [17:38:29]POST find Content-Length [17:38:29]Host: 172.17.60.69:8080 [17:38:29]Content-Length: 331 [17:38:29]Content-Type: application/json [17:38:29] [17:38:29]POST finish read [17:38:29]Found Content-Length = 331 [17:38:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [17:38:29]execute_script... [17:38:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [17:38:29]POST & json_proto [17:38:29]process_json_proto [17:38:29]json parsed OK: [17:38:29]protocol is kg_v1.0 [17:38:29]action value=get_value [17:38:29]process_action get_value [17:38:29]cmd_get_value [17:38:29]process_action get_value done [17:38:29]requested_data is exist [17:38:29]produce_requested_data [17:38:29]requested_item fm.sale.total is exist - process it [17:38:29]SAM_PROTO_GetFMData [17:38:29]wFMCommunicate request_size=4 [17:38:29]MH_SAM_APDU [17:38:29]CAPDU: 80 13 03 00 [17:38:29]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [17:38:29]Write i2c OK [17:38:29]MH_I2C_Read... [17:38:29]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [17:38:29]Read from MH i2c: E2 [17:38:29]MH_I2C_Read... [17:38:29]Read from MH i2c: E2 FD 00 [17:38:29]MH_I2C_Read... [17:38:29]Read from MH i2c: E2 FD 00 13 00 00 C5 04 85 04 C1 04 6E 04 04 00 7A F6 00 00 69 04 A1 00 6F 04 04 00 1D F4 00 00 B1 04 04 00 85 3D A9 76 70 04 04 00 56 B8 EF 65 72 04 04 00 2F 85 B9 10 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 A8 51 9A 0C 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 7A C8 0C 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 5D 02 00 00 B1 04 04 00 64 11 7D 03 70 04 04 00 E0 B5 61 03 72 04 03 00 84 5B 1B 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 F2 D8 5E EF 03 09 90 00 52 [17:38:29]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 7A F6 00 00 69 04 A1 00 6F 04 04 00 1D F4 00 00 B1 04 04 00 85 3D A9 76 70 04 04 00 56 B8 EF 65 72 04 04 00 2F 85 B9 10 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 A8 51 9A 0C 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 7A C8 0C 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 5D 02 00 00 B1 04 04 00 64 11 7D 03 70 04 04 00 E0 B5 61 03 72 04 03 00 84 5B 1B 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 F2 D8 5E EF 03 09 90 00 [17:38:29]wFMCommunicate OK [17:38:29]wFMCommunicate request_size=4 [17:38:29]MH_SAM_APDU [17:38:29]CAPDU: 80 17 00 00 [17:38:29]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [17:38:29]Write i2c OK [17:38:29]MH_I2C_Read... [17:38:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:38:29]Read from MH i2c: E2 [17:38:29]MH_I2C_Read... [17:38:29]Read from MH i2c: E2 FD 00 [17:38:29]MH_I2C_Read... [17:38:29]Read from MH i2c: E2 FD 00 14 00 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 2E E7 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 66 [17:38:29]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 2E E7 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [17:38:29]wFMCommunicate OK [17:38:29]wFMCommunicate request_size=4 [17:38:29]MH_SAM_APDU [17:38:29]CAPDU: 80 17 00 00 [17:38:29]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [17:38:29]Write i2c OK [17:38:29]MH_I2C_Read... [17:38:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:38:30]Read from MH i2c: E2 [17:38:30]MH_I2C_Read... [17:38:30]Read from MH i2c: E2 FD 00 [17:38:30]MH_I2C_Read... [17:38:30]Read from MH i2c: E2 FD 00 15 00 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 A7 [17:38:30]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [17:38:30]wFMCommunicate OK [17:38:30]wFMCommunicate request_size=4 [17:38:30]MH_SAM_APDU [17:38:30]CAPDU: 80 17 00 00 [17:38:30]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [17:38:30]Write i2c OK [17:38:30]MH_I2C_Read... [17:38:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:38:30]Read from MH i2c: E2 [17:38:30]MH_I2C_Read... [17:38:30]Read from MH i2c: E2 FD 00 [17:38:30]MH_I2C_Read... [17:38:30]Read from MH i2c: E2 FD 00 16 00 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 22 [17:38:30]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [17:38:30]wFMCommunicate OK [17:38:30]wFMCommunicate request_size=4 [17:38:30]MH_SAM_APDU [17:38:30]CAPDU: 80 17 00 00 [17:38:30]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [17:38:30]Write i2c OK [17:38:30]MH_I2C_Read... [17:38:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [17:38:30]Read from MH i2c: E2 [17:38:30]MH_I2C_Read... [17:38:30]Read from MH i2c: E2 E2 00 [17:38:30]MH_I2C_Read... [17:38:30]Read from MH i2c: E2 E2 00 17 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 75 [17:38:30]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [17:38:30]wFMCommunicate OK [17:38:30]SAM_PROTO_GetFMData done [17:38:30]requested_item fm.sale_refund.total is exist - process it [17:38:30]requested_item fm.buy.total is exist - process it [17:38:30]requested_item shift.sale.total is exist - process it [17:38:30]SAM_PROTO_GetShiftData [17:38:30]wFMCommunicate request_size=4 [17:38:30]MH_SAM_APDU [17:38:30]CAPDU: 80 13 02 00 [17:38:30]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [17:38:30]Write i2c OK [17:38:30]MH_I2C_Read... [17:38:31]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [17:38:31]Read from MH i2c: E2 [17:38:31]MH_I2C_Read... [17:38:31]Read from MH i2c: E2 FD 00 [17:38:31]MH_I2C_Read... [17:38:31]Read from MH i2c: E2 FD 00 18 00 00 AE 04 AA 04 AA 04 6E 04 04 00 66 00 00 00 69 04 9B 00 6F 04 04 00 66 00 00 00 B1 04 03 00 98 48 31 70 04 03 00 50 1D 24 72 04 03 00 48 2B 0D 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 F8 3B 05 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 A6 6F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 92 [17:38:31]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 66 00 00 00 69 04 9B 00 6F 04 04 00 66 00 00 00 B1 04 03 00 98 48 31 70 04 03 00 50 1D 24 72 04 03 00 48 2B 0D 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 F8 3B 05 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 A6 6F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [17:38:31]wFMCommunicate OK [17:38:31]wFMCommunicate request_size=4 [17:38:31]MH_SAM_APDU [17:38:31]CAPDU: 80 17 00 00 [17:38:31]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [17:38:31]Write i2c OK [17:38:31]MH_I2C_Read... [17:38:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:38:31]Read from MH i2c: E2 [17:38:31]MH_I2C_Read... [17:38:31]Read from MH i2c: E2 FD 00 [17:38:31]MH_I2C_Read... [17:38:31]Read from MH i2c: E2 FD 00 19 00 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 BB [17:38:31]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [17:38:31]wFMCommunicate OK [17:38:31]wFMCommunicate request_size=4 [17:38:31]MH_SAM_APDU [17:38:31]CAPDU: 80 17 00 00 [17:38:31]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [17:38:31]Write i2c OK [17:38:31]MH_I2C_Read... [17:38:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:38:31]Read from MH i2c: E2 [17:38:31]MH_I2C_Read... [17:38:31]Read from MH i2c: E2 FD 00 [17:38:31]MH_I2C_Read... [17:38:31]Read from MH i2c: E2 FD 00 1A 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 51 [17:38:31]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [17:38:32]wFMCommunicate OK [17:38:32]wFMCommunicate request_size=4 [17:38:32]MH_SAM_APDU [17:38:32]CAPDU: 80 17 00 00 [17:38:32]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [17:38:32]Write i2c OK [17:38:32]MH_I2C_Read... [17:38:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:38:32]Read from MH i2c: E2 [17:38:32]MH_I2C_Read... [17:38:32]Read from MH i2c: E2 FD 00 [17:38:32]MH_I2C_Read... [17:38:32]Read from MH i2c: E2 FD 00 1B 00 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 0D [17:38:32]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [17:38:32]wFMCommunicate OK [17:38:32]wFMCommunicate request_size=4 [17:38:32]MH_SAM_APDU [17:38:32]CAPDU: 80 17 00 00 [17:38:32]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [17:38:32]Write i2c OK [17:38:32]MH_I2C_Read... [17:38:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [17:38:32]Read from MH i2c: E2 [17:38:32]MH_I2C_Read... [17:38:32]Read from MH i2c: E2 CB 00 [17:38:32]MH_I2C_Read... [17:38:32]Read from MH i2c: E2 CB 00 1C 00 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 85 [17:38:32]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [17:38:32]wFMCommunicate OK [17:38:32]SAM_PROTO_GetShiftData done [17:38:32]requested_item shift.sale.total_cash is exist - process it [17:38:32]requested_item shift.sale_refund.total is exist - process it [17:38:32]requested_item shift.sale_refund.total_cash is exist - process it [17:38:32]requested_item shift.buy.total is exist - process it [17:38:32]requested_item shift.buy.total_cash is exist - process it [17:38:32]produce_requested_data done [17:38:32]produce_requested_data return {"fm.sale.total":19908028.21,"fm.sale_refund.total":585281.00,"fm.buy.total":0.00,"shift.sale.total":32298.48,"shift.sale.total_cash":23668.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} [17:38:32]process_action_free get_value [17:38:32]json_value_free [17:38:32]json_value_free done [17:38:32]process_json_proto returns [17:38:32]Send response to host [17:38:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":19908028.21,"fm.sale_refund.total":585281.00,"fm.buy.total":0.00,"shift.sale.total":32298.48,"shift.sale.total_cash":23668.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}}} [17:38:32]free response buf [17:38:32]execute_script done [17:38:32]execute_script returns [17:38:32]free content buf [17:38:32]Sock 6.Close socket [17:38:32]Sock 6.Thread stoped [17:38:32]OFD Sender: No OFD packet to send [17:38:34]accept exits with 8 [17:38:34]New connection [17:38:34]New thread 3066654052 created [17:38:34]Thread 3066510692 joined [17:38:34]Waiting for new connection... [17:38:34] Sock 8.Parse request [17:38:34]Sock 8.Check first char [17:38:34]Sock 8.First char is OK [17:38:34]request: POST /json_proto HTTP/1.0 [17:38:34]Method: POST [17:38:34]URL: /json_proto [17:38:34]Method is POST - this is cgi request [17:38:34]url: /json_proto [17:38:34]query_string will be loaded in cgi processing [17:38:34]execute_cgi json_proto POST (null) [17:38:34]execute_cgi path=json_proto method=POST [17:38:34]POST find Content-Length [17:38:34]Host: 172.17.60.69:8080 [17:38:34]Content-Length: 712 [17:38:34]Content-Type: application/json [17:38:34] [17:38:34]POST finish read [17:38:34]Found Content-Length = 712 [17:38:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73420", "tax_sys" : 0, "items" : [ { "code": "4870202521285", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0421\u043E\u043A \u0431\u0435\u0440\u0435\u0437\u043E\u0432\u044B\u0439 \u043D\u0435\u0433\u0430\u0437 0,45\u043B", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 70.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:38:34]execute_script... [17:38:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73420", "tax_sys" : 0, "items" : [ { "code": "4870202521285", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0421\u043E\u043A \u0431\u0435\u0440\u0435\u0437\u043E\u0432\u044B\u0439 \u043D\u0435\u0433\u0430\u0437 0,45\u043B", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 70.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:38:34]POST & json_proto [17:38:34]process_json_proto [17:38:34]json parsed OK: [17:38:34]protocol is kg_v1.0 [17:38:34]action value=close_receipt [17:38:34]process_action close_receipt [17:38:34]cmd_close_receipt [17:38:34]MH_GetDate [17:38:34]Write to MH i2c: F0 00 00 1D 00 0C [17:38:34]Write i2c OK [17:38:34]MH_I2C_Read... [17:38:34]Read from MH i2c: F0 [17:38:34]MH_I2C_Read... [17:38:34]Read from MH i2c: F0 09 00 [17:38:34]MH_I2C_Read... [17:38:34]Read from MH i2c: F0 09 00 1D 00 00 9A FF 5D 66 6A 96 4A 66 21 [17:38:34]GetLastDocTimeStamp 1717429980 [17:38:34]current date 1717436314 [17:38:34]FM_GetShiftState [17:38:34]SAM_PROTO_GetShiftState [17:38:34]wFMCommunicate request_size=4 [17:38:34]MH_SAM_APDU [17:38:34]CAPDU: 80 13 01 00 [17:38:34]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [17:38:34]Write i2c OK [17:38:34]MH_I2C_Read... [17:38:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:38:34]Read from MH i2c: E2 [17:38:34]MH_I2C_Read... [17:38:34]Read from MH i2c: E2 0E 00 [17:38:34]MH_I2C_Read... [17:38:34]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 67 [17:38:34]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [17:38:34]wFMCommunicate OK [17:38:34]SAM_PROTO_GetShiftState done [17:38:34]FM_GetShiftState done [17:38:34]opened in 1717373173 [17:38:34]opened+sec_in_day 1717459573 [17:38:34]quantity*price = 7000 [17:38:34]sum+1 = 7001 [17:38:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 70.00 НСП 1% : 0.62 НДС 12% : 7.43 Наличными: 70.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 103 03.06.2024 17:38 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63845 ФПД: 271989494776381 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T173835&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63845&fm=271989494776381&tin=02508201610067®Number=0000000000092737&sum=7000 0 [17:38:35]StoreToDocumentArchive [17:38:35]shift 373 fd 63845 [17:38:35]save to /storage/0373/doc_00063845 [17:38:35]save last doc name /storage/0373/doc_00063845 to /storage/kkm_last_doc_name [17:38:35]save OK [17:38:35]Clear old archive folders... [17:38:35]ProcessDocumentItem done err = 0, tmpTLVsize=300 [17:38:35]tlvbuf is 00387BA0 [17:38:35]SAM_PROTO_ClearQueue [17:38:35]wFMCommunicate request_size=4 [17:38:35]MH_SAM_APDU [17:38:35]CAPDU: 80 09 00 00 [17:38:35]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [17:38:35]Write i2c OK [17:38:35]MH_I2C_Read... [17:38:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:38:35]Read from MH i2c: E2 [17:38:35]MH_I2C_Read... [17:38:35]Read from MH i2c: E2 03 00 [17:38:35]MH_I2C_Read... [17:38:35]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [17:38:35]RAPDU: 90 00 [17:38:35]wFMCommunicate OK [17:38:35]SAM_PROTO_ClearQueue done [17:38:35]KKMCreateOFDPacket [17:38:35]OFDProtocolAddRootSTLVToBuf [17:38:35]FM_MakeSignedData [17:38:35]FM_MakeSignedData [17:38:35]SAM_PROTO_SignData [17:38:35]wFMCommunicate request_size=4 [17:38:35]MH_SAM_APDU [17:38:35]CAPDU: 80 0D 01 02 [17:38:35]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [17:38:35]Write i2c OK [17:38:35]MH_I2C_Read... [17:38:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:38:35]Read from MH i2c: E2 [17:38:35]MH_I2C_Read... [17:38:35]Read from MH i2c: E2 03 00 [17:38:35]MH_I2C_Read... [17:38:35]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [17:38:35]RAPDU: 90 00 [17:38:35]wFMCommunicate OK [17:38:35]wFMCommunicate request_size=255 [17:38:35]MH_SAM_APDU [17:38:35]CAPDU: 80 0D 02 02 FA 03 00 2C 01 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 38 35 06 04 3A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A1 D0 BE D0 BA 20 D0 B1 D0 B5 D1 80 D0 B5 D0 B7 D0 BE D0 B2 D1 8B D0 B9 20 D0 BD D0 B5 D0 B3 D0 B0 D0 B7 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 9B FF 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 [17:38:35]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 2C 01 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 38 35 06 04 3A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A1 D0 BE D0 BA 20 D0 B1 D0 B5 D1 80 D0 B5 D0 B7 D0 BE D0 B2 D1 8B D0 B9 20 D0 BD D0 B5 D0 B3 D0 B0 D0 B7 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 9B FF 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 00 00 92 [17:38:35]Write i2c OK [17:38:35]MH_I2C_Read... [17:38:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:38:36]Read from MH i2c: E2 [17:38:36]MH_I2C_Read... [17:38:36]Read from MH i2c: E2 03 00 [17:38:36]MH_I2C_Read... [17:38:36]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [17:38:36]RAPDU: 90 00 [17:38:36]wFMCommunicate OK [17:38:36]wFMCommunicate request_size=59 [17:38:36]MH_SAM_APDU [17:38:36]CAPDU: 80 0D 02 02 36 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 65 F9 00 00 35 04 06 00 F7 5F 7D 38 02 3D [17:38:36]Write to MH i2c: E2 3E 00 2E 00 80 0D 02 02 36 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 65 F9 00 00 35 04 06 00 F7 5F 7D 38 02 3D 00 00 73 [17:38:36]Write i2c OK [17:38:36]MH_I2C_Read... [17:38:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:38:36]Read from MH i2c: E2 [17:38:36]MH_I2C_Read... [17:38:36]Read from MH i2c: E2 03 00 [17:38:36]MH_I2C_Read... [17:38:36]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [17:38:36]RAPDU: 90 00 [17:38:36]wFMCommunicate OK [17:38:36]wFMCommunicate request_size=4 [17:38:36]MH_SAM_APDU [17:38:36]CAPDU: 80 0D 03 02 [17:38:36]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [17:38:36]Write i2c OK [17:38:36]MH_I2C_Read... [17:38:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:38:36]Read from MH i2c: E2 [17:38:36]MH_I2C_Read... [17:38:36]Read from MH i2c: E2 0B 00 [17:38:36]MH_I2C_Read... [17:38:36]Read from MH i2c: E2 0B 00 2F 00 00 4B 7D 80 01 AB 79 6A 90 90 00 12 [17:38:36]RAPDU: 4B 7D 80 01 AB 79 6A 90 90 00 [17:38:36]wFMCommunicate OK [17:38:36]SAM_PROTO_SignData done [17:38:36]FM_MakeSignedData done [17:38:36]CreateOFDProtocolMessage [17:38:36]wFMCommunicate request_size=4 [17:38:36]MH_SAM_APDU [17:38:36]CAPDU: 80 11 00 00 [17:38:36]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [17:38:36]Write i2c OK [17:38:36]MH_I2C_Read... [17:38:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:38:36]Read from MH i2c: E2 [17:38:36]MH_I2C_Read... [17:38:36]Read from MH i2c: E2 17 00 [17:38:36]MH_I2C_Read... [17:38:36]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 35 30 37 34 90 00 FC [17:38:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [17:38:36]wFMCommunicate OK [17:38:36]CreateOFDProtocolMessage done [17:38:36]OFDSenderStorePacket 63845 [17:38:36]StoreOFDPacket docnum=63845 [17:38:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 40 01 00 00 17 45 38 01 C8 66 5A 03 01 00 03 00 2C 01 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 38 35 06 04 3A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A1 D0 BE D0 BA 20 D0 B1 D0 B5 D1 80 D0 B5 D0 B7 D0 BE D0 B2 D1 8B D0 B9 20 D0 BD D0 B5 D0 B3 D0 B0 D0 B7 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 9B FF 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 65 F9 00 00 35 04 06 00 F7 5F 7D 38 02 3D 4B 7D 80 01 AB 79 6A 90 [17:38:36]CheckFolder [17:38:36]dirname=/storage/ofd_packets [17:38:36]CheckFolder done [17:38:36]ProducePacketName [17:38:36]name=ofd_packets/00063845 [17:38:36]NVStorageSaveData ofd_packets/00063845 [17:38:36]File name is /storage/ofd_packets/00063845 [17:38:36]Write 350 bytes [17:38:36]NVStorageSaveData done [17:38:36]OFDSenderStorePacket done [17:38:36]KKMCreateOFDPacket done [17:38:36]NVStorageSaveData kkm_last_timestamp [17:38:36]File name is /storage/kkm_last_timestamp [17:38:36]Write 4 bytes [17:38:36]NVStorageSaveData done [17:38:36]ExternCall_PrintAddStr [17:38:36]wPrintStart [17:38:36]Write to MH i2c: 01 00 00 31 00 31 [17:38:36]Write i2c OK [17:38:36]MH_I2C_Read... [17:38:36]Read from MH i2c: 01 [17:38:36]MH_I2C_Read... [17:38:36]Read from MH i2c: 01 07 00 [17:38:36]MH_I2C_Read... [17:38:36]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [17:38:36]RasterBufferAndPrint [17:38:36]line Счет N : (3)73420 [17:38:36]line ИНН: 02508201610067 [17:38:36]line Контрольно-Кассовый Чек [17:38:36]line ПРОДАЖА [17:38:36]line Товар: 4870202521285 [17:38:36]line Напиток Сок березовый негаз 0,45л [17:38:36]line 1.000 * 70.00 [17:38:36]line = 70.00 [17:38:36]line НДС 12% НСП 1% [17:38:36]line > о реализуемом товаре [17:38:36]line ИТОГО: 70.00 [17:38:36]line НСП 1% : 0.62 [17:38:36]line НДС 12% : 7.43 [17:38:36]line Наличными: 70.00 [17:38:36]line Безнал.: 0.00 [17:38:36]line Место: АЗС № 117 "Партнер Нефть" [17:38:36]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [17:38:36]line СНО: Общий режим [17:38:36]line Чек 103 03.06.2024 17:38 [17:38:36]line Смена: 373 ФФД: 1.0 [17:38:36]line ЗНМ: 0300000031 [17:38:36]line РНМ: 0000000000092737 [17:38:36]line Версия ККМ: 001 [17:38:36]line ФМ: 0000000000875074 [17:38:36]line ФД: 63845 [17:38:36]line ФПД: 271989494776381 [17:38:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T173835&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63845&fm=271989494776381&tin=02508201610067®Number=0000000000092737&sum=7000 [17:38:36]line 0 [17:38:36]written 0, free lines is 4095 [17:38:36]OFD Sender: Processing packet 63845 [packets to send 14, broken 13] [17:38:36]ProducePacketName [17:38:36]name=ofd_packets/00063845 [17:38:36]OFD Sender: To server: pG, [17:38:36]CommunicateWithHost lk.salyk.kg:30040 [17:38:36]ConnectInit lk.salyk.kg [17:38:36]Connected sock=9 [17:38:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 40 01 00 00 17 45 38 01 C8 66 5A 03 01 00 03 00 2C 01 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 38 35 06 04 3A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A1 D0 BE D0 BA 20 D0 B1 D0 B5 D1 80 D0 B5 D0 B7 D0 BE D0 B2 D1 8B D0 B9 20 D0 BD D0 B5 D0 B3 D0 B0 D0 B7 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 9B FF 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 65 F9 00 00 35 04 06 00 F7 5F 7D 38 02 3D 4B 7D 80 01 AB 79 6A 90 [17:38:37]Write to MH i2c: 01 00 00 5A 00 5A [17:38:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 6C 48 47 00 3A 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 35 30 37 34 10 04 04 00 65 F9 00 00 F4 03 04 00 6B AB 5D 66 B6 04 01 00 00 DE CC 9B C0 76 34 26 E1 [17:38:37]CommunicateWithHost err = 0 [17:38:37]CheckOFDResponse [17:38:37]1017 (14) - 77093643461234 [17:38:37]1041 (16) - 0000000000875074 [17:38:37]1040 (4) - 63845 [17:38:37]1012 (4) - 03.06.2024 11:39 [17:38:37]1206 (1) - 0 [17:38:37]OFD Sender: Remove packet 63845 [17:38:37]ProducePacketName [17:38:37]name=ofd_packets/00063845 [17:38:37]NVStorageDeleteData [17:38:37]Write i2c OK [17:38:37]MH_I2C_Read... [17:38:37]Read from MH i2c: 01 [17:38:37]MH_I2C_Read... [17:38:37]Read from MH i2c: 01 07 00 [17:38:37]MH_I2C_Read... [17:38:37]Read from MH i2c: 01 07 00 5A 00 00 00 00 00 00 DF 0C 4C [17:38:37]RasterBufferAndPrint [17:38:37]line [17:38:37]line [17:38:37]line [17:38:37]line [17:38:37]line [17:38:37]written 0, free lines is 3435 [17:38:37]MH_Cut [17:38:37]Write to MH i2c: D1 01 00 61 00 01 33 [17:38:37]Write i2c OK [17:38:37]MH_I2C_Read... [17:38:37]Read from MH i2c: D1 [17:38:37]MH_I2C_Read... [17:38:37]Read from MH i2c: D1 01 00 [17:38:37]MH_I2C_Read... [17:38:37]Read from MH i2c: D1 01 00 61 00 00 32 [17:38:37]Write to MH i2c: 01 00 00 62 00 62 [17:38:37]Write i2c OK [17:38:37]MH_I2C_Read... [17:38:37]OFD Sender: No OFD packet to send [17:38:37]*** Cut start [17:38:37]*** Partial cut [17:38:37]*** CUTSNS_PIN = 1 [17:38:37]*** CUTSNS_PIN = 0 [17:38:38]*** Brake cut motor [17:38:38]Read from MH i2c: 01 [17:38:38]MH_I2C_Read... [17:38:38]*** Stop cut motor [17:38:38]*** Cut end [17:38:38]Read from MH i2c: 01 07 00 [17:38:38]MH_I2C_Read... [17:38:38]Read from MH i2c: 01 07 00 62 00 00 00 00 00 00 FF 0F 77 [17:38:38]process_action close_receipt done [17:38:38]requested_data is exist [17:38:38]produce_requested_data [17:38:38]requested_item fm.sn is exist - process it [17:38:38]wFMCommunicate request_size=4 [17:38:38]MH_SAM_APDU [17:38:38]CAPDU: 80 11 00 00 [17:38:38]Write to MH i2c: E2 08 00 63 00 80 11 00 00 00 00 00 00 DD [17:38:38]Write i2c OK [17:38:38]MH_I2C_Read... [17:38:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:38:38]Read from MH i2c: E2 [17:38:38]MH_I2C_Read... [17:38:38]Read from MH i2c: E2 17 00 [17:38:38]MH_I2C_Read... [17:38:38]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 35 30 37 34 90 00 2F [17:38:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [17:38:38]wFMCommunicate OK [17:38:38]requested_item fd.num is exist - process it [17:38:38]SAM_PROTO_GetFieldsCounters [17:38:38]wFMCommunicate request_size=4 [17:38:38]MH_SAM_APDU [17:38:38]CAPDU: 80 13 00 00 [17:38:38]Write to MH i2c: E2 08 00 64 00 80 13 00 00 00 00 00 00 E0 [17:38:38]Write i2c OK [17:38:38]MH_I2C_Read... [17:38:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:38:38]Read from MH i2c: E2 [17:38:38]MH_I2C_Read... [17:38:38]Read from MH i2c: E2 62 00 [17:38:38]MH_I2C_Read... [17:38:38]Read from MH i2c: E2 62 00 64 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 65 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 0C [17:38:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 65 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:38:38]wFMCommunicate OK [17:38:38]SAM_PROTO_GetFieldsCounters done [17:38:38]requested_item shift.num is exist - process it [17:38:38]requested_item shift.opened is exist - process it [17:38:38]req_shift_opened [17:38:38]FM_GetShiftState [17:38:38]SAM_PROTO_GetShiftState [17:38:38]wFMCommunicate request_size=4 [17:38:38]MH_SAM_APDU [17:38:38]CAPDU: 80 13 01 00 [17:38:38]Write to MH i2c: E2 08 00 65 00 80 13 01 00 00 00 00 00 E2 [17:38:38]Write i2c OK [17:38:38]MH_I2C_Read... [17:38:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:38:38]Read from MH i2c: E2 [17:38:38]MH_I2C_Read... [17:38:38]Read from MH i2c: E2 0E 00 [17:38:38]MH_I2C_Read... [17:38:38]Read from MH i2c: E2 0E 00 65 00 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 AE [17:38:38]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [17:38:38]wFMCommunicate OK [17:38:38]SAM_PROTO_GetShiftState done [17:38:38]FM_GetShiftState done [17:38:38]req_shift_opened done [17:38:38]requested_item shift.open_date is exist - process it [17:38:38]req_shift_open_date [17:38:38]req_shift_open_date done [17:38:38]produce_requested_data done [17:38:38]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63845,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [17:38:38]process_action_free close_receipt [17:38:38]json_value_free [17:38:38]json_value_free done [17:38:38]process_json_proto returns [17:38:38]Send response to host [17:38:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63845,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [17:38:38]free response buf [17:38:38]execute_script done [17:38:38]execute_script returns [17:38:38]free content buf [17:38:38]Sock 8.Close socket [17:38:38]Sock 8.Thread stoped [17:38:40]accept exits with 10 [17:38:40]New connection [17:38:40]New thread 3066510692 created [17:38:40]Thread 3066654052 joined [17:38:40]Waiting for new connection... [17:38:40] Sock 10.Parse request [17:38:40]Sock 10.Check first char [17:38:40]Sock 10.First char is OK [17:38:40]request: POST /json_proto HTTP/1.0 [17:38:40]Method: POST [17:38:40]URL: /json_proto [17:38:40]Method is POST - this is cgi request [17:38:40]url: /json_proto [17:38:40]query_string will be loaded in cgi processing [17:38:40]execute_cgi json_proto POST (null) [17:38:40]execute_cgi path=json_proto method=POST [17:38:40]POST find Content-Length [17:38:40]Host: 172.17.60.69:8080 [17:38:40]Content-Length: 622 [17:38:40]Content-Type: application/json [17:38:40] [17:38:40]POST finish read [17:38:40]Found Content-Length = 622 [17:38:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73421", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:38:40]execute_script... [17:38:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73421", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:38:40]POST & json_proto [17:38:40]process_json_proto [17:38:40]json parsed OK: [17:38:40]protocol is kg_v1.0 [17:38:40]action value=close_receipt [17:38:40]process_action close_receipt [17:38:40]cmd_close_receipt [17:38:40]MH_GetDate [17:38:40]Write to MH i2c: F0 00 00 66 00 55 [17:38:40]Write i2c OK [17:38:40]MH_I2C_Read... [17:38:40]Read from MH i2c: F0 [17:38:40]MH_I2C_Read... [17:38:40]Read from MH i2c: F0 09 00 [17:38:40]MH_I2C_Read... [17:38:40]Read from MH i2c: F0 09 00 66 00 00 A0 FF 5D 66 6A 96 4A 66 70 [17:38:40]GetLastDocTimeStamp 1717436315 [17:38:40]current date 1717436320 [17:38:40]FM_GetShiftState [17:38:40]SAM_PROTO_GetShiftState [17:38:40]wFMCommunicate request_size=4 [17:38:40]MH_SAM_APDU [17:38:40]CAPDU: 80 13 01 00 [17:38:40]Write to MH i2c: E2 08 00 67 00 80 13 01 00 00 00 00 00 E4 [17:38:40]Write i2c OK [17:38:40]MH_I2C_Read... [17:38:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:38:40]Read from MH i2c: E2 [17:38:40]MH_I2C_Read... [17:38:40]Read from MH i2c: E2 0E 00 [17:38:40]MH_I2C_Read... [17:38:40]Read from MH i2c: E2 0E 00 67 00 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 B0 [17:38:40]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [17:38:40]wFMCommunicate OK [17:38:40]SAM_PROTO_GetShiftState done [17:38:40]FM_GetShiftState done [17:38:40]opened in 1717373173 [17:38:40]opened+sec_in_day 1717459573 [17:38:40]quantity*price = 14000 [17:38:40]sum+1 = 14001 [17:38:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 104 03.06.2024 17:38 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63846 ФПД: 34592846496789 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T173840&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63846&fm=34592846496789&tin=02508201610067®Number=0000000000092737&sum=14000 0 [17:38:41]StoreToDocumentArchive [17:38:41]shift 373 fd 63846 [17:38:41]save to /storage/0373/doc_00063846 [17:38:41]save last doc name /storage/0373/doc_00063846 to /storage/kkm_last_doc_name [17:38:41]save OK [17:38:41]Clear old archive folders... [17:38:41]ProcessDocumentItem done err = 0, tmpTLVsize=275 [17:38:41]tlvbuf is 003ABC40 [17:38:41]SAM_PROTO_ClearQueue [17:38:41]wFMCommunicate request_size=4 [17:38:41]MH_SAM_APDU [17:38:41]CAPDU: 80 09 00 00 [17:38:41]Write to MH i2c: E2 08 00 74 00 80 09 00 00 00 00 00 00 E6 [17:38:41]Write i2c OK [17:38:41]MH_I2C_Read... [17:38:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:38:41]Read from MH i2c: E2 [17:38:41]MH_I2C_Read... [17:38:41]Read from MH i2c: E2 03 00 [17:38:41]MH_I2C_Read... [17:38:41]Read from MH i2c: E2 03 00 74 00 00 90 00 E8 [17:38:41]RAPDU: 90 00 [17:38:41]wFMCommunicate OK [17:38:41]SAM_PROTO_ClearQueue done [17:38:41]KKMCreateOFDPacket [17:38:41]OFDProtocolAddRootSTLVToBuf [17:38:41]FM_MakeSignedData [17:38:41]FM_MakeSignedData [17:38:41]SAM_PROTO_SignData [17:38:41]wFMCommunicate request_size=4 [17:38:41]MH_SAM_APDU [17:38:41]CAPDU: 80 0D 01 02 [17:38:41]Write to MH i2c: E2 08 00 75 00 80 0D 01 02 00 00 00 00 EE [17:38:41]Write i2c OK [17:38:41]MH_I2C_Read... [17:38:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:38:41]Read from MH i2c: E2 [17:38:41]MH_I2C_Read... [17:38:41]Read from MH i2c: E2 03 00 [17:38:41]MH_I2C_Read... [17:38:41]Read from MH i2c: E2 03 00 75 00 00 90 00 E9 [17:38:41]RAPDU: 90 00 [17:38:41]wFMCommunicate OK [17:38:41]wFMCommunicate request_size=255 [17:38:41]MH_SAM_APDU [17:38:41]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 A0 FF 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 [17:38:41]Write to MH i2c: E2 02 01 76 00 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 A0 FF 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 00 00 C1 [17:38:42]Write i2c OK [17:38:42]MH_I2C_Read... [17:38:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:38:42]Read from MH i2c: E2 [17:38:42]MH_I2C_Read... [17:38:42]Read from MH i2c: E2 03 00 [17:38:42]MH_I2C_Read... [17:38:42]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [17:38:42]RAPDU: 90 00 [17:38:42]wFMCommunicate OK [17:38:42]wFMCommunicate request_size=34 [17:38:42]MH_SAM_APDU [17:38:42]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 66 F9 00 00 35 04 06 00 1F 76 46 53 C4 15 [17:38:42]Write to MH i2c: E2 25 00 77 00 80 0D 02 02 1D 00 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 66 F9 00 00 35 04 06 00 1F 76 46 53 C4 15 00 00 17 [17:38:42]Write i2c OK [17:38:42]MH_I2C_Read... [17:38:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:38:42]Read from MH i2c: E2 [17:38:42]MH_I2C_Read... [17:38:42]Read from MH i2c: E2 03 00 [17:38:42]MH_I2C_Read... [17:38:42]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [17:38:42]RAPDU: 90 00 [17:38:42]wFMCommunicate OK [17:38:42]wFMCommunicate request_size=4 [17:38:42]MH_SAM_APDU [17:38:42]CAPDU: 80 0D 03 02 [17:38:42]Write to MH i2c: E2 08 00 78 00 80 0D 03 02 00 00 00 00 F3 [17:38:42]Write i2c OK [17:38:42]MH_I2C_Read... [17:38:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:38:42]Read from MH i2c: E2 [17:38:42]MH_I2C_Read... [17:38:42]Read from MH i2c: E2 0B 00 [17:38:42]MH_I2C_Read... [17:38:42]Read from MH i2c: E2 0B 00 78 00 00 A2 67 BF D5 AD 41 FF 8D 90 00 0B [17:38:42]RAPDU: A2 67 BF D5 AD 41 FF 8D 90 00 [17:38:42]wFMCommunicate OK [17:38:42]SAM_PROTO_SignData done [17:38:42]FM_MakeSignedData done [17:38:42]CreateOFDProtocolMessage [17:38:42]wFMCommunicate request_size=4 [17:38:42]MH_SAM_APDU [17:38:42]CAPDU: 80 11 00 00 [17:38:42]Write to MH i2c: E2 08 00 79 00 80 11 00 00 00 00 00 00 F3 [17:38:42]Write i2c OK [17:38:42]MH_I2C_Read... [17:38:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:38:42]Read from MH i2c: E2 [17:38:42]MH_I2C_Read... [17:38:42]Read from MH i2c: E2 17 00 [17:38:42]MH_I2C_Read... [17:38:42]Read from MH i2c: E2 17 00 79 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 45 [17:38:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [17:38:42]wFMCommunicate OK [17:38:42]CreateOFDProtocolMessage done [17:38:42]OFDSenderStorePacket 63846 [17:38:42]StoreOFDPacket docnum=63846 [17:38:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 27 01 00 00 C3 E7 1F 01 07 FB 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 A0 FF 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 66 F9 00 00 35 04 06 00 1F 76 46 53 C4 15 A2 67 BF D5 AD 41 FF 8D [17:38:42]CheckFolder [17:38:42]dirname=/storage/ofd_packets [17:38:42]CheckFolder done [17:38:42]ProducePacketName [17:38:42]name=ofd_packets/00063846 [17:38:42]NVStorageSaveData ofd_packets/00063846 [17:38:42]File name is /storage/ofd_packets/00063846 [17:38:42]Write 325 bytes [17:38:42]NVStorageSaveData done [17:38:42]OFDSenderStorePacket done [17:38:42]KKMCreateOFDPacket done [17:38:42]NVStorageSaveData kkm_last_timestamp [17:38:42]File name is /storage/kkm_last_timestamp [17:38:42]Write 4 bytes [17:38:42]NVStorageSaveData done [17:38:42]ExternCall_PrintAddStr [17:38:42]wPrintStart [17:38:42]Write to MH i2c: 01 00 00 7A 00 7A [17:38:42]OFD Sender: Processing packet 63846 [packets to send 14, broken 13] [17:38:42]ProducePacketName [17:38:42]name=ofd_packets/00063846 [17:38:42]OFD Sender: To server: pG, [17:38:42]CommunicateWithHost lk.salyk.kg:30040 [17:38:42]ConnectInit lk.salyk.kg [17:38:42]Write i2c OK [17:38:42]MH_I2C_Read... [17:38:42]Read from MH i2c: 01 [17:38:42]MH_I2C_Read... [17:38:42]Read from MH i2c: 01 07 00 [17:38:42]MH_I2C_Read... [17:38:42]Read from MH i2c: 01 07 00 7A 00 00 00 00 00 00 FF 0F 8F [17:38:42]RasterBufferAndPrint [17:38:42]line Счет N : (3)73421 [17:38:42]line ИНН: 02508201610067 [17:38:42]line Контрольно-Кассовый Чек [17:38:42]line ПРОДАЖА [17:38:42]line Товар: 48743587 [17:38:42]line Сигареты Winston XStyle Silver [17:38:42]line 1.000 * 140.00 [17:38:42]line = 140.00 [17:38:42]line НДС 12% НСП 1% [17:38:42]line > о реализуемом товаре [17:38:42]line ИТОГО: 140.00 [17:38:42]line НСП 1% : 1.24 [17:38:42]line НДС 12% : 14.87 [17:38:42]line Наличными: 140.00 [17:38:42]line Безнал.: 0.00 [17:38:42]line Место: АЗС № 117 "Партнер Нефть" [17:38:42]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [17:38:42]line СНО: Общий режим [17:38:42]line Чек 104 03.06.2024 17:38 [17:38:42]line Смена: 373 ФФД: 1.0 [17:38:42]line ЗНМ: 0300000031 [17:38:42]line РНМ: 0000000000092737 [17:38:42]line Версия ККМ: 001 [17:38:42]line ФМ: 0000000000875074 [17:38:42]line ФД: 63846 [17:38:42]line ФПД: 34592846496789 [17:38:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T173840&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63846&fm=34592846496789&tin=02508201610067®Number=0000000000092737&sum=14000 [17:38:42]line 0 [17:38:42]written 0, free lines is 4095 [17:38:42]Connected sock=9 [17:38:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 27 01 00 00 C3 E7 1F 01 07 FB 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 A0 FF 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 66 F9 00 00 35 04 06 00 1F 76 46 53 C4 15 A2 67 BF D5 AD 41 FF 8D [17:38:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 1D CF 47 00 88 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 35 30 37 34 10 04 04 00 66 F9 00 00 F4 03 04 00 71 AB 5D 66 B6 04 01 00 00 C0 36 79 20 3E 0D 70 EF [17:38:43]CommunicateWithHost err = 0 [17:38:43]CheckOFDResponse [17:38:43]1017 (14) - 77093643461234 [17:38:43]1041 (16) - 0000000000875074 [17:38:43]1040 (4) - 63846 [17:38:43]1012 (4) - 03.06.2024 11:39 [17:38:43]1206 (1) - 0 [17:38:43]OFD Sender: Remove packet 63846 [17:38:43]ProducePacketName [17:38:43]name=ofd_packets/00063846 [17:38:43]NVStorageDeleteData [17:38:43]Write to MH i2c: 01 00 00 A3 00 A3 [17:38:43]Write i2c OK [17:38:43]MH_I2C_Read... [17:38:43]Read from MH i2c: 01 [17:38:43]MH_I2C_Read... [17:38:43]Read from MH i2c: 01 07 00 [17:38:43]MH_I2C_Read... [17:38:43]Read from MH i2c: 01 07 00 A3 00 00 00 00 00 00 D8 0C 8E [17:38:43]RasterBufferAndPrint [17:38:43]line [17:38:43]line [17:38:43]line [17:38:43]line [17:38:43]line [17:38:43]written 0, free lines is 3313 [17:38:43]MH_Cut [17:38:43]Write to MH i2c: D1 01 00 AA 00 01 7C [17:38:43]Write i2c OK [17:38:43]MH_I2C_Read... [17:38:43]Read from MH i2c: D1 [17:38:43]MH_I2C_Read... [17:38:43]Read from MH i2c: D1 01 00 [17:38:43]MH_I2C_Read... [17:38:43]Read from MH i2c: D1 01 00 AA 00 00 7B [17:38:43]Write to MH i2c: 01 00 00 AB 00 AB [17:38:43]Write i2c OK [17:38:43]MH_I2C_Read... [17:38:43]OFD Sender: No OFD packet to send [17:38:43]*** Cut start [17:38:43]*** Partial cut [17:38:43]*** CUTSNS_PIN = 1 [17:38:43]*** CUTSNS_PIN = 0 [17:38:44]*** Brake cut motor [17:38:44]Read from MH i2c: 01 [17:38:44]MH_I2C_Read... [17:38:44]*** Stop cut motor [17:38:44]*** Cut end [17:38:44]Read from MH i2c: 01 07 00 [17:38:44]MH_I2C_Read... [17:38:44]Read from MH i2c: 01 07 00 AB 00 00 00 00 00 00 FF 0F C0 [17:38:44]process_action close_receipt done [17:38:44]requested_data is exist [17:38:44]produce_requested_data [17:38:44]requested_item fm.sn is exist - process it [17:38:44]wFMCommunicate request_size=4 [17:38:44]MH_SAM_APDU [17:38:44]CAPDU: 80 11 00 00 [17:38:44]Write to MH i2c: E2 08 00 AC 00 80 11 00 00 00 00 00 00 26 [17:38:44]Write i2c OK [17:38:44]MH_I2C_Read... [17:38:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:38:44]Read from MH i2c: E2 [17:38:44]MH_I2C_Read... [17:38:44]Read from MH i2c: E2 17 00 [17:38:44]MH_I2C_Read... [17:38:44]Read from MH i2c: E2 17 00 AC 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 78 [17:38:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [17:38:44]wFMCommunicate OK [17:38:44]requested_item fd.num is exist - process it [17:38:44]SAM_PROTO_GetFieldsCounters [17:38:44]wFMCommunicate request_size=4 [17:38:44]MH_SAM_APDU [17:38:44]CAPDU: 80 13 00 00 [17:38:44]Write to MH i2c: E2 08 00 AD 00 80 13 00 00 00 00 00 00 29 [17:38:44]Write i2c OK [17:38:44]MH_I2C_Read... [17:38:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:38:44]Read from MH i2c: E2 [17:38:44]MH_I2C_Read... [17:38:44]Read from MH i2c: E2 62 00 [17:38:44]MH_I2C_Read... [17:38:44]Read from MH i2c: E2 62 00 AD 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 66 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 59 [17:38: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 66 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:38:44]wFMCommunicate OK [17:38:44]SAM_PROTO_GetFieldsCounters done [17:38:44]requested_item shift.num is exist - process it [17:38:44]requested_item shift.opened is exist - process it [17:38:44]req_shift_opened [17:38:44]FM_GetShiftState [17:38:44]SAM_PROTO_GetShiftState [17:38:44]wFMCommunicate request_size=4 [17:38:44]MH_SAM_APDU [17:38:44]CAPDU: 80 13 01 00 [17:38:44]Write to MH i2c: E2 08 00 AE 00 80 13 01 00 00 00 00 00 2B [17:38:44]Write i2c OK [17:38:44]MH_I2C_Read... [17:38:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:38:44]Read from MH i2c: E2 [17:38:44]MH_I2C_Read... [17:38:44]Read from MH i2c: E2 0E 00 [17:38:44]MH_I2C_Read... [17:38:44]Read from MH i2c: E2 0E 00 AE 00 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 F7 [17:38:44]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [17:38:45]wFMCommunicate OK [17:38:45]SAM_PROTO_GetShiftState done [17:38:45]FM_GetShiftState done [17:38:45]req_shift_opened done [17:38:45]requested_item shift.open_date is exist - process it [17:38:45]req_shift_open_date [17:38:45]req_shift_open_date done [17:38:45]produce_requested_data done [17:38:45]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63846,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [17:38:45]process_action_free close_receipt [17:38:45]json_value_free [17:38:45]json_value_free done [17:38:45]process_json_proto returns [17:38:45]Send response to host [17:38:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63846,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [17:38:45]free response buf [17:38:45]execute_script done [17:38:45]execute_script returns [17:38:45]free content buf [17:38:45]Sock 10.Close socket [17:38:45]Sock 10.Thread stoped [17:38:46]accept exits with 8 [17:38:46]New connection [17:38:46]New thread 3066654052 created [17:38:46]Thread 3066510692 joined [17:38:46]Waiting for new connection... [17:38:46] Sock 8.Parse request [17:38:46]Sock 8.Check first char [17:38:46]Sock 8.First char is OK [17:38:46]request: POST /json_proto HTTP/1.0 [17:38:46]Method: POST [17:38:46]URL: /json_proto [17:38:46]Method is POST - this is cgi request [17:38:46]url: /json_proto [17:38:46]query_string will be loaded in cgi processing [17:38:46]execute_cgi json_proto POST (null) [17:38:46]execute_cgi path=json_proto method=POST [17:38:46]POST find Content-Length [17:38:46]Host: 172.17.60.69:8080 [17:38:46]Content-Length: 622 [17:38:46]Content-Type: application/json [17:38:46] [17:38:46]POST finish read [17:38:46]Found Content-Length = 622 [17:38:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73422", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:38:46]execute_script... [17:38:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73422", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:38:46]POST & json_proto [17:38:46]process_json_proto [17:38:46]json parsed OK: [17:38:46]protocol is kg_v1.0 [17:38:46]action value=close_receipt [17:38:46]process_action close_receipt [17:38:46]cmd_close_receipt [17:38:46]MH_GetDate [17:38:46]Write to MH i2c: F0 00 00 AF 00 9E [17:38:46]Write i2c OK [17:38:46]MH_I2C_Read... [17:38:46]Read from MH i2c: F0 [17:38:46]MH_I2C_Read... [17:38:46]Read from MH i2c: F0 09 00 [17:38:46]MH_I2C_Read... [17:38:46]Read from MH i2c: F0 09 00 AF 00 00 A6 FF 5D 66 6A 96 4A 66 BF [17:38:46]GetLastDocTimeStamp 1717436320 [17:38:46]current date 1717436326 [17:38:46]FM_GetShiftState [17:38:46]SAM_PROTO_GetShiftState [17:38:46]wFMCommunicate request_size=4 [17:38:46]MH_SAM_APDU [17:38:46]CAPDU: 80 13 01 00 [17:38:46]Write to MH i2c: E2 08 00 B0 00 80 13 01 00 00 00 00 00 2D [17:38:46]Write i2c OK [17:38:46]MH_I2C_Read... [17:38:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:38:46]Read from MH i2c: E2 [17:38:46]MH_I2C_Read... [17:38:46]Read from MH i2c: E2 0E 00 [17:38:46]MH_I2C_Read... [17:38:46]Read from MH i2c: E2 0E 00 B0 00 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 F9 [17:38:46]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [17:38:46]wFMCommunicate OK [17:38:46]SAM_PROTO_GetShiftState done [17:38:46]FM_GetShiftState done [17:38:46]opened in 1717373173 [17:38:46]opened+sec_in_day 1717459573 [17:38:46]quantity*price = 14000 [17:38:46]sum+1 = 14001 [17:38:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 105 03.06.2024 17:38 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63847 ФПД: 143268551632817 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T173846&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63847&fm=143268551632817&tin=02508201610067®Number=0000000000092737&sum=14000 0 [17:38:47]StoreToDocumentArchive [17:38:47]shift 373 fd 63847 [17:38:47]save to /storage/0373/doc_00063847 [17:38:47]save last doc name /storage/0373/doc_00063847 to /storage/kkm_last_doc_name [17:38:47]save OK [17:38:47]Clear old archive folders... [17:38:47]ProcessDocumentItem done err = 0, tmpTLVsize=275 [17:38:47]tlvbuf is 00355C90 [17:38:47]SAM_PROTO_ClearQueue [17:38:47]wFMCommunicate request_size=4 [17:38:47]MH_SAM_APDU [17:38:47]CAPDU: 80 09 00 00 [17:38:47]Write to MH i2c: E2 08 00 BD 00 80 09 00 00 00 00 00 00 2F [17:38:47]Write i2c OK [17:38:47]MH_I2C_Read... [17:38:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:38:47]Read from MH i2c: E2 [17:38:47]MH_I2C_Read... [17:38:47]Read from MH i2c: E2 03 00 [17:38:47]MH_I2C_Read... [17:38:47]Read from MH i2c: E2 03 00 BD 00 00 90 00 31 [17:38:47]RAPDU: 90 00 [17:38:47]wFMCommunicate OK [17:38:47]SAM_PROTO_ClearQueue done [17:38:47]KKMCreateOFDPacket [17:38:47]OFDProtocolAddRootSTLVToBuf [17:38:47]FM_MakeSignedData [17:38:47]FM_MakeSignedData [17:38:47]SAM_PROTO_SignData [17:38:47]wFMCommunicate request_size=4 [17:38:47]MH_SAM_APDU [17:38:47]CAPDU: 80 0D 01 02 [17:38:47]Write to MH i2c: E2 08 00 BE 00 80 0D 01 02 00 00 00 00 37 [17:38:47]Write i2c OK [17:38:47]MH_I2C_Read... [17:38:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:38:47]Read from MH i2c: E2 [17:38:47]MH_I2C_Read... [17:38:47]Read from MH i2c: E2 03 00 [17:38:47]MH_I2C_Read... [17:38:47]Read from MH i2c: E2 03 00 BE 00 00 90 00 32 [17:38:47]RAPDU: 90 00 [17:38:47]wFMCommunicate OK [17:38:47]wFMCommunicate request_size=255 [17:38:47]MH_SAM_APDU [17:38:47]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 A6 FF 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 [17:38:47]Write to MH i2c: E2 02 01 BF 00 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 A6 FF 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 00 00 11 [17:38:47]Write i2c OK [17:38:47]MH_I2C_Read... [17:38:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:38:48]Read from MH i2c: E2 [17:38:48]MH_I2C_Read... [17:38:48]Read from MH i2c: E2 03 00 [17:38:48]MH_I2C_Read... [17:38:48]Read from MH i2c: E2 03 00 BF 00 00 90 00 33 [17:38:48]RAPDU: 90 00 [17:38:48]wFMCommunicate OK [17:38:48]wFMCommunicate request_size=34 [17:38:48]MH_SAM_APDU [17:38:48]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 67 F9 00 00 35 04 06 00 82 4D 4F 20 A7 B1 [17:38:48]Write to MH i2c: E2 25 00 C0 00 80 0D 02 02 1D 00 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 67 F9 00 00 35 04 06 00 82 4D 4F 20 A7 B1 00 00 F0 [17:38:48]Write i2c OK [17:38:48]MH_I2C_Read... [17:38:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:38:48]Read from MH i2c: E2 [17:38:48]MH_I2C_Read... [17:38:48]Read from MH i2c: E2 03 00 [17:38:48]MH_I2C_Read... [17:38:48]Read from MH i2c: E2 03 00 C0 00 00 90 00 34 [17:38:48]RAPDU: 90 00 [17:38:48]wFMCommunicate OK [17:38:48]wFMCommunicate request_size=4 [17:38:48]MH_SAM_APDU [17:38:48]CAPDU: 80 0D 03 02 [17:38:48]Write to MH i2c: E2 08 00 C1 00 80 0D 03 02 00 00 00 00 3C [17:38:48]Write i2c OK [17:38:48]MH_I2C_Read... [17:38:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:38:48]Read from MH i2c: E2 [17:38:48]MH_I2C_Read... [17:38:48]Read from MH i2c: E2 0B 00 [17:38:48]MH_I2C_Read... [17:38:48]Read from MH i2c: E2 0B 00 C1 00 00 2A A3 A3 06 03 7E D4 72 90 00 7A [17:38:48]RAPDU: 2A A3 A3 06 03 7E D4 72 90 00 [17:38:48]wFMCommunicate OK [17:38:48]SAM_PROTO_SignData done [17:38:48]FM_MakeSignedData done [17:38:48]CreateOFDProtocolMessage [17:38:48]wFMCommunicate request_size=4 [17:38:48]MH_SAM_APDU [17:38:48]CAPDU: 80 11 00 00 [17:38:48]Write to MH i2c: E2 08 00 C2 00 80 11 00 00 00 00 00 00 3C [17:38:48]Write i2c OK [17:38:48]MH_I2C_Read... [17:38:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:38:48]Read from MH i2c: E2 [17:38:48]MH_I2C_Read... [17:38:48]Read from MH i2c: E2 17 00 [17:38:48]MH_I2C_Read... [17:38:48]Read from MH i2c: E2 17 00 C2 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 8E [17:38:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [17:38:48]wFMCommunicate OK [17:38:48]CreateOFDProtocolMessage done [17:38:48]OFDSenderStorePacket 63847 [17:38:48]StoreOFDPacket docnum=63847 [17:38:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 27 01 00 00 1F 85 1F 01 6B A4 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 A6 FF 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 67 F9 00 00 35 04 06 00 82 4D 4F 20 A7 B1 2A A3 A3 06 03 7E D4 72 [17:38:48]CheckFolder [17:38:48]dirname=/storage/ofd_packets [17:38:48]CheckFolder done [17:38:48]ProducePacketName [17:38:48]name=ofd_packets/00063847 [17:38:48]NVStorageSaveData ofd_packets/00063847 [17:38:48]File name is /storage/ofd_packets/00063847 [17:38:48]Write 325 bytes [17:38:48]NVStorageSaveData done [17:38:48]OFDSenderStorePacket done [17:38:48]KKMCreateOFDPacket done [17:38:48]NVStorageSaveData kkm_last_timestamp [17:38:48]File name is /storage/kkm_last_timestamp [17:38:48]Write 4 bytes [17:38:48]NVStorageSaveData done [17:38:48]ExternCall_PrintAddStr [17:38:48]wPrintStart [17:38:48]Write to MH i2c: 01 00 00 C3 00 C3 [17:38:48]Write i2c OK [17:38:48]MH_I2C_Read... [17:38:48]Read from MH i2c: 01 [17:38:48]MH_I2C_Read... [17:38:48]Read from MH i2c: 01 07 00 [17:38:48]MH_I2C_Read... [17:38:48]Read from MH i2c: 01 07 00 C3 00 00 00 00 00 00 FF 0F D8 [17:38:48]RasterBufferAndPrint [17:38:48]line Счет N : (3)73422 [17:38:48]line ИНН: 02508201610067 [17:38:48]line Контрольно-Кассовый Чек [17:38:48]line ПРОДАЖА [17:38:48]line Товар: 48743587 [17:38:48]line Сигареты Winston XStyle Silver [17:38:48]line 1.000 * 140.00 [17:38:48]line = 140.00 [17:38:48]line НДС 12% НСП 1% [17:38:48]line > о реализуемом товаре [17:38:48]line ИТОГО: 140.00 [17:38:48]line НСП 1% : 1.24 [17:38:48]line НДС 12% : 14.87 [17:38:48]line Наличными: 140.00 [17:38:48]line Безнал.: 0.00 [17:38:48]line Место: АЗС № 117 "Партнер Нефть" [17:38:48]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [17:38:48]line СНО: Общий режим [17:38:48]line Чек 105 03.06.2024 17:38 [17:38:48]line Смена: 373 ФФД: 1.0 [17:38:48]line ЗНМ: 0300000031 [17:38:48]line РНМ: 0000000000092737 [17:38:48]line Версия ККМ: 001 [17:38:48]line ФМ: 0000000000875074 [17:38:48]line ФД: 63847 [17:38:48]line ФПД: 143268551632817 [17:38:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T173846&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63847&fm=143268551632817&tin=02508201610067®Number=0000000000092737&sum=14000 [17:38:48]line 0 [17:38:48]written 0, free lines is 4095 [17:38:48]OFD Sender: Processing packet 63847 [packets to send 14, broken 13] [17:38:48]ProducePacketName [17:38:48]name=ofd_packets/00063847 [17:38:48]OFD Sender: To server: pG, [17:38:48]CommunicateWithHost lk.salyk.kg:30040 [17:38:48]ConnectInit lk.salyk.kg [17:38:48]Connected sock=10 [17:38:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 27 01 00 00 1F 85 1F 01 6B A4 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 A6 FF 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 67 F9 00 00 35 04 06 00 82 4D 4F 20 A7 B1 2A A3 A3 06 03 7E D4 72 [17:38:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 D8 A9 47 00 4A 4F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 67 F9 00 00 F4 03 04 00 77 AB 5D 66 B6 04 01 00 00 01 D8 CF 62 80 47 D3 B5 [17:38:49]CommunicateWithHost err = 0 [17:38:49]CheckOFDResponse [17:38:49]1017 (14) - 77093643461234 [17:38:49]1041 (16) - 0000000000875074 [17:38:49]1040 (4) - 63847 [17:38:49]1012 (4) - 03.06.2024 11:39 [17:38:49]1206 (1) - 0 [17:38:49]OFD Sender: Remove packet 63847 [17:38:49]ProducePacketName [17:38:49]name=ofd_packets/00063847 [17:38:49]NVStorageDeleteData [17:38:49]Write to MH i2c: 01 00 00 EC 00 EC [17:38:49]Write i2c OK [17:38:49]MH_I2C_Read... [17:38:49]Read from MH i2c: 01 [17:38:49]MH_I2C_Read... [17:38:49]Read from MH i2c: 01 07 00 [17:38:49]MH_I2C_Read... [17:38:49]Read from MH i2c: 01 07 00 EC 00 00 00 00 00 00 83 0D 83 [17:38:49]RasterBufferAndPrint [17:38:49]line [17:38:49]line [17:38:49]line [17:38:49]line [17:38:49]line [17:38:49]written 0, free lines is 3487 [17:38:49]MH_Cut [17:38:49]Write to MH i2c: D1 01 00 F3 00 01 C5 [17:38:49]Write i2c OK [17:38:49]MH_I2C_Read... [17:38:49]Read from MH i2c: D1 [17:38:49]MH_I2C_Read... [17:38:49]Read from MH i2c: D1 01 00 [17:38:49]MH_I2C_Read... [17:38:49]Read from MH i2c: D1 01 00 F3 00 00 C4 [17:38:49]Write to MH i2c: 01 00 00 F4 00 F4 [17:38:49]Write i2c OK [17:38:49]MH_I2C_Read... [17:38:49]OFD Sender: No OFD packet to send [17:38:49]*** Cut start [17:38:49]*** Partial cut [17:38:49]*** CUTSNS_PIN = 1 [17:38:49]*** CUTSNS_PIN = 0 [17:38:50]*** Brake cut motor [17:38:50]Read from MH i2c: 01 [17:38:50]MH_I2C_Read... [17:38:50]*** Stop cut motor [17:38:50]*** Cut end [17:38:50]Read from MH i2c: 01 07 00 [17:38:50]MH_I2C_Read... [17:38:50]Read from MH i2c: 01 07 00 F4 00 00 00 00 00 00 FF 0F 09 [17:38:50]process_action close_receipt done [17:38:50]requested_data is exist [17:38:50]produce_requested_data [17:38:50]requested_item fm.sn is exist - process it [17:38:50]wFMCommunicate request_size=4 [17:38:50]MH_SAM_APDU [17:38:50]CAPDU: 80 11 00 00 [17:38:50]Write to MH i2c: E2 08 00 F5 00 80 11 00 00 00 00 00 00 6F [17:38:50]Write i2c OK [17:38:50]MH_I2C_Read... [17:38:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:38:50]Read from MH i2c: E2 [17:38:50]MH_I2C_Read... [17:38:50]Read from MH i2c: E2 17 00 [17:38:50]MH_I2C_Read... [17:38:50]Read from MH i2c: E2 17 00 F5 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 C1 [17:38:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [17:38:50]wFMCommunicate OK [17:38:50]requested_item fd.num is exist - process it [17:38:50]SAM_PROTO_GetFieldsCounters [17:38:50]wFMCommunicate request_size=4 [17:38:50]MH_SAM_APDU [17:38:50]CAPDU: 80 13 00 00 [17:38:50]Write to MH i2c: E2 08 00 F6 00 80 13 00 00 00 00 00 00 72 [17:38:50]Write i2c OK [17:38:50]MH_I2C_Read... [17:38:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:38:50]Read from MH i2c: E2 [17:38:50]MH_I2C_Read... [17:38:50]Read from MH i2c: E2 62 00 [17:38:50]MH_I2C_Read... [17:38:50]Read from MH i2c: E2 62 00 F6 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 67 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 A6 [17:38: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 67 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:38:50]wFMCommunicate OK [17:38:50]SAM_PROTO_GetFieldsCounters done [17:38:50]requested_item shift.num is exist - process it [17:38:50]requested_item shift.opened is exist - process it [17:38:50]req_shift_opened [17:38:50]FM_GetShiftState [17:38:50]SAM_PROTO_GetShiftState [17:38:50]wFMCommunicate request_size=4 [17:38:50]MH_SAM_APDU [17:38:50]CAPDU: 80 13 01 00 [17:38:50]Write to MH i2c: E2 08 00 F7 00 80 13 01 00 00 00 00 00 74 [17:38:50]Write i2c OK [17:38:50]MH_I2C_Read... [17:38:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:38:50]Read from MH i2c: E2 [17:38:50]MH_I2C_Read... [17:38:50]Read from MH i2c: E2 0E 00 [17:38:50]MH_I2C_Read... [17:38:50]Read from MH i2c: E2 0E 00 F7 00 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 40 [17:38:50]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [17:38:50]wFMCommunicate OK [17:38:50]SAM_PROTO_GetShiftState done [17:38:50]FM_GetShiftState done [17:38:50]req_shift_opened done [17:38:50]requested_item shift.open_date is exist - process it [17:38:50]req_shift_open_date [17:38:50]req_shift_open_date done [17:38:50]produce_requested_data done [17:38:50]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63847,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [17:38:50]process_action_free close_receipt [17:38:50]json_value_free [17:38:50]json_value_free done [17:38:50]process_json_proto returns [17:38:50]Send response to host [17:38:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63847,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [17:38:50]free response buf [17:38:50]execute_script done [17:38:50]execute_script returns [17:38:50]free content buf [17:38:50]Sock 8.Close socket [17:38:50]Sock 8.Thread stoped [17:38:52]accept exits with 9 [17:38:52]New connection [17:38:52]New thread 3066510692 created [17:38:52]Thread 3066654052 joined [17:38:52]Waiting for new connection... [17:38:52] Sock 9.Parse request [17:38:52]Sock 9.Check first char [17:38:52]Sock 9.First char is OK [17:38:52]request: POST /json_proto HTTP/1.0 [17:38:52]Method: POST [17:38:52]URL: /json_proto [17:38:52]Method is POST - this is cgi request [17:38:52]url: /json_proto [17:38:52]query_string will be loaded in cgi processing [17:38:52]execute_cgi json_proto POST (null) [17:38:52]execute_cgi path=json_proto method=POST [17:38:52]POST find Content-Length [17:38:52]Host: 172.17.60.69:8080 [17:38:52]Content-Length: 653 [17:38:52]Content-Type: application/json [17:38:52] [17:38:52]POST finish read [17:38:52]Found Content-Length = 653 [17:38:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73423", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:38:52]execute_script... [17:38:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73423", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:38:52]POST & json_proto [17:38:52]process_json_proto [17:38:52]json parsed OK: [17:38:52]protocol is kg_v1.0 [17:38:52]action value=close_receipt [17:38:52]process_action close_receipt [17:38:52]cmd_close_receipt [17:38:52]MH_GetDate [17:38:52]Write to MH i2c: F0 00 00 F8 00 E7 [17:38:52]Write i2c OK [17:38:52]MH_I2C_Read... [17:38:52]Read from MH i2c: F0 [17:38:52]MH_I2C_Read... [17:38:52]Read from MH i2c: F0 09 00 [17:38:52]MH_I2C_Read... [17:38:52]Read from MH i2c: F0 09 00 F8 00 00 AC FF 5D 66 6A 96 4A 66 0E [17:38:52]GetLastDocTimeStamp 1717436326 [17:38:52]current date 1717436332 [17:38:52]FM_GetShiftState [17:38:52]SAM_PROTO_GetShiftState [17:38:52]wFMCommunicate request_size=4 [17:38:52]MH_SAM_APDU [17:38:52]CAPDU: 80 13 01 00 [17:38:52]Write to MH i2c: E2 08 00 F9 00 80 13 01 00 00 00 00 00 76 [17:38:52]Write i2c OK [17:38:52]MH_I2C_Read... [17:38:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:38:52]Read from MH i2c: E2 [17:38:52]MH_I2C_Read... [17:38:52]Read from MH i2c: E2 0E 00 [17:38:52]MH_I2C_Read... [17:38:52]Read from MH i2c: E2 0E 00 F9 00 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 42 [17:38:52]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [17:38:52]wFMCommunicate OK [17:38:52]SAM_PROTO_GetShiftState done [17:38:52]FM_GetShiftState done [17:38:52]opened in 1717373173 [17:38:52]opened+sec_in_day 1717459573 [17:38:52]quantity*price = 9500 [17:38:52]sum+1 = 9501 [17:38:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 95.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 106 03.06.2024 17:38 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63848 ФПД: 58956266566402 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T173852&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63848&fm=58956266566402&tin=02508201610067®Number=0000000000092737&sum=9500 0 [17:38:53]StoreToDocumentArchive [17:38:53]shift 373 fd 63848 [17:38:53]save to /storage/0373/doc_00063848 [17:38:53]save last doc name /storage/0373/doc_00063848 to /storage/kkm_last_doc_name [17:38:53]save OK [17:38:53]Clear old archive folders... [17:38:53]ProcessDocumentItem done err = 0, tmpTLVsize=293 [17:38:53]tlvbuf is 00387A70 [17:38:53]SAM_PROTO_ClearQueue [17:38:53]wFMCommunicate request_size=4 [17:38:53]MH_SAM_APDU [17:38:53]CAPDU: 80 09 00 00 [17:38:53]Write to MH i2c: E2 08 00 06 01 80 09 00 00 00 00 00 00 79 [17:38:53]Write i2c OK [17:38:53]MH_I2C_Read... [17:38:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:38:53]Read from MH i2c: E2 [17:38:53]MH_I2C_Read... [17:38:53]Read from MH i2c: E2 03 00 [17:38:53]MH_I2C_Read... [17:38:53]Read from MH i2c: E2 03 00 06 01 00 90 00 7B [17:38:53]RAPDU: 90 00 [17:38:53]wFMCommunicate OK [17:38:53]SAM_PROTO_ClearQueue done [17:38:53]KKMCreateOFDPacket [17:38:53]OFDProtocolAddRootSTLVToBuf [17:38:53]FM_MakeSignedData [17:38:53]FM_MakeSignedData [17:38:53]SAM_PROTO_SignData [17:38:53]wFMCommunicate request_size=4 [17:38:53]MH_SAM_APDU [17:38:53]CAPDU: 80 0D 01 02 [17:38:53]Write to MH i2c: E2 08 00 07 01 80 0D 01 02 00 00 00 00 81 [17:38:53]Write i2c OK [17:38:53]MH_I2C_Read... [17:38:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:38:53]Read from MH i2c: E2 [17:38:53]MH_I2C_Read... [17:38:53]Read from MH i2c: E2 03 00 [17:38:53]MH_I2C_Read... [17:38:53]Read from MH i2c: E2 03 00 07 01 00 90 00 7C [17:38:53]RAPDU: 90 00 [17:38:53]wFMCommunicate OK [17:38:53]wFMCommunicate request_size=255 [17:38:53]MH_SAM_APDU [17:38:53]CAPDU: 80 0D 02 02 FA 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 AC FF 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [17:38:53]Write to MH i2c: E2 02 01 08 01 80 0D 02 02 FA 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 AC FF 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 6F [17:38:54]Write i2c OK [17:38:54]MH_I2C_Read... [17:38:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:38:54]Read from MH i2c: E2 [17:38:54]MH_I2C_Read... [17:38:54]Read from MH i2c: E2 03 00 [17:38:54]MH_I2C_Read... [17:38:54]Read from MH i2c: E2 03 00 08 01 00 90 00 7D [17:38:54]RAPDU: 90 00 [17:38:54]wFMCommunicate OK [17:38:54]wFMCommunicate request_size=52 [17:38:54]MH_SAM_APDU [17:38:54]CAPDU: 80 0D 02 02 2F 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 68 F9 00 00 35 04 06 00 35 9E D3 53 73 02 [17:38:54]Write to MH i2c: E2 37 00 09 01 80 0D 02 02 2F 00 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 68 F9 00 00 35 04 06 00 35 9E D3 53 73 02 00 00 18 [17:38:54]Write i2c OK [17:38:54]MH_I2C_Read... [17:38:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:38:54]Read from MH i2c: E2 [17:38:54]MH_I2C_Read... [17:38:54]Read from MH i2c: E2 03 00 [17:38:54]MH_I2C_Read... [17:38:54]Read from MH i2c: E2 03 00 09 01 00 90 00 7E [17:38:54]RAPDU: 90 00 [17:38:54]wFMCommunicate OK [17:38:54]wFMCommunicate request_size=4 [17:38:54]MH_SAM_APDU [17:38:54]CAPDU: 80 0D 03 02 [17:38:54]Write to MH i2c: E2 08 00 0A 01 80 0D 03 02 00 00 00 00 86 [17:38:54]Write i2c OK [17:38:54]MH_I2C_Read... [17:38:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:38:54]Read from MH i2c: E2 [17:38:54]MH_I2C_Read... [17:38:54]Read from MH i2c: E2 0B 00 [17:38:54]MH_I2C_Read... [17:38:54]Read from MH i2c: E2 0B 00 0A 01 00 F0 2C DE 33 FA F4 FC FC 90 00 9A [17:38:54]RAPDU: F0 2C DE 33 FA F4 FC FC 90 00 [17:38:54]wFMCommunicate OK [17:38:54]SAM_PROTO_SignData done [17:38:54]FM_MakeSignedData done [17:38:54]CreateOFDProtocolMessage [17:38:54]wFMCommunicate request_size=4 [17:38:54]MH_SAM_APDU [17:38:54]CAPDU: 80 11 00 00 [17:38:54]Write to MH i2c: E2 08 00 0B 01 80 11 00 00 00 00 00 00 86 [17:38:54]Write i2c OK [17:38:54]MH_I2C_Read... [17:38:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:38:54]Read from MH i2c: E2 [17:38:54]MH_I2C_Read... [17:38:54]Read from MH i2c: E2 17 00 [17:38:54]MH_I2C_Read... [17:38:54]Read from MH i2c: E2 17 00 0B 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 D8 [17:38:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [17:38:54]wFMCommunicate OK [17:38:54]CreateOFDProtocolMessage done [17:38:54]OFDSenderStorePacket 63848 [17:38:54]StoreOFDPacket docnum=63848 [17:38:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 39 01 00 00 09 CC 31 01 6B D6 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 AC FF 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 68 F9 00 00 35 04 06 00 35 9E D3 53 73 02 F0 2C DE 33 FA F4 FC FC [17:38:54]CheckFolder [17:38:54]dirname=/storage/ofd_packets [17:38:54]CheckFolder done [17:38:54]ProducePacketName [17:38:54]name=ofd_packets/00063848 [17:38:54]NVStorageSaveData ofd_packets/00063848 [17:38:54]File name is /storage/ofd_packets/00063848 [17:38:54]OFD Sender: No OFD packet to send [17:38:54]Write 343 bytes [17:38:54]NVStorageSaveData done [17:38:54]OFDSenderStorePacket done [17:38:54]KKMCreateOFDPacket done [17:38:54]NVStorageSaveData kkm_last_timestamp [17:38:54]File name is /storage/kkm_last_timestamp [17:38:54]Write 4 bytes [17:38:54]NVStorageSaveData done [17:38:54]ExternCall_PrintAddStr [17:38:54]wPrintStart [17:38:54]Write to MH i2c: 01 00 00 0C 01 0D [17:38:54]Write i2c OK [17:38:54]MH_I2C_Read... [17:38:54]Read from MH i2c: 01 [17:38:54]MH_I2C_Read... [17:38:54]Read from MH i2c: 01 07 00 [17:38:54]MH_I2C_Read... [17:38:54]Read from MH i2c: 01 07 00 0C 01 00 00 00 00 00 FF 0F 22 [17:38:54]RasterBufferAndPrint [17:38:54]line Счет N : (3)73423 [17:38:54]line ИНН: 02508201610067 [17:38:54]line Контрольно-Кассовый Чек [17:38:54]line ПРОДАЖА [17:38:54]line Товар: 4700000480050 [17:38:54]line Напиток Nitro Energy эн green ж/б 0,45л [17:38:54]line 1.000 * 95.00 [17:38:54]line = 95.00 [17:38:54]line НДС 12% НСП 1% [17:38:54]line > о реализуемом товаре [17:38:54]line ИТОГО: 95.00 [17:38:54]line НСП 1% : 0.84 [17:38:54]line НДС 12% : 10.09 [17:38:54]line Наличными: 95.00 [17:38:54]line Безнал.: 0.00 [17:38:54]line Место: АЗС № 117 "Партнер Нефть" [17:38:54]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [17:38:54]line СНО: Общий режим [17:38:54]line Чек 106 03.06.2024 17:38 [17:38:54]line Смена: 373 ФФД: 1.0 [17:38:54]line ЗНМ: 0300000031 [17:38:54]line РНМ: 0000000000092737 [17:38:54]line Версия ККМ: 001 [17:38:54]line ФМ: 0000000000875074 [17:38:54]line ФД: 63848 [17:38:54]line ФПД: 58956266566402 [17:38:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T173852&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63848&fm=58956266566402&tin=02508201610067®Number=0000000000092737&sum=9500 [17:38:54]line 0 [17:38:54]written 0, free lines is 4095 [17:38:54]OFD Sender: Processing packet 63848 [packets to send 14, broken 13] [17:38:54]ProducePacketName [17:38:54]name=ofd_packets/00063848 [17:38:54]OFD Sender: To server: pG, [17:38:54]CommunicateWithHost lk.salyk.kg:30040 [17:38:54]ConnectInit lk.salyk.kg [17:38:54]Connected sock=10 [17:38:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 39 01 00 00 09 CC 31 01 6B D6 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 AC FF 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 68 F9 00 00 35 04 06 00 35 9E D3 53 73 02 F0 2C DE 33 FA F4 FC FC [17:38:55]Write to MH i2c: 01 00 00 35 01 36 [17:38:55]Write i2c OK [17:38:55]MH_I2C_Read... [17:38:55]Read from MH i2c: 01 [17:38:55]MH_I2C_Read... [17:38:55]Read from MH i2c: 01 07 00 [17:38:55]MH_I2C_Read... [17:38:55]Read from MH i2c: 01 07 00 35 01 00 00 00 00 00 F4 0C 3D [17:38:55]RasterBufferAndPrint [17:38:55]line [17:38:55]line [17:38:55]line [17:38:55]line [17:38:55]line [17:38:55]written 0, free lines is 3351 [17:38:55]MH_Cut [17:38:55]Write to MH i2c: D1 01 00 3C 01 01 0F [17:38:55]Write i2c OK [17:38:55]MH_I2C_Read... [17:38:55]Read from MH i2c: D1 [17:38:55]MH_I2C_Read... [17:38:55]Read from MH i2c: D1 01 00 [17:38:55]MH_I2C_Read... [17:38:55]Read from MH i2c: D1 01 00 3C 01 00 0E [17:38:55]Write to MH i2c: 01 00 00 3D 01 3E [17:38:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 F7 49 47 00 4B 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 35 30 37 34 10 04 04 00 68 F9 00 00 F4 03 04 00 7D AB 5D 66 B6 04 01 00 00 BD 1D 3C 44 21 34 16 28 [17:38:55]CommunicateWithHost err = 0 [17:38:55]CheckOFDResponse [17:38:55]1017 (14) - 77093643461234 [17:38:55]1041 (16) - 0000000000875074 [17:38:55]1040 (4) - 63848 [17:38:55]1012 (4) - 03.06.2024 11:39 [17:38:55]1206 (1) - 0 [17:38:55]OFD Sender: Remove packet 63848 [17:38:55]ProducePacketName [17:38:55]name=ofd_packets/00063848 [17:38:55]NVStorageDeleteData [17:38:55]Write i2c OK [17:38:55]MH_I2C_Read... [17:38:55]OFD Sender: No OFD packet to send [17:38:55]*** Cut start [17:38:55]*** Partial cut [17:38:55]*** CUTSNS_PIN = 1 [17:38:55]*** CUTSNS_PIN = 0 [17:38:56]*** Brake cut motor [17:38:56]Read from MH i2c: 01 [17:38:56]MH_I2C_Read... [17:38:56]*** Stop cut motor [17:38:56]*** Cut end [17:38:56]Read from MH i2c: 01 07 00 [17:38:56]MH_I2C_Read... [17:38:56]Read from MH i2c: 01 07 00 3D 01 00 00 00 00 00 FF 0F 53 [17:38:56]process_action close_receipt done [17:38:56]requested_data is exist [17:38:56]produce_requested_data [17:38:56]requested_item fm.sn is exist - process it [17:38:56]wFMCommunicate request_size=4 [17:38:56]MH_SAM_APDU [17:38:56]CAPDU: 80 11 00 00 [17:38:56]Write to MH i2c: E2 08 00 3E 01 80 11 00 00 00 00 00 00 B9 [17:38:56]Write i2c OK [17:38:56]MH_I2C_Read... [17:38:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:38:56]Read from MH i2c: E2 [17:38:56]MH_I2C_Read... [17:38:56]Read from MH i2c: E2 17 00 [17:38:56]MH_I2C_Read... [17:38:56]Read from MH i2c: E2 17 00 3E 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 0B [17:38:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [17:38:56]wFMCommunicate OK [17:38:56]requested_item fd.num is exist - process it [17:38:56]SAM_PROTO_GetFieldsCounters [17:38:56]wFMCommunicate request_size=4 [17:38:56]MH_SAM_APDU [17:38:56]CAPDU: 80 13 00 00 [17:38:56]Write to MH i2c: E2 08 00 3F 01 80 13 00 00 00 00 00 00 BC [17:38:56]Write i2c OK [17:38:56]MH_I2C_Read... [17:38:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:38:56]Read from MH i2c: E2 [17:38:56]MH_I2C_Read... [17:38:56]Read from MH i2c: E2 62 00 [17:38:56]MH_I2C_Read... [17:38:56]Read from MH i2c: E2 62 00 3F 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 68 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 F4 [17:38:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 68 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:38:56]wFMCommunicate OK [17:38:56]SAM_PROTO_GetFieldsCounters done [17:38:56]requested_item shift.num is exist - process it [17:38:56]requested_item shift.opened is exist - process it [17:38:56]req_shift_opened [17:38:56]FM_GetShiftState [17:38:56]SAM_PROTO_GetShiftState [17:38:56]wFMCommunicate request_size=4 [17:38:56]MH_SAM_APDU [17:38:56]CAPDU: 80 13 01 00 [17:38:56]Write to MH i2c: E2 08 00 40 01 80 13 01 00 00 00 00 00 BE [17:38:56]Write i2c OK [17:38:56]MH_I2C_Read... [17:38:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:38:57]Read from MH i2c: E2 [17:38:57]MH_I2C_Read... [17:38:57]Read from MH i2c: E2 0E 00 [17:38:57]MH_I2C_Read... [17:38:57]Read from MH i2c: E2 0E 00 40 01 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 8A [17:38:57]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [17:38:57]wFMCommunicate OK [17:38:57]SAM_PROTO_GetShiftState done [17:38:57]FM_GetShiftState done [17:38:57]req_shift_opened done [17:38:57]requested_item shift.open_date is exist - process it [17:38:57]req_shift_open_date [17:38:57]req_shift_open_date done [17:38:57]produce_requested_data done [17:38:57]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63848,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [17:38:57]process_action_free close_receipt [17:38:57]json_value_free [17:38:57]json_value_free done [17:38:57]process_json_proto returns [17:38:57]Send response to host [17:38:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63848,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [17:38:57]free response buf [17:38:57]execute_script done [17:38:57]execute_script returns [17:38:57]free content buf [17:38:57]Sock 9.Close socket [17:38:57]Sock 9.Thread stoped [17:38:58]accept exits with 8 [17:38:58]New connection [17:38:58]New thread 3066654052 created [17:38:58]Thread 3066510692 joined [17:38:58]Waiting for new connection... [17:38:58] Sock 8.Parse request [17:38:58]Sock 8.Check first char [17:38:58]Sock 8.First char is OK [17:38:58]request: POST /json_proto HTTP/1.0 [17:38:58]Method: POST [17:38:58]URL: /json_proto [17:38:58]Method is POST - this is cgi request [17:38:58]url: /json_proto [17:38:58]query_string will be loaded in cgi processing [17:38:58]execute_cgi json_proto POST (null) [17:38:58]execute_cgi path=json_proto method=POST [17:38:58]POST find Content-Length [17:38:58]Host: 172.17.60.69:8080 [17:38:58]Content-Length: 645 [17:38:58]Content-Type: application/json [17:38:58] [17:38:58]POST finish read [17:38:58]Found Content-Length = 645 [17:38:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73424", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:38:58]execute_script... [17: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 : (3)73424", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:38:58]POST & json_proto [17:38:58]process_json_proto [17:38:58]json parsed OK: [17:38:58]protocol is kg_v1.0 [17:38:58]action value=close_receipt [17:38:58]process_action close_receipt [17:38:58]cmd_close_receipt [17:38:58]MH_GetDate [17:38:58]Write to MH i2c: F0 00 00 41 01 31 [17:38:58]Write i2c OK [17:38:58]MH_I2C_Read... [17:38:58]Read from MH i2c: F0 [17:38:58]MH_I2C_Read... [17:38:58]Read from MH i2c: F0 09 00 [17:38:58]MH_I2C_Read... [17:38:58]Read from MH i2c: F0 09 00 41 01 00 B2 FF 5D 66 6A 96 4A 66 5E [17:38:58]GetLastDocTimeStamp 1717436332 [17:38:58]current date 1717436338 [17:38:58]FM_GetShiftState [17:38:58]SAM_PROTO_GetShiftState [17:38:58]wFMCommunicate request_size=4 [17:38:58]MH_SAM_APDU [17:38:58]CAPDU: 80 13 01 00 [17:38:58]Write to MH i2c: E2 08 00 42 01 80 13 01 00 00 00 00 00 C0 [17:38:58]Write i2c OK [17:38:58]MH_I2C_Read... [17:38:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:38:58]Read from MH i2c: E2 [17:38:58]MH_I2C_Read... [17:38:58]Read from MH i2c: E2 0E 00 [17:38:58]MH_I2C_Read... [17:38:58]Read from MH i2c: E2 0E 00 42 01 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 8C [17:38:58]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [17:38:58]wFMCommunicate OK [17:38:58]SAM_PROTO_GetShiftState done [17:38:58]FM_GetShiftState done [17:38:58]opened in 1717373173 [17:38:58]opened+sec_in_day 1717459573 [17:38:58]quantity*price = 12500 [17:38:58]sum+1 = 12501 [17:38:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 125.00 НСП 1% : 1.11 НДС 12% : 13.27 Наличными: 125.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 107 03.06.2024 17:38 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63849 ФПД: 171943687749310 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T173858&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63849&fm=171943687749310&tin=02508201610067®Number=0000000000092737&sum=12500 0 [17:39:00]StoreToDocumentArchive [17:39:00]shift 373 fd 63849 [17:39:00]save to /storage/0373/doc_00063849 [17:39:00]save last doc name /storage/0373/doc_00063849 to /storage/kkm_last_doc_name [17:39:00]save OK [17:39:00]Clear old archive folders... [17:39:00]ProcessDocumentItem done err = 0, tmpTLVsize=282 [17:39:00]tlvbuf is 0036E240 [17:39:00]SAM_PROTO_ClearQueue [17:39:00]wFMCommunicate request_size=4 [17:39:00]MH_SAM_APDU [17:39:00]CAPDU: 80 09 00 00 [17:39:00]Write to MH i2c: E2 08 00 4F 01 80 09 00 00 00 00 00 00 C2 [17:39:00]Write i2c OK [17:39:00]MH_I2C_Read... [17:39:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:39:00]Read from MH i2c: E2 [17:39:00]MH_I2C_Read... [17:39:00]Read from MH i2c: E2 03 00 [17:39:00]MH_I2C_Read... [17:39:00]Read from MH i2c: E2 03 00 4F 01 00 90 00 C4 [17:39:00]RAPDU: 90 00 [17:39:00]wFMCommunicate OK [17:39:00]SAM_PROTO_ClearQueue done [17:39:00]KKMCreateOFDPacket [17:39:00]OFDProtocolAddRootSTLVToBuf [17:39:00]FM_MakeSignedData [17:39:00]FM_MakeSignedData [17:39:00]SAM_PROTO_SignData [17:39:00]wFMCommunicate request_size=4 [17:39:00]MH_SAM_APDU [17:39:00]CAPDU: 80 0D 01 02 [17:39:00]Write to MH i2c: E2 08 00 50 01 80 0D 01 02 00 00 00 00 CA [17:39:00]Write i2c OK [17:39:00]MH_I2C_Read... [17:39:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:39:00]Read from MH i2c: E2 [17:39:00]MH_I2C_Read... [17:39:00]Read from MH i2c: E2 03 00 [17:39:00]MH_I2C_Read... [17:39:00]Read from MH i2c: E2 03 00 50 01 00 90 00 C5 [17:39:00]RAPDU: 90 00 [17:39:00]wFMCommunicate OK [17:39:00]wFMCommunicate request_size=255 [17:39:00]MH_SAM_APDU [17:39:00]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 B2 FF 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 [17:39:00]Write to MH i2c: E2 02 01 51 01 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 B2 FF 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 00 00 20 [17:39:00]Write i2c OK [17:39:00]MH_I2C_Read... [17:39:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:39:00]Read from MH i2c: E2 [17:39:00]MH_I2C_Read... [17:39:00]Read from MH i2c: E2 OFD Sender: No OFD packet to send [17:39:00]03 00 [17:39:00]MH_I2C_Read... [17:39:00]Read from MH i2c: E2 03 00 51 01 00 90 00 C6 [17:39:00]RAPDU: 90 00 [17:39:00]wFMCommunicate OK [17:39:00]wFMCommunicate request_size=41 [17:39:00]MH_SAM_APDU [17:39:00]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 69 F9 00 00 35 04 06 00 9C 61 C2 6D FE BE [17:39:00]Write to MH i2c: E2 2C 00 52 01 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 69 F9 00 00 35 04 06 00 9C 61 C2 6D FE BE 00 00 E5 [17:39:00]Write i2c OK [17:39:00]MH_I2C_Read... [17:39:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:39:01]Read from MH i2c: E2 [17:39:01]MH_I2C_Read... [17:39:01]Read from MH i2c: E2 03 00 [17:39:01]MH_I2C_Read... [17:39:01]Read from MH i2c: E2 03 00 52 01 00 90 00 C7 [17:39:01]RAPDU: 90 00 [17:39:01]wFMCommunicate OK [17:39:01]wFMCommunicate request_size=4 [17:39:01]MH_SAM_APDU [17:39:01]CAPDU: 80 0D 03 02 [17:39:01]Write to MH i2c: E2 08 00 53 01 80 0D 03 02 00 00 00 00 CF [17:39:01]Write i2c OK [17:39:01]MH_I2C_Read... [17:39:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:39:01]Read from MH i2c: E2 [17:39:01]MH_I2C_Read... [17:39:01]Read from MH i2c: E2 0B 00 [17:39:01]MH_I2C_Read... [17:39:01]Read from MH i2c: E2 0B 00 53 01 00 A3 13 C4 10 E1 54 AC 9B 90 00 D6 [17:39:01]RAPDU: A3 13 C4 10 E1 54 AC 9B 90 00 [17:39:01]wFMCommunicate OK [17:39:01]SAM_PROTO_SignData done [17:39:01]FM_MakeSignedData done [17:39:01]CreateOFDProtocolMessage [17:39:01]wFMCommunicate request_size=4 [17:39:01]MH_SAM_APDU [17:39:01]CAPDU: 80 11 00 00 [17:39:01]Write to MH i2c: E2 08 00 54 01 80 11 00 00 00 00 00 00 CF [17:39:01]Write i2c OK [17:39:01]MH_I2C_Read... [17:39:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:39:01]Read from MH i2c: E2 [17:39:01]MH_I2C_Read... [17:39:01]Read from MH i2c: E2 17 00 [17:39:01]MH_I2C_Read... [17:39:01]Read from MH i2c: E2 17 00 54 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 21 [17:39:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [17:39:01]wFMCommunicate OK [17:39:01]CreateOFDProtocolMessage done [17:39:01]OFDSenderStorePacket 63849 [17:39:01]StoreOFDPacket docnum=63849 [17:39:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 2E 01 00 00 21 93 26 01 68 87 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 B2 FF 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 69 F9 00 00 35 04 06 00 9C 61 C2 6D FE BE A3 13 C4 10 E1 54 AC 9B [17:39:01]CheckFolder [17:39:01]dirname=/storage/ofd_packets [17:39:01]CheckFolder done [17:39:01]ProducePacketName [17:39:01]name=ofd_packets/00063849 [17:39:01]NVStorageSaveData ofd_packets/00063849 [17:39:01]File name is /storage/ofd_packets/00063849 [17:39:01]Write 332 bytes [17:39:01]NVStorageSaveData done [17:39:01]OFDSenderStorePacket done [17:39:01]KKMCreateOFDPacket done [17:39:01]NVStorageSaveData kkm_last_timestamp [17:39:01]File name is /storage/kkm_last_timestamp [17:39:01]Write 4 bytes [17:39:01]NVStorageSaveData done [17:39:01]ExternCall_PrintAddStr [17:39:01]wPrintStart [17:39:01]Write to MH i2c: 01 00 00 55 01 56 [17:39:01]Write i2c OK [17:39:01]MH_I2C_Read... [17:39:01]Read from MH i2c: 01 [17:39:01]MH_I2C_Read... [17:39:01]Read from MH i2c: 01 07 00 [17:39:01]MH_I2C_Read... [17:39:01]Read from MH i2c: 01 07 00 55 01 00 00 00 00 00 FF 0F 6B [17:39:01]RasterBufferAndPrint [17:39:01]line Счет N : (3)73424 [17:39:01]line ИНН: 02508201610067 [17:39:01]line Контрольно-Кассовый Чек [17:39:01]line ПРОДАЖА [17:39:01]line Товар: 2000036220012 [17:39:01]line Кофе Капучино XL(GABB TRADE) [17:39:01]line 1.000 * 125.00 [17:39:01]line = 125.00 [17:39:01]line НДС 12% НСП 1% [17:39:01]line > о реализуемом товаре [17:39:01]line ИТОГО: 125.00 [17:39:01]line НСП 1% : 1.11 [17:39:01]line НДС 12% : 13.27 [17:39:01]line Наличными: 125.00 [17:39:01]line Безнал.: 0.00 [17:39:01]line Место: АЗС № 117 "Партнер Нефть" [17:39:01]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [17:39:01]line СНО: Общий режим [17:39:01]line Чек 107 03.06.2024 17:38 [17:39:01]line Смена: 373 ФФД: 1.0 [17:39:01]line ЗНМ: 0300000031 [17:39:01]line РНМ: 0000000000092737 [17:39:01]line Версия ККМ: 001 [17:39:01]line ФМ: 0000000000875074 [17:39:01]line ФД: 63849 [17:39:01]line ФПД: 171943687749310 [17:39:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T173858&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63849&fm=171943687749310&tin=02508201610067®Number=0000000000092737&sum=12500 [17:39:01]OFD Sender: Processing packet 63849 [packets to send 14, broken 13] [17:39:01]ProducePacketName [17:39:01]name=ofd_packets/00063849 [17:39:01]OFD Sender: To server: pG, [17:39:01]CommunicateWithHost lk.salyk.kg:30040 [17:39:01]line 0 [17:39:01]ConnectInit lk.salyk.kg [17:39:01]written 0, free lines is 4095 [17:39:01]Connected sock=10 [17:39:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 2E 01 00 00 21 93 26 01 68 87 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 B2 FF 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 69 F9 00 00 35 04 06 00 9C 61 C2 6D FE BE A3 13 C4 10 E1 54 AC 9B [17:39:01]Write to MH i2c: 01 00 00 7E 01 7F [17:39:01]Write i2c OK [17:39:01]MH_I2C_Read... [17:39:01]Read from MH i2c: 01 [17:39:01]MH_I2C_Read... [17:39:01]Read from MH i2c: 01 07 00 [17:39:01]MH_I2C_Read... [17:39:01]Read from MH i2c: 01 07 00 7E 01 00 00 00 00 00 FF 0C 91 [17:39:01]RasterBufferAndPrint [17:39:01]line [17:39:01]line [17:39:01]line [17:39:01]line [17:39:01]line [17:39:01]written 0, free lines is 3365 [17:39:01]MH_Cut [17:39:01]Write to MH i2c: D1 01 00 85 01 01 58 [17:39:01]Write i2c OK [17:39:01]MH_I2C_Read... [17:39:01]Read from MH i2c: D1 [17:39:01]MH_I2C_Read... [17:39:01]Read from MH i2c: D1 01 00 [17:39:01]MH_I2C_Read... [17:39:01]Read from MH i2c: D1 01 00 85 01 00 57 [17:39:01]Write to MH i2c: 01 00 00 86 01 87 [17:39:01]Write i2c OK [17:39:01]MH_I2C_Read... [17:39:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 1F 1C 47 00 69 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 35 30 37 34 10 04 04 00 69 F9 00 00 F4 03 04 00 84 AB 5D 66 B6 04 01 00 00 B3 1C 72 D6 59 E3 5D A5 [17:39:01]CommunicateWithHost err = 0 [17:39:01]CheckOFDResponse [17:39:01]1017 (14) - 77093643461234 [17:39:01]1041 (16) - 0000000000875074 [17:39:01]1040 (4) - 63849 [17:39:01]1012 (4) - 03.06.2024 11:39 [17:39:01]1206 (1) - 0 [17:39:01]OFD Sender: Remove packet 63849 [17:39:01]ProducePacketName [17:39:01]name=ofd_packets/00063849 [17:39:01]NVStorageDeleteData [17:39:02]*** Cut start [17:39:02]*** Partial cut [17:39:02]*** CUTSNS_PIN = 1 [17:39:02]OFD Sender: No OFD packet to send [17:39:02]*** CUTSNS_PIN = 0 [17:39:02]*** Brake cut motor [17:39:03]Read from MH i2c: 01 [17:39:03]MH_I2C_Read... [17:39:03]*** Stop cut motor [17:39:03]*** Cut end [17:39:03]Read from MH i2c: 01 07 00 [17:39:03]MH_I2C_Read... [17:39:03]Read from MH i2c: 01 07 00 86 01 00 00 00 00 00 FF 0F 9C [17:39:03]process_action close_receipt done [17:39:03]requested_data is exist [17:39:03]produce_requested_data [17:39:03]requested_item fm.sn is exist - process it [17:39:03]wFMCommunicate request_size=4 [17:39:03]MH_SAM_APDU [17:39:03]CAPDU: 80 11 00 00 [17:39:03]Write to MH i2c: E2 08 00 87 01 80 11 00 00 00 00 00 00 02 [17:39:03]Write i2c OK [17:39:03]MH_I2C_Read... [17:39:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:39:03]Read from MH i2c: E2 [17:39:03]MH_I2C_Read... [17:39:03]Read from MH i2c: E2 17 00 [17:39:03]MH_I2C_Read... [17:39:03]Read from MH i2c: E2 17 00 87 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 54 [17:39:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [17:39:03]wFMCommunicate OK [17:39:03]requested_item fd.num is exist - process it [17:39:03]SAM_PROTO_GetFieldsCounters [17:39:03]wFMCommunicate request_size=4 [17:39:03]MH_SAM_APDU [17:39:03]CAPDU: 80 13 00 00 [17:39:03]Write to MH i2c: E2 08 00 88 01 80 13 00 00 00 00 00 00 05 [17:39:03]Write i2c OK [17:39:03]MH_I2C_Read... [17:39:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:39:03]Read from MH i2c: E2 [17:39:03]MH_I2C_Read... [17:39:03]Read from MH i2c: E2 62 00 [17:39:03]MH_I2C_Read... [17:39:03]Read from MH i2c: E2 62 00 88 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 69 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 41 [17:39: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 69 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:39:03]wFMCommunicate OK [17:39:03]SAM_PROTO_GetFieldsCounters done [17:39:03]requested_item shift.num is exist - process it [17:39:03]requested_item shift.opened is exist - process it [17:39:03]req_shift_opened [17:39:03]FM_GetShiftState [17:39:03]SAM_PROTO_GetShiftState [17:39:03]wFMCommunicate request_size=4 [17:39:03]MH_SAM_APDU [17:39:03]CAPDU: 80 13 01 00 [17:39:03]Write to MH i2c: E2 08 00 89 01 80 13 01 00 00 00 00 00 07 [17:39:03]Write i2c OK [17:39:03]MH_I2C_Read... [17:39:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:39:03]Read from MH i2c: E2 [17:39:03]MH_I2C_Read... [17:39:03]Read from MH i2c: E2 0E 00 [17:39:03]MH_I2C_Read... [17:39:03]Read from MH i2c: E2 0E 00 89 01 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 D3 [17:39:03]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [17:39:03]wFMCommunicate OK [17:39:03]SAM_PROTO_GetShiftState done [17:39:03]FM_GetShiftState done [17:39:03]req_shift_opened done [17:39:03]requested_item shift.open_date is exist - process it [17:39:03]req_shift_open_date [17:39:03]req_shift_open_date done [17:39:03]produce_requested_data done [17:39:03]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63849,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [17:39:03]process_action_free close_receipt [17:39:03]json_value_free [17:39:03]json_value_free done [17:39:03]process_json_proto returns [17:39:03]Send response to host [17:39:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63849,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [17:39:03]free response buf [17:39:03]execute_script done [17:39:03]execute_script returns [17:39:03]free content buf [17:39:03]Sock 8.Close socket [17:39:03]Sock 8.Thread stoped [17:39:07]OFD Sender: No OFD packet to send [17:39:07]accept exits with 9 [17:39:07]New connection [17:39:07]New thread 3066510692 created [17:39:07]Thread 3066654052 joined [17:39:08]Waiting for new connection... [17:39:08] Sock 9.Parse request [17:39:08]Sock 9.Check first char [17:39:08]Sock 9.First char is OK [17:39:08]request: POST /json_proto HTTP/1.0 [17:39:08]Method: POST [17:39:08]URL: /json_proto [17:39:08]Method is POST - this is cgi request [17:39:08]url: /json_proto [17:39:08]query_string will be loaded in cgi processing [17:39:08]execute_cgi json_proto POST (null) [17:39:08]execute_cgi path=json_proto method=POST [17:39:08]POST find Content-Length [17:39:08]Host: 172.17.60.69:8080 [17:39:08]Content-Length: 627 [17:39:08]Content-Type: application/json [17:39:08] [17:39:08]POST finish read [17:39:08]Found Content-Length = 627 [17:39:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73425", "tax_sys" : 0, "items" : [ { "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:39:08]execute_script... [17:39: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 : (3)73425", "tax_sys" : 0, "items" : [ { "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:39:08]POST & json_proto [17:39:08]process_json_proto [17:39:08]json parsed OK: [17:39:08]protocol is kg_v1.0 [17:39:08]action value=close_receipt [17:39:08]process_action close_receipt [17:39:08]cmd_close_receipt [17:39:08]MH_GetDate [17:39:08]Write to MH i2c: F0 00 00 8A 01 7A [17:39:08]Write i2c OK [17:39:08]MH_I2C_Read... [17:39:08]Read from MH i2c: F0 [17:39:08]MH_I2C_Read... [17:39:08]Read from MH i2c: F0 09 00 [17:39:08]MH_I2C_Read... [17:39:08]Read from MH i2c: F0 09 00 8A 01 00 BC FF 5D 66 6A 96 4A 66 B1 [17:39:08]GetLastDocTimeStamp 1717436338 [17:39:08]current date 1717436348 [17:39:08]FM_GetShiftState [17:39:08]SAM_PROTO_GetShiftState [17:39:08]wFMCommunicate request_size=4 [17:39:08]MH_SAM_APDU [17:39:08]CAPDU: 80 13 01 00 [17:39:08]Write to MH i2c: E2 08 00 8B 01 80 13 01 00 00 00 00 00 09 [17:39:08]Write i2c OK [17:39:08]MH_I2C_Read... [17:39:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:39:08]Read from MH i2c: E2 [17:39:08]MH_I2C_Read... [17:39:08]Read from MH i2c: E2 0E 00 [17:39:08]MH_I2C_Read... [17:39:08]Read from MH i2c: E2 0E 00 8B 01 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 D5 [17:39:08]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [17:39:08]wFMCommunicate OK [17:39:08]SAM_PROTO_GetShiftState done [17:39:08]FM_GetShiftState done [17:39:08]opened in 1717373173 [17:39:08]opened+sec_in_day 1717459573 [17:39:08]quantity*price = 13000 [17:39:08]sum+1 = 13001 [17:39:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 108 03.06.2024 17:39 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63850 ФПД: 84595848847167 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T173908&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63850&fm=84595848847167&tin=02508201610067®Number=0000000000092737&sum=13000 0 [17:39:09]StoreToDocumentArchive [17:39:09]shift 373 fd 63850 [17:39:09]save to /storage/0373/doc_00063850 [17:39:09]save last doc name /storage/0373/doc_00063850 to /storage/kkm_last_doc_name [17:39:09]save OK [17:39:09]Clear old archive folders... [17:39:09]ProcessDocumentItem done err = 0, tmpTLVsize=276 [17:39:09]tlvbuf is 003E8A80 [17:39:09]SAM_PROTO_ClearQueue [17:39:09]wFMCommunicate request_size=4 [17:39:09]MH_SAM_APDU [17:39:09]CAPDU: 80 09 00 00 [17:39:09]Write to MH i2c: E2 08 00 98 01 80 09 00 00 00 00 00 00 0B [17:39:09]Write i2c OK [17:39:09]MH_I2C_Read... [17:39:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:39:09]Read from MH i2c: E2 [17:39:09]MH_I2C_Read... [17:39:09]Read from MH i2c: E2 03 00 [17:39:09]MH_I2C_Read... [17:39:09]Read from MH i2c: E2 03 00 98 01 00 90 00 0D [17:39:09]RAPDU: 90 00 [17:39:09]wFMCommunicate OK [17:39:09]SAM_PROTO_ClearQueue done [17:39:09]KKMCreateOFDPacket [17:39:09]OFDProtocolAddRootSTLVToBuf [17:39:09]FM_MakeSignedData [17:39:09]FM_MakeSignedData [17:39:09]SAM_PROTO_SignData [17:39:09]wFMCommunicate request_size=4 [17:39:09]MH_SAM_APDU [17:39:09]CAPDU: 80 0D 01 02 [17:39:09]Write to MH i2c: E2 08 00 99 01 80 0D 01 02 00 00 00 00 13 [17:39:09]Write i2c OK [17:39:09]MH_I2C_Read... [17:39:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:39:09]Read from MH i2c: E2 [17:39:09]MH_I2C_Read... [17:39:09]Read from MH i2c: E2 03 00 [17:39:09]MH_I2C_Read... [17:39:09]Read from MH i2c: E2 03 00 99 01 00 90 00 0E [17:39:09]RAPDU: 90 00 [17:39:09]wFMCommunicate OK [17:39:09]wFMCommunicate request_size=255 [17:39:09]MH_SAM_APDU [17:39:09]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 BC FF 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 [17:39:09]Write to MH i2c: E2 02 01 9A 01 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 BC FF 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 00 00 91 [17:39:10]Write i2c OK [17:39:10]MH_I2C_Read... [17:39:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:39:10]Read from MH i2c: E2 [17:39:10]MH_I2C_Read... [17:39:10]Read from MH i2c: E2 03 00 [17:39:10]MH_I2C_Read... [17:39:10]Read from MH i2c: E2 03 00 9A 01 00 90 00 0F [17:39:10]RAPDU: 90 00 [17:39:10]wFMCommunicate OK [17:39:10]wFMCommunicate request_size=35 [17:39:10]MH_SAM_APDU [17:39:10]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 6A F9 00 00 35 04 06 00 4C F0 81 85 1F 3F [17:39:10]Write to MH i2c: E2 26 00 9B 01 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 6A F9 00 00 35 04 06 00 4C F0 81 85 1F 3F 00 00 0B [17:39:10]Write i2c OK [17:39:10]MH_I2C_Read... [17:39:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:39:10]Read from MH i2c: E2 [17:39:10]MH_I2C_Read... [17:39:10]Read from MH i2c: E2 03 00 [17:39:10]MH_I2C_Read... [17:39:10]Read from MH i2c: E2 03 00 9B 01 00 90 00 10 [17:39:10]RAPDU: 90 00 [17:39:10]wFMCommunicate OK [17:39:10]wFMCommunicate request_size=4 [17:39:10]MH_SAM_APDU [17:39:10]CAPDU: 80 0D 03 02 [17:39:10]Write to MH i2c: E2 08 00 9C 01 80 0D 03 02 00 00 00 00 18 [17:39:10]Write i2c OK [17:39:10]MH_I2C_Read... [17:39:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:39:10]Read from MH i2c: E2 [17:39:10]MH_I2C_Read... [17:39:10]Read from MH i2c: E2 0B 00 [17:39:10]MH_I2C_Read... [17:39:10]Read from MH i2c: E2 0B 00 9C 01 00 87 16 CF E4 82 17 CC C5 90 00 93 [17:39:10]RAPDU: 87 16 CF E4 82 17 CC C5 90 00 [17:39:10]wFMCommunicate OK [17:39:10]SAM_PROTO_SignData done [17:39:10]FM_MakeSignedData done [17:39:10]CreateOFDProtocolMessage [17:39:10]wFMCommunicate request_size=4 [17:39:10]MH_SAM_APDU [17:39:10]CAPDU: 80 11 00 00 [17:39:10]Write to MH i2c: E2 08 00 9D 01 80 11 00 00 00 00 00 00 18 [17:39:10]Write i2c OK [17:39:10]MH_I2C_Read... [17:39:10]Read from MH i2c: E2 [17:39:10]MH_I2C_Read... [17:39:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:39:10]Read from MH i2c: E2 17 00 [17:39:10]MH_I2C_Read... [17:39:10]Read from MH i2c: E2 17 00 9D 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 6A [17:39:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [17:39:10]wFMCommunicate OK [17:39:10]CreateOFDProtocolMessage done [17:39:10]OFDSenderStorePacket 63850 [17:39:10]StoreOFDPacket docnum=63850 [17:39:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 28 01 00 00 C2 75 20 01 12 9F 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 BC FF 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 6A F9 00 00 35 04 06 00 4C F0 81 85 1F 3F 87 16 CF E4 82 17 CC C5 [17:39:10]CheckFolder [17:39:10]dirname=/storage/ofd_packets [17:39:10]CheckFolder done [17:39:10]ProducePacketName [17:39:10]name=ofd_packets/00063850 [17:39:10]NVStorageSaveData ofd_packets/00063850 [17:39:10]File name is /storage/ofd_packets/00063850 [17:39:10]Write 326 bytes [17:39:10]NVStorageSaveData done [17:39:10]OFDSenderStorePacket done [17:39:10]KKMCreateOFDPacket done [17:39:10]NVStorageSaveData kkm_last_timestamp [17:39:10]File name is /storage/kkm_last_timestamp [17:39:10]Write 4 bytes [17:39:10]NVStorageSaveData done [17:39:10]ExternCall_PrintAddStr [17:39:10]wPrintStart [17:39:10]Write to MH i2c: 01 00 00 9E 01 9F [17:39:10]Write i2c OK [17:39:10]MH_I2C_Read... [17:39:10]Read from MH i2c: 01 [17:39:10]MH_I2C_Read... [17:39:10]Read from MH i2c: 01 07 00 [17:39:10]MH_I2C_Read... [17:39:10]Read from MH i2c: 01 07 00 9E 01 00 00 00 00 00 FF 0F B4 [17:39:10]RasterBufferAndPrint [17:39:10]line Счет N : (3)73425 [17:39:10]line ИНН: 02508201610067 [17:39:10]line Контрольно-Кассовый Чек [17:39:10]line ПРОДАЖА [17:39:10]line Товар: 2000036230011 [17:39:10]line Кофе Латте XL(GABB TRADE) [17:39:10]line 1.000 * 130.00 [17:39:10]line = 130.00 [17:39:10]line НДС 12% НСП 1% [17:39:10]line > о реализуемом товаре [17:39:10]line ИТОГО: 130.00 [17:39:10]line НСП 1% : 1.15 [17:39:10]line НДС 12% : 13.80 [17:39:10]line Наличными: 130.00 [17:39:10]line Безнал.: 0.00 [17:39:10]line Место: АЗС № 117 "Партнер Нефть" [17:39:10]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [17:39:10]line СНО: Общий режим [17:39:10]line Чек 108 03.06.2024 17:39 [17:39:10]line Смена: 373 ФФД: 1.0 [17:39:10]line ЗНМ: 0300000031 [17:39:10]line РНМ: 0000000000092737 [17:39:10]line Версия ККМ: 001 [17:39:10]line ФМ: 0000000000875074 [17:39:10]line ФД: 63850 [17:39:10]line ФПД: 84595848847167 [17:39:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T173908&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63850&fm=84595848847167&tin=02508201610067®Number=0000000000092737&sum=13000 [17:39:10]OFD Sender: Processing packet 63850 [packets to send 14, broken 13] [17:39:10]ProducePacketName [17:39:10]line 0 [17:39:10]name=ofd_packets/00063850 [17:39:10]OFD Sender: To server: pG, [17:39:10]written 0, free lines is 4095 [17:39:10]CommunicateWithHost lk.salyk.kg:30040 [17:39:10]ConnectInit lk.salyk.kg [17:39:10]Connected sock=10 [17:39:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 28 01 00 00 C2 75 20 01 12 9F 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 BC FF 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 6A F9 00 00 35 04 06 00 4C F0 81 85 1F 3F 87 16 CF E4 82 17 CC C5 [17:39:11]Write to MH i2c: 01 00 00 C6 01 C7 [17:39:11]Write i2c OK [17:39:11]MH_I2C_Read... [17:39:11]Read from MH i2c: 01 [17:39:11]MH_I2C_Read... [17:39:11]Read from MH i2c: 01 07 00 [17:39:11]MH_I2C_Read... [17:39:11]Read from MH i2c: 01 07 00 C6 01 00 00 00 00 00 11 0D EC [17:39:11]RasterBufferAndPrint [17:39:11]line [17:39:11]line [17:39:11]line [17:39:11]line [17:39:11]line [17:39:11]written 0, free lines is 3388 [17:39:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 92 3E 47 00 1B CE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 6A F9 00 00 F4 03 04 00 8E AB 5D 66 B6 04 01 00 00 B8 CC 06 1A B8 B1 7A B0 [17:39:11]CommunicateWithHost err = 0 [17:39:11]CheckOFDResponse [17:39:11]1017 (14) - 77093643461234 [17:39:11]1041 (16) - 0000000000875074 [17:39:11]1040 (4) - 63850 [17:39:11]1012 (4) - 03.06.2024 11:39 [17:39:11]1206 (1) - 0 [17:39:11]OFD Sender: Remove packet 63850 [17:39:11]ProducePacketName [17:39:11]name=ofd_packets/00063850 [17:39:11]NVStorageDeleteData [17:39:11]MH_Cut [17:39:11]Write to MH i2c: D1 01 00 CD 01 01 A0 [17:39:11]Write i2c OK [17:39:11]MH_I2C_Read... [17:39:11]Read from MH i2c: D1 [17:39:11]MH_I2C_Read... [17:39:11]Read from MH i2c: D1 01 00 [17:39:11]MH_I2C_Read... [17:39:11]Read from MH i2c: D1 01 00 CD 01 00 9F [17:39:11]Write to MH i2c: 01 00 00 CE 01 CF [17:39:11]Write i2c OK [17:39:11]MH_I2C_Read... [17:39:12]OFD Sender: No OFD packet to send [17:39:12]*** Cut start [17:39:12]*** Partial cut [17:39:12]*** CUTSNS_PIN = 1 [17:39:12]*** CUTSNS_PIN = 0 [17:39:12]*** Brake cut motor [17:39:12]Read from MH i2c: 01 [17:39:12]MH_I2C_Read... [17:39:12]*** Stop cut motor [17:39:12]*** Cut end [17:39:12]Read from MH i2c: 01 07 00 [17:39:12]MH_I2C_Read... [17:39:12]Read from MH i2c: 01 07 00 CE 01 00 00 00 00 00 FF 0F E4 [17:39:12]process_action close_receipt done [17:39:12]requested_data is exist [17:39:12]produce_requested_data [17:39:12]requested_item fm.sn is exist - process it [17:39:12]wFMCommunicate request_size=4 [17:39:12]MH_SAM_APDU [17:39:12]CAPDU: 80 11 00 00 [17:39:12]Write to MH i2c: E2 08 00 CF 01 80 11 00 00 00 00 00 00 4A [17:39:12]Write i2c OK [17:39:12]MH_I2C_Read... [17:39:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:39:12]Read from MH i2c: E2 [17:39:12]MH_I2C_Read... [17:39:12]Read from MH i2c: E2 17 00 [17:39:12]MH_I2C_Read... [17:39:12]Read from MH i2c: E2 17 00 CF 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 9C [17:39:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [17:39:12]wFMCommunicate OK [17:39:12]requested_item fd.num is exist - process it [17:39:12]SAM_PROTO_GetFieldsCounters [17:39:12]wFMCommunicate request_size=4 [17:39:12]MH_SAM_APDU [17:39:12]CAPDU: 80 13 00 00 [17:39:12]Write to MH i2c: E2 08 00 D0 01 80 13 00 00 00 00 00 00 4D [17:39:12]Write i2c OK [17:39:12]MH_I2C_Read... [17:39:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:39:12]Read from MH i2c: E2 [17:39:12]MH_I2C_Read... [17:39:12]Read from MH i2c: E2 62 00 [17:39:12]MH_I2C_Read... [17:39:12]Read from MH i2c: E2 62 00 D0 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 6A F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 8D [17:39: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 6A F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:39:13]wFMCommunicate OK [17:39:13]SAM_PROTO_GetFieldsCounters done [17:39:13]requested_item shift.num is exist - process it [17:39:13]requested_item shift.opened is exist - process it [17:39:13]req_shift_opened [17:39:13]FM_GetShiftState [17:39:13]SAM_PROTO_GetShiftState [17:39:13]wFMCommunicate request_size=4 [17:39:13]MH_SAM_APDU [17:39:13]CAPDU: 80 13 01 00 [17:39:13]Write to MH i2c: E2 08 00 D1 01 80 13 01 00 00 00 00 00 4F [17:39:13]Write i2c OK [17:39:13]MH_I2C_Read... [17:39:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:39:13]Read from MH i2c: E2 [17:39:13]MH_I2C_Read... [17:39:13]Read from MH i2c: E2 0E 00 [17:39:13]MH_I2C_Read... [17:39:13]Read from MH i2c: E2 0E 00 D1 01 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 1B [17:39:13]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [17:39:13]wFMCommunicate OK [17:39:13]SAM_PROTO_GetShiftState done [17:39:13]FM_GetShiftState done [17:39:13]req_shift_opened done [17:39:13]requested_item shift.open_date is exist - process it [17:39:13]req_shift_open_date [17:39:13]req_shift_open_date done [17:39:13]produce_requested_data done [17:39:13]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63850,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [17:39:13]process_action_free close_receipt [17:39:13]json_value_free [17:39:13]json_value_free done [17:39:13]process_json_proto returns [17:39:13]Send response to host [17:39:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63850,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [17:39:13]free response buf [17:39:13]execute_script done [17:39:13]execute_script returns [17:39:13]free content buf [17:39:13]Sock 9.Close socket [17:39:13]Sock 9.Thread stoped [17:39:14]accept exits with 8 [17:39:14]New connection [17:39:14]New thread 3066654052 created [17:39:14]Thread 3066510692 joined [17:39:14]Waiting for new connection... [17:39:14] Sock 8.Parse request [17:39:14]Sock 8.Check first char [17:39:14]Sock 8.First char is OK [17:39:14]request: POST /json_proto HTTP/1.0 [17:39:14]Method: POST [17:39:14]URL: /json_proto [17:39:14]Method is POST - this is cgi request [17:39:14]url: /json_proto [17:39:14]query_string will be loaded in cgi processing [17:39:14]execute_cgi json_proto POST (null) [17:39:14]execute_cgi path=json_proto method=POST [17:39:14]POST find Content-Length [17:39:14]Host: 172.17.60.69:8080 [17:39:14]Content-Length: 927 [17:39:14]Content-Type: application/json [17:39:14] [17:39:14]POST finish read [17:39:14]Found Content-Length = 927 [17:39:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73426", "tax_sys" : 0, "items" : [ { "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 138.00, "quantity" : 1.000, "sum" : 138.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000000950", "name": "\u041A\u041E\u041C\u0411\u041E \u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,33\u043B", "price" : 77.00, "quantity" : 1.000, "sum" : 77.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 215.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:39:14]execute_script... [17:39:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73426", "tax_sys" : 0, "items" : [ { "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 138.00, "quantity" : 1.000, "sum" : 138.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000000950", "name": "\u041A\u041E\u041C\u0411\u041E \u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,33\u043B", "price" : 77.00, "quantity" : 1.000, "sum" : 77.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 215.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:39:14]POST & json_proto [17:39:14]process_json_proto [17:39:14]json parsed OK: [17:39:14]protocol is kg_v1.0 [17:39:14]action value=close_receipt [17:39:14]process_action close_receipt [17:39:14]cmd_close_receipt [17:39:14]MH_GetDate [17:39:14]Write to MH i2c: F0 00 00 D2 01 C2 [17:39:14]Write i2c OK [17:39:14]MH_I2C_Read... [17:39:14]Read from MH i2c: F0 [17:39:14]MH_I2C_Read... [17:39:14]Read from MH i2c: F0 09 00 [17:39:14]MH_I2C_Read... [17:39:14]Read from MH i2c: F0 09 00 D2 01 00 C2 FF 5D 66 6A 96 4A 66 FF [17:39:14]GetLastDocTimeStamp 1717436348 [17:39:14]current date 1717436354 [17:39:14]FM_GetShiftState [17:39:14]SAM_PROTO_GetShiftState [17:39:14]wFMCommunicate request_size=4 [17:39:14]MH_SAM_APDU [17:39:14]CAPDU: 80 13 01 00 [17:39:14]Write to MH i2c: E2 08 00 D3 01 80 13 01 00 00 00 00 00 51 [17:39:14]Write i2c OK [17:39:14]MH_I2C_Read... [17:39:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:39:14]Read from MH i2c: E2 [17:39:14]MH_I2C_Read... [17:39:14]Read from MH i2c: E2 0E 00 [17:39:14]MH_I2C_Read... [17:39:14]Read from MH i2c: E2 0E 00 D3 01 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 1D [17:39:14]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [17:39:14]wFMCommunicate OK [17:39:14]SAM_PROTO_GetShiftState done [17:39:14]FM_GetShiftState done [17:39:14]opened in 1717373173 [17:39:14]opened+sec_in_day 1717459573 [17:39:14]quantity*price = 13800 [17:39:14]sum+1 = 13801 [17:39:14]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000000950 КОМБО Напиток Кока-Кола 0,33л 1.000 * 77.00 = 77.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 215.00 НСП 1% : 1.90 НДС 12% : 22.83 Наличными: 215.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 109 03.06.2024 17:39 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63851 ФПД: 75614792842256 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T173914&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63851&fm=75614792842256&tin=02508201610067®Number=0000000000092737&sum=21500 0 [17:39:16]StoreToDocumentArchive [17:39:16]shift 373 fd 63851 [17:39:16]save to /storage/0373/doc_00063851 [17:39:16]save last doc name /storage/0373/doc_00063851 to /storage/kkm_last_doc_name [17:39:16]save OK [17:39:16]Clear old archive folders... [17:39:16]ProcessDocumentItem done err = 0, tmpTLVsize=396 [17:39:16]tlvbuf is 0040C7E0 [17:39:16]SAM_PROTO_ClearQueue [17:39:16]wFMCommunicate request_size=4 [17:39:16]MH_SAM_APDU [17:39:16]CAPDU: 80 09 00 00 [17:39:16]Write to MH i2c: E2 08 00 E0 01 80 09 00 00 00 00 00 00 53 [17:39:16]Write i2c OK [17:39:16]MH_I2C_Read... [17:39:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:39:16]Read from MH i2c: E2 [17:39:16]MH_I2C_Read... [17:39:16]Read from MH i2c: E2 03 00 [17:39:16]MH_I2C_Read... [17:39:16]Read from MH i2c: E2 03 00 E0 01 00 90 00 55 [17:39:16]RAPDU: 90 00 [17:39:16]wFMCommunicate OK [17:39:16]SAM_PROTO_ClearQueue done [17:39:16]KKMCreateOFDPacket [17:39:16]OFDProtocolAddRootSTLVToBuf [17:39:16]FM_MakeSignedData [17:39:16]FM_MakeSignedData [17:39:16]SAM_PROTO_SignData [17:39:16]wFMCommunicate request_size=4 [17:39:16]MH_SAM_APDU [17:39:16]CAPDU: 80 0D 01 02 [17:39:16]Write to MH i2c: E2 08 00 E1 01 80 0D 01 02 00 00 00 00 5B [17:39:16]Write i2c OK [17:39:16]MH_I2C_Read... [17:39:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:39:16]Read from MH i2c: E2 [17:39:16]MH_I2C_Read... [17:39:16]Read from MH i2c: E2 03 00 [17:39:16]MH_I2C_Read... [17:39:16]Read from MH i2c: E2 03 00 E1 01 00 90 00 56 [17:39:16]RAPDU: 90 00 [17:39:16]wFMCommunicate OK [17:39:16]wFMCommunicate request_size=255 [17:39:16]MH_SAM_APDU [17:39:16]CAPDU: 80 0D 02 02 FA 03 00 8C 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 E8 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 76 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 39 35 30 06 04 32 00 D0 9A D0 9E D0 9C D0 91 D0 9E 20 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 53 00 00 00 00 EB 03 26 00 EF [17:39:16]Write to MH i2c: E2 02 01 E2 01 80 0D 02 02 FA 00 03 00 8C 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 E8 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 76 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 39 35 30 06 04 32 00 D0 9A D0 9E D0 9C D0 91 D0 9E 20 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 53 00 00 00 00 EB 03 26 00 EF 00 00 E3 [17:39:16]Write i2c OK [17:39:16]MH_I2C_Read... [17:39:17]OFD Sender: No OFD packet to send [17:39:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:39:17]Read from MH i2c: E2 [17:39:17]MH_I2C_Read... [17:39:17]Read from MH i2c: E2 03 00 [17:39:17]MH_I2C_Read... [17:39:17]Read from MH i2c: E2 03 00 E2 01 00 90 00 57 [17:39:17]RAPDU: 90 00 [17:39:17]wFMCommunicate OK [17:39:17]wFMCommunicate request_size=155 [17:39:17]MH_SAM_APDU [17:39:17]CAPDU: 80 0D 02 02 96 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 08 00 00 00 00 07 04 06 00 FC 53 00 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 C2 FF 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 6B F9 00 00 35 04 06 00 44 C5 70 DD FC 10 [17:39:17]Write to MH i2c: E2 9E 00 E3 01 80 0D 02 02 96 00 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 08 00 00 00 00 07 04 06 00 FC 53 00 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 C2 FF 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 6B F9 00 00 35 04 06 00 44 C5 70 DD FC 10 00 00 F3 [17:39:17]Write i2c OK [17:39:17]MH_I2C_Read... [17:39:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:39:17]Read from MH i2c: E2 [17:39:17]MH_I2C_Read... [17:39:17]Read from MH i2c: E2 03 00 [17:39:17]MH_I2C_Read... [17:39:17]Read from MH i2c: E2 03 00 E3 01 00 90 00 58 [17:39:17]RAPDU: 90 00 [17:39:17]wFMCommunicate OK [17:39:17]wFMCommunicate request_size=4 [17:39:17]MH_SAM_APDU [17:39:17]CAPDU: 80 0D 03 02 [17:39:17]Write to MH i2c: E2 08 00 E4 01 80 0D 03 02 00 00 00 00 60 [17:39:17]Write i2c OK [17:39:17]MH_I2C_Read... [17:39:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:39:17]Read from MH i2c: E2 [17:39:17]MH_I2C_Read... [17:39:17]Read from MH i2c: E2 0B 00 [17:39:17]MH_I2C_Read... [17:39:17]Read from MH i2c: E2 0B 00 E4 01 00 5D 96 C3 53 CB C5 74 5B 90 00 C9 [17:39:17]RAPDU: 5D 96 C3 53 CB C5 74 5B 90 00 [17:39:17]wFMCommunicate OK [17:39:17]SAM_PROTO_SignData done [17:39:17]FM_MakeSignedData done [17:39:17]CreateOFDProtocolMessage [17:39:17]wFMCommunicate request_size=4 [17:39:17]MH_SAM_APDU [17:39:17]CAPDU: 80 11 00 00 [17:39:17]Write to MH i2c: E2 08 00 E5 01 80 11 00 00 00 00 00 00 60 [17:39:17]Write i2c OK [17:39:17]MH_I2C_Read... [17:39:17]Read from MH i2c: E2 [17:39:17]MH_I2C_Read... [17:39:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:39:17]Read from MH i2c: E2 17 00 [17:39:17]MH_I2C_Read... [17:39:17]Read from MH i2c: E2 17 00 E5 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 B2 [17:39:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [17:39:17]wFMCommunicate OK [17:39:17]CreateOFDProtocolMessage done [17:39:17]OFDSenderStorePacket 63851 [17:39:17]StoreOFDPacket docnum=63851 [17:39:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 A0 01 00 00 7A 25 98 01 89 B6 5A 03 01 00 03 00 8C 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 E8 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 76 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 39 35 30 06 04 32 00 D0 9A D0 9E D0 9C D0 91 D0 9E 20 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 53 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 08 00 00 00 00 07 04 06 00 FC 53 00 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 C2 FF 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 6B F9 00 00 35 04 06 00 44 C5 70 DD FC 10 5D 96 C3 53 CB C5 74 5B [17:39:17]CheckFolder [17:39:17]dirname=/storage/ofd_packets [17:39:17]CheckFolder done [17:39:17]ProducePacketName [17:39:17]name=ofd_packets/00063851 [17:39:17]NVStorageSaveData ofd_packets/00063851 [17:39:17]File name is /storage/ofd_packets/00063851 [17:39:17]Write 446 bytes [17:39:17]NVStorageSaveData done [17:39:17]OFDSenderStorePacket done [17:39:17]KKMCreateOFDPacket done [17:39:17]NVStorageSaveData kkm_last_timestamp [17:39:17]File name is /storage/kkm_last_timestamp [17:39:17]Write 4 bytes [17:39:17]NVStorageSaveData done [17:39:17]ExternCall_PrintAddStr [17:39:17]wPrintStart [17:39:17]Write to MH i2c: 01 00 00 E6 01 E7 [17:39:17]OFD Sender: Processing packet 63851 [packets to send 14, broken 13] [17:39:17]ProducePacketName [17:39:17]name=ofd_packets/00063851 [17:39:17]OFD Sender: To server: pG, [17:39:17]CommunicateWithHost lk.salyk.kg:30040 [17:39:17]ConnectInit lk.salyk.kg [17:39:17]Write i2c OK [17:39:17]MH_I2C_Read... [17:39:17]Read from MH i2c: 01 [17:39:17]MH_I2C_Read... [17:39:17]Read from MH i2c: 01 07 00 [17:39:17]MH_I2C_Read... [17:39:17]Read from MH i2c: 01 07 00 E6 01 00 00 00 00 00 FF 0F FC [17:39:17]RasterBufferAndPrint [17:39:17]line Счет N : (3)73426 [17:39:17]line ИНН: 02508201610067 [17:39:17]line Контрольно-Кассовый Чек [17:39:17]line ПРОДАЖА [17:39:17]line Товар: 4640030091645 [17:39:17]line Сигареты ESSE Exchange M [17:39:17]line 1.000 * 138.00 [17:39:17]line = 138.00 [17:39:17]line НДС 12% НСП 1% [17:39:17]line > о реализуемом товаре [17:39:17]line Товар: 5449000000950 [17:39:17]line КОМБО Напиток Кока-Кола 0,33л [17:39:17]line 1.000 * 77.00 [17:39:17]line = 77.00 [17:39:17]line НДС 12% НСП 1% [17:39:17]line > о реализуемом товаре [17:39:17]line ИТОГО: 215.00 [17:39:17]line НСП 1% : 1.90 [17:39:17]line НДС 12% : 22.83 [17:39:17]line Наличными: 215.00 [17:39:17]line Безнал.: 0.00 [17:39:17]line Место: АЗС № 117 "Партнер Нефть" [17:39:17]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [17:39:17]line СНО: Общий режим [17:39:17]line Чек 109 03.06.2024 17:39 [17:39:17]line Смена: 373 ФФД: 1.0 [17:39:17]line ЗНМ: 0300000031 [17:39:17]line РНМ: 0000000000092737 [17:39:17]line Версия ККМ: 001 [17:39:17]line ФМ: 0000000000875074 [17:39:17]line ФД: 63851 [17:39:17]line ФПД: 75614792842256 [17:39:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T173914&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63851&fm=75614792842256&tin=02508201610067®Number=0000000000092737&sum=21500 [17:39:17]line 0 [17:39:17]written 0, free lines is 4095 [17:39:17]Connected sock=10 [17:39:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 A0 01 00 00 7A 25 98 01 89 B6 5A 03 01 00 03 00 8C 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 E8 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 76 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 39 35 30 06 04 32 00 D0 9A D0 9E D0 9C D0 91 D0 9E 20 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 53 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 08 00 00 00 00 07 04 06 00 FC 53 00 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 C2 FF 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 6B F9 00 00 35 04 06 00 44 C5 70 DD FC 10 5D 96 C3 53 CB C5 74 5B [17:39:18]Write to MH i2c: 01 00 00 15 02 17 [17:39:18]Write i2c OK [17:39:18]MH_I2C_Read... [17:39:18]Read from MH i2c: 01 [17:39:18]MH_I2C_Read... [17:39:18]Read from MH i2c: 01 07 00 [17:39:18]MH_I2C_Read... [17:39:18]Read from MH i2c: 01 07 00 15 02 00 00 00 00 00 B0 0C DA [17:39:18]RasterBufferAndPrint [17:39:18]line [17:39:18]line [17:39:18]line [17:39:18]line [17:39:18]line [17:39:18]written 0, free lines is 3293 [17:39:18]MH_Cut [17:39:18]Write to MH i2c: D1 01 00 1C 02 01 F0 [17:39:18]Write i2c OK [17:39:18]MH_I2C_Read... [17:39:18]Read from MH i2c: D1 [17:39:18]MH_I2C_Read... [17:39:18]Read from MH i2c: D1 01 00 [17:39:18]MH_I2C_Read... [17:39:18]Read from MH i2c: D1 01 00 1C 02 00 EF [17:39:18]Write to MH i2c: 01 00 00 1D 02 1F [17:39:18]Write i2c OK [17:39:18]MH_I2C_Read... [17:39:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 95 35 47 00 F5 66 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 6B F9 00 00 F4 03 04 00 95 AB 5D 66 B6 04 01 00 00 21 89 D1 F4 92 49 07 ED [17:39:18]CommunicateWithHost err = 0 [17:39:18]CheckOFDResponse [17:39:18]1017 (14) - 77093643461234 [17:39:18]1041 (16) - 0000000000875074 [17:39:18]1040 (4) - 63851 [17:39:18]1012 (4) - 03.06.2024 11:40 [17:39:18]1206 (1) - 0 [17:39:18]OFD Sender: Remove packet 63851 [17:39:18]ProducePacketName [17:39:18]name=ofd_packets/00063851 [17:39:18]NVStorageDeleteData [17:39:19]*** Cut start [17:39:19]*** Partial cut [17:39:19]*** CUTSNS_PIN = 1 [17:39:19]*** CUTSNS_PIN = 0 [17:39:19]OFD Sender: No OFD packet to send [17:39:19]*** Brake cut motor [17:39:19]Read from MH i2c: 01 [17:39:19]MH_I2C_Read... [17:39:19]*** Stop cut motor [17:39:19]*** Cut end [17:39:19]Read from MH i2c: 01 07 00 [17:39:19]MH_I2C_Read... [17:39:19]Read from MH i2c: 01 07 00 1D 02 00 00 00 00 00 FF 0F 34 [17:39:19]process_action close_receipt done [17:39:19]requested_data is exist [17:39:19]produce_requested_data [17:39:19]requested_item fm.sn is exist - process it [17:39:19]wFMCommunicate request_size=4 [17:39:19]MH_SAM_APDU [17:39:19]CAPDU: 80 11 00 00 [17:39:19]Write to MH i2c: E2 08 00 1E 02 80 11 00 00 00 00 00 00 9A [17:39:19]Write i2c OK [17:39:19]MH_I2C_Read... [17:39:19]Read from MH i2c: E2 [17:39:20]MH_I2C_Read... [17:39:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:39:20]Read from MH i2c: E2 17 00 [17:39:20]MH_I2C_Read... [17:39:20]Read from MH i2c: E2 17 00 1E 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 EC [17:39:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [17:39:20]wFMCommunicate OK [17:39:20]requested_item fd.num is exist - process it [17:39:20]SAM_PROTO_GetFieldsCounters [17:39:20]wFMCommunicate request_size=4 [17:39:20]MH_SAM_APDU [17:39:20]CAPDU: 80 13 00 00 [17:39:20]Write to MH i2c: E2 08 00 1F 02 80 13 00 00 00 00 00 00 9D [17:39:20]Write i2c OK [17:39:20]MH_I2C_Read... [17:39:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:39:20]Read from MH i2c: E2 [17:39:20]MH_I2C_Read... [17:39:20]Read from MH i2c: E2 62 00 [17:39:20]MH_I2C_Read... [17:39:20]Read from MH i2c: E2 62 00 1F 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 6B F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 6D 00 00 00 5E 04 04 00 6D 00 00 00 57 04 04 00 6E 00 00 00 19 04 04 00 00 00 00 00 90 00 E1 [17:39: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 6B F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 6D 00 00 00 5E 04 04 00 6D 00 00 00 57 04 04 00 6E 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:39:20]wFMCommunicate OK [17:39:20]SAM_PROTO_GetFieldsCounters done [17:39:20]requested_item shift.num is exist - process it [17:39:20]requested_item shift.opened is exist - process it [17:39:20]req_shift_opened [17:39:20]FM_GetShiftState [17:39:20]SAM_PROTO_GetShiftState [17:39:20]wFMCommunicate request_size=4 [17:39:20]MH_SAM_APDU [17:39:20]CAPDU: 80 13 01 00 [17:39:20]Write to MH i2c: E2 08 00 20 02 80 13 01 00 00 00 00 00 9F [17:39:20]Write i2c OK [17:39:20]MH_I2C_Read... [17:39:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:39:20]Read from MH i2c: E2 [17:39:20]MH_I2C_Read... [17:39:20]Read from MH i2c: E2 0E 00 [17:39:20]MH_I2C_Read... [17:39:20]Read from MH i2c: E2 0E 00 20 02 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 6B [17:39:20]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [17:39:20]wFMCommunicate OK [17:39:20]SAM_PROTO_GetShiftState done [17:39:20]FM_GetShiftState done [17:39:20]req_shift_opened done [17:39:20]requested_item shift.open_date is exist - process it [17:39:20]req_shift_open_date [17:39:20]req_shift_open_date done [17:39:20]produce_requested_data done [17:39:20]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63851,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [17:39:20]process_action_free close_receipt [17:39:20]json_value_free [17:39:20]json_value_free done [17:39:20]process_json_proto returns [17:39:20]Send response to host [17:39:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63851,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [17:39:20]free response buf [17:39:20]execute_script done [17:39:20]execute_script returns [17:39:20]free content buf [17:39:20]Sock 8.Close socket [17:39:20]Sock 8.Thread stoped [17:39:22]accept exits with 9 [17:39:22]New connection [17:39:22]New thread 3066510692 created [17:39:22]Thread 3066654052 joined [17:39:22]Waiting for new connection... [17:39:22] Sock 9.Parse request [17:39:22]Sock 9.Check first char [17:39:22]Sock 9.First char is OK [17:39:22]request: POST /json_proto HTTP/1.0 [17:39:22]Method: POST [17:39:22]URL: /json_proto [17:39:22]Method is POST - this is cgi request [17:39:22]url: /json_proto [17:39:22]query_string will be loaded in cgi processing [17:39:22]execute_cgi json_proto POST (null) [17:39:22]execute_cgi path=json_proto method=POST [17:39:22]POST find Content-Length [17:39:22]Host: 172.17.60.69:8080 [17:39:22]Content-Length: 653 [17:39:22]Content-Type: application/json [17:39:22] [17:39:22]POST finish read [17:39:22]Found Content-Length = 653 [17:39:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73427", "tax_sys" : 0, "items" : [ { "code": "4860019001353", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u0440\u0436\u043E\u043C\u0438 0,5\u043B \u041F\u042D\u0422", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 120.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:39:22]execute_script... [17:39:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73427", "tax_sys" : 0, "items" : [ { "code": "4860019001353", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u0440\u0436\u043E\u043C\u0438 0,5\u043B \u041F\u042D\u0422", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 120.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:39:22]POST & json_proto [17:39:22]process_json_proto [17:39:22]json parsed OK: [17:39:22]protocol is kg_v1.0 [17:39:22]action value=close_receipt [17:39:22]process_action close_receipt [17:39:22]cmd_close_receipt [17:39:22]MH_GetDate [17:39:22]Write to MH i2c: F0 00 00 21 02 12 [17:39:22]Write i2c OK [17:39:22]MH_I2C_Read... [17:39:22]Read from MH i2c: F0 [17:39:22]MH_I2C_Read... [17:39:22]Read from MH i2c: F0 09 00 [17:39:22]MH_I2C_Read... [17:39:22]Read from MH i2c: F0 09 00 21 02 00 CA FF 5D 66 6A 96 4A 66 57 [17:39:22]GetLastDocTimeStamp 1717436354 [17:39:22]current date 1717436362 [17:39:22]FM_GetShiftState [17:39:22]SAM_PROTO_GetShiftState [17:39:22]wFMCommunicate request_size=4 [17:39:22]MH_SAM_APDU [17:39:22]CAPDU: 80 13 01 00 [17:39:22]Write to MH i2c: E2 08 00 22 02 80 13 01 00 00 00 00 00 A1 [17:39:22]Write i2c OK [17:39:22]MH_I2C_Read... [17:39:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:39:22]Read from MH i2c: E2 [17:39:22]MH_I2C_Read... [17:39:22]Read from MH i2c: E2 0E 00 [17:39:22]MH_I2C_Read... [17:39:22]Read from MH i2c: E2 0E 00 22 02 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 6D [17:39:22]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [17:39:22]wFMCommunicate OK [17:39:22]SAM_PROTO_GetShiftState done [17:39:22]FM_GetShiftState done [17:39:22]opened in 1717373173 [17:39:22]opened+sec_in_day 1717459573 [17:39:22]quantity*price = 12000 [17:39:22]sum+1 = 12001 [17:39:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 120.00 НСП 1% : 1.06 НДС 12% : 12.74 Наличными: 120.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 110 03.06.2024 17:39 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63852 ФПД: 45760341743980 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T173922&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63852&fm=45760341743980&tin=02508201610067®Number=0000000000092737&sum=12000 0 [17:39:24]StoreToDocumentArchive [17:39:24]shift 373 fd 63852 [17:39:24]save to /storage/0373/doc_00063852 [17:39:24]save last doc name /storage/0373/doc_00063852 to /storage/kkm_last_doc_name [17:39:24]save OK [17:39:24]Clear old archive folders... [17:39:24]ProcessDocumentItem done err = 0, tmpTLVsize=278 [17:39:24]tlvbuf is 00418440 [17:39:24]SAM_PROTO_ClearQueue [17:39:24]wFMCommunicate request_size=4 [17:39:24]MH_SAM_APDU [17:39:24]CAPDU: 80 09 00 00 [17:39:24]Write to MH i2c: E2 08 00 2F 02 80 09 00 00 00 00 00 00 A3 [17:39:24]Write i2c OK [17:39:24]MH_I2C_Read... [17:39:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:39:24]Read from MH i2c: E2 [17:39:24]MH_I2C_Read... [17:39:24]Read from MH i2c: E2 03 00 [17:39:24]MH_I2C_Read... [17:39:24]Read from MH i2c: E2 03 00 2F 02 00 90 00 A5 [17:39:24]RAPDU: 90 00 [17:39:24]wFMCommunicate OK [17:39:24]SAM_PROTO_ClearQueue done [17:39:24]KKMCreateOFDPacket [17:39:24]OFDProtocolAddRootSTLVToBuf [17:39:24]FM_MakeSignedData [17:39:24]FM_MakeSignedData [17:39:24]SAM_PROTO_SignData [17:39:24]wFMCommunicate request_size=4 [17:39:24]MH_SAM_APDU [17:39:24]CAPDU: 80 0D 01 02 [17:39:24]Write to MH i2c: E2 08 00 30 02 80 0D 01 02 00 00 00 00 AB [17:39:24]Write i2c OK [17:39:24]MH_I2C_Read... [17:39:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:39:24]Read from MH i2c: E2 [17:39:24]MH_I2C_Read... [17:39:24]Read from MH i2c: E2 03 00 [17:39:24]MH_I2C_Read... [17:39:24]Read from MH i2c: E2 03 00 30 02 00 90 00 A6 [17:39:24]RAPDU: 90 00 [17:39:24]wFMCommunicate OK [17:39:24]wFMCommunicate request_size=255 [17:39:24]MH_SAM_APDU [17:39:24]CAPDU: 80 0D 02 02 FA 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 35 33 06 04 24 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 35 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 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 6E 00 00 00 F4 03 04 00 CA FF 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 [17:39:24]Write to MH i2c: E2 02 OFD Sender: No OFD packet to send [17:39:24]01 31 02 80 0D 02 02 FA 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 35 33 06 04 24 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 35 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 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 6E 00 00 00 F4 03 04 00 CA FF 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 00 00 4E [17:39:24]Write i2c OK [17:39:24]MH_I2C_Read... [17:39:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:39:25]Read from MH i2c: E2 [17:39:25]MH_I2C_Read... [17:39:25]Read from MH i2c: E2 03 00 [17:39:25]MH_I2C_Read... [17:39:25]Read from MH i2c: E2 03 00 31 02 00 90 00 A7 [17:39:25]RAPDU: 90 00 [17:39:25]wFMCommunicate OK [17:39:25]wFMCommunicate request_size=37 [17:39:25]MH_SAM_APDU [17:39:25]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 6C F9 00 00 35 04 06 00 29 9E 68 EA 19 6C [17:39:25]Write to MH i2c: E2 28 00 32 02 80 0D 02 02 20 00 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 6C F9 00 00 35 04 06 00 29 9E 68 EA 19 6C 00 00 07 [17:39:25]Write i2c OK [17:39:25]MH_I2C_Read... [17:39:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:39:25]Read from MH i2c: E2 [17:39:25]MH_I2C_Read... [17:39:25]Read from MH i2c: E2 03 00 [17:39:25]MH_I2C_Read... [17:39:25]Read from MH i2c: E2 03 00 32 02 00 90 00 A8 [17:39:25]RAPDU: 90 00 [17:39:25]wFMCommunicate OK [17:39:25]wFMCommunicate request_size=4 [17:39:25]MH_SAM_APDU [17:39:25]CAPDU: 80 0D 03 02 [17:39:25]Write to MH i2c: E2 08 00 33 02 80 0D 03 02 00 00 00 00 B0 [17:39:25]Write i2c OK [17:39:25]MH_I2C_Read... [17:39:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:39:25]Read from MH i2c: E2 [17:39:25]MH_I2C_Read... [17:39:25]Read from MH i2c: E2 0B 00 [17:39:25]MH_I2C_Read... [17:39:25]Read from MH i2c: E2 0B 00 33 02 00 88 D8 CA 17 1E 47 42 54 90 00 ED [17:39:25]RAPDU: 88 D8 CA 17 1E 47 42 54 90 00 [17:39:25]wFMCommunicate OK [17:39:25]SAM_PROTO_SignData done [17:39:25]FM_MakeSignedData done [17:39:25]CreateOFDProtocolMessage [17:39:25]wFMCommunicate request_size=4 [17:39:25]MH_SAM_APDU [17:39:25]CAPDU: 80 11 00 00 [17:39:25]Write to MH i2c: E2 08 00 34 02 80 11 00 00 00 00 00 00 B0 [17:39:25]Write i2c OK [17:39:25]MH_I2C_Read... [17:39:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:39:25]Read from MH i2c: E2 [17:39:25]MH_I2C_Read... [17:39:25]Read from MH i2c: E2 17 00 [17:39:25]MH_I2C_Read... [17:39:25]Read from MH i2c: E2 17 00 34 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 02 [17:39:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [17:39:25]wFMCommunicate OK [17:39:25]CreateOFDProtocolMessage done [17:39:25]OFDSenderStorePacket 63852 [17:39:25]StoreOFDPacket docnum=63852 [17:39:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 2A 01 00 00 C3 08 22 01 64 CF 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 35 33 06 04 24 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 35 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 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 6E 00 00 00 F4 03 04 00 CA FF 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 6C F9 00 00 35 04 06 00 29 9E 68 EA 19 6C 88 D8 CA 17 1E 47 42 54 [17:39:25]CheckFolder [17:39:25]dirname=/storage/ofd_packets [17:39:25]CheckFolder done [17:39:25]ProducePacketName [17:39:25]name=ofd_packets/00063852 [17:39:25]NVStorageSaveData ofd_packets/00063852 [17:39:25]File name is /storage/ofd_packets/00063852 [17:39:25]Write 328 bytes [17:39:25]NVStorageSaveData done [17:39:25]OFDSenderStorePacket done [17:39:25]KKMCreateOFDPacket done [17:39:25]NVStorageSaveData kkm_last_timestamp [17:39:25]File name is /storage/kkm_last_timestamp [17:39:25]Write 4 bytes [17:39:25]NVStorageSaveData done [17:39:25]ExternCall_PrintAddStr [17:39:25]wPrintStart [17:39:25]Write to MH i2c: 01 00 00 35 02 37 [17:39:25]Write i2c OK [17:39:25]MH_I2C_Read... [17:39:25]Read from MH i2c: 01 [17:39:25]MH_I2C_Read... [17:39:25]Read from MH i2c: 01 07 00 [17:39:25]MH_I2C_Read... [17:39:25]Read from MH i2c: 01 07 00 35 02 00 00 00 00 00 FF 0F 4C [17:39:25]RasterBufferAndPrint [17:39:25]line Счет N : (3)73427 [17:39:25]line ИНН: 02508201610067 [17:39:25]line Контрольно-Кассовый Чек [17:39:25]line ПРОДАЖА [17:39:25]line Товар: 4860019001353 [17:39:25]line Вода Боржоми 0,5л ПЭТ [17:39:25]line 1.000 * 120.00 [17:39:25]line = 120.00 [17:39:25]line НДС 12% НСП 1% [17:39:25]line > о реализуемом товаре [17:39:25]line ИТОГО: 120.00 [17:39:25]line НСП 1% : 1.06 [17:39:25]line НДС 12% : 12.74 [17:39:25]line Наличными: 120.00 [17:39:25]line Безнал.: 0.00 [17:39:25]line Место: АЗС № 117 "Партнер Нефть" [17:39:25]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [17:39:25]line СНО: Общий режим [17:39:25]line Чек 110 03.06.2024 17:39 [17:39:25]OFD Sender: Processing packet 63852 [packets to send 14, broken 13] [17:39:25]ProducePacketName [17:39:25]name=ofd_packets/00063852 [17:39:25]OFD Sender: To server: pG, [17:39:25]CommunicateWithHost lk.salyk.kg:30040 [17:39:25]ConnectInit lk.salyk.kg [17:39:25]line Смена: 373 ФФД: 1.0 [17:39:25]line ЗНМ: 0300000031 [17:39:25]line РНМ: 0000000000092737 [17:39:25]line Версия ККМ: 001 [17:39:25]line ФМ: 0000000000875074 [17:39:25]line ФД: 63852 [17:39:25]line ФПД: 45760341743980 [17:39:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T173922&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63852&fm=45760341743980&tin=02508201610067®Number=0000000000092737&sum=12000 [17:39:25]line 0 [17:39:25]written 0, free lines is 4095 [17:39:25]Connected sock=8 [17:39:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 2A 01 00 00 C3 08 22 01 64 CF 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 35 33 06 04 24 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 35 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 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 6E 00 00 00 F4 03 04 00 CA FF 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 6C F9 00 00 35 04 06 00 29 9E 68 EA 19 6C 88 D8 CA 17 1E 47 42 54 [17:39:26]Write to MH i2c: 01 00 00 5D 02 5F [17:39:26]Write i2c OK [17:39:26]MH_I2C_Read... [17:39:26]Read from MH i2c: 01 [17:39:26]MH_I2C_Read... [17:39:26]Read from MH i2c: 01 07 00 [17:39:26]MH_I2C_Read... [17:39:26]Read from MH i2c: 01 07 00 5D 02 00 00 00 00 00 69 0D DC [17:39:26]RasterBufferAndPrint [17:39:26]line [17:39:26]line [17:39:26]line [17:39:26]line [17:39:26]line [17:39:26]written 0, free lines is 3483 [17:39:26]MH_Cut [17:39:26]Write to MH i2c: D1 01 00 64 02 01 38 [17:39:26]Write i2c OK [17:39:26]MH_I2C_Read... [17:39:26]Read from MH i2c: D1 [17:39:26]MH_I2C_Read... [17:39:26]Read from MH i2c: D1 01 00 [17:39:26]MH_I2C_Read... [17:39:26]Read from MH i2c: D1 01 00 64 02 00 37 [17:39:26]Write to MH i2c: 01 00 00 65 02 67 [17:39:26]Write i2c OK [17:39:26]MH_I2C_Read... [17:39:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 1A F4 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 35 30 37 34 10 04 04 00 6C F9 00 00 F4 03 04 00 9D AB 5D 66 B6 04 01 00 00 AE EB 87 46 51 51 7D 7C [17:39:26]CommunicateWithHost err = 0 [17:39:26]CheckOFDResponse [17:39:26]1017 (14) - 77093643461234 [17:39:26]1041 (16) - 0000000000875074 [17:39:26]1040 (4) - 63852 [17:39:26]1012 (4) - 03.06.2024 11:40 [17:39:26]1206 (1) - 0 [17:39:26]OFD Sender: Remove packet 63852 [17:39:26]ProducePacketName [17:39:26]name=ofd_packets/00063852 [17:39:26]NVStorageDeleteData [17:39:26]*** Cut start [17:39:26]*** Partial cut [17:39:26]*** CUTSNS_PIN = 1 [17:39:26]*** CUTSNS_PIN = 0 [17:39:27]OFD Sender: No OFD packet to send [17:39:27]*** Brake cut motor [17:39:27]Read from MH i2c: 01 [17:39:27]MH_I2C_Read... [17:39:27]*** Stop cut motor [17:39:27]*** Cut end [17:39:27]Read from MH i2c: 01 07 00 [17:39:27]MH_I2C_Read... [17:39:27]Read from MH i2c: 01 07 00 65 02 00 00 00 00 00 FF 0F 7C [17:39:27]process_action close_receipt done [17:39:27]requested_data is exist [17:39:27]produce_requested_data [17:39:27]requested_item fm.sn is exist - process it [17:39:27]wFMCommunicate request_size=4 [17:39:27]MH_SAM_APDU [17:39:27]CAPDU: 80 11 00 00 [17:39:27]Write to MH i2c: E2 08 00 66 02 80 11 00 00 00 00 00 00 E2 [17:39:27]Write i2c OK [17:39:27]MH_I2C_Read... [17:39:27]Read from MH i2c: E2 [17:39:27]MH_I2C_Read... [17:39:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:39:27]Read from MH i2c: E2 17 00 [17:39:27]MH_I2C_Read... [17:39:27]Read from MH i2c: E2 17 00 66 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 34 [17:39:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [17:39:27]wFMCommunicate OK [17:39:27]requested_item fd.num is exist - process it [17:39:27]SAM_PROTO_GetFieldsCounters [17:39:27]wFMCommunicate request_size=4 [17:39:27]MH_SAM_APDU [17:39:27]CAPDU: 80 13 00 00 [17:39:27]Write to MH i2c: E2 08 00 67 02 80 13 00 00 00 00 00 00 E5 [17:39:27]Write i2c OK [17:39:27]MH_I2C_Read... [17:39:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:39:27]Read from MH i2c: E2 [17:39:27]MH_I2C_Read... [17:39:27]Read from MH i2c: E2 62 00 [17:39:27]MH_I2C_Read... [17:39:27]Read from MH i2c: E2 62 00 67 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 6C F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 6E 00 00 00 5E 04 04 00 6E 00 00 00 57 04 04 00 6F 00 00 00 19 04 04 00 00 00 00 00 90 00 2D [17:39: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 6C F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 6E 00 00 00 5E 04 04 00 6E 00 00 00 57 04 04 00 6F 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:39:27]wFMCommunicate OK [17:39:28]SAM_PROTO_GetFieldsCounters done [17:39:28]requested_item shift.num is exist - process it [17:39:28]requested_item shift.opened is exist - process it [17:39:28]req_shift_opened [17:39:28]FM_GetShiftState [17:39:28]SAM_PROTO_GetShiftState [17:39:28]wFMCommunicate request_size=4 [17:39:28]MH_SAM_APDU [17:39:28]CAPDU: 80 13 01 00 [17:39:28]Write to MH i2c: E2 08 00 68 02 80 13 01 00 00 00 00 00 E7 [17:39:28]Write i2c OK [17:39:28]MH_I2C_Read... [17:39:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:39:28]Read from MH i2c: E2 [17:39:28]MH_I2C_Read... [17:39:28]Read from MH i2c: E2 0E 00 [17:39:28]MH_I2C_Read... [17:39:28]Read from MH i2c: E2 0E 00 68 02 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 B3 [17:39:28]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [17:39:28]wFMCommunicate OK [17:39:28]SAM_PROTO_GetShiftState done [17:39:28]FM_GetShiftState done [17:39:28]req_shift_opened done [17:39:28]requested_item shift.open_date is exist - process it [17:39:28]req_shift_open_date [17:39:28]req_shift_open_date done [17:39:28]produce_requested_data done [17:39:28]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63852,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [17:39:28]process_action_free close_receipt [17:39:28]json_value_free [17:39:28]json_value_free done [17:39:28]process_json_proto returns [17:39:28]Send response to host [17:39:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63852,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [17:39:28]free response buf [17:39:28]execute_script done [17:39:28]execute_script returns [17:39:28]free content buf [17:39:28]Sock 9.Close socket [17:39:28]Sock 9.Thread stoped [17:39:29]accept exits with 10 [17:39:29]New connection [17:39:29]New thread 3066654052 created [17:39:29]Thread 3066510692 joined [17:39:29]Waiting for new connection... [17:39:29] Sock 10.Parse request [17:39:29]Sock 10.Check first char [17:39:29]Sock 10.First char is OK [17:39:29]request: POST /json_proto HTTP/1.0 [17:39:29]Method: POST [17:39:29]URL: /json_proto [17:39:29]Method is POST - this is cgi request [17:39:29]url: /json_proto [17:39:29]query_string will be loaded in cgi processing [17:39:29]execute_cgi json_proto POST (null) [17:39:29]execute_cgi path=json_proto method=POST [17:39:29]POST find Content-Length [17:39:29]Host: 172.17.60.69:8080 [17:39:29]Content-Length: 646 [17:39:29]Content-Type: application/json [17:39:29] [17:39:29]POST finish read [17:39:29]Found Content-Length = 646 [17:39:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73428", "tax_sys" : 0, "items" : [ { "code": "2000034730018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E (GABB TRADE)", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 75.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:39:29]execute_script... [17: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 : (3)73428", "tax_sys" : 0, "items" : [ { "code": "2000034730018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E (GABB TRADE)", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 75.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:39:29]POST & json_proto [17:39:29]process_json_proto [17:39:29]json parsed OK: [17:39:29]protocol is kg_v1.0 [17:39:29]action value=close_receipt [17:39:29]process_action close_receipt [17:39:29]cmd_close_receipt [17:39:29]MH_GetDate [17:39:29]Write to MH i2c: F0 00 00 69 02 5A [17:39:29]Write i2c OK [17:39:29]MH_I2C_Read... [17:39:29]Read from MH i2c: F0 [17:39:29]MH_I2C_Read... [17:39:29]Read from MH i2c: F0 09 00 [17:39:29]MH_I2C_Read... [17:39:29]Read from MH i2c: F0 09 00 69 02 00 D1 FF 5D 66 6A 96 4A 66 A6 [17:39:29]GetLastDocTimeStamp 1717436362 [17:39:29]current date 1717436369 [17:39:29]FM_GetShiftState [17:39:29]SAM_PROTO_GetShiftState [17:39:29]wFMCommunicate request_size=4 [17:39:29]MH_SAM_APDU [17:39:29]CAPDU: 80 13 01 00 [17:39:29]Write to MH i2c: E2 08 00 6A 02 80 13 01 00 00 00 00 00 E9 [17:39:29]Write i2c OK [17:39:29]MH_I2C_Read... [17:39:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:39:29]Read from MH i2c: E2 [17:39:29]MH_I2C_Read... [17:39:29]Read from MH i2c: E2 0E 00 [17:39:29]MH_I2C_Read... [17:39:29]Read from MH i2c: E2 0E 00 6A 02 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 B5 [17:39:29]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [17:39:29]wFMCommunicate OK [17:39:29]SAM_PROTO_GetShiftState done [17:39:29]FM_GetShiftState done [17:39:29]opened in 1717373173 [17:39:29]opened+sec_in_day 1717459573 [17:39:29]quantity*price = 7500 [17:39:29]sum+1 = 7501 [17:39:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 75.00 НСП 1% : 0.66 НДС 12% : 7.96 Наличными: 75.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 111 03.06.2024 17:39 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63853 ФПД: 158603968437709 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T173929&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63853&fm=158603968437709&tin=02508201610067®Number=0000000000092737&sum=7500 0 [17:39:31]StoreToDocumentArchive [17:39:31]shift 373 fd 63853 [17:39:31]save to /storage/0373/doc_00063853 [17:39:31]save last doc name /storage/0373/doc_00063853 to /storage/kkm_last_doc_name [17:39:31]save OK [17:39:31]Clear old archive folders... [17:39:31]ProcessDocumentItem done err = 0, tmpTLVsize=282 [17:39:31]tlvbuf is 004323F0 [17:39:31]SAM_PROTO_ClearQueue [17:39:31]wFMCommunicate request_size=4 [17:39:31]MH_SAM_APDU [17:39:31]CAPDU: 80 09 00 00 [17:39:31]Write to MH i2c: E2 08 00 77 02 80 09 00 00 00 00 00 00 EB [17:39:31]Write i2c OK [17:39:31]MH_I2C_Read... [17:39:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:39:31]Read from MH i2c: E2 [17:39:31]MH_I2C_Read... [17:39:31]Read from MH i2c: E2 03 00 [17:39:31]MH_I2C_Read... [17:39:31]Read from MH i2c: E2 03 00 77 02 00 90 00 ED [17:39:31]RAPDU: 90 00 [17:39:31]wFMCommunicate OK [17:39:31]SAM_PROTO_ClearQueue done [17:39:31]KKMCreateOFDPacket [17:39:31]OFDProtocolAddRootSTLVToBuf [17:39:31]FM_MakeSignedData [17:39:31]FM_MakeSignedData [17:39:31]SAM_PROTO_SignData [17:39:31]wFMCommunicate request_size=4 [17:39:31]MH_SAM_APDU [17:39:31]CAPDU: 80 0D 01 02 [17:39:31]Write to MH i2c: E2 08 00 78 02 80 0D 01 02 00 00 00 00 F3 [17:39:31]Write i2c OK [17:39:31]MH_I2C_Read... [17:39:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:39:31]Read from MH i2c: E2 [17:39:31]MH_I2C_Read... [17:39:31]Read from MH i2c: E2 03 00 [17:39:31]MH_I2C_Read... [17:39:31]Read from MH i2c: E2 03 00 78 02 00 90 00 EE [17:39:31]RAPDU: 90 00 [17:39:31]wFMCommunicate OK [17:39:31]wFMCommunicate request_size=255 [17:39:31]MH_SAM_APDU [17:39:31]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 D1 FF 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 [17:39:31]Write to MH i2c: E2 02 01 79 02 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 OFD Sender: No OFD packet to send [17:39:32]00 12 04 04 00 6F 00 00 00 F4 03 04 00 D1 FF 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 00 00 CB [17:39:32]Write i2c OK [17:39:32]MH_I2C_Read... [17:39:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:39:32]Read from MH i2c: E2 [17:39:32]MH_I2C_Read... [17:39:32]Read from MH i2c: E2 03 00 [17:39:32]MH_I2C_Read... [17:39:32]Read from MH i2c: E2 03 00 79 02 00 90 00 EF [17:39:32]RAPDU: 90 00 [17:39:32]wFMCommunicate OK [17:39:32]wFMCommunicate request_size=41 [17:39:32]MH_SAM_APDU [17:39:32]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 6D F9 00 00 35 04 06 00 90 3F DD 32 DD CD [17:39:32]Write to MH i2c: E2 2C 00 7A 02 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 6D F9 00 00 35 04 06 00 90 3F DD 32 DD CD 00 00 B2 [17:39:32]Write i2c OK [17:39:32]MH_I2C_Read... [17:39:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:39:32]Read from MH i2c: E2 [17:39:32]MH_I2C_Read... [17:39:32]Read from MH i2c: E2 03 00 [17:39:32]MH_I2C_Read... [17:39:32]Read from MH i2c: E2 03 00 7A 02 00 90 00 F0 [17:39:32]RAPDU: 90 00 [17:39:32]wFMCommunicate OK [17:39:32]wFMCommunicate request_size=4 [17:39:32]MH_SAM_APDU [17:39:32]CAPDU: 80 0D 03 02 [17:39:32]Write to MH i2c: E2 08 00 7B 02 80 0D 03 02 00 00 00 00 F8 [17:39:32]Write i2c OK [17:39:32]MH_I2C_Read... [17:39:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:39:32]Read from MH i2c: E2 [17:39:32]MH_I2C_Read... [17:39:32]Read from MH i2c: E2 0B 00 [17:39:32]MH_I2C_Read... [17:39:32]Read from MH i2c: E2 0B 00 7B 02 00 3F 17 92 03 76 EC 06 3B 90 00 87 [17:39:32]RAPDU: 3F 17 92 03 76 EC 06 3B 90 00 [17:39:32]wFMCommunicate OK [17:39:32]SAM_PROTO_SignData done [17:39:32]FM_MakeSignedData done [17:39:32]CreateOFDProtocolMessage [17:39:32]wFMCommunicate request_size=4 [17:39:32]MH_SAM_APDU [17:39:32]CAPDU: 80 11 00 00 [17:39:32]Write to MH i2c: E2 08 00 7C 02 80 11 00 00 00 00 00 00 F8 [17:39:32]Write i2c OK [17:39:32]MH_I2C_Read... [17:39:32]Read from MH i2c: E2 [17:39:32]MH_I2C_Read... [17:39:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:39:32]Read from MH i2c: E2 17 00 [17:39:32]MH_I2C_Read... [17:39:32]Read from MH i2c: E2 17 00 7C 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 4A [17:39:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [17:39:33]wFMCommunicate OK [17:39:33]CreateOFDProtocolMessage done [17:39:33]OFDSenderStorePacket 63853 [17:39:33]StoreOFDPacket docnum=63853 [17:39:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 2E 01 00 00 8F 61 26 01 4B 2D 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 D1 FF 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 6D F9 00 00 35 04 06 00 90 3F DD 32 DD CD 3F 17 92 03 76 EC 06 3B [17:39:33]CheckFolder [17:39:33]dirname=/storage/ofd_packets [17:39:33]CheckFolder done [17:39:33]ProducePacketName [17:39:33]name=ofd_packets/00063853 [17:39:33]NVStorageSaveData ofd_packets/00063853 [17:39:33]File name is /storage/ofd_packets/00063853 [17:39:33]Write 332 bytes [17:39:33]NVStorageSaveData done [17:39:33]OFDSenderStorePacket done [17:39:33]KKMCreateOFDPacket done [17:39:33]NVStorageSaveData kkm_last_timestamp [17:39:33]File name is /storage/kkm_last_timestamp [17:39:33]Write 4 bytes [17:39:33]NVStorageSaveData done [17:39:33]ExternCall_PrintAddStr [17:39:33]wPrintStart [17:39:33]Write to MH i2c: 01 00 00 7D 02 7F [17:39:33]Write i2c OK [17:39:33]MH_I2C_Read... [17:39:33]Read from MH i2c: 01 [17:39:33]MH_I2C_Read... [17:39:33]Read from MH i2c: 01 07 00 [17:39:33]MH_I2C_Read... [17:39:33]Read from MH i2c: 01 07 00 7D 02 00 00 00 00 00 FF 0F 94 [17:39:33]RasterBufferAndPrint [17:39:33]line Счет N : (3)73428 [17:39:33]line ИНН: 02508201610067 [17:39:33]line Контрольно-Кассовый Чек [17:39:33]line ПРОДАЖА [17:39:33]line Товар: 2000034730018 [17:39:33]line Кофе Американо (GABB TRADE) [17:39:33]line 1.000 * 75.00 [17:39:33]line = 75.00 [17:39:33]line НДС 12% НСП 1% [17:39:33]line > о реализуемом товаре [17:39:33]line ИТОГО: 75.00 [17:39:33]line НСП 1% : 0.66 [17:39:33]line НДС 12% : 7.96 [17:39:33]line Наличными: 75.00 [17:39:33]line Безнал.: 0.00 [17:39:33]line Место: АЗС № 117 "Партнер Нефть" [17:39:33]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [17:39:33]line СНО: Общий режим [17:39:33]line Чек 111 03.06.2024 17:39 [17:39:33]line Смена: 373 ФФД: 1.0 [17:39:33]line ЗНМ: 0300000031 [17:39:33]line РНМ: 0000000000092737 [17:39:33]line Версия ККМ: 001 [17:39:33]line ФМ: 0000000000875074 [17:39:33]line ФД: 63853 [17:39:33]line ФПД: 158603968437709 [17:39:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T173929&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63853&fm=158603968437709&tin=02508201610067®Number=0000000000092737&sum=7500 [17:39:33]line 0 [17:39:33]OFD Sender: Processing packet 63853 [packets to send 14, broken 13] [17:39:33]ProducePacketName [17:39:33]name=ofd_packets/00063853 [17:39:33]OFD Sender: To server: pG, [17:39:33]CommunicateWithHost lk.salyk.kg:30040 [17:39:33]ConnectInit lk.salyk.kg [17:39:33]written 0, free lines is 4095 [17:39:33]Connected sock=9 [17:39:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 2E 01 00 00 8F 61 26 01 4B 2D 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 D1 FF 5D 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 [00:00:11] *** EcrCore started. Build 196 *** [00:00:11]MH_InterfaceInit /dev/i2c-1 [00:00:11]Malloc ok [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 /dev/ttyS4 opened [00:00:11]00 00 01 00 00 [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 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 5F FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 04 [00:00:11]Are we in boot? [00:00:11]We are in boot - try to switch [00:00:11]Write to MH i2c: A0 00 00 02 00 A1 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: A0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: *** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:11]A0 01 *** [00:00:11]00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:11]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:11]*** Waiting for read because exit forced [00:00:11]*** 10 ms more... [00:00:11]*** MH1903S init start (LINUX_LIGHT) [00:00:11]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:11]*** Serial: 3139303353513838 540000000057255F (1903SQ88T) [00:00:11]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:11]*** step 0: 5000 (2650, 2350 REF) [00:00:11]*** step 1: 4835 (2500, 2335 REF) [00:00:11]*** step 2: 4676 (2440, 2236 REF) [00:00:11]*** step 3: 4523 (2280, 2243 REF) [00:00:11]*** step 4: 4376 (2160, 2216 REF) [00:00:11]*** step 5: 4235 (2050, 2185 REF) [00:00:11]*** step 6: 4098 (1950, 2148 REF) [00:00:11]*** step 7: 3967 (1870, 2097 REF) [00:00:11]*** step 8: 3840 (1828, 2012 REF) [00:00:11]*** step 9: 3719 (1728, 1991 REF) [00:00:11]*** step 10: 3601 (1675, 1926 REF) [00:00:11]*** step 11: 3488 (1635, 1853 REF) [00:00:11]*** step 12: 3379 (1595, 1784 REF) [00:00:11]*** step 13: 3275 (1565, 1710 REF) [00:00:11]*** step 14: 3174 (1543, 1631 REF) [00:00:11]*** step 15: 3077 (1523, 1554 REF) [00:00:11]*** step 16: 2983 (1503, 1480 REF) [00:00:11]*** step 17: 2893 (1486, 1407 REF) [00:00:11]*** step 18: 2806 (1466, 1340 REF) [00:00:11]*** step 19: 2723 (1426, 1297 REF) [00:00:11]*** step 20: 2642 (1406, 1236 REF) [00:00:11]*** step 21: 2565 (1384, 1181 REF) [00:00:11]*** step 22: 2490 (1364, 1126 REF) [00:00:11]*** step 23: 2418 (1344, 1074 REF) [00:00:11]*** step 24: 2349 (1322, 1027 REF) [00:00:11]*** step 25: 2283 (1302, 981 REF) [00:00:11]*** step 26: 2218 (1282, 936 REF) [00:00:11]*** step 27: 2157 (1262, 895 REF) [00:00:11]*** step 28: 2097 (1242, 855 REF) [00:00:11]*** step 29: 2040 (1222, 818 REF) [00:00:11]*** step 30: 1985 (1202, 783 REF) [00:00:11]*** step 31: 1932 (1191, 741 REF) [00:00:11]*** step 32: 1880 (1181, 699 REF) [00:00:11]*** step 33: 1831 (1171, 660 REF) [00:00:11]*** step 34: 1784 (1161, 623 REF) [00:00:11]*** step 35: 1738 (1151, 587 REF) [00:00:11]*** step 36: 1694 (1141, 553 REF) [00:00:11]*** step 37: 1652 (1131, 521 REF) [00:00:11]*** step 38: 1611 (1121, 490 REF) [00:00:11]*** step 39: 1572 (1111, 461 REF) [00:00:11]*** step 40: 1534 (1103, 431 REF) [00:00:11]*** step 41: 1497 (1093, 404 REF) [00:00:11]*** step 42: 1462 (1083, 379 REF) [00:00:11]*** step 43: 1428 (1073, 355 REF) [00:00:11]*** step 44: 1396 (1063, 333 REF) [00:00:11]*** step 45: 1365 (1053, 312 REF) [00:00:11]*** step 46: 1334 (1043, 291 REF) [00:00:11]*** step 47: 1305 (1033, 272 REF) [00:00:11]*** step 48: 1277 (1023, 254 REF) [00:00:11]*** step 49: 1250 (1013, 237 REF) [00:00:11]*** step 50: 1224 (990, 234 REF) [00:00:11]*** step 51: 1199 (980, 219 REF) [00:00:11]*** step 52: 1175 (970, 205 REF) [00:00:11]*** step 53: 1152 (960, 192 REF) [00:00:11]*** step 54: 1130 (950, 180 REF) [00:00:11]*** step 55: 1108 (940, 168 REF) [00:00:11]*** step 56: 1088 (930, 158 REF) [00:00:11]*** step 57: 1068 (920, 148 REF) [00:00:11]*** step 58: 1049 (910, 139 REF) [00:00:11]*** step 59: 1030 (900, 130 REF) [00:00:11]*** step 60: 1012 (890, 122 REF) [00:00:11]*** step 61: 995 (880, 115 REF) [00:00:11]*** step 62: 979 (870, 109 REF) [00:00:11]*** step 63: 963 (860, 103 REF) [00:00:11]*** step 64: 948 (850, 98 REF) [00:00:11]*** step 65: 933 (840, 93 REF) [00:00:11]*** step 66: 919 (830, 89 REF) [00:00:11]*** step 67: 905 (820, 85 REF) [00:00:11]*** step 68: 892 (810, 82 REF) [00:00:11]*** step 69: 879 (800, 79 REF) [00:00:11]*** step 70: 867 (790, 77 REF) [00:00:11]*** step 71: 855 (780, 75 REF) [00:00:11]*** step 72: 844 (770, 74 REF) [00:00:11]*** step 73: 833 (760, 73 REF) [00:00:11]*** step 74: 822 (750, 72 REF) [00:00:11]*** step 75: 812 (740, 72 REF) [00:00:11]*** step 76: 803 (730, 73 REF) [00:00:11]*** step 77: 793 (720, 73 REF) [00:00:11]*** step 78: 784 (710, 74 REF) [00:00:11]*** step 79: 776 (700, 76 REF) [00:00:11]*** step 80: 767 (690, 77 REF) [00:00:11]*** step 81: 759 (680, 79 REF) [00:00:11]*** step 82: 751 (670, 81 REF) [00:00:11]*** step 83: 744 (660, 84 REF) [00:00:11]*** step 84: 737 (650, 87 REF) [00:00:11]*** step 85: 730 (640, 90 REF) [00:00:11]*** step 86: 723 (630, 93 REF) [00:00:11]*** step 87: 717 (620, 97 REF) [00:00:11]*** step 88: 710 (610, 100 REF) [00:00:11]*** step 89: 705 (600, 105 REF) [00:00:11]*** step 90: 699 [00:00:11]*** step 91: 693 [00:00:11]*** step 92: 688 [00:00:11]*** step 93: 683 [00:00:11]*** step 94: 678 [00:00:11]*** step 95: 673 [00:00:11]*** step 96: 669 [00:00:11]*** step 97: 664 [00:00:11]*** step 98: 660 [00:00:11]*** step 99: 656 [00:00:11]*** step 100: 652 [00:00:11]*** step 101: 648 [00:00:11]*** step 102: 644 [00:00:11]*** step 103: 641 [00:00:11]*** step 104: 638 [00:00:11]*** step 105: 634 [00:00:11]*** step 106: 631 [00:00:11]*** step 107: 628 [00:00:11]*** step 108: 625 [00:00:11]*** step 109: 622 [00:00:11]*** step 110: 620 [00:00:11]*** step 111: 617 [00:00:11]*** step 112: 615 [00:00:11]*** step 113: 612 [00:00:11]*** step 114: 610 [00:00:11]*** step 115: 608 [00:00:11]*** step 116: 605 [00:00:11]*** step 117: 603 [00:00:11]*** step 118: 601 [00:00:11]*** step 119: 599 [00:00:11]*** printer: Printer HW initialized [00:00:11]*** initSamCard finished [00:00:11]*** RTC: 1272286+1716164202=1717436488 [00:00:11]*** BPK Status Register BPK_RDY = 0x0 [00:00:11]*** SEN State Register SEN_STATE = 0x20ff [00:00:11]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:11]*** Analog Control Register 0 SEN_ANA0 = 0x33510623 [00:00:11]*** Is cutter blocked? [00:00:12]MH_GetMetrics [00:00:12]Write to MH i2c: 00 00 00 03 00 02 [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 00 29 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 5F FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 05 [00:00:12]Are we in boot? [00:00:12]We are not in boot now [00:00:12]Write to MH i2c: 01 00 00 04 00 04 [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 01 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 01 07 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:12]Model is 3 [00:00:12]MH firmware is 30620 [00:00:12]MH boot firmware is 3 [00:00:12]MH_SetPrinterDots 448 [00:00:12]HeadWidthInBytes 56 [00:00:12]maxmasksize 7 [00:00:12]Write to MH i2c: D6 06 00 05 00 46 00 40 00 FF FF 64 [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D6 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D6 01 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:12]Write to MH i2c: D5 00 00 06 00 DA [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D5 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D5 01 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]ExternCall_SetCallbacks [00:00:12]NVStorageInit [00:00:12]MH_GetDate [00:00:12]Write to MH i2c: F0 00 00 07 00 F6 [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: F0 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: F0 09 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: F0 09 00 07 00 00 48 00 5E 66 6A 96 4A 66 BB [17:41:28]Current date/time: 03.06.2024 17:41 [17:41:28]FM_Init [17:41:28]wFMConnect [17:41:28]MH_SAM_On [17:41:28]Write to MH i2c: E0 00 00 08 00 E7 [17:41:28]Write i2c OK [17:41:28]MH_I2C_Read... [17:41:28]*** iso7816_init finished! [17:41:28]*** atr: [17:41:28]*** 0F 3B D5 18 FF 81 91 FE [17:41:28]*** 1F C3 80 73 C8 21 10 0A [17:41:28]*** 00 00 00 00 00 00 00 00 [17:41:28]*** 00 00 00 00 00 00 00 00 [17:41:28]*** 00 00 00 00 00 00 00 00 [17:41:28]*** 00 00 00 00 00 00 00 00 [17:41:28]*** 00 00 00 00 00 00 00 00 [17:41:28]*** 00 00 00 00 00 00 00 00 [17:41:28]Read from MH i2c: E0 [17:41:28]MH_I2C_Read... [17:41:28]Read from MH i2c: E0 10 00 [17:41:28]MH_I2C_Read... [17:41:28]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [17:41:28]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [17:41:28]wFMCommunicate request_size=10 [17:41:28]MH_SAM_APDU [17:41:28]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [17:41:28]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [17:41:28]Write i2c OK [17:41:28]MH_I2C_Read... [17:41:28]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [17:41:28]Read from MH i2c: E2 [17:41:28]MH_I2C_Read... [17:41:28]Read from MH i2c: E2 03 00 [17:41:28]MH_I2C_Read... [17:41:28]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [17:41:28]RAPDU: 90 00 [17:41:28]wFMCommunicate OK [17:41:28]wFMCommunicate request_size=4 [17:41:28]MH_SAM_APDU [17:41:28]CAPDU: 80 11 00 00 [17:41:28]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [17:41:28]Write i2c OK [17:41:28]MH_I2C_Read... [17:41:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:41:28]Read from MH i2c: E2 [17:41:28]MH_I2C_Read... [17:41:28]Read from MH i2c: E2 17 00 [17:41:28]MH_I2C_Read... [17:41:28]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 35 30 37 34 90 00 D6 [17:41:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [17:41:28]wFMCommunicate OK [17:41:28]Detected FM SN is 0000000000875074 [17:41:28]Stored FM SN is 0000000000875074 [17:41:28]wFMCommunicate request_size=9 [17:41:28]MH_SAM_APDU [17:41:28]CAPDU: 80 16 00 00 04 FA 15 01 00 [17:41:28]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 FA 15 01 00 00 00 A2 [17:41:28]Write i2c OK [17:41:28]MH_I2C_Read... [17:41:28]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [17:41:28]Read from MH i2c: E2 [17:41:28]MH_I2C_Read... [17:41:28]Read from MH i2c: E2 03 00 [17:41:28]MH_I2C_Read... [17:41:28]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [17:41:28]RAPDU: 90 00 [17:41:28]wFMCommunicate OK [17:41:28]FM PIN OK [17:41:28]wFMCommunicate request_size=8 [17:41:28]MH_SAM_APDU [17:41:28]CAPDU: 80 14 04 00 03 02 00 01 [17:41:28]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [17:41:28]Write i2c OK [17:41:28]MH_I2C_Read... [17:41:28]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [17:41:28]Read from MH i2c: E2 [17:41:28]MH_I2C_Read... [17:41:28]Read from MH i2c: E2 03 00 [17:41:28]MH_I2C_Read... [17:41:28]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [17:41:28]RAPDU: 90 00 [17:41:28]wFMCommunicate OK [17:41:28]wFMCommunicate request_size=13 [17:41:28]MH_SAM_APDU [17:41:28]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [17:41:28]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [17:41:28]Write i2c OK [17:41:28]MH_I2C_Read... [17:41:28]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [17:41:28]Read from MH i2c: E2 [17:41:28]MH_I2C_Read... [17:41:28]Read from MH i2c: E2 03 00 [17:41:28]MH_I2C_Read... [17:41:28]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [17:41:28]RAPDU: 90 00 [17:41:28]wFMCommunicate OK [17:41:28]wFMCommunicate request_size=4 [17:41:28]MH_SAM_APDU [17:41:28]CAPDU: 80 11 00 00 [17:41:28]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [17:41:28]Write i2c OK [17:41:28]MH_I2C_Read... [17:41:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:41:28]Read from MH i2c: E2 [17:41:28]MH_I2C_Read... [17:41:28]Read from MH i2c: E2 17 00 [17:41:28]MH_I2C_Read... [17:41:28]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 35 30 37 34 90 00 DA [17:41:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [17:41:28]wFMCommunicate OK [17:41:28]DocumentArchiveInit [17:41:28]Start Httpd... [17:41:28]Httpd thread 3066895716 created [17:41:28]Write to MH i2c: 01 00 00 0F 00 0F [17:41:28]Write i2c OK [17:41:28]MH_I2C_Read... [17:41:28]Read from MH i2c: 01 [17:41:28]MH_I2C_Read... [17:41:28]Read from MH i2c: 01 07 00 [17:41:28]MH_I2C_Read... [17:41:28]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [17:41:28]MH Int Process started [17:41:28]Allocated Socket 8 [17:41:28]Bind OK [17:41:28]Listen OK [17:41:28]httpd running on port 8080 [17:41:28]Waiting for new connection... [17:41:28]OFD Sender: No OFD packet to send [17:41:33]OFD Sender: No OFD packet to send [17:41:38]OFD Sender: No OFD packet to send [17:41:43]OFD Sender: No OFD packet to send [17:41:48]OFD Sender: No OFD packet to send [17:41:53]OFD Sender: No OFD packet to send [17:41:58]OFD Sender: No OFD packet to send [17:42:03]OFD Sender: No OFD packet to send [17:42:08]OFD Sender: No OFD packet to send [17:42:13]OFD Sender: No OFD packet to send [17:42:18]OFD Sender: No OFD packet to send [17:42:23]OFD Sender: No OFD packet to send [17:42:28]OFD Sender: No OFD packet to send [17:42:33]OFD Sender: No OFD packet to send [17:42:38]OFD Sender: No OFD packet to send [17:42:43]OFD Sender: No OFD packet to send [17:42:48]OFD Sender: No OFD packet to send [17:42:53]OFD Sender: No OFD packet to send [17:42:58]OFD Sender: No OFD packet to send [17:43:03]OFD Sender: No OFD packet to send [17:43:08]OFD Sender: No OFD packet to send [17:43:13]OFD Sender: No OFD packet to send [17:43:18]OFD Sender: No OFD packet to send [17:43:23]OFD Sender: No OFD packet to send [17:43:28]OFD Sender: No OFD packet to send [17:43:33]OFD Sender: No OFD packet to send [17:43:38]OFD Sender: No OFD packet to send [17:43:43]OFD Sender: No OFD packet to send [17:43:48]OFD Sender: No OFD packet to send [17:43:53]OFD Sender: No OFD packet to send [17:43:58]OFD Sender: No OFD packet to send [17:44:03]OFD Sender: No OFD packet to send [17:44:08]OFD Sender: No OFD packet to send [17:44:13]OFD Sender: No OFD packet to send [17:44:18]OFD Sender: No OFD packet to send [17:44:23]OFD Sender: No OFD packet to send [17:44:28]OFD Sender: No OFD packet to send [17:44:33]OFD Sender: No OFD packet to send [17:44:38]OFD Sender: No OFD packet to send [17:44:43]OFD Sender: No OFD packet to send [17:44:48]OFD Sender: No OFD packet to send [17:44:53]OFD Sender: No OFD packet to send [17:44:58]OFD Sender: No OFD packet to send [17:45:03]OFD Sender: No OFD packet to send [17:45:08]OFD Sender: No OFD packet to send [17:45:13]OFD Sender: No OFD packet to send [17:45:18]OFD Sender: No OFD packet to send [17:45:23]OFD Sender: No OFD packet to send [17:45:28]OFD Sender: No OFD packet to send [17:45:29]accept exits with 9 [17:45:29]New connection [17:45:29]New thread 3066608996 created [17:45:29]Waiting for new connection... [17:45:29] Sock 9.Parse request [17:45:29]Sock 9.Check first char [17:45:29]Sock 9.First char is OK [17:45:29]request: POST /json_proto HTTP/1.0 [17:45:29]Method: POST [17:45:29]URL: /json_proto [17:45:29]Method is POST - this is cgi request [17:45:29]url: /json_proto [17:45:29]query_string will be loaded in cgi processing [17:45:29]execute_cgi json_proto POST (null) [17:45:29]execute_cgi path=json_proto method=POST [17:45:29]POST find Content-Length [17:45:29]Host: 172.17.60.69:8080 [17:45:29]Content-Length: 828 [17:45:29]Content-Type: application/json [17:45:29] [17:45:29]POST finish read [17:45:29]Found Content-Length = 828 [17:45:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73430", "tax_sys" : 0, "items" : [ { "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 2.000, "sum" : 260.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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:45:29]execute_script... [17: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 : (3)73430", "tax_sys" : 0, "items" : [ { "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 2.000, "sum" : 260.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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:45:29]POST & json_proto [17:45:29]process_json_proto [17:45:29]json parsed OK: [17:45:29]protocol is kg_v1.0 [17:45:29]action value=close_receipt [17:45:29]process_action close_receipt [17:45:29]cmd_close_receipt [17:45:29]MH_GetDate [17:45:29]Write to MH i2c: F0 00 00 10 00 FF [17:45:29]Write i2c OK [17:45:29]MH_I2C_Read... [17:45:29]Read from MH i2c: F0 [17:45:29]MH_I2C_Read... [17:45:29]Read from MH i2c: F0 09 00 [17:45:29]MH_I2C_Read... [17:45:29]Read from MH i2c: F0 09 00 10 00 00 3A 01 5E 66 6A 96 4A 66 B7 [17:45:29]GetLastDocTimeStamp 1717436380 [17:45:29]current date 1717436730 [17:45:29]FM_GetShiftState [17:45:29]SAM_PROTO_GetShiftState [17:45:29]wFMCommunicate request_size=4 [17:45:29]MH_SAM_APDU [17:45:29]CAPDU: 80 13 01 00 [17:45:29]Write to MH i2c: E2 08 00 11 00 80 13 01 00 00 00 00 00 8E [17:45:29]Write i2c OK [17:45:29]MH_I2C_Read... [17:45:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:45:29]Read from MH i2c: E2 [17:45:29]MH_I2C_Read... [17:45:29]Read from MH i2c: E2 0E 00 [17:45:29]MH_I2C_Read... [17:45:29]Read from MH i2c: E2 0E 00 11 00 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 5A [17:45:29]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [17:45:29]wFMCommunicate OK [17:45:29]SAM_PROTO_GetShiftState done [17:45:29]FM_GetShiftState done [17:45:29]opened in 1717373173 [17:45:29]opened+sec_in_day 1717459573 [17:45:29]quantity*price = 26000 [17:45:29]sum+1 = 26001 [17:45:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 260.00 НСП 1% : 2.30 НДС 12% : 27.61 Наличными: 0.00 Безнал.: 260.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 113 03.06.2024 17:45 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000875074 ФД: 63855 ФПД: 77404553162764 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T174530&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63855&fm=77404553162764&tin=02508201610067®Number=0000000000092737&sum=26000 0 [17:45:30]StoreToDocumentArchive [17:45:30]shift 373 fd 63855 [17:45:30]save to /storage/0373/doc_00063855 [17:45:30]save last doc name /storage/0373/doc_00063855 to /storage/kkm_last_doc_name [17:45:30]save OK [17:45:30]Clear old archive folders... [17:45:30]ProcessDocumentItem done err = 0, tmpTLVsize=276 [17:45:30]tlvbuf is 0106CEE0 [17:45:30]SAM_PROTO_ClearQueue [17:45:30]wFMCommunicate request_size=4 [17:45:30]MH_SAM_APDU [17:45:30]CAPDU: 80 09 00 00 [17:45:30]Write to MH i2c: E2 08 00 1E 00 80 09 00 00 00 00 00 00 90 [17:45:30]Write i2c OK [17:45:30]MH_I2C_Read... [17:45:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:45:30]Read from MH i2c: E2 [17:45:30]MH_I2C_Read... [17:45:30]Read from MH i2c: E2 03 00 [17:45:30]MH_I2C_Read... [17:45:30]Read from MH i2c: E2 03 00 1E 00 00 90 00 92 [17:45:30]RAPDU: 90 00 [17:45:30]wFMCommunicate OK [17:45:30]SAM_PROTO_ClearQueue done [17:45:30]KKMCreateOFDPacket [17:45:30]OFDProtocolAddRootSTLVToBuf [17:45:30]FM_MakeSignedData [17:45:30]FM_MakeSignedData [17:45:30]SAM_PROTO_SignData [17:45:30]wFMCommunicate request_size=4 [17:45:30]MH_SAM_APDU [17:45:30]CAPDU: 80 0D 01 02 [17:45:30]Write to MH i2c: E2 08 00 1F 00 80 0D 01 02 00 00 00 00 98 [17:45:30]Write i2c OK [17:45:30]MH_I2C_Read... [17:45:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:45:30]Read from MH i2c: E2 [17:45:30]MH_I2C_Read... [17:45:30]Read from MH i2c: E2 03 00 [17:45:30]MH_I2C_Read... [17:45:30]Read from MH i2c: E2 03 00 1F 00 00 90 00 93 [17:45:30]RAPDU: 90 00 [17:45:30]wFMCommunicate OK [17:45:30]wFMCommunicate request_size=255 [17:45:30]MH_SAM_APDU [17:45:30]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 65 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 3A 01 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 [17:45:30]Write to MH i2c: E2 02 01 20 00 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 65 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 3A 01 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 00 00 56 [17:45:30]Write i2c OK [17:45:30]MH_I2C_Read... [17:45:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:45:31]Read from MH i2c: E2 [17:45:31]MH_I2C_Read... [17:45:31]Read from MH i2c: E2 03 00 [17:45:31]MH_I2C_Read... [17:45:31]Read from MH i2c: E2 03 00 20 00 00 90 00 94 [17:45:31]RAPDU: 90 00 [17:45:31]wFMCommunicate OK [17:45:31]wFMCommunicate request_size=35 [17:45:31]MH_SAM_APDU [17:45:31]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 6F F9 00 00 35 04 06 00 46 66 26 E5 30 0C [17:45:31]Write to MH i2c: E2 26 00 21 00 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 6F F9 00 00 35 04 06 00 46 66 26 E5 30 0C 00 00 E8 [17:45:31]Write i2c OK [17:45:31]MH_I2C_Read... [17:45:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:45:31]Read from MH i2c: E2 [17:45:31]MH_I2C_Read... [17:45:31]Read from MH i2c: E2 03 00 [17:45:31]MH_I2C_Read... [17:45:31]Read from MH i2c: E2 03 00 21 00 00 90 00 95 [17:45:31]RAPDU: 90 00 [17:45:31]wFMCommunicate OK [17:45:31]wFMCommunicate request_size=4 [17:45:31]MH_SAM_APDU [17:45:31]CAPDU: 80 0D 03 02 [17:45:31]Write to MH i2c: E2 08 00 22 00 80 0D 03 02 00 00 00 00 9D [17:45:31]Write i2c OK [17:45:31]MH_I2C_Read... [17:45:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:45:31]Read from MH i2c: E2 [17:45:31]MH_I2C_Read... [17:45:31]Read from MH i2c: E2 0B 00 [17:45:31]MH_I2C_Read... [17:45:31]Read from MH i2c: E2 0B 00 22 00 00 E9 D3 B7 DB 55 0D 70 70 90 00 2E [17:45:31]RAPDU: E9 D3 B7 DB 55 0D 70 70 90 00 [17:45:31]wFMCommunicate OK [17:45:31]SAM_PROTO_SignData done [17:45:31]FM_MakeSignedData done [17:45:31]CreateOFDProtocolMessage [17:45:31]wFMCommunicate request_size=4 [17:45:31]MH_SAM_APDU [17:45:31]CAPDU: 80 11 00 00 [17:45:31]Write to MH i2c: E2 08 00 23 00 80 11 00 00 00 00 00 00 9D [17:45:31]Write i2c OK [17:45:31]MH_I2C_Read... [17:45:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:45:31]Read from MH i2c: E2 [17:45:31]MH_I2C_Read... [17:45:31]Read from MH i2c: E2 17 00 [17:45:31]MH_I2C_Read... [17:45:31]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 35 30 37 34 90 00 EF [17:45:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [17:45:31]wFMCommunicate OK [17:45:31]CreateOFDProtocolMessage done [17:45:31]OFDSenderStorePacket 63855 [17:45:31]StoreOFDPacket docnum=63855 [17:45:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 28 01 00 00 96 6A 20 01 6F 6D 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 65 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 3A 01 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 6F F9 00 00 35 04 06 00 46 66 26 E5 30 0C E9 D3 B7 DB 55 0D 70 70 [17:45:31]CheckFolder [17:45:31]dirname=/storage/ofd_packets [17:45:31]CheckFolder done [17:45:31]ProducePacketName [17:45:31]name=ofd_packets/00063855 [17:45:31]NVStorageSaveData ofd_packets/00063855 [17:45:31]File name is /storage/ofd_packets/00063855 [17:45:31]Write 326 bytes [17:45:31]NVStorageSaveData done [17:45:31]OFDSenderStorePacket done [17:45:31]KKMCreateOFDPacket done [17:45:31]NVStorageSaveData kkm_last_timestamp [17:45:31]File name is /storage/kkm_last_timestamp [17:45:31]Write 4 bytes [17:45:31]NVStorageSaveData done [17:45:31]ExternCall_PrintAddStr [17:45:31]wPrintStart [17:45:31]Write to MH i2c: 01 00 00 24 00 24 [17:45:31]Write i2c OK [17:45:31]MH_I2C_Read... [17:45:31]Read from MH i2c: 01 [17:45:31]MH_I2C_Read... [17:45:31]Read from MH i2c: 01 07 00 [17:45:31]MH_I2C_Read... [17:45:31]Read from MH i2c: 01 07 00 24 00 00 00 00 00 00 FF 0F 39 [17:45:31]RasterBufferAndPrint [17:45:31]line Счет N : (3)73430 [17:45:31]line ИНН: 02508201610067 [17:45:31]line Контрольно-Кассовый Чек [17:45:31]line ПРОДАЖА [17:45:31]line Товар: 2000036230011 [17:45:31]line Кофе Латте XL(GABB TRADE) [17:45:31]line 2.000 * 130.00 [17:45:31]line = 260.00 [17:45:31]line НДС 12% НСП 1% [17:45:31]line > о реализуемом товаре [17:45:31]line ИТОГО: 260.00 [17:45:31]line НСП 1% : 2.30 [17:45:31]line НДС 12% : 27.61 [17:45:31]line Наличными: 0.00 [17:45:31]line Безнал.: 260.00 [17:45:31]line Место: АЗС № 117 "Партнер Нефть" [17:45:31]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [17:45:31]line СНО: Общий режим [17:45:31]line Чек 113 03.06.2024 17:45 [17:45:31]line Смена: 373 ФФД: 1.0 [17:45:31]line ЗНМ: 0300000031 [17:45:31]line РНМ: 0000000000092737 [17:45:31]line Версия ККМ: 001 [17:45:31]line Платежная система: АКБ Кыргызстан [17:45:31]line ФМ: 0000000000875074 [17:45:31]line ФД: 63855 [17:45:31]line ФПД: 77404553162764 [17:45:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T174530&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63855&fm=77404553162764&tin=02508201610067®Number=0000000000092737&sum=26000 [17:45:31]OFD Sender: Processing packet 63855 [packets to send 14, broken 13] [17:45:31]ProducePacketName [17:45:31]name=ofd_packets/00063855 [17:45:31]OFD Sender: To server: pG, [17:45:31]CommunicateWithHost lk.salyk.kg:30040 [17:45:31]ConnectInit lk.salyk.kg [17:45:31]line 0 [17:45:31]written 0, free lines is 4095 [17:45:31]Connected sock=10 [17: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 35 30 37 34 28 01 00 00 96 6A 20 01 6F 6D 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 65 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 3A 01 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 6F F9 00 00 35 04 06 00 46 66 26 E5 30 0C E9 D3 B7 DB 55 0D 70 70 [17:45:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 05 F0 47 00 87 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 35 30 37 34 10 04 04 00 6F F9 00 00 F4 03 04 00 0B AD 5D 66 B6 04 01 00 00 F4 2E 89 31 71 DE 9B 1F [17:45:31]CommunicateWithHost err = 0 [17:45:31]CheckOFDResponse [17:45:31]1017 (14) - 77093643461234 [17:45:31]1041 (16) - 0000000000875074 [17:45:31]1040 (4) - 63855 [17:45:31]1012 (4) - 03.06.2024 11:46 [17:45:31]1206 (1) - 0 [17:45:31]OFD Sender: Remove packet 63855 [17:45:31]ProducePacketName [17:45:31]name=ofd_packets/00063855 [17:45:31]NVStorageDeleteData [17:45:32]Write to MH i2c: 01 00 00 4E 00 4E [17:45:32]Write i2c OK [17:45:32]MH_I2C_Read... [17:45:32]Read from MH i2c: 01 [17:45:32]MH_I2C_Read... [17:45:32]Read from MH i2c: 01 07 00 [17:45:32]MH_I2C_Read... [17:45:32]Read from MH i2c: 01 07 00 4E 00 00 00 00 00 00 EB 0C 4C [17:45:32]RasterBufferAndPrint [17:45:32]line [17:45:32]line [17:45:32]line [17:45:32]line [17:45:32]line [17:45:32]written 0, free lines is 3313 [17:45:32]MH_Cut [17:45:32]Write to MH i2c: D1 01 00 55 00 01 27 [17:45:32]Write i2c OK [17:45:32]MH_I2C_Read... [17:45:32]Read from MH i2c: D1 [17:45:32]MH_I2C_Read... [17:45:32]Read from MH i2c: D1 01 00 [17:45:32]MH_I2C_Read... [17:45:32]Read from MH i2c: D1 01 00 55 00 00 26 [17:45:32]Write to MH i2c: 01 00 00 56 00 56 [17:45:32]Write i2c OK [17:45:32]MH_I2C_Read... [17:45:32]OFD Sender: No OFD packet to send [17:45:32]*** Cut start [17:45:32]*** Partial cut [17:45:32]*** CUTSNS_PIN = 1 [17:45:32]*** CUTSNS_PIN = 0 [17:45:33]*** Brake cut motor [17:45:33]Read from MH i2c: 01 [17:45:33]MH_I2C_Read... [17:45:33]*** Stop cut motor [17:45:33]*** Cut end [17:45:33]Read from MH i2c: 01 07 00 [17:45:33]MH_I2C_Read... [17:45:33]Read from MH i2c: 01 07 00 56 00 00 00 00 00 00 FF 0F 6B [17:45:33]process_action close_receipt done [17:45:33]requested_data is exist [17:45:33]produce_requested_data [17:45:33]requested_item fm.sn is exist - process it [17:45:33]wFMCommunicate request_size=4 [17:45:33]MH_SAM_APDU [17:45:33]CAPDU: 80 11 00 00 [17:45:33]Write to MH i2c: E2 08 00 57 00 80 11 00 00 00 00 00 00 D1 [17:45:33]Write i2c OK [17:45:33]MH_I2C_Read... [17:45:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:45:33]Read from MH i2c: E2 [17:45:33]MH_I2C_Read... [17:45:33]Read from MH i2c: E2 17 00 [17:45:33]MH_I2C_Read... [17:45:33]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 35 30 37 34 90 00 23 [17:45:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [17:45:33]wFMCommunicate OK [17:45:33]requested_item fd.num is exist - process it [17:45:33]SAM_PROTO_GetFieldsCounters [17:45:33]wFMCommunicate request_size=4 [17:45:33]MH_SAM_APDU [17:45:33]CAPDU: 80 13 00 00 [17:45:33]Write to MH i2c: E2 08 00 58 00 80 13 00 00 00 00 00 00 D4 [17:45:33]Write i2c OK [17:45:33]MH_I2C_Read... [17:45:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:45:33]Read from MH i2c: E2 [17:45:33]MH_I2C_Read... [17:45:33]Read from MH i2c: E2 62 00 [17:45:33]MH_I2C_Read... [17:45:33]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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 6F F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 72 00 00 00 19 04 04 00 00 00 00 00 90 00 28 [17: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 6F F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 72 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:45:33]wFMCommunicate OK [17:45:33]SAM_PROTO_GetFieldsCounters done [17:45:33]requested_item shift.num is exist - process it [17:45:33]requested_item shift.opened is exist - process it [17:45:33]req_shift_opened [17:45:33]FM_GetShiftState [17:45:33]SAM_PROTO_GetShiftState [17:45:33]wFMCommunicate request_size=4 [17:45:33]MH_SAM_APDU [17:45:33]CAPDU: 80 13 01 00 [17:45:33]Write to MH i2c: E2 08 00 59 00 80 13 01 00 00 00 00 00 D6 [17:45:33]Write i2c OK [17:45:33]MH_I2C_Read... [17:45:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:45:33]Read from MH i2c: E2 [17:45:33]MH_I2C_Read... [17:45:33]Read from MH i2c: E2 0E 00 [17:45:33]MH_I2C_Read... [17:45:33]Read from MH i2c: E2 0E 00 59 00 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 A2 [17:45:33]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [17:45:33]wFMCommunicate OK [17:45:33]SAM_PROTO_GetShiftState done [17:45:33]FM_GetShiftState done [17:45:33]req_shift_opened done [17:45:33]requested_item shift.open_date is exist - process it [17:45:33]req_shift_open_date [17:45:33]req_shift_open_date done [17:45:33]produce_requested_data done [17:45:33]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63855,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [17:45:33]process_action_free close_receipt [17:45:33]json_value_free [17:45:33]json_value_free done [17:45:33]process_json_proto returns [17:45:33]Send response to host [17:45:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63855,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [17:45:33]free response buf [17:45:33]execute_script done [17:45:33]execute_script returns [17:45:33]free content buf [17:45:33]Sock 9.Close socket [17:45:33]Sock 9.Thread stoped [17:45:37]OFD Sender: No OFD packet to send [17:45:42]OFD Sender: No OFD packet to send [17:45:47]OFD Sender: No OFD packet to send [17:45:52]OFD Sender: No OFD packet to send [17:45:57]OFD Sender: No OFD packet to send [17:46:02]OFD Sender: No OFD packet to send [17:46:07]OFD Sender: No OFD packet to send [17:46:12]OFD Sender: No OFD packet to send [17:46:17]OFD Sender: No OFD packet to send [17:46:22]OFD Sender: No OFD packet to send [17:46:27]OFD Sender: No OFD packet to send [17:46:32]OFD Sender: No OFD packet to send [17:46:37]OFD Sender: No OFD packet to send [17:46:42]OFD Sender: No OFD packet to send [17:46:47]OFD Sender: No OFD packet to send [17:46:52]OFD Sender: No OFD packet to send [17:46:57]OFD Sender: No OFD packet to send [17:47:02]OFD Sender: No OFD packet to send [17:47:07]OFD Sender: No OFD packet to send [17:47:12]OFD Sender: No OFD packet to send [17:47:17]OFD Sender: No OFD packet to send [17:47:22]OFD Sender: No OFD packet to send [17:47:27]OFD Sender: No OFD packet to send [17:47:32]OFD Sender: No OFD packet to send [17:47:37]OFD Sender: No OFD packet to send [17:47:42]OFD Sender: No OFD packet to send [17:47:47]OFD Sender: No OFD packet to send [17:47:52]OFD Sender: No OFD packet to send [17:47:57]OFD Sender: No OFD packet to send [17:48:02]OFD Sender: No OFD packet to send [17:48:07]OFD Sender: No OFD packet to send [17:48:12]OFD Sender: No OFD packet to send [17:48:17]OFD Sender: No OFD packet to send [17:48:22]OFD Sender: No OFD packet to send [17:48:27]OFD Sender: No OFD packet to send [17:48:32]OFD Sender: No OFD packet to send [17:48:37]OFD Sender: No OFD packet to send [17:48:42]OFD Sender: No OFD packet to send [17:48:47]OFD Sender: No OFD packet to send [17:48:52]OFD Sender: No OFD packet to send [17:48:57]OFD Sender: No OFD packet to send [17:49:02]OFD Sender: No OFD packet to send [17:49:07]OFD Sender: No OFD packet to send [17:49:12]OFD Sender: No OFD packet to send [17:49:17]OFD Sender: No OFD packet to send [17:49:22]OFD Sender: No OFD packet to send [17:49:27]OFD Sender: No OFD packet to send [17:49:32]OFD Sender: No OFD packet to send [17:49:37]OFD Sender: No OFD packet to send [17:49:39]accept exits with 7 [17:49:39]New connection [17:49:39]New thread 3066465636 created [17:49:39]Thread 3066608996 joined [17:49:39]Waiting for new connection... [17:49:39] Sock 7.Parse request [17:49:39]Sock 7.Check first char [17:49:39]Sock 7.First char is OK [17:49:39]request: POST /json_proto HTTP/1.0 [17:49:39]Method: POST [17:49:39]URL: /json_proto [17:49:39]Method is POST - this is cgi request [17:49:39]url: /json_proto [17:49:39]query_string will be loaded in cgi processing [17:49:39]execute_cgi json_proto POST (null) [17:49:39]execute_cgi path=json_proto method=POST [17:49:39]POST find Content-Length [17:49:39]Host: 172.17.60.69:8080 [17:49:39]Content-Length: 1565 [17:49:39]Content-Type: application/json [17:49:39] [17:49:39]POST finish read [17:49:39]Found Content-Length = 1565 [17:49:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73431", "tax_sys" : 0, "items" : [ { "code": "4700003010087", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Lets Go \u0437\u0435\u043B \u0447\u0430\u0439 \u044F\u0431\u043B-\u0433\u0440 \u041F\u042D\u0422 1,2\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000481989", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u043A\u0438\u0432\u0438-\u043C\u0430\u043D\u0433\u043E\u0441\u0442\u0438\u043D 0,45 ", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46214621", "name": "\u0420/\u0436 mentos \u0442\u0443\u0442\u0442\u0438-\u0444\u0440\u0443\u0442\u0442\u0438 \u0440\u043E\u043B\u043B 16\u0433", "price" : 49.00, "quantity" : 1.000, "sum" : 49.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48744683", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Caster+", "price" : 143.00, "quantity" : 1.000, "sum" : 143.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 382.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:49:39]execute_script... [17:49:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73431", "tax_sys" : 0, "items" : [ { "code": "4700003010087", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Lets Go \u0437\u0435\u043B \u0447\u0430\u0439 \u044F\u0431\u043B-\u0433\u0440 \u041F\u042D\u0422 1,2\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000481989", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u043A\u0438\u0432\u0438-\u043C\u0430\u043D\u0433\u043E\u0441\u0442\u0438\u043D 0,45 ", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46214621", "name": "\u0420/\u0436 mentos \u0442\u0443\u0442\u0442\u0438-\u0444\u0440\u0443\u0442\u0442\u0438 \u0440\u043E\u043B\u043B 16\u0433", "price" : 49.00, "quantity" : 1.000, "sum" : 49.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48744683", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Caster+", "price" : 143.00, "quantity" : 1.000, "sum" : 143.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 382.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:49:39]POST & json_proto [17:49:39]process_json_proto [17:49:39]json parsed OK: [17:49:39]protocol is kg_v1.0 [17:49:39]action value=close_receipt [17:49:39]process_action close_receipt [17:49:39]cmd_close_receipt [17:49:39]MH_GetDate [17:49:39]Write to MH i2c: F0 00 00 5A 00 49 [17:49:39]Write i2c OK [17:49:39]MH_I2C_Read... [17:49:39]Read from MH i2c: F0 [17:49:39]MH_I2C_Read... [17:49:39]Read from MH i2c: F0 09 00 [17:49:39]MH_I2C_Read... [17:49:39]Read from MH i2c: F0 09 00 5A 00 00 34 02 5E 66 6A 96 4A 66 FC [17:49:39]GetLastDocTimeStamp 1717436730 [17:49:39]current date 1717436980 [17:49:39]FM_GetShiftState [17:49:39]SAM_PROTO_GetShiftState [17:49:39]wFMCommunicate request_size=4 [17:49:39]MH_SAM_APDU [17:49:39]CAPDU: 80 13 01 00 [17:49:39]Write to MH i2c: E2 08 00 5B 00 80 13 01 00 00 00 00 00 D8 [17:49:39]Write i2c OK [17:49:39]MH_I2C_Read... [17:49:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:49:39]Read from MH i2c: E2 [17:49:39]MH_I2C_Read... [17:49:39]Read from MH i2c: E2 0E 00 [17:49:39]MH_I2C_Read... [17:49:39]Read from MH i2c: E2 0E 00 5B 00 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 A4 [17:49:39]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [17:49:39]wFMCommunicate OK [17:49:39]SAM_PROTO_GetShiftState done [17:49:39]FM_GetShiftState done [17:49:39]opened in 1717373173 [17:49:39]opened+sec_in_day 1717459573 [17:49:39]quantity*price = 9500 [17:49:39]sum+1 = 9501 [17:49:39]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000481989 Напиток энерг Nitro киви-мангостин 0,45 1.000 * 95.00 = 95.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 46214621 Р/ж mentos тутти-фрутти ролл 16г 1.000 * 49.00 = 49.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 48744683 Сигареты Winston XStyle Caster+ 1.000 * 143.00 = 143.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 382.00 НСП 1% : 3.37 НДС 12% : 40.57 Наличными: 382.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 114 03.06.2024 17:49 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63856 ФПД: 237701414659130 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T174940&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63856&fm=237701414659130&tin=02508201610067®Number=0000000000092737&sum=38200 0 [17:49:40]StoreToDocumentArchive [17:49:40]shift 373 fd 63856 [17:49:40]save to /storage/0373/doc_00063856 [17:49:40]save last doc name /storage/0373/doc_00063856 to /storage/kkm_last_doc_name [17:49:40]save OK [17:49:40]Clear old archive folders... [17:49:40]ProcessDocumentItem done err = 0, tmpTLVsize=662 [17:49:40]tlvbuf is 0107B420 [17:49:40]SAM_PROTO_ClearQueue [17:49:40]wFMCommunicate request_size=4 [17:49:40]MH_SAM_APDU [17:49:40]CAPDU: 80 09 00 00 [17:49:40]Write to MH i2c: E2 08 00 68 00 80 09 00 00 00 00 00 00 DA [17:49:40]Write i2c OK [17:49:40]MH_I2C_Read... [17:49:40]Read from MH i2c: E2 [17:49:40]MH_I2C_Read... [17:49:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:49:40]Read from MH i2c: E2 03 00 [17:49:40]MH_I2C_Read... [17:49:40]Read from MH i2c: E2 03 00 68 00 00 90 00 DC [17:49:40]RAPDU: 90 00 [17:49:40]wFMCommunicate OK [17:49:40]SAM_PROTO_ClearQueue done [17:49:40]KKMCreateOFDPacket [17:49:40]OFDProtocolAddRootSTLVToBuf [17:49:40]FM_MakeSignedData [17:49:40]FM_MakeSignedData [17:49:40]SAM_PROTO_SignData [17:49:40]wFMCommunicate request_size=4 [17:49:40]MH_SAM_APDU [17:49:40]CAPDU: 80 0D 01 02 [17:49:40]Write to MH i2c: E2 08 00 69 00 80 0D 01 02 00 00 00 00 E2 [17:49:40]Write i2c OK [17:49:40]MH_I2C_Read... [17:49:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:49:40]Read from MH i2c: E2 [17:49:40]MH_I2C_Read... [17:49:40]Read from MH i2c: E2 03 00 [17:49:40]MH_I2C_Read... [17:49:40]Read from MH i2c: E2 03 00 69 00 00 90 00 DD [17:49:40]RAPDU: 90 00 [17:49:40]wFMCommunicate OK [17:49:40]wFMCommunicate request_size=255 [17:49:40]MH_SAM_APDU [17:49:40]CAPDU: 80 0D 02 02 FA 03 00 96 02 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 38 37 06 04 3C 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 73 20 47 6F 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D1 8F D0 B1 D0 BB 2D D0 B3 D1 80 20 D0 9F D0 AD D0 A2 20 31 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 85 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 39 38 39 06 04 41 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BA D0 B8 D0 B2 D0 B8 2D D0 BC D0 B0 D0 BD D0 B3 D0 BE D1 81 D1 82 D0 B8 D0 BD 20 30 2C 34 35 20 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 [17:49:40]Write to MH i2c: E2 02 01 6A 00 80 0D 02 02 FA 00 03 00 96 02 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 38 37 06 04 3C 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 73 20 47 6F 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D1 8F D0 B1 D0 BB 2D D0 B3 D1 80 20 D0 9F D0 AD D0 A2 20 31 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 85 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 39 38 39 06 04 41 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BA D0 B8 D0 B2 D0 B8 2D D0 BC D0 B0 D0 BD D0 B3 D0 BE D1 81 D1 82 D0 B8 D0 BD 20 30 2C 34 35 20 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 D3 [17:49:40]Write i2c OK [17:49:40]MH_I2C_Read... [17:49:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:49:41]Read from MH i2c: E2 [17:49:41]MH_I2C_Read... [17:49:41]Read from MH i2c: E2 03 00 [17:49:41]MH_I2C_Read... [17:49:41]Read from MH i2c: E2 03 00 6A 00 00 90 00 DE [17:49:41]RAPDU: 90 00 [17:49:41]wFMCommunicate OK [17:49:41]wFMCommunicate request_size=255 [17:49:41]MH_SAM_APDU [17:49:41]CAPDU: 80 0D 02 02 FA 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 08 00 34 36 32 31 34 36 32 31 06 04 32 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 D1 82 D1 83 D1 82 D1 82 D0 B8 2D D1 84 D1 80 D1 83 D1 82 D1 82 D0 B8 20 D1 80 D0 BE D0 BB D0 BB 20 31 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 34 36 38 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 43 61 73 74 65 72 2B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 37 00 00 00 00 13 04 06 00 DC 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 [17:49:41]Write to MH i2c: E2 02 01 6B 00 80 0D 02 02 FA 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 08 00 34 36 32 31 34 36 32 31 06 04 32 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 D1 82 D1 83 D1 82 D1 82 D0 B8 2D D1 84 D1 80 D1 83 D1 82 D1 82 D0 B8 20 D1 80 D0 BE D0 BB D0 BB 20 31 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 34 36 38 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 43 61 73 74 65 72 2B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 37 00 00 00 00 13 04 06 00 DC 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 00 00 A4 [17:49:41]Write i2c OK [17:49:41]MH_I2C_Read... [17:49:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:49:41]Read from MH i2c: E2 [17:49:41]MH_I2C_Read... [17:49:41]Read from MH i2c: E2 03 00 [17:49:41]MH_I2C_Read... [17:49:41]Read from MH i2c: E2 03 00 6B 00 00 90 00 DF [17:49:41]RAPDU: 90 00 [17:49:41]wFMCommunicate OK [17:49:41]wFMCommunicate request_size=171 [17:49:41]MH_SAM_APDU [17:49:41]CAPDU: 80 0D 02 02 A6 01 FC 03 06 00 38 95 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D9 0F 00 00 00 00 07 04 06 00 38 95 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 34 02 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 70 F9 00 00 35 04 06 00 D8 30 2C 62 24 3A [17:49:41]Write to MH i2c: E2 AE 00 6C 00 80 0D 02 02 A6 00 01 FC 03 06 00 38 95 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D9 0F 00 00 00 00 07 04 06 00 38 95 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 34 02 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 70 F9 00 00 35 04 06 00 D8 30 2C 62 24 3A 00 00 8A [17:49:41]Write i2c OK [17:49:41]MH_I2C_Read... [17:49:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:49:41]Read from MH i2c: E2 [17:49:41]MH_I2C_Read... [17:49:41]Read from MH i2c: E2 03 00 [17:49:41]MH_I2C_Read... [17:49:41]Read from MH i2c: E2 03 00 6C 00 00 90 00 E0 [17:49:41]RAPDU: 90 00 [17:49:41]wFMCommunicate OK [17:49:41]wFMCommunicate request_size=4 [17:49:41]MH_SAM_APDU [17:49:41]CAPDU: 80 0D 03 02 [17:49:41]Write to MH i2c: E2 08 00 6D 00 80 0D 03 02 00 00 00 00 E8 [17:49:41]Write i2c OK [17:49:41]MH_I2C_Read... [17:49:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:49:41]Read from MH i2c: E2 [17:49:41]MH_I2C_Read... [17:49:41]Read from MH i2c: E2 0B 00 [17:49:41]MH_I2C_Read... [17:49:41]Read from MH i2c: E2 0B 00 6D 00 00 8C AA 6F D7 5B EE 97 CC 90 00 11 [17:49:41]RAPDU: 8C AA 6F D7 5B EE 97 CC 90 00 [17:49:41]wFMCommunicate OK [17:49:41]SAM_PROTO_SignData done [17:49:41]FM_MakeSignedData done [17:49:41]CreateOFDProtocolMessage [17:49:41]wFMCommunicate request_size=4 [17:49:41]MH_SAM_APDU [17:49:41]CAPDU: 80 11 00 00 [17:49:41]Write to MH i2c: E2 08 00 6E 00 80 11 00 00 00 00 00 00 E8 [17:49:41]Write i2c OK [17:49:41]MH_I2C_Read... [17:49:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:49:41]Read from MH i2c: E2 [17:49:41]MH_I2C_Read... [17:49:41]Read from MH i2c: E2 17 00 [17:49:41]MH_I2C_Read... [17:49:41]Read from MH i2c: E2 17 00 6E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 3A [17:49:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [17:49:41]wFMCommunicate OK [17:49:41]CreateOFDProtocolMessage done [17:49:41]OFDSenderStorePacket 63856 [17:49:41]StoreOFDPacket docnum=63856 [17:49:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 AA 02 00 00 F7 C8 A2 02 BB E8 5A 03 01 00 03 00 96 02 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 38 37 06 04 3C 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 73 20 47 6F 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D1 8F D0 B1 D0 BB 2D D0 B3 D1 80 20 D0 9F D0 AD D0 A2 20 31 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 85 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 39 38 39 06 04 41 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BA D0 B8 D0 B2 D0 B8 2D D0 BC D0 B0 D0 BD D0 B3 D0 BE D1 81 D1 82 D0 B8 D0 BD 20 30 2C 34 35 20 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 08 00 34 36 32 31 34 36 32 31 06 04 32 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 D1 82 D1 83 D1 82 D1 82 D0 B8 2D D1 84 D1 80 D1 83 D1 82 D1 82 D0 B8 20 D1 80 D0 BE D0 BB D0 BB 20 31 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 34 36 38 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 43 61 73 74 65 72 2B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 37 00 00 00 00 13 04 06 00 DC 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 95 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D9 0F 00 00 00 00 07 04 06 00 38 95 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 34 02 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 70 F9 00 00 35 04 06 00 D8 30 2C 62 24 3A 8C AA 6F D7 5B EE 97 CC [17:49:41]CheckFolder [17:49:41]dirname=/storage/ofd_packets [17:49:41]CheckFolder done [17:49:41]ProducePacketName [17:49:41]name=ofd_packets/00063856 [17:49:41]NVStorageSaveData ofd_packets/00063856 [17:49:41]File name is /storage/ofd_packets/00063856 [17:49:41]Write 712 bytes [17:49:41]NVStorageSaveData done [17:49:41]OFDSenderStorePacket done [17:49:41]KKMCreateOFDPacket done [17:49:41]NVStorageSaveData kkm_last_timestamp [17:49:41]File name is /storage/kkm_last_timestamp [17:49:41]Write 4 bytes [17:49:41]NVStorageSaveData done [17:49:41]ExternCall_PrintAddStr [17:49:41]wPrintStart [17:49:41]Write to MH i2c: 01 00 00 6F 00 6F [17:49:41]Write i2c OK [17:49:41]MH_I2C_Read... [17:49:41]Read from MH i2c: 01 [17:49:41]MH_I2C_Read... [17:49:41]Read from MH i2c: 01 07 00 [17:49:41]MH_I2C_Read... [17:49:41]Read from MH i2c: 01 07 00 6F 00 00 00 00 00 00 FF 0F 84 [17:49:41]RasterBufferAndPrint [17:49:41]line Счет N : (3)73431 [17:49:41]line ИНН: 02508201610067 [17:49:41]line Контрольно-Кассовый Чек [17:49:42]line ПРОДАЖА [17:49:42]line Товар: 4700003010087 [17:49:42]line Чай хол Lets Go зел чай ябл-гр ПЭТ 1,2л [17:49:42]line 1.000 * 95.00 [17:49:42]line = 95.00 [17:49:42]line НДС 12% НСП 1% [17:49:42]line > о реализуемом товаре [17:49:42]line Товар: 4700000481989 [17:49:42]line Напиток энерг Nitro киви-мангостин 0,45 [17:49:42]line 1.000 * 95.00 [17:49:42]line = 95.00 [17:49:42]line НДС 12% НСП 1% [17:49:42]line > о реализуемом товаре [17:49:42]line Товар: 46214621 [17:49:42]line Р/ж mentos тутти-фрутти ролл 16г [17:49:42]line 1.000 * 49.00 [17:49:42]line = 49.00 [17:49:42]line НДС 12% НСП 1% [17:49:42]line > о реализуемом товаре [17:49:42]line Товар: 48744683 [17:49:42]line Сигареты Winston XStyle Caster+ [17:49:42]line 1.000 * 143.00 [17:49:42]line = 143.00 [17:49:42]line НДС 12% НСП 1% [17:49:42]line > о реализуемом товаре [17:49:42]line ИТОГО: 382.00 [17:49:42]line НСП 1% : 3.37 [17:49:42]line НДС 12% : 40.57 [17:49:42]line Наличными: 382.00 [17:49:42]line Безнал.: 0.00 [17:49:42]line Место: АЗС № 117 "Партнер Нефть" [17:49:42]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [17:49:42]line СНО: Общий режим [17:49:42]line Чек 114 03.06.2024 17:49 [17:49:42]line Смена: 373 ФФД: 1.0 [17:49:42]line ЗНМ: 0300000031 [17:49:42]line РНМ: 0000000000092737 [17:49:42]line Версия ККМ: 001 [17:49:42]line ФМ: 0000000000875074 [17:49:42]line ФД: 63856 [17:49:42]line ФПД: 237701414659130 [17:49:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T174940&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63856&fm=237701414659130&tin=02508201610067®Number=0000000000092737&sum=38200 [17:49:42]OFD Sender: Processing packet 63856 [packets to send 14, broken 13] [17:49:42]ProducePacketName [17:49:42]name=ofd_packets/00063856 [17:49:42]OFD Sender: To server: pG, [17:49:42]CommunicateWithHost lk.salyk.kg:30040 [17:49:42]ConnectInit lk.salyk.kg [17:49:42]line 0 [17:49:42]written 0, free lines is 4095 [17:49:42]Connected sock=10 [17:49:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 AA 02 00 00 F7 C8 A2 02 BB E8 5A 03 01 00 03 00 96 02 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 38 37 06 04 3C 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 73 20 47 6F 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D1 8F D0 B1 D0 BB 2D D0 B3 D1 80 20 D0 9F D0 AD D0 A2 20 31 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 85 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 39 38 39 06 04 41 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BA D0 B8 D0 B2 D0 B8 2D D0 BC D0 B0 D0 BD D0 B3 D0 BE D1 81 D1 82 D0 B8 D0 BD 20 30 2C 34 35 20 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 08 00 34 36 32 31 34 36 32 31 06 04 32 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 D1 82 D1 83 D1 82 D1 82 D0 B8 2D D1 84 D1 80 D1 83 D1 82 D1 82 D0 B8 20 D1 80 D0 BE D0 BB D0 BB 20 31 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 34 36 38 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 43 61 73 74 65 72 2B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 37 00 00 00 00 13 04 06 00 DC 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 95 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D9 0F 00 00 00 00 07 04 06 00 38 95 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 34 02 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 70 F9 00 00 35 04 06 00 D8 30 2C 62 24 3A 8C AA 6F D7 5B EE 97 CC [17:49:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 37 94 47 00 89 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 35 30 37 34 10 04 04 00 70 F9 00 00 F4 03 04 00 05 AE 5D 66 B6 04 01 00 00 DC 48 A5 18 2D E5 7E B5 [17:49:42]CommunicateWithHost err = 0 [17:49:42]CheckOFDResponse [17:49:42]1017 (14) - 77093643461234 [17:49:42]1041 (16) - 0000000000875074 [17:49:42]1040 (4) - 63856 [17:49:42]1012 (4) - 03.06.2024 11:50 [17:49:42]1206 (1) - 0 [17:49:42]OFD Sender: Remove packet 63856 [17:49:42]ProducePacketName [17:49:42]name=ofd_packets/00063856 [17:49:42]NVStorageDeleteData [17:49:42]Write to MH i2c: 01 00 00 AD 00 AD [17:49:42]Write i2c OK [17:49:42]MH_I2C_Read... [17:49:42]Read from MH i2c: 01 [17:49:42]MH_I2C_Read... [17:49:42]Read from MH i2c: 01 07 00 [17:49:42]MH_I2C_Read... [17:49:42]Read from MH i2c: 01 07 00 AD 00 00 00 00 00 00 85 0B 44 [17:49:42]RasterBufferAndPrint [17:49:42]line [17:49:42]line [17:49:42]line [17:49:42]line [17:49:42]line [17:49:42]written 0, free lines is 2958 [17:49:42]MH_Cut [17:49:42]Write to MH i2c: D1 01 00 B4 00 01 86 [17:49:42]Write i2c OK [17:49:42]MH_I2C_Read... [17:49:42]Read from MH i2c: D1 [17:49:42]MH_I2C_Read... [17:49:42]Read from MH i2c: D1 01 00 [17:49:42]MH_I2C_Read... [17:49:42]Read from MH i2c: D1 01 00 B4 00 00 85 [17:49:42]Write to MH i2c: 01 00 00 B5 00 B5 [17:49:42]Write i2c OK [17:49:42]MH_I2C_Read... [17:49:42]OFD Sender: No OFD packet to send [17:49:43]*** Cut start [17:49:43]*** Partial cut [17:49:43]*** CUTSNS_PIN = 1 [17:49:43]*** CUTSNS_PIN = 0 [17:49:43]*** Brake cut motor [17:49:44]Read from MH i2c: 01 [17:49:44]MH_I2C_Read... [17:49:44]*** Stop cut motor [17:49:44]*** Cut end [17:49:44]Read from MH i2c: 01 07 00 [17:49:44]MH_I2C_Read... [17:49:44]Read from MH i2c: 01 07 00 B5 00 00 00 00 00 00 FF 0F CA [17:49:44]process_action close_receipt done [17:49:44]requested_data is exist [17:49:44]produce_requested_data [17:49:44]requested_item fm.sn is exist - process it [17:49:44]wFMCommunicate request_size=4 [17:49:44]MH_SAM_APDU [17:49:44]CAPDU: 80 11 00 00 [17:49:44]Write to MH i2c: E2 08 00 B6 00 80 11 00 00 00 00 00 00 30 [17:49:44]Write i2c OK [17:49:44]MH_I2C_Read... [17:49:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:49:44]Read from MH i2c: E2 [17:49:44]MH_I2C_Read... [17:49:44]Read from MH i2c: E2 17 00 [17:49:44]MH_I2C_Read... [17:49:44]Read from MH i2c: E2 17 00 B6 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 82 [17:49:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [17:49:44]wFMCommunicate OK [17:49:44]requested_item fd.num is exist - process it [17:49:44]SAM_PROTO_GetFieldsCounters [17:49:44]wFMCommunicate request_size=4 [17:49:44]MH_SAM_APDU [17:49:44]CAPDU: 80 13 00 00 [17:49:44]Write to MH i2c: E2 08 00 B7 00 80 13 00 00 00 00 00 00 33 [17:49:44]Write i2c OK [17:49:44]MH_I2C_Read... [17:49:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:49:44]Read from MH i2c: E2 [17:49:44]MH_I2C_Read... [17:49:44]Read from MH i2c: E2 62 00 [17:49:44]MH_I2C_Read... [17:49:44]Read from MH i2c: E2 62 00 B7 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 70 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 72 00 00 00 5E 04 04 00 72 00 00 00 57 04 04 00 73 00 00 00 19 04 04 00 00 00 00 00 90 00 8B [17:49: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 70 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 72 00 00 00 5E 04 04 00 72 00 00 00 57 04 04 00 73 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:49:44]wFMCommunicate OK [17:49:44]SAM_PROTO_GetFieldsCounters done [17:49:44]requested_item shift.num is exist - process it [17:49:44]requested_item shift.opened is exist - process it [17:49:44]req_shift_opened [17:49:44]FM_GetShiftState [17:49:44]SAM_PROTO_GetShiftState [17:49:44]wFMCommunicate request_size=4 [17:49:44]MH_SAM_APDU [17:49:44]CAPDU: 80 13 01 00 [17:49:44]Write to MH i2c: E2 08 00 B8 00 80 13 01 00 00 00 00 00 35 [17:49:44]Write i2c OK [17:49:44]MH_I2C_Read... [17:49:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:49:44]Read from MH i2c: E2 [17:49:44]MH_I2C_Read... [17:49:44]Read from MH i2c: E2 0E 00 [17:49:44]MH_I2C_Read... [17:49:44]Read from MH i2c: E2 0E 00 B8 00 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 01 [17:49:44]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [17:49:44]wFMCommunicate OK [17:49:44]SAM_PROTO_GetShiftState done [17:49:44]FM_GetShiftState done [17:49:44]req_shift_opened done [17:49:44]requested_item shift.open_date is exist - process it [17:49:44]req_shift_open_date [17:49:44]req_shift_open_date done [17:49:44]produce_requested_data done [17:49:44]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63856,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [17:49:44]process_action_free close_receipt [17:49:44]json_value_free [17:49:44]json_value_free done [17:49:44]process_json_proto returns [17:49:44]Send response to host [17:49:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63856,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [17:49:44]free response buf [17:49:44]execute_script done [17:49:44]execute_script returns [17:49:44]free content buf [17:49:44]Sock 7.Close socket [17:49:44]Sock 7.Thread stoped [17:49:47]OFD Sender: No OFD packet to send [17:49:52]OFD Sender: No OFD packet to send [17:49:57]OFD Sender: No OFD packet to send [17:50:01]accept exits with 9 [17:50:01]New connection [17:50:01]New thread 3066608996 created [17:50:01]Thread 3066465636 joined [17:50:01]Waiting for new connection... [17:50:01] Sock 9.Parse request [17:50:01]Sock 9.Check first char [17:50:01]Sock 9.First char is OK [17:50:01]request: POST /json_proto HTTP/1.0 [17:50:01]Method: POST [17:50:01]URL: /json_proto [17:50:01]Method is POST - this is cgi request [17:50:01]url: /json_proto [17:50:01]query_string will be loaded in cgi processing [17:50:01]execute_cgi json_proto POST (null) [17:50:01]execute_cgi path=json_proto method=POST [17:50:01]POST find Content-Length [17:50:01]Host: 172.17.60.69:8080 [17:50:01]Content-Length: 679 [17:50:01]Content-Type: application/json [17:50:01] [17:50:01]POST finish read [17:50:01]Found Content-Length = 679 [17:50:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543990", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 27.440, "sum" : 2000.38, "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" ] } } [17:50:01]execute_script... [17:50: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)543990", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 27.440, "sum" : 2000.38, "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" ] } } [17:50:01]POST & json_proto [17:50:01]process_json_proto [17:50:01]json parsed OK: [17:50:01]protocol is kg_v1.0 [17:50:01]action value=close_receipt [17:50:01]process_action close_receipt [17:50:01]cmd_close_receipt [17:50:01]MH_GetDate [17:50:01]Write to MH i2c: F0 00 00 B9 00 A8 [17:50:01]Write i2c OK [17:50:01]MH_I2C_Read... [17:50:01]Read from MH i2c: F0 [17:50:01]MH_I2C_Read... [17:50:01]Read from MH i2c: F0 09 00 [17:50:01]MH_I2C_Read... [17:50:01]Read from MH i2c: F0 09 00 B9 00 00 4A 02 5E 66 6A 96 4A 66 71 [17:50:01]GetLastDocTimeStamp 1717436980 [17:50:01]current date 1717437002 [17:50:01]FM_GetShiftState [17:50:01]SAM_PROTO_GetShiftState [17:50:01]wFMCommunicate request_size=4 [17:50:01]MH_SAM_APDU [17:50:01]CAPDU: 80 13 01 00 [17:50:01]Write to MH i2c: E2 08 00 BA 00 80 13 01 00 00 00 00 00 37 [17:50:01]Write i2c OK [17:50:01]MH_I2C_Read... [17:50:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:50:01]Read from MH i2c: E2 [17:50:01]MH_I2C_Read... [17:50:01]Read from MH i2c: E2 0E 00 [17:50:01]MH_I2C_Read... [17:50:01]Read from MH i2c: E2 0E 00 BA 00 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 03 [17:50:01]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [17:50:01]wFMCommunicate OK [17:50:01]SAM_PROTO_GetShiftState done [17:50:01]FM_GetShiftState done [17:50:01]opened in 1717373173 [17:50:01]opened+sec_in_day 1717459573 [17:50:01]quantity*price = 200037 [17:50:01]sum+1 = 200039 [17:50:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 115 03.06.2024 17:50 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63857 ФПД: 73403849478731 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T175002&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63857&fm=73403849478731&tin=02508201610067®Number=0000000000092737&sum=200000 [17:50:02]StoreToDocumentArchive [17:50:02]shift 373 fd 63857 [17:50:02]save to /storage/0373/doc_00063857 [17:50:02]save last doc name /storage/0373/doc_00063857 to /storage/kkm_last_doc_name [17:50:02]save OK [17:50:02]Clear old archive folders... [17:50:02]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:50:02]tlvbuf is 0107E870 [17:50:02]SAM_PROTO_ClearQueue [17:50:02]wFMCommunicate request_size=4 [17:50:02]MH_SAM_APDU [17:50:02]CAPDU: 80 09 00 00 [17:50:02]Write to MH i2c: E2 08 00 C7 00 80 09 00 00 00 00 00 00 39 [17:50:02]Write i2c OK [17:50:02]MH_I2C_Read... [17:50:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:50:02]Read from MH i2c: E2 [17:50:02]MH_I2C_Read... [17:50:02]Read from MH i2c: E2 03 00 [17:50:02]MH_I2C_Read... [17:50:02]Read from MH i2c: E2 03 00 C7 00 00 90 00 3B [17:50:02]RAPDU: 90 00 [17:50:02]wFMCommunicate OK [17:50:02]SAM_PROTO_ClearQueue done [17:50:02]KKMCreateOFDPacket [17:50:02]OFDProtocolAddRootSTLVToBuf [17:50:02]FM_MakeSignedData [17:50:02]FM_MakeSignedData [17:50:02]SAM_PROTO_SignData [17:50:02]wFMCommunicate request_size=4 [17:50:02]MH_SAM_APDU [17:50:02]CAPDU: 80 0D 01 02 [17:50:02]Write to MH i2c: E2 08 00 C8 00 80 0D 01 02 00 00 00 00 41 [17:50:02]Write i2c OK [17:50:02]MH_I2C_Read... [17:50:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:50:02]Read from MH i2c: E2 [17:50:02]MH_I2C_Read... [17:50:02]Read from MH i2c: E2 03 00 [17:50:02]MH_I2C_Read... [17:50:02]Read from MH i2c: E2 03 00 C8 00 00 90 00 3C [17:50:02]RAPDU: 90 00 [17:50:02]wFMCommunicate OK [17:50:02]wFMCommunicate request_size=255 [17:50:02]MH_SAM_APDU [17:50:02]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 4A 02 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 71 F9 00 00 35 04 06 00 42 C2 AA 5F [17:50:02]Write to MH i2c: E2 02 01 C9 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 35 FF 03 08 00 03 30 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 4A 02 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 71 F9 00 00 35 04 06 00 42 C2 AA 5F 00 00 94 [17:50:02]Write i2c OK [17:50:02]MH_I2C_Read... [17:50:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:50:02]Read from MH i2c: E2 [17:50:02]MH_I2C_Read... [17:50:02]Read from MH i2c: E2 03 00 [17:50:02]MH_I2C_Read... [17:50:02]Read from MH i2c: E2 03 00 C9 00 00 90 00 3D [17:50:02]RAPDU: 90 00 [17:50:02]wFMCommunicate OK [17:50:02]wFMCommunicate request_size=7 [17:50:02]MH_SAM_APDU [17:50:02]CAPDU: 80 0D 02 02 02 92 4B [17:50:02]Write to MH i2c: E2 0A 00 CA 00 80 0D 02 02 02 00 92 4B 00 00 25 [17:50:02]Write i2c OK [17:50:02]MH_I2C_Read... [17:50:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:50:02]Read from MH i2c: E2 [17:50:02]MH_I2C_Read... [17:50:02]Read from MH i2c: E2 03 00 [17:50:02]MH_I2C_Read... [17:50:02]Read from MH i2c: E2 03 00 CA 00 00 90 00 3E [17:50:02]RAPDU: 90 00 [17:50:02]wFMCommunicate OK [17:50:02]wFMCommunicate request_size=4 [17:50:02]MH_SAM_APDU [17:50:02]CAPDU: 80 0D 03 02 [17:50:02]Write to MH i2c: E2 08 00 CB 00 80 0D 03 02 00 00 00 00 46 [17:50:02]Write i2c OK [17:50:02]MH_I2C_Read... [17:50:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:50:02]Read from MH i2c: E2 [17:50:02]MH_I2C_Read... [17:50:02]Read from MH i2c: E2 0B 00 [17:50:02]MH_I2C_Read... [17:50:02]Read from MH i2c: E2 0B 00 CB 00 00 0C 29 1C A4 CD 9B 43 B2 90 00 99 [17:50:02]RAPDU: 0C 29 1C A4 CD 9B 43 B2 90 00 [17:50:02]wFMCommunicate OK [17:50:02]SAM_PROTO_SignData done [17:50:02]FM_MakeSignedData done [17:50:02]CreateOFDProtocolMessage [17:50:02]wFMCommunicate request_size=4 [17:50:02]MH_SAM_APDU [17:50:02]CAPDU: 80 11 00 00 [17:50:02]Write to MH i2c: E2 08 00 CC 00 80 11 00 00 00 00 00 00 46 [17:50:02]Write i2c OK [17:50:02]MH_I2C_Read... [17:50:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:50:02]Read from MH i2c: E2 [17:50:02]MH_I2C_Read... [17:50:02]Read from MH i2c: E2 17 00 [17:50:02]MH_I2C_Read... [17:50:02]Read from MH i2c: E2 17 00 CC 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 98 [17:50:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [17:50:02]wFMCommunicate OK [17:50:02]CreateOFDProtocolMessage done [17:50:02]OFDSenderStorePacket 63857 [17:50:02]StoreOFDPacket docnum=63857 [17:50:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0C 01 00 00 22 FF 04 01 6D 0E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 4A 02 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 71 F9 00 00 35 04 06 00 42 C2 AA 5F 92 4B 0C 29 1C A4 CD 9B 43 B2 [17:50:02]CheckFolder [17:50:02]dirname=/storage/ofd_packets [17:50:02]CheckFolder done [17:50:02]ProducePacketName [17:50:02]name=ofd_packets/00063857 [17:50:02]NVStorageSaveData ofd_packets/00063857 [17:50:02]File name is /storage/ofd_packets/00063857 [17:50:02]Write 298 bytes [17:50:02]NVStorageSaveData done [17:50:02]OFDSenderStorePacket done [17:50:02]KKMCreateOFDPacket done [17:50:02]NVStorageSaveData kkm_last_timestamp [17:50:02]File name is /storage/kkm_last_timestamp [17:50:02]Write 4 bytes [17:50:02]NVStorageSaveData done [17:50:02]ExternCall_PrintAddStr [17:50:02]wPrintStart [17:50:02]Write to MH i2c: 01 00 00 CD 00 CD [17:50:02]Write i2c OK [17:50:02]MH_I2C_Read... [17:50:02]Read from MH i2c: 01 [17:50:02]MH_I2C_Read... [17:50:02]Read from MH i2c: 01 07 00 [17:50:02]MH_I2C_Read... [17:50:02]Read from MH i2c: 01 07 00 CD 00 00 00 00 00 00 FF 0F E2 [17:50:02]RasterBufferAndPrint [17:50:02]line Счет N : (1)543990 [17:50:02]line ИНН: 02508201610067 [17:50:02]line Контрольно-Кассовый Чек [17:50:02]line ПРОДАЖА [17:50:02]line ТРК (МРК, ГНК) : 61 [17:50:02]line Товар: 2710194210 [17:50:02]line ДТ-К-5 [17:50:02]line 27.440 * 72.90 [17:50:02]line = 2000.38 [17:50:02]line НДС 12% НСП 1% [17:50:02]line > о реализуемом товаре [17:50:02]line ОКРУГЛЕНИЕ: -0.38 [17:50:02]line ИТОГО: 2000.00 [17:50:02]line Внесено: 2000.00 [17:50:02]line СДАЧА: 0.00 [17:50:02]line НСП 1% : 17.70 [17:50:02]line НДС 12% : 212.43 [17:50:02]line Наличными: 2000.00 [17:50:02]line Безнал.: 0.00 [17:50:02]line Место: АЗС № 117 "Партнер Нефть" [17:50:02]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [17:50:02]line СНО: Общий режим [17:50:02]line Чек 115 03.06.2024 17:50 [17:50:02]line Смена: 373 ФФД: 1.0 [17:50:02]line ЗНМ: 0300000031 [17:50:02]line РНМ: 0000000000092737 [17:50:02]line Версия ККМ: 001 [17:50:02]line ФМ: 0000000000875074 [17:50:02]line ФД: 63857 [17:50:02]line ФПД: 73403849478731 [17:50:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T175002&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63857&fm=73403849478731&tin=02508201610067®Number=0000000000092737&sum=200000 [17:50:03]OFD Sender: Processing packet 63857 [packets to send 14, broken 13] [17:50:03]ProducePacketName [17:50:03]name=ofd_packets/00063857 [17:50:03]OFD Sender: To server: pG, [17:50:03]CommunicateWithHost lk.salyk.kg:30040 [17:50:03]ConnectInit lk.salyk.kg [17:50:03]written 0, free lines is 4095 [17:50:03]Connected sock=10 [17:50:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0C 01 00 00 22 FF 04 01 6D 0E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 4A 02 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 71 F9 00 00 35 04 06 00 42 C2 AA 5F 92 4B 0C 29 1C A4 CD 9B 43 B2 [17:50:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 2F D0 47 00 BF A4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 71 F9 00 00 F4 03 04 00 1A AE 5D 66 B6 04 01 00 00 EC 7F 0C C5 EB FB 3F 60 [17:50:03]CommunicateWithHost err = 0 [17:50:03]CheckOFDResponse [17:50:03]1017 (14) - 77093643461234 [17:50:03]1041 (16) - 0000000000875074 [17:50:03]1040 (4) - 63857 [17:50:03]1012 (4) - 03.06.2024 11:50 [17:50:03]1206 (1) - 0 [17:50:03]OFD Sender: Remove packet 63857 [17:50:03]ProducePacketName [17:50:03]name=ofd_packets/00063857 [17:50:03]NVStorageDeleteData [17:50:03]Write to MH i2c: 01 00 00 F8 00 F8 [17:50:03]Write i2c OK [17:50:03]MH_I2C_Read... [17:50:03]Read from MH i2c: 01 [17:50:03]MH_I2C_Read... [17:50:03]Read from MH i2c: 01 07 00 [17:50:03]MH_I2C_Read... [17:50:03]Read from MH i2c: 01 07 00 F8 00 00 00 00 00 00 D2 0C DD [17:50:03]RasterBufferAndPrint [17:50:03]line [17:50:03]line [17:50:03]line [17:50:03]line [17:50:03]line [17:50:03]written 0, free lines is 3289 [17:50:03]MH_Cut [17:50:03]Write to MH i2c: D1 01 00 FF 00 01 D1 [17:50:03]Write i2c OK [17:50:03]MH_I2C_Read... [17:50:03]Read from MH i2c: D1 [17:50:03]MH_I2C_Read... [17:50:03]Read from MH i2c: D1 01 00 [17:50:03]MH_I2C_Read... [17:50:03]Read from MH i2c: D1 01 00 FF 00 00 D0 [17:50:03]Write to MH i2c: 01 00 00 00 01 01 [17:50:03]Write i2c OK [17:50:03]MH_I2C_Read... [17:50:03]OFD Sender: No OFD packet to send [17:50:04]*** Cut start [17:50:04]*** Partial cut [17:50:04]*** CUTSNS_PIN = 1 [17:50:04]*** CUTSNS_PIN = 0 [17:50:04]*** Brake cut motor [17:50:04]Read from MH i2c: 01 [17:50:04]MH_I2C_Read... [17:50:04]*** Stop cut motor [17:50:04]*** Cut end [17:50:04]Read from MH i2c: 01 07 00 [17:50:04]MH_I2C_Read... [17:50:04]Read from MH i2c: 01 07 00 00 01 00 00 00 00 00 FF 0F 16 [17:50:04]process_action close_receipt done [17:50:04]requested_data is exist [17:50:04]produce_requested_data [17:50:04]requested_item fm.sn is exist - process it [17:50:04]wFMCommunicate request_size=4 [17:50:04]MH_SAM_APDU [17:50:04]CAPDU: 80 11 00 00 [17:50:04]Write to MH i2c: E2 08 00 01 01 80 11 00 00 00 00 00 00 7C [17:50:04]Write i2c OK [17:50:04]MH_I2C_Read... [17:50:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:50:05]Read from MH i2c: E2 [17:50:05]MH_I2C_Read... [17:50:05]Read from MH i2c: E2 17 00 [17:50:05]MH_I2C_Read... [17:50:05]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 35 30 37 34 90 00 CE [17:50:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [17:50:05]wFMCommunicate OK [17:50:05]requested_item fd.num is exist - process it [17:50:05]SAM_PROTO_GetFieldsCounters [17:50:05]wFMCommunicate request_size=4 [17:50:05]MH_SAM_APDU [17:50:05]CAPDU: 80 13 00 00 [17:50:05]Write to MH i2c: E2 08 00 02 01 80 13 00 00 00 00 00 00 7F [17:50:05]Write i2c OK [17:50:05]MH_I2C_Read... [17:50:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:50:05]Read from MH i2c: E2 [17:50:05]MH_I2C_Read... [17:50:05]Read from MH i2c: E2 62 00 [17:50:05]MH_I2C_Read... [17:50:05]Read from MH i2c: E2 62 00 02 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 71 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 73 00 00 00 5E 04 04 00 73 00 00 00 57 04 04 00 74 00 00 00 19 04 04 00 00 00 00 00 90 00 DB [17:50: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 71 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 73 00 00 00 5E 04 04 00 73 00 00 00 57 04 04 00 74 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:50:05]wFMCommunicate OK [17:50:05]SAM_PROTO_GetFieldsCounters done [17:50:05]requested_item shift.num is exist - process it [17:50:05]requested_item shift.opened is exist - process it [17:50:05]req_shift_opened [17:50:05]FM_GetShiftState [17:50:05]SAM_PROTO_GetShiftState [17:50:05]wFMCommunicate request_size=4 [17:50:05]MH_SAM_APDU [17:50:05]CAPDU: 80 13 01 00 [17:50:05]Write to MH i2c: E2 08 00 03 01 80 13 01 00 00 00 00 00 81 [17:50:05]Write i2c OK [17:50:05]MH_I2C_Read... [17:50:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:50:05]Read from MH i2c: E2 [17:50:05]MH_I2C_Read... [17:50:05]Read from MH i2c: E2 0E 00 [17:50:05]MH_I2C_Read... [17:50:05]Read from MH i2c: E2 0E 00 03 01 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 4D [17:50:05]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [17:50:05]wFMCommunicate OK [17:50:05]SAM_PROTO_GetShiftState done [17:50:05]FM_GetShiftState done [17:50:05]req_shift_opened done [17:50:05]requested_item shift.open_date is exist - process it [17:50:05]req_shift_open_date [17:50:05]req_shift_open_date done [17:50:05]produce_requested_data done [17:50:05]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63857,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [17:50:05]process_action_free close_receipt [17:50:05]json_value_free [17:50:05]json_value_free done [17:50:05]process_json_proto returns [17:50:05]Send response to host [17:50:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63857,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [17:50:05]free response buf [17:50:05]execute_script done [17:50:05]execute_script returns [17:50:05]free content buf [17:50:05]Sock 9.Close socket [17:50:05]Sock 9.Thread stoped [17:50:08]OFD Sender: No OFD packet to send [17:50:13]accept exits with 7 [17:50:13]New connection [17:50:13]New thread 3066465636 created [17:50:13]Thread 3066608996 joined [17:50:13]Waiting for new connection... [17:50:13] Sock 7.Parse request [17:50:13]Sock 7.Check first char [17:50:13]Sock 7.First char is OK [17:50:13]request: POST /json_proto HTTP/1.0 [17:50:13]Method: POST [17:50:13]URL: /json_proto [17:50:13]Method is POST - this is cgi request [17:50:13]url: /json_proto [17:50:13]query_string will be loaded in cgi processing [17:50:13]execute_cgi json_proto POST (null) [17:50:13]execute_cgi path=json_proto method=POST [17:50:13]POST find Content-Length [17:50:13]Host: 172.17.60.69:8080 [17:50:13]Content-Length: 674 [17:50:13]Content-Type: application/json [17:50:13] [17:50:13]POST finish read [17:50:13]Found Content-Length = 674 [17:50:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543991", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 6.860, "sum" : 500.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:50:13]execute_script... [17:50: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)543991", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 6.860, "sum" : 500.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:50:13]POST & json_proto [17:50:13]process_json_proto [17:50:13]json parsed OK: [17:50:13]protocol is kg_v1.0 [17:50:13]action value=close_receipt [17:50:13]process_action close_receipt [17:50:13]cmd_close_receipt [17:50:13]MH_GetDate [17:50:13]Write to MH i2c: F0 00 00 04 01 F4 [17:50:13]Write i2c OK [17:50:13]MH_I2C_Read... [17:50:13]Read from MH i2c: F0 [17:50:13]MH_I2C_Read... [17:50:13]Read from MH i2c: F0 09 00 [17:50:13]MH_I2C_Read... [17:50:13]Read from MH i2c: F0 09 00 04 01 00 56 02 5E 66 6A 96 4A 66 C9 [17:50:13]GetLastDocTimeStamp 1717437002 [17:50:13]current date 1717437014 [17:50:13]FM_GetShiftState [17:50:13]SAM_PROTO_GetShiftState [17:50:13]wFMCommunicate request_size=4 [17:50:13]MH_SAM_APDU [17:50:13]CAPDU: 80 13 01 00 [17:50:13]Write to MH i2c: E2 08 00 05 01 80 13 01 00 00 00 00 00 83 [17:50:13]Write i2c OK [17:50:13]MH_I2C_Read... [17:50:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:50:13]Read from MH i2c: E2 [17:50:13]MH_I2C_Read... [17:50:13]Read from MH i2c: E2 0E 00 [17:50:13]MH_I2C_Read... [17:50:13]Read from MH i2c: E2 0E 00 05 01 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 4F [17:50:13]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [17:50:13]wFMCommunicate OK [17:50:13]SAM_PROTO_GetShiftState done [17:50:13]FM_GetShiftState done [17:50:13]opened in 1717373173 [17:50:13]opened+sec_in_day 1717459573 [17:50:13]quantity*price = 50009 [17:50:13]sum+1 = 50010 [17:50:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 116 03.06.2024 17:50 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63858 ФПД: 231516262202143 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T175014&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63858&fm=231516262202143&tin=02508201610067®Number=0000000000092737&sum=50000 [17:50:14]StoreToDocumentArchive [17:50:14]shift 373 fd 63858 [17:50:14]save to /storage/0373/doc_00063858 [17:50:14]save last doc name /storage/0373/doc_00063858 to /storage/kkm_last_doc_name [17:50:14]save OK [17:50:14]Clear old archive folders... [17:50:14]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:50:14]tlvbuf is 01088F20 [17:50:14]SAM_PROTO_ClearQueue [17:50:14]wFMCommunicate request_size=4 [17:50:14]MH_SAM_APDU [17:50:14]CAPDU: 80 09 00 00 [17:50:14]Write to MH i2c: E2 08 00 12 01 80 09 00 00 00 00 00 00 85 [17:50:14]Write i2c OK [17:50:14]MH_I2C_Read... [17:50:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:50:14]Read from MH i2c: E2 [17:50:14]MH_I2C_Read... [17:50:14]Read from MH i2c: E2 03 00 [17:50:14]MH_I2C_Read... [17:50:14]Read from MH i2c: E2 03 00 12 01 00 90 00 87 [17:50:14]RAPDU: 90 00 [17:50:14]wFMCommunicate OK [17:50:14]SAM_PROTO_ClearQueue done [17:50:14]KKMCreateOFDPacket [17:50:14]OFDProtocolAddRootSTLVToBuf [17:50:14]FM_MakeSignedData [17:50:14]FM_MakeSignedData [17:50:14]SAM_PROTO_SignData [17:50:14]wFMCommunicate request_size=4 [17:50:14]MH_SAM_APDU [17:50:14]CAPDU: 80 0D 01 02 [17:50:14]Write to MH i2c: E2 08 00 13 01 80 0D 01 02 00 00 00 00 8D [17:50:14]Write i2c OK [17:50:14]MH_I2C_Read... [17:50:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:50:14]Read from MH i2c: E2 [17:50:14]MH_I2C_Read... [17:50:14]Read from MH i2c: E2 03 00 [17:50:14]MH_I2C_Read... [17:50:14]Read from MH i2c: E2 03 00 13 01 00 90 00 88 [17:50:14]RAPDU: 90 00 [17:50:14]wFMCommunicate OK [17:50:14]wFMCommunicate request_size=255 [17:50:14]MH_SAM_APDU [17:50:14]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 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 56 02 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 72 F9 00 00 35 04 06 00 D2 90 14 91 [17:50:14]Write to MH i2c: E2 02 01 14 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 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 56 02 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 72 F9 00 00 35 04 06 00 D2 90 14 91 00 00 B1 [17:50:14]Write i2c OK [17:50:14]MH_I2C_Read... [17:50:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:50:15]Read from MH i2c: E2 [17:50:15]MH_I2C_Read... [17:50:15]Read from MH i2c: E2 03 00 [17:50:15]MH_I2C_Read... [17:50:15]Read from MH i2c: E2 03 00 14 01 00 90 00 89 [17:50:15]RAPDU: 90 00 [17:50:15]wFMCommunicate OK [17:50:15]wFMCommunicate request_size=7 [17:50:15]MH_SAM_APDU [17:50:15]CAPDU: 80 0D 02 02 02 7B 1F [17:50:15]Write to MH i2c: E2 0A 00 15 01 80 0D 02 02 02 00 7B 1F 00 00 2E [17:50:15]Write i2c OK [17:50:15]MH_I2C_Read... [17:50:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:50:15]Read from MH i2c: E2 [17:50:15]MH_I2C_Read... [17:50:15]Read from MH i2c: E2 03 00 [17:50:15]MH_I2C_Read... [17:50:15]Read from MH i2c: E2 03 00 15 01 00 90 00 8A [17:50:15]RAPDU: 90 00 [17:50:15]wFMCommunicate OK [17:50:15]wFMCommunicate request_size=4 [17:50:15]MH_SAM_APDU [17:50:15]CAPDU: 80 0D 03 02 [17:50:15]Write to MH i2c: E2 08 00 16 01 80 0D 03 02 00 00 00 00 92 [17:50:15]Write i2c OK [17:50:15]MH_I2C_Read... [17:50:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:50:15]Read from MH i2c: E2 [17:50:15]MH_I2C_Read... [17:50:15]Read from MH i2c: E2 0B 00 [17:50:15]MH_I2C_Read... [17:50:15]Read from MH i2c: E2 0B 00 16 01 00 7A 7B 90 5B 7C 17 66 75 90 00 E1 [17:50:15]RAPDU: 7A 7B 90 5B 7C 17 66 75 90 00 [17:50:15]wFMCommunicate OK [17:50:15]SAM_PROTO_SignData done [17:50:15]FM_MakeSignedData done [17:50:15]CreateOFDProtocolMessage [17:50:15]wFMCommunicate request_size=4 [17:50:15]MH_SAM_APDU [17:50:15]CAPDU: 80 11 00 00 [17:50:15]Write to MH i2c: E2 08 00 17 01 80 11 00 00 00 00 00 00 92 [17:50:15]Write i2c OK [17:50:15]MH_I2C_Read... [17:50:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:50:15]Read from MH i2c: E2 [17:50:15]MH_I2C_Read... [17:50:15]Read from MH i2c: E2 17 00 [17:50:15]MH_I2C_Read... [17:50:15]Read from MH i2c: E2 17 00 17 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 E4 [17:50:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [17:50:15]wFMCommunicate OK [17:50:15]CreateOFDProtocolMessage done [17:50:15]OFDSenderStorePacket 63858 [17:50:15]StoreOFDPacket docnum=63858 [17:50:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0C 01 00 00 80 16 04 01 AD 89 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 56 02 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 72 F9 00 00 35 04 06 00 D2 90 14 91 7B 1F 7A 7B 90 5B 7C 17 66 75 [17:50:15]CheckFolder [17:50:15]dirname=/storage/ofd_packets [17:50:15]CheckFolder done [17:50:15]ProducePacketName [17:50:15]name=ofd_packets/00063858 [17:50:15]NVStorageSaveData ofd_packets/00063858 [17:50:15]File name is /storage/ofd_packets/00063858 [17:50:15]Write 298 bytes [17:50:15]NVStorageSaveData done [17:50:15]OFDSenderStorePacket done [17:50:15]KKMCreateOFDPacket done [17:50:15]NVStorageSaveData kkm_last_timestamp [17:50:15]File name is /storage/kkm_last_timestamp [17:50:15]Write 4 bytes [17:50:15]NVStorageSaveData done [17:50:15]ExternCall_PrintAddStr [17:50:15]wPrintStart [17:50:15]Write to MH i2c: 01 00 00 18 01 19 [17:50:15]Write i2c OK [17:50:15]MH_I2C_Read... [17:50:15]Read from MH i2c: 01 [17:50:15]MH_I2C_Read... [17:50:15]Read from MH i2c: 01 07 00 [17:50:15]MH_I2C_Read... [17:50:15]Read from MH i2c: 01 07 00 18 01 00 00 00 00 00 FF 0F 2E [17:50:15]RasterBufferAndPrint [17:50:15]line Счет N : (1)543991 [17:50:15]line ИНН: 02508201610067 [17:50:15]line Контрольно-Кассовый Чек [17:50:15]line ПРОДАЖА [17:50:15]line ТРК (МРК, ГНК) : 31 [17:50:15]line Товар: 2710194210 [17:50:15]line ДТ-К-5 [17:50:15]line 6.860 * 72.90 [17:50:15]line = 500.09 [17:50:15]line НДС 12% НСП 1% [17:50:15]line > о реализуемом товаре [17:50:15]line ОКРУГЛЕНИЕ: -0.09 [17:50:15]line ИТОГО: 500.00 [17:50:15]line Внесено: 500.00 [17:50:15]line СДАЧА: 0.00 [17:50:15]line НСП 1% : 4.43 [17:50:15]line НДС 12% : 53.11 [17:50:15]line Наличными: 500.00 [17:50:15]line Безнал.: 0.00 [17:50:15]line Место: АЗС № 117 "Партнер Нефть" [17:50:15]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [17:50:15]line СНО: Общий режим [17:50:15]line Чек 116 03.06.2024 17:50 [17:50:15]line Смена: 373 ФФД: 1.0 [17:50:15]line ЗНМ: 0300000031 [17:50:15]line РНМ: 0000000000092737 [17:50:15]line Версия ККМ: 001 [17:50:15]line ФМ: 0000000000875074 [17:50:15]line ФД: 63858 [17:50:15]line ФПД: 231516262202143 [17:50:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T175014&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63858&fm=231516262202143&tin=02508201610067®Number=0000000000092737&sum=50000 [17:50:15]OFD Sender: Processing packet 63858 [packets to send 14, broken 13] [17:50:15]ProducePacketName [17:50:15]name=ofd_packets/00063858 [17:50:15]OFD Sender: To server: pG, [17:50:15]CommunicateWithHost lk.salyk.kg:30040 [17:50:15]ConnectInit lk.salyk.kg [17:50:15]written 0, free lines is 4095 [17:50:15]Connected sock=10 [17:50:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0C 01 00 00 80 16 04 01 AD 89 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 56 02 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 72 F9 00 00 35 04 06 00 D2 90 14 91 7B 1F 7A 7B 90 5B 7C 17 66 75 [17:50:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 AA 39 47 00 A6 DE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 72 F9 00 00 F4 03 04 00 27 AE 5D 66 B6 04 01 00 00 D5 71 95 27 E3 E7 11 60 [17:50:16]CommunicateWithHost err = 0 [17:50:16]CheckOFDResponse [17:50:16]1017 (14) - 77093643461234 [17:50:16]1041 (16) - 0000000000875074 [17:50:16]1040 (4) - 63858 [17:50:16]1012 (4) - 03.06.2024 11:51 [17:50:16]1206 (1) - 0 [17:50:16]OFD Sender: Remove packet 63858 [17:50:16]ProducePacketName [17:50:16]name=ofd_packets/00063858 [17:50:16]NVStorageDeleteData [17:50:16]Write to MH i2c: 01 00 00 43 01 44 [17:50:16]Write i2c OK [17:50:16]MH_I2C_Read... [17:50:16]Read from MH i2c: 01 [17:50:16]MH_I2C_Read... [17:50:16]Read from MH i2c: 01 07 00 [17:50:16]MH_I2C_Read... [17:50:16]Read from MH i2c: 01 07 00 43 01 00 00 00 00 00 DC 0C 33 [17:50:16]RasterBufferAndPrint [17:50:16]line [17:50:16]line [17:50:16]line [17:50:16]line [17:50:16]line [17:50:16]written 0, free lines is 3302 [17:50:16]MH_Cut [17:50:16]Write to MH i2c: D1 01 00 4A 01 01 1D [17:50:16]Write i2c OK [17:50:16]MH_I2C_Read... [17:50:16]Read from MH i2c: D1 [17:50:16]MH_I2C_Read... [17:50:16]Read from MH i2c: D1 01 00 [17:50:16]MH_I2C_Read... [17:50:16]Read from MH i2c: D1 01 00 4A 01 00 1C [17:50:16]Write to MH i2c: 01 00 00 4B 01 4C [17:50:16]Write i2c OK [17:50:16]MH_I2C_Read... [17:50:16]OFD Sender: No OFD packet to send [17:50:16]*** Cut start [17:50:16]*** Partial cut [17:50:16]*** CUTSNS_PIN = 1 [17:50:17]*** CUTSNS_PIN = 0 [17:50:17]*** Brake cut motor [17:50:17]Read from MH i2c: 01 [17:50:17]MH_I2C_Read... [17:50:17]*** Stop cut motor [17:50:17]*** Cut end [17:50:17]Read from MH i2c: 01 07 00 [17:50:17]MH_I2C_Read... [17:50:17]Read from MH i2c: 01 07 00 4B 01 00 00 00 00 00 FF 0F 61 [17:50:17]process_action close_receipt done [17:50:17]requested_data is exist [17:50:17]produce_requested_data [17:50:17]requested_item fm.sn is exist - process it [17:50:17]wFMCommunicate request_size=4 [17:50:17]MH_SAM_APDU [17:50:17]CAPDU: 80 11 00 00 [17:50:17]Write to MH i2c: E2 08 00 4C 01 80 11 00 00 00 00 00 00 C7 [17:50:17]Write i2c OK [17:50:17]MH_I2C_Read... [17:50:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:50:17]Read from MH i2c: E2 [17:50:17]MH_I2C_Read... [17:50:17]Read from MH i2c: E2 17 00 [17:50:17]MH_I2C_Read... [17:50:17]Read from MH i2c: E2 17 00 4C 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 19 [17:50:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [17:50:17]wFMCommunicate OK [17:50:17]requested_item fd.num is exist - process it [17:50:17]SAM_PROTO_GetFieldsCounters [17:50:17]wFMCommunicate request_size=4 [17:50:17]MH_SAM_APDU [17:50:17]CAPDU: 80 13 00 00 [17:50:17]Write to MH i2c: E2 08 00 4D 01 80 13 00 00 00 00 00 00 CA [17:50:17]Write i2c OK [17:50:17]MH_I2C_Read... [17:50:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:50:17]Read from MH i2c: E2 [17:50:17]MH_I2C_Read... [17:50:17]Read from MH i2c: E2 62 00 [17:50:17]MH_I2C_Read... [17:50:17]Read from MH i2c: E2 62 00 4D 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 72 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 2A [17:50:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 72 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:50:17]wFMCommunicate OK [17:50:17]SAM_PROTO_GetFieldsCounters done [17:50:17]requested_item shift.num is exist - process it [17:50:17]requested_item shift.opened is exist - process it [17:50:17]req_shift_opened [17:50:17]FM_GetShiftState [17:50:17]SAM_PROTO_GetShiftState [17:50:17]wFMCommunicate request_size=4 [17:50:17]MH_SAM_APDU [17:50:17]CAPDU: 80 13 01 00 [17:50:17]Write to MH i2c: E2 08 00 4E 01 80 13 01 00 00 00 00 00 CC [17:50:17]Write i2c OK [17:50:17]MH_I2C_Read... [17:50:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:50:17]Read from MH i2c: E2 [17:50:17]MH_I2C_Read... [17:50:17]Read from MH i2c: E2 0E 00 [17:50:17]MH_I2C_Read... [17:50:17]Read from MH i2c: E2 0E 00 4E 01 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 98 [17:50:17]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [17:50:17]wFMCommunicate OK [17:50:17]SAM_PROTO_GetShiftState done [17:50:17]FM_GetShiftState done [17:50:17]req_shift_opened done [17:50:17]requested_item shift.open_date is exist - process it [17:50:17]req_shift_open_date [17:50:17]req_shift_open_date done [17:50:17]produce_requested_data done [17:50:17]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63858,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [17:50:17]process_action_free close_receipt [17:50:17]json_value_free [17:50:17]json_value_free done [17:50:17]process_json_proto returns [17:50:17]Send response to host [17:50:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63858,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [17:50:17]free response buf [17:50:17]execute_script done [17:50:17]execute_script returns [17:50:17]free content buf [17:50:17]Sock 7.Close socket [17:50:17]Sock 7.Thread stoped [17:50:21]OFD Sender: No OFD packet to send [17:50:26]OFD Sender: No OFD packet to send [17:50:31]OFD Sender: No OFD packet to send [17:50:36]OFD Sender: No OFD packet to send [17:50:41]OFD Sender: No OFD packet to send [17:50:46]OFD Sender: No OFD packet to send [17:50:51]OFD Sender: No OFD packet to send [17:50:56]OFD Sender: No OFD packet to send [17:51:01]OFD Sender: No OFD packet to send [17:51:06]OFD Sender: No OFD packet to send [17:51:11]OFD Sender: No OFD packet to send [17:53:23]ConnectInit Can't connect to host [17:53:27]OFD Sender: No OFD packet to send [17:53:32]OFD Sender: No OFD packet to send [17:53:37]OFD Sender: No OFD packet to send [17:53:38]accept exits with 9 [17:53:38]New connection [17:53:38]New thread 3066719588 created [17:53:38]Waiting for new connection... [17:53:38] Sock 9.Parse request [17:53:38]Sock 9.Check first char [17:53:38]Sock 9.First char is OK [17:53:38]request: POST /json_proto HTTP/1.0 [17:53:38]Method: POST [17:53:38]URL: /json_proto [17:53:38]Method is POST - this is cgi request [17:53:38]url: /json_proto [17:53:38]query_string will be loaded in cgi processing [17:53:38]execute_cgi json_proto POST (null) [17:53:38]execute_cgi path=json_proto method=POST [17:53:38]POST find Content-Length [17:53:38]Host: 172.17.60.69:8080 [17:53:38]Content-Length: 215 [17:53:38]Content-Type: application/json [17:53:38] [17:53:38]POST finish read [17:53:38]Found Content-Length = 215 [17:53:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:53:38]execute_script... [17:53:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:53:38]POST & json_proto [17:53:38]process_json_proto [17:53:38]json parsed OK: [17:53:38]protocol is kg_v1.0 [17:53:38]action value=get_value [17:53:38]process_action get_value [17:53:38]cmd_get_value [17:53:38]process_action get_value done [17:53:38]requested_data is exist [17:53:38]produce_requested_data [17:53:38]requested_item kkm.sn is exist - process it [17:53:38]requested_item kkm.ver is exist - process it [17:53:38]requested_item fm.sn is exist - process it [17:53:38]wFMCommunicate request_size=4 [17:53:38]MH_SAM_APDU [17:53:38]CAPDU: 80 11 00 00 [17:53:38]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [17:53:38]Write i2c OK [17:53:38]MH_I2C_Read... [17:53:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:53:38]Read from MH i2c: E2 [17:53:38]MH_I2C_Read... [17:53:38]Read from MH i2c: E2 17 00 [17:53:38]MH_I2C_Read... [17:53:38]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 DC [17:53:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [17:53:38]wFMCommunicate OK [17:53:38]requested_item fd.num is exist - process it [17:53:38]SAM_PROTO_GetFieldsCounters [17:53:38]wFMCommunicate request_size=4 [17:53:38]MH_SAM_APDU [17:53:38]CAPDU: 80 13 00 00 [17:53:38]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [17:53:38]Write i2c OK [17:53:38]MH_I2C_Read... [17:53:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:53:38]Read from MH i2c: E2 [17:53:38]MH_I2C_Read... [17:53:38]Read from MH i2c: E2 62 00 [17:53:38]MH_I2C_Read... [17:53:38]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 72 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 ED [17:53:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 72 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:53:38]wFMCommunicate OK [17:53:38]SAM_PROTO_GetFieldsCounters done [17:53:38]requested_item shift.num is exist - process it [17:53:38]requested_item shift.opened is exist - process it [17:53:38]req_shift_opened [17:53:38]FM_GetShiftState [17:53:38]SAM_PROTO_GetShiftState [17:53:38]wFMCommunicate request_size=4 [17:53:38]MH_SAM_APDU [17:53:38]CAPDU: 80 13 01 00 [17:53:38]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [17:53:38]Write i2c OK [17:53:38]MH_I2C_Read... [17:53:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:53:38]Read from MH i2c: E2 [17:53:38]MH_I2C_Read... [17:53:38]Read from MH i2c: E2 0E 00 [17:53:38]MH_I2C_Read... [17:53:38]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 5B [17:53:38]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [17:53:38]wFMCommunicate OK [17:53:38]SAM_PROTO_GetShiftState done [17:53:38]FM_GetShiftState done [17:53:38]req_shift_opened done [17:53:38]requested_item shift.open_date is exist - process it [17:53:38]req_shift_open_date [17:53:38]req_shift_open_date done [17:53:38]produce_requested_data done [17:53:38]produce_requested_data return {"kkm.sn":"0300000031","kkm.ver":"001","fm.sn":"0000000000875074","fd.num":63858,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [17:53:38]process_action_free get_value [17:53:38]json_value_free [17:53:38]json_value_free done [17:53:38]process_json_proto returns [17:53:38]Send response to host [17:53:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000031","kkm.ver":"001","fm.sn":"0000000000875074","fd.num":63858,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [17:53:38]free response buf [17:53:38]execute_script done [17:53:38]execute_script returns [17:53:38]free content buf [17:53:38]Sock 9.Close socket [17:53:38]Sock 9.Thread stoped [17:53:42]accept exits with 7 [17:53:42]New connection [17:53:42]New thread 3066576228 created [17:53:42]Thread 3066719588 joined [17:53:42]Waiting for new connection... [17:53:42] Sock 7.Parse request [17:53:42]Sock 7.Check first char [17:53:42]Sock 7.First char is OK [17:53:42]request: POST /json_proto HTTP/1.0 [17:53:42]Method: POST [17:53:42]URL: /json_proto [17:53:42]Method is POST - this is cgi request [17:53:42]url: /json_proto [17:53:42]query_string will be loaded in cgi processing [17:53:42]execute_cgi json_proto POST (null) [17:53:42]execute_cgi path=json_proto method=POST [17:53:42]POST find Content-Length [17:53:42]Host: 172.17.60.69:8080 [17:53:42]Content-Length: 331 [17:53:42]Content-Type: application/json [17:53:42] [17:53:42]POST finish read [17:53:42]Found Content-Length = 331 [17:53:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [17:53:42]execute_script... [17:53:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [17:53:42]POST & json_proto [17:53:42]process_json_proto [17:53:42]json parsed OK: [17:53:42]protocol is kg_v1.0 [17:53:42]action value=get_value [17:53:42]process_action get_value [17:53:42]cmd_get_value [17:53:42]process_action get_value done [17:53:42]requested_data is exist [17:53:42]produce_requested_data [17:53:42]requested_item fm.sale.total is exist - process it [17:53:42]SAM_PROTO_GetFMData [17:53:42]wFMCommunicate request_size=4 [17:53:42]MH_SAM_APDU [17:53:42]CAPDU: 80 13 03 00 [17:53:42]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [17:53:42]Write i2c OK [17:53:42]MH_I2C_Read... [17:53:42]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [17:53:42]Read from MH i2c: E2 [17:53:42]MH_I2C_Read... [17:53:42]Read from MH i2c: E2 FD 00 [17:53:42]MH_I2C_Read... [17:53:42]Read from MH i2c: E2 FD 00 13 00 00 C5 04 85 04 C1 04 6E 04 04 00 88 F6 00 00 69 04 A1 00 6F 04 04 00 2B F4 00 00 B1 04 04 00 25 F1 AF 76 70 04 04 00 B6 CF F5 65 72 04 04 00 6F 21 BA 10 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 DD 07 9B 0C 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 A8 D7 0C 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 5D 02 00 00 B1 04 04 00 64 11 7D 03 70 04 04 00 E0 B5 61 03 72 04 03 00 84 5B 1B 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 F2 D8 5E EF 03 09 90 00 4B [17:53:42]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 88 F6 00 00 69 04 A1 00 6F 04 04 00 2B F4 00 00 B1 04 04 00 25 F1 AF 76 70 04 04 00 B6 CF F5 65 72 04 04 00 6F 21 BA 10 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 DD 07 9B 0C 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 A8 D7 0C 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 5D 02 00 00 B1 04 04 00 64 11 7D 03 70 04 04 00 E0 B5 61 03 72 04 03 00 84 5B 1B 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 F2 D8 5E EF 03 09 90 00 [17:53:42]wFMCommunicate OK [17:53:42]wFMCommunicate request_size=4 [17:53:42]MH_SAM_APDU [17:53:42]CAPDU: 80 17 00 00 [17:53:42]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [17:53:42]OFD Sender: No OFD packet to send [17:53:42]Write i2c OK [17:53:42]MH_I2C_Read... [17:53:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:53:42]Read from MH i2c: E2 [17:53:42]MH_I2C_Read... [17:53:42]Read from MH i2c: E2 FD 00 [17:53:42]MH_I2C_Read... [17:53:42]Read from MH i2c: E2 FD 00 14 00 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 2E E7 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 66 [17:53:42]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 2E E7 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [17:53:42]wFMCommunicate OK [17:53:42]wFMCommunicate request_size=4 [17:53:42]MH_SAM_APDU [17:53:42]CAPDU: 80 17 00 00 [17:53:42]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [17:53:42]Write i2c OK [17:53:42]MH_I2C_Read... [17:53:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:53:43]Read from MH i2c: E2 [17:53:43]MH_I2C_Read... [17:53:43]Read from MH i2c: E2 FD 00 [17:53:43]MH_I2C_Read... [17:53:43]Read from MH i2c: E2 FD 00 15 00 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 A7 [17:53:43]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [17:53:43]wFMCommunicate OK [17:53:43]wFMCommunicate request_size=4 [17:53:43]MH_SAM_APDU [17:53:43]CAPDU: 80 17 00 00 [17:53:43]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [17:53:43]Write i2c OK [17:53:43]MH_I2C_Read... [17:53:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:53:43]Read from MH i2c: E2 [17:53:43]MH_I2C_Read... [17:53:43]Read from MH i2c: E2 FD 00 [17:53:43]MH_I2C_Read... [17:53:43]Read from MH i2c: E2 FD 00 16 00 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 22 [17:53:43]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [17:53:43]wFMCommunicate OK [17:53:43]wFMCommunicate request_size=4 [17:53:43]MH_SAM_APDU [17:53:43]CAPDU: 80 17 00 00 [17:53:43]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [17:53:43]Write i2c OK [17:53:43]MH_I2C_Read... [17:53:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [17:53:43]Read from MH i2c: E2 [17:53:43]MH_I2C_Read... [17:53:43]Read from MH i2c: E2 E2 00 [17:53:43]MH_I2C_Read... [17:53:43]Read from MH i2c: E2 E2 00 17 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 75 [17:53:43]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [17:53:43]wFMCommunicate OK [17:53:43]SAM_PROTO_GetFMData done [17:53:43]requested_item fm.sale_refund.total is exist - process it [17:53:43]requested_item fm.buy.total is exist - process it [17:53:43]requested_item shift.sale.total is exist - process it [17:53:43]SAM_PROTO_GetShiftData [17:53:43]wFMCommunicate request_size=4 [17:53:43]MH_SAM_APDU [17:53:43]CAPDU: 80 13 02 00 [17:53:43]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [17:53:43]Write i2c OK [17:53:43]MH_I2C_Read... [17:53:43]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [17:53:44]Read from MH i2c: E2 [17:53:44]MH_I2C_Read... [17:53:44]Read from MH i2c: E2 FD 00 [17:53:44]MH_I2C_Read... [17:53:44]Read from MH i2c: E2 FD 00 18 00 00 AE 04 AA 04 AA 04 6E 04 04 00 74 00 00 00 69 04 9B 00 6F 04 04 00 74 00 00 00 B1 04 03 00 38 FC 37 70 04 03 00 B0 34 2A 72 04 03 00 88 C7 0D 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 2D F2 05 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 D4 7E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 8A [17:53:44]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 74 00 00 00 69 04 9B 00 6F 04 04 00 74 00 00 00 B1 04 03 00 38 FC 37 70 04 03 00 B0 34 2A 72 04 03 00 88 C7 0D 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 2D F2 05 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 D4 7E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [17:53:44]wFMCommunicate OK [17:53:44]wFMCommunicate request_size=4 [17:53:44]MH_SAM_APDU [17:53:44]CAPDU: 80 17 00 00 [17:53:44]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [17:53:44]Write i2c OK [17:53:44]MH_I2C_Read... [17:53:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:53:44]Read from MH i2c: E2 [17:53:44]MH_I2C_Read... [17:53:44]Read from MH i2c: E2 FD 00 [17:53:44]MH_I2C_Read... [17:53:44]Read from MH i2c: E2 FD 00 19 00 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 BB [17:53:44]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [17:53:44]wFMCommunicate OK [17:53:44]wFMCommunicate request_size=4 [17:53:44]MH_SAM_APDU [17:53:44]CAPDU: 80 17 00 00 [17:53:44]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [17:53:44]Write i2c OK [17:53:44]MH_I2C_Read... [17:53:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:53:44]Read from MH i2c: E2 [17:53:44]MH_I2C_Read... [17:53:44]Read from MH i2c: E2 FD 00 [17:53:44]MH_I2C_Read... [17:53:44]Read from MH i2c: E2 FD 00 1A 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 51 [17:53:44]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [17:53:44]wFMCommunicate OK [17:53:44]wFMCommunicate request_size=4 [17:53:44]MH_SAM_APDU [17:53:44]CAPDU: 80 17 00 00 [17:53:44]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [17:53:44]Write i2c OK [17:53:44]MH_I2C_Read... [17:53:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:53:44]Read from MH i2c: E2 [17:53:44]MH_I2C_Read... [17:53:44]Read from MH i2c: E2 FD 00 [17:53:44]MH_I2C_Read... [17:53:44]Read from MH i2c: E2 FD 00 1B 00 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 0D [17:53:44]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [17:53:44]wFMCommunicate OK [17:53:44]wFMCommunicate request_size=4 [17:53:44]MH_SAM_APDU [17:53:44]CAPDU: 80 17 00 00 [17:53:44]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [17:53:44]Write i2c OK [17:53:44]MH_I2C_Read... [17:53:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [17:53:45]Read from MH i2c: E2 [17:53:45]MH_I2C_Read... [17:53:45]Read from MH i2c: E2 CB 00 [17:53:45]MH_I2C_Read... [17:53:45]Read from MH i2c: E2 CB 00 1C 00 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 85 [17:53:45]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [17:53:45]wFMCommunicate OK [17:53:45]SAM_PROTO_GetShiftData done [17:53:45]requested_item shift.sale.total_cash is exist - process it [17:53:45]requested_item shift.sale_refund.total is exist - process it [17:53:45]requested_item shift.sale_refund.total_cash is exist - process it [17:53:45]requested_item shift.buy.total is exist - process it [17:53:45]requested_item shift.buy.total_cash is exist - process it [17:53:45]produce_requested_data done [17:53:45]produce_requested_data return {"fm.sale.total":19912420.21,"fm.sale_refund.total":585281.00,"fm.buy.total":0.00,"shift.sale.total":36690.48,"shift.sale.total_cash":27660.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} [17:53:45]process_action_free get_value [17:53:45]json_value_free [17:53:45]json_value_free done [17:53:45]process_json_proto returns [17:53:45]Send response to host [17:53:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":19912420.21,"fm.sale_refund.total":585281.00,"fm.buy.total":0.00,"shift.sale.total":36690.48,"shift.sale.total_cash":27660.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}}} [17:53:45]free response buf [17:53:45]execute_script done [17:53:45]execute_script returns [17:53:45]free content buf [17:53:45]Sock 7.Close socket [17:53:45]Sock 7.Thread stoped [17:53:47]OFD Sender: No OFD packet to send [17:53:52]OFD Sender: No OFD packet to send [17:53:56]accept exits with 9 [17:53:56]New connection [17:53:56]New thread 3066719588 created [17:53:56]Thread 3066576228 joined [17:53:56]Waiting for new connection... [17:53:56] Sock 9.Parse request [17:53:56]Sock 9.Check first char [17:53:56]Sock 9.First char is OK [17:53:56]request: POST /json_proto HTTP/1.0 [17:53:56]Method: POST [17:53:56]URL: /json_proto [17:53:56]Method is POST - this is cgi request [17:53:56]url: /json_proto [17:53:56]query_string will be loaded in cgi processing [17:53:56]execute_cgi json_proto POST (null) [17:53:56]execute_cgi path=json_proto method=POST [17:53:56]POST find Content-Length [17:53:56]Host: 172.17.60.69:8080 [17:53:56]Content-Length: 735 [17:53:56]Content-Type: application/json [17:53:56] [17:53:56]POST finish read [17:53:56]Found Content-Length = 735 [17:53:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 63857, "base_FM": "0000000000875074", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543990", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124100", "name": "\u0414\u0422-\u041A-1", "price" : 72.90, "quantity" : 27.440, "sum" : 2000.38, "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" ] } } [17:53:56]execute_script... [17:53:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 63857, "base_FM": "0000000000875074", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543990", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124100", "name": "\u0414\u0422-\u041A-1", "price" : 72.90, "quantity" : 27.440, "sum" : 2000.38, "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" ] } } [17:53:56]POST & json_proto [17:53:56]process_json_proto [17:53:56]json parsed OK: [17:53:56]protocol is kg_v1.0 [17:53:56]action value=close_receipt [17:53:56]process_action close_receipt [17:53:56]cmd_close_receipt [17:53:56]MH_GetDate [17:53:56]Write to MH i2c: F0 00 00 1D 00 0C [17:53:56]Write i2c OK [17:53:56]MH_I2C_Read... [17:53:56]Read from MH i2c: F0 [17:53:56]MH_I2C_Read... [17:53:56]Read from MH i2c: F0 09 00 [17:53:56]MH_I2C_Read... [17:53:56]Read from MH i2c: F0 09 00 1D 00 00 34 03 5E 66 6A 96 4A 66 C0 [17:53:56]GetLastDocTimeStamp 1717437014 [17:53:56]current date 1717437236 [17:53:56]FM_GetShiftState [17:53:56]SAM_PROTO_GetShiftState [17:53:56]wFMCommunicate request_size=4 [17:53:56]MH_SAM_APDU [17:53:56]CAPDU: 80 13 01 00 [17:53:56]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [17:53:56]Write i2c OK [17:53:56]MH_I2C_Read... [17:53:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:53:56]Read from MH i2c: E2 [17:53:56]MH_I2C_Read... [17:53:56]Read from MH i2c: E2 0E 00 [17:53:56]MH_I2C_Read... [17:53:56]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 67 [17:53:56]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [17:53:56]wFMCommunicate OK [17:53:56]SAM_PROTO_GetShiftState done [17:53:56]FM_GetShiftState done [17:53:56]opened in 1717373173 [17:53:56]opened+sec_in_day 1717459573 [17:53:56]quantity*price = 200037 [17:53:56]sum+1 = 200039 [17:53:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 2000.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 117 03.06.2024 17:53 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФД осн.: 63857 ФМ осн.: 0000000000875074 ФМ: 0000000000875074 ФД: 63859 ФПД: 94923087433680 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T175356&type=2&operation_type=1&fn_number=0000000000875074&fd_number=63859&fm=94923087433680&tin=02508201610067®Number=0000000000092737&sum=200000 [17:53:57]StoreToDocumentArchive [17:53:57]shift 373 fd 63859 [17:53:57]save to /storage/0373/doc_00063859 [17:53:57]save last doc name /storage/0373/doc_00063859 to /storage/kkm_last_doc_name [17:53:57]save OK [17:53:57]Clear old archive folders... [17:53:57]ProcessDocumentItem done err = 0, tmpTLVsize=276 [17:53:57]tlvbuf is 00AB0EF0 [17:53:57]SAM_PROTO_ClearQueue [17:53:57]wFMCommunicate request_size=4 [17:53:57]MH_SAM_APDU [17:53:57]CAPDU: 80 09 00 00 [17:53:57]Write to MH i2c: E2 08 00 2D 00 80 09 00 00 00 00 00 00 9F [17:53:57]Write i2c OK [17:53:57]MH_I2C_Read... [17:53:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:53:57]Read from MH i2c: E2 [17:53:57]MH_I2C_Read... [17:53:57]Read from MH i2c: E2 03 00 [17:53:57]MH_I2C_Read... [17:53:57]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [17:53:57]RAPDU: 90 00 [17:53:57]wFMCommunicate OK [17:53:57]SAM_PROTO_ClearQueue done [17:53:57]KKMCreateOFDPacket [17:53:57]OFDProtocolAddRootSTLVToBuf [17:53:57]FM_MakeSignedData [17:53:57]FM_MakeSignedData [17:53:57]SAM_PROTO_SignData [17:53:57]wFMCommunicate request_size=4 [17:53:57]MH_SAM_APDU [17:53:57]CAPDU: 80 0D 01 02 [17:53:57]Write to MH i2c: E2 08 00 2E 00 80 0D 01 02 00 00 00 00 A7 [17:53:57]Write i2c OK [17:53:57]MH_I2C_Read... [17:53:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:53:57]Read from MH i2c: E2 [17:53:57]MH_I2C_Read... [17:53:57]Read from MH i2c: E2 03 00 [17:53:57]MH_I2C_Read... [17:53:57]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [17:53:57]RAPDU: 90 00 [17:53:57]wFMCommunicate OK [17:53:57]wFMCommunicate request_size=255 [17:53:57]MH_SAM_APDU [17:53:57]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 32 34 31 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 31 FF 03 08 00 03 30 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 34 03 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 27 04 04 00 71 F9 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 11 04 10 00 30 30 30 30 [17:53:57]Write to MH i2c: E2 02 01 2F 00 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 32 34 31 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 31 FF 03 08 00 03 30 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 34 03 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 27 04 04 00 71 F9 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 11 04 10 00 30 30 30 30 00 00 BF [17:53:57]Write i2c OK [17:53:57]MH_I2C_Read... [17:53:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:53:57]Read from MH i2c: E2 [17:53:57]MH_I2C_Read... [17:53:57]Read from MH i2c: E2 03 00 [17:53:58]MH_I2C_Read... [17:53:58]Read from MH i2c: E2 03 00 2F 00 00 90 00 A3 [17:53:58]RAPDU: 90 00 [17:53:58]wFMCommunicate OK [17:53:58]wFMCommunicate request_size=35 [17:53:58]MH_SAM_APDU [17:53:58]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 73 F9 00 00 35 04 06 00 56 55 00 E8 4F D0 [17:53:58]Write to MH i2c: E2 26 00 30 00 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 73 F9 00 00 35 04 06 00 56 55 00 E8 4F D0 00 00 BA [17:53:58]Write i2c OK [17:53:58]MH_I2C_Read... [17:53:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:53:58]Read from MH i2c: E2 [17:53:58]MH_I2C_Read... [17:53:58]Read from MH i2c: E2 03 00 [17:53:58]MH_I2C_Read... [17:53:58]Read from MH i2c: E2 03 00 30 00 00 90 00 A4 [17:53:58]RAPDU: 90 00 [17:53:58]wFMCommunicate OK [17:53:58]wFMCommunicate request_size=4 [17:53:58]MH_SAM_APDU [17:53:58]CAPDU: 80 0D 03 02 [17:53:58]Write to MH i2c: E2 08 00 31 00 80 0D 03 02 00 00 00 00 AC [17:53:58]Write i2c OK [17:53:58]MH_I2C_Read... [17:53:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:53:58]Read from MH i2c: E2 [17:53:58]MH_I2C_Read... [17:53:58]Read from MH i2c: E2 0B 00 [17:53:58]MH_I2C_Read... [17:53:58]Read from MH i2c: E2 0B 00 31 00 00 50 2E 06 2A 6B ED A0 8E 90 00 E1 [17:53:58]RAPDU: 50 2E 06 2A 6B ED A0 8E 90 00 [17:53:58]wFMCommunicate OK [17:53:58]SAM_PROTO_SignData done [17:53:58]FM_MakeSignedData done [17:53:58]CreateOFDProtocolMessage [17:53:58]wFMCommunicate request_size=4 [17:53:58]MH_SAM_APDU [17:53:58]CAPDU: 80 11 00 00 [17:53:58]Write to MH i2c: E2 08 00 32 00 80 11 00 00 00 00 00 00 AC [17:53:58]Write i2c OK [17:53:58]MH_I2C_Read... [17:53:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:53:58]Read from MH i2c: E2 [17:53:58]MH_I2C_Read... [17:53:58]Read from MH i2c: E2 17 00 [17:53:58]MH_I2C_Read... [17:53:58]Read from MH i2c: E2 17 00 32 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 FE [17:53:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [17:53:58]wFMCommunicate OK [17:53:58]CreateOFDProtocolMessage done [17:53:58]OFDSenderStorePacket 63859 [17:53:58]StoreOFDPacket docnum=63859 [17:53:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 28 01 00 00 32 F4 20 01 3F F1 5A 03 01 00 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 32 34 31 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 31 FF 03 08 00 03 30 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 34 03 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 27 04 04 00 71 F9 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 73 F9 00 00 35 04 06 00 56 55 00 E8 4F D0 50 2E 06 2A 6B ED A0 8E [17:53:58]CheckFolder [17:53:58]dirname=/storage/ofd_packets [17:53:58]CheckFolder done [17:53:58]ProducePacketName [17:53:58]name=ofd_packets/00063859 [17:53:58]NVStorageSaveData ofd_packets/00063859 [17:53:58]File name is /storage/ofd_packets/00063859 [17:53:58]Write 326 bytes [17:53:58]NVStorageSaveData done [17:53:58]OFDSenderStorePacket done [17:53:58]KKMCreateOFDPacket done [17:53:58]NVStorageSaveData kkm_last_timestamp [17:53:58]File name is /storage/kkm_last_timestamp [17:53:58]Write 4 bytes [17:53:58]NVStorageSaveData done [17:53:58]ExternCall_PrintAddStr [17:53:58]wPrintStart [17:53:58]Write to MH i2c: 01 00 00 33 00 33 [17:53:58]Write i2c OK [17:53:58]MH_I2C_Read... [17:53:58]Read from MH i2c: 01 [17:53:58]MH_I2C_Read... [17:53:58]Read from MH i2c: 01 07 00 [17:53:58]MH_I2C_Read... [17:53:58]Read from MH i2c: 01 07 00 33 00 00 00 00 00 00 FF 0F 48 [17:53:58]RasterBufferAndPrint [17:53:58]line Счет N : (1)543990 [17:53:58]line ИНН: 02508201610067 [17:53:58]line Контрольно-Кассовый Чек [17:53:58]line ВОЗВРАТ ПРОДАЖИ [17:53:58]line ТРК (МРК, ГНК) : 61 [17:53:58]line Товар: 2710124100 [17:53:58]line ДТ-К-1 [17:53:58]line 27.440 * 72.90 [17:53:58]line = 2000.38 [17:53:58]line НДС 12% НСП 1% [17:53:58]line > о реализуемом товаре [17:53:58]line ОКРУГЛЕНИЕ: -0.38 [17:53:58]line ИТОГО: 2000.00 [17:53:58]line НСП 1% : 17.70 [17:53:58]line НДС 12% : 212.43 [17:53:58]line Наличными: 2000.00 [17:53:58]line Безнал.: 0.00 [17:53:58]line Место: АЗС № 117 "Партнер Нефть" [17:53:58]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [17:53:58]line СНО: Общий режим [17:53:58]line Чек 117 03.06.2024 17:53 [17:53:58]line Смена: 373 ФФД: 1.0 [17:53:58]line ЗНМ: 0300000031 [17:53:58]line РНМ: 0000000000092737 [17:53:58]line Версия ККМ: 001 [17:53:58]line ФД осн.: 63857 [17:53:58]line ФМ осн.: 0000000000875074 [17:53:58]line ФМ: 0000000000875074 [17:53:58]line ФД: 63859 [17:53:58]line ФПД: 94923087433680 [17:53:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T175356&type=2&operation_type=1&fn_number=0000000000875074&fd_number=63859&fm=94923087433680&tin=02508201610067®Number=0000000000092737&sum=200000 [17:53:58]OFD Sender: Processing packet 63859 [packets to send 14, broken 13] [17:53:58]ProducePacketName [17:53:58]name=ofd_packets/00063859 [17:53:58]OFD Sender: To server: pG, [17:53:58]CommunicateWithHost lk.salyk.kg:30040 [17:53:58]ConnectInit lk.salyk.kg [17:53:58]written 0, free lines is 4095 [17:53:58]Connected sock=10 [17:53:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 28 01 00 00 32 F4 20 01 3F F1 5A 03 01 00 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 32 34 31 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 31 FF 03 08 00 03 30 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 34 03 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 27 04 04 00 71 F9 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 73 F9 00 00 35 04 06 00 56 55 00 E8 4F D0 50 2E 06 2A 6B ED A0 8E [17:53:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 66 0C 47 00 59 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 35 30 37 34 10 04 04 00 73 F9 00 00 F4 03 04 00 05 AF 5D 66 B6 04 01 00 00 66 D3 69 90 32 58 A4 1E [17:53:58]CommunicateWithHost err = 0 [17:53:58]CheckOFDResponse [17:53:58]1017 (14) - 77093643461234 [17:53:58]1041 (16) - 0000000000875074 [17:53:58]1040 (4) - 63859 [17:53:58]1012 (4) - 03.06.2024 11:54 [17:53:58]1206 (1) - 0 [17:53:58]OFD Sender: Remove packet 63859 [17:53:58]ProducePacketName [17:53:58]name=ofd_packets/00063859 [17:53:58]NVStorageDeleteData [17:53:59]Write to MH i2c: 01 00 00 5E 00 5E [17:53:59]Write i2c OK [17:53:59]MH_I2C_Read... [17:53:59]Read from MH i2c: 01 [17:53:59]MH_I2C_Read... [17:53:59]Read from MH i2c: 01 07 00 [17:53:59]MH_I2C_Read... [17:53:59]Read from MH i2c: 01 07 00 5E 00 00 00 00 00 00 FB 0C 6C [17:53:59]RasterBufferAndPrint [17:53:59]line [17:53:59]line [17:53:59]line [17:53:59]line [17:53:59]line [17:53:59]written 0, free lines is 3332 [17:53:59]MH_Cut [17:53:59]Write to MH i2c: D1 01 00 65 00 01 37 [17:53:59]Write i2c OK [17:53:59]MH_I2C_Read... [17:53:59]Read from MH i2c: D1 [17:53:59]MH_I2C_Read... [17:53:59]Read from MH i2c: D1 01 00 [17:53:59]MH_I2C_Read... [17:53:59]Read from MH i2c: D1 01 00 65 00 00 36 [17:53:59]Write to MH i2c: 01 00 00 66 00 66 [17:53:59]Write i2c OK [17:53:59]MH_I2C_Read... [17:53:59]OFD Sender: No OFD packet to send [17:53:59]*** Cut start [17:53:59]*** Partial cut [17:53:59]*** CUTSNS_PIN = 1 [17:53:59]*** CUTSNS_PIN = 0 [17:54:00]*** Brake cut motor [17:54:00]Read from MH i2c: 01 [17:54:00]MH_I2C_Read... [17:54:00]*** Stop cut motor [17:54:00]*** Cut end [17:54:00]Read from MH i2c: 01 07 00 [17:54:00]MH_I2C_Read... [17:54:00]Read from MH i2c: 01 07 00 66 00 00 00 00 00 00 FF 0F 7B [17:54:00]process_action close_receipt done [17:54:00]requested_data is exist [17:54:00]produce_requested_data [17:54:00]requested_item fm.sn is exist - process it [17:54:00]wFMCommunicate request_size=4 [17:54:00]MH_SAM_APDU [17:54:00]CAPDU: 80 11 00 00 [17:54:00]Write to MH i2c: E2 08 00 67 00 80 11 00 00 00 00 00 00 E1 [17:54:00]Write i2c OK [17:54:00]MH_I2C_Read... [17:54:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:54:00]Read from MH i2c: E2 [17:54:00]MH_I2C_Read... [17:54:00]Read from MH i2c: E2 17 00 [17:54:00]MH_I2C_Read... [17:54:00]Read from MH i2c: E2 17 00 67 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 33 [17:54:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [17:54:00]wFMCommunicate OK [17:54:00]requested_item fd.num is exist - process it [17:54:00]SAM_PROTO_GetFieldsCounters [17:54:00]wFMCommunicate request_size=4 [17:54:00]MH_SAM_APDU [17:54:00]CAPDU: 80 13 00 00 [17:54:00]Write to MH i2c: E2 08 00 68 00 80 13 00 00 00 00 00 00 E4 [17:54:00]Write i2c OK [17:54:00]MH_I2C_Read... [17:54:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:54:00]Read from MH i2c: E2 [17:54:00]MH_I2C_Read... [17:54:00]Read from MH i2c: E2 62 00 [17:54:00]MH_I2C_Read... [17:54:00]Read from MH i2c: E2 62 00 68 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 73 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 75 00 00 00 5E 04 04 00 75 00 00 00 57 04 04 00 76 00 00 00 19 04 04 00 00 00 00 00 90 00 48 [17:54: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 73 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 75 00 00 00 5E 04 04 00 75 00 00 00 57 04 04 00 76 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:54:00]wFMCommunicate OK [17:54:00]SAM_PROTO_GetFieldsCounters done [17:54:00]requested_item shift.num is exist - process it [17:54:00]requested_item shift.opened is exist - process it [17:54:00]req_shift_opened [17:54:00]FM_GetShiftState [17:54:00]SAM_PROTO_GetShiftState [17:54:00]wFMCommunicate request_size=4 [17:54:00]MH_SAM_APDU [17:54:00]CAPDU: 80 13 01 00 [17:54:00]Write to MH i2c: E2 08 00 69 00 80 13 01 00 00 00 00 00 E6 [17:54:00]Write i2c OK [17:54:00]MH_I2C_Read... [17:54:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:54:00]Read from MH i2c: E2 [17:54:00]MH_I2C_Read... [17:54:00]Read from MH i2c: E2 0E 00 [17:54:00]MH_I2C_Read... [17:54:00]Read from MH i2c: E2 0E 00 69 00 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 B2 [17:54:00]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [17:54:00]wFMCommunicate OK [17:54:00]SAM_PROTO_GetShiftState done [17:54:00]FM_GetShiftState done [17:54:00]req_shift_opened done [17:54:00]requested_item shift.open_date is exist - process it [17:54:00]req_shift_open_date [17:54:00]req_shift_open_date done [17:54:00]produce_requested_data done [17:54:00]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63859,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [17:54:00]process_action_free close_receipt [17:54:00]json_value_free [17:54:00]json_value_free done [17:54:00]process_json_proto returns [17:54:00]Send response to host [17:54:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63859,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [17:54:00]free response buf [17:54:00]execute_script done [17:54:00]execute_script returns [17:54:00]free content buf [17:54:00]Sock 9.Close socket [17:54:00]Sock 9.Thread stoped [17:54:00]accept exits with 7 [17:54:00]New connection [17:54:00]New thread 3066576228 created [17:54:00]Thread 3066719588 joined [17:54:00]Waiting for new connection... [17:54:00] Sock 7.Parse request [17:54:00]Sock 7.Check first char [17:54:00]Sock 7.First char is OK [17:54:00]request: POST /json_proto HTTP/1.0 [17:54:00]Method: POST [17:54:00]URL: /json_proto [17:54:00]Method is POST - this is cgi request [17:54:00]url: /json_proto [17:54:00]query_string will be loaded in cgi processing [17:54:00]execute_cgi json_proto POST (null) [17:54:00]execute_cgi path=json_proto method=POST [17:54:00]POST find Content-Length [17:54:00]Host: 172.17.60.69:8080 [17:54:00]Content-Length: 679 [17:54:00]Content-Type: application/json [17:54:00] [17:54:00]POST finish read [17:54:00]Found Content-Length = 679 [17:54:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)543990", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124100", "name": "\u0414\u0422-\u041A-1", "price" : 72.90, "quantity" : 27.420, "sum" : 1998.92, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 1998.00, "payments": [ { "type": 0, "sum" : 1998.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:54:00]execute_script... [17:54: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)543990", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124100", "name": "\u0414\u0422-\u041A-1", "price" : 72.90, "quantity" : 27.420, "sum" : 1998.92, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 1998.00, "payments": [ { "type": 0, "sum" : 1998.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:54:00]POST & json_proto [17:54:00]process_json_proto [17:54:00]json parsed OK: [17:54:00]protocol is kg_v1.0 [17:54:00]action value=close_receipt [17:54:00]process_action close_receipt [17:54:00]cmd_close_receipt [17:54:00]MH_GetDate [17:54:00]Write to MH i2c: F0 00 00 6A 00 59 [17:54:00]Write i2c OK [17:54:00]MH_I2C_Read... [17:54:00]Read from MH i2c: F0 [17:54:00]MH_I2C_Read... [17:54:00]Read from MH i2c: F0 09 00 [17:54:00]MH_I2C_Read... [17:54:00]Read from MH i2c: F0 09 00 6A 00 00 39 03 5E 66 6A 96 4A 66 12 [17:54:00]GetLastDocTimeStamp 1717437236 [17:54:00]current date 1717437241 [17:54:00]FM_GetShiftState [17:54:00]SAM_PROTO_GetShiftState [17:54:00]wFMCommunicate request_size=4 [17:54:00]MH_SAM_APDU [17:54:00]CAPDU: 80 13 01 00 [17:54:00]Write to MH i2c: E2 08 00 6B 00 80 13 01 00 00 00 00 00 E8 [17:54:00]Write i2c OK [17:54:00]MH_I2C_Read... [17:54:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:54:00]Read from MH i2c: E2 [17:54:00]MH_I2C_Read... [17:54:00]Read from MH i2c: E2 0E 00 [17:54:00]MH_I2C_Read... [17:54:00]Read from MH i2c: E2 0E 00 6B 00 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 B4 [17:54:00]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [17:54:00]wFMCommunicate OK [17:54:00]SAM_PROTO_GetShiftState done [17:54:00]FM_GetShiftState done [17:54:00]opened in 1717373173 [17:54:00]opened+sec_in_day 1717459573 [17:54:00]quantity*price = 199891 [17:54:00]sum+1 = 199893 [17:54:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.92 ИТОГО: 1998.00 Внесено: 2000.00 СДАЧА: 2.00 НСП 1% : 17.69 НДС 12% : 212.27 Наличными: 1998.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 118 03.06.2024 17:54 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63860 ФПД: 46705311539544 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T175401&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63860&fm=46705311539544&tin=02508201610067®Number=0000000000092737&sum=199800 [17:54:02]StoreToDocumentArchive [17:54:02]shift 373 fd 63860 [17:54:02]save to /storage/0373/doc_00063860 [17:54:02]save last doc name /storage/0373/doc_00063860 to /storage/kkm_last_doc_name [17:54:02]save OK [17:54:02]Clear old archive folders... [17:54:02]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:54:02]tlvbuf is 00AE0670 [17:54:02]SAM_PROTO_ClearQueue [17:54:02]wFMCommunicate request_size=4 [17:54:02]MH_SAM_APDU [17:54:02]CAPDU: 80 09 00 00 [17:54:02]Write to MH i2c: E2 08 00 78 00 80 09 00 00 00 00 00 00 EA [17:54:02]Write i2c OK [17:54:02]MH_I2C_Read... [17:54:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:54:02]Read from MH i2c: E2 [17:54:02]MH_I2C_Read... [17:54:02]Read from MH i2c: E2 03 00 [17:54:02]MH_I2C_Read... [17:54:02]Read from MH i2c: E2 03 00 78 00 00 90 00 EC [17:54:02]RAPDU: 90 00 [17:54:02]wFMCommunicate OK [17:54:02]SAM_PROTO_ClearQueue done [17:54:02]KKMCreateOFDPacket [17:54:02]OFDProtocolAddRootSTLVToBuf [17:54:02]FM_MakeSignedData [17:54:02]FM_MakeSignedData [17:54:02]SAM_PROTO_SignData [17:54:02]wFMCommunicate request_size=4 [17:54:02]MH_SAM_APDU [17:54:02]CAPDU: 80 0D 01 02 [17:54:02]Write to MH i2c: E2 08 00 79 00 80 0D 01 02 00 00 00 00 F2 [17:54:02]Write i2c OK [17:54:02]MH_I2C_Read... [17:54:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:54:02]Read from MH i2c: E2 [17:54:02]MH_I2C_Read... [17:54:02]Read from MH i2c: E2 03 00 [17:54:02]MH_I2C_Read... [17:54:02]Read from MH i2c: E2 03 00 79 00 00 90 00 ED [17:54:02]RAPDU: 90 00 [17:54:02]wFMCommunicate OK [17:54:02]wFMCommunicate request_size=255 [17:54:02]MH_SAM_APDU [17:54:02]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 32 34 31 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 31 FF 03 08 00 03 1C 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 D4 0C 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 0C 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E9 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 52 00 00 00 00 07 04 06 00 78 0C 03 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 39 03 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 74 F9 00 00 35 04 06 00 2A 7A 6D 80 [17:54:02]Write to MH i2c: E2 02 01 7A 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 32 34 31 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 31 FF 03 08 00 03 1C 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 D4 0C 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 0C 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E9 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 52 00 00 00 00 07 04 06 00 78 0C 03 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 39 03 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 74 F9 00 00 35 04 06 00 2A 7A 6D 80 00 00 68 [17:54:02]Write i2c OK [17:54:02]MH_I2C_Read... [17:54:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:54:02]Read from MH i2c: E2 [17:54:02]MH_I2C_Read... [17:54:02]Read from MH i2c: E2 03 00 [17:54:02]MH_I2C_Read... [17:54:02]Read from MH i2c: E2 03 00 7A 00 00 90 00 EE [17:54:02]RAPDU: 90 00 [17:54:02]wFMCommunicate OK [17:54:02]wFMCommunicate request_size=7 [17:54:02]MH_SAM_APDU [17:54:02]CAPDU: 80 0D 02 02 02 E1 58 [17:54:02]Write to MH i2c: E2 0A 00 7B 00 80 0D 02 02 02 00 E1 58 00 00 32 [17:54:02]Write i2c OK [17:54:02]MH_I2C_Read... [17:54:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:54:02]Read from MH i2c: E2 [17:54:02]MH_I2C_Read... [17:54:02]Read from MH i2c: E2 03 00 [17:54:02]MH_I2C_Read... [17:54:02]Read from MH i2c: E2 03 00 7B 00 00 90 00 EF [17:54:02]RAPDU: 90 00 [17:54:02]wFMCommunicate OK [17:54:02]wFMCommunicate request_size=4 [17:54:02]MH_SAM_APDU [17:54:02]CAPDU: 80 0D 03 02 [17:54:02]Write to MH i2c: E2 08 00 7C 00 80 0D 03 02 00 00 00 00 F7 [17:54:02]Write i2c OK [17:54:02]MH_I2C_Read... [17:54:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:54:02]Read from MH i2c: E2 [17:54:02]MH_I2C_Read... [17:54:02]Read from MH i2c: E2 0B 00 [17:54:02]MH_I2C_Read... [17:54:02]Read from MH i2c: E2 0B 00 7C 00 00 7D 4F AB 58 30 46 B7 54 90 00 48 [17:54:02]RAPDU: 7D 4F AB 58 30 46 B7 54 90 00 [17:54:02]wFMCommunicate OK [17:54:02]SAM_PROTO_SignData done [17:54:02]FM_MakeSignedData done [17:54:02]CreateOFDProtocolMessage [17:54:02]wFMCommunicate request_size=4 [17:54:02]MH_SAM_APDU [17:54:02]CAPDU: 80 11 00 00 [17:54:02]Write to MH i2c: E2 08 00 7D 00 80 11 00 00 00 00 00 00 F7 [17:54:02]Write i2c OK [17:54:02]MH_I2C_Read... [17:54:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:54:02]Read from MH i2c: E2 [17:54:02]MH_I2C_Read... [17:54:02]Read from MH i2c: E2 17 00 [17:54:02]MH_I2C_Read... [17:54:02]Read from MH i2c: E2 17 00 7D 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 49 [17:54:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [17:54:02]wFMCommunicate OK [17:54:02]CreateOFDProtocolMessage done [17:54:02]OFDSenderStorePacket 63860 [17:54:02]StoreOFDPacket docnum=63860 [17:54:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0C 01 00 00 28 7E 04 01 48 2E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 32 34 31 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 31 FF 03 08 00 03 1C 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 D4 0C 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 0C 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E9 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 52 00 00 00 00 07 04 06 00 78 0C 03 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 39 03 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 74 F9 00 00 35 04 06 00 2A 7A 6D 80 E1 58 7D 4F AB 58 30 46 B7 54 [17:54:03]CheckFolder [17:54:03]dirname=/storage/ofd_packets [17:54:03]CheckFolder done [17:54:03]ProducePacketName [17:54:03]name=ofd_packets/00063860 [17:54:03]NVStorageSaveData ofd_packets/00063860 [17:54:03]File name is /storage/ofd_packets/00063860 [17:54:03]Write 298 bytes [17:54:03]NVStorageSaveData done [17:54:03]OFDSenderStorePacket done [17:54:03]KKMCreateOFDPacket done [17:54:03]NVStorageSaveData kkm_last_timestamp [17:54:03]File name is /storage/kkm_last_timestamp [17:54:03]Write 4 bytes [17:54:03]NVStorageSaveData done [17:54:03]ExternCall_PrintAddStr [17:54:03]wPrintStart [17:54:03]Write to MH i2c: 01 00 00 7E 00 7E [17:54:03]Write i2c OK [17:54:03]MH_I2C_Read... [17:54:03]Read from MH i2c: 01 [17:54:03]MH_I2C_Read... [17:54:03]Read from MH i2c: 01 07 00 [17:54:03]MH_I2C_Read... [17:54:03]Read from MH i2c: 01 07 00 7E 00 00 00 00 00 00 FF 0F 93 [17:54:03]RasterBufferAndPrint [17:54:03]line Счет N : (1)543990 [17:54:03]line ИНН: 02508201610067 [17:54:03]line Контрольно-Кассовый Чек [17:54:03]line ПРОДАЖА [17:54:03]line ТРК (МРК, ГНК) : 61 [17:54:03]line Товар: 2710124100 [17:54:03]line ДТ-К-1 [17:54:03]line 27.420 * 72.90 [17:54:03]line = 1998.92 [17:54:03]line НДС 12% НСП 1% [17:54:03]line > о реализуемом товаре [17:54:03]line ОКРУГЛЕНИЕ: -0.92 [17:54:03]line ИТОГО: 1998.00 [17:54:03]line Внесено: 2000.00 [17:54:03]line СДАЧА: 2.00 [17:54:03]line НСП 1% : 17.69 [17:54:03]line НДС 12% : 212.27 [17:54:03]line Наличными: 1998.00 [17:54:03]line Безнал.: 0.00 [17:54:03]line Место: АЗС № 117 "Партнер Нефть" [17:54:03]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [17:54:03]line СНО: Общий режим [17:54:03]line Чек 118 03.06.2024 17:54 [17:54:03]line Смена: 373 ФФД: 1.0 [17:54:03]line ЗНМ: 0300000031 [17:54:03]line РНМ: 0000000000092737 [17:54:03]line Версия ККМ: 001 [17:54:03]line ФМ: 0000000000875074 [17:54:03]line ФД: 63860 [17:54:03]line ФПД: 46705311539544 [17:54:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T175401&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63860&fm=46705311539544&tin=02508201610067®Number=0000000000092737&sum=199800 [17:54:03]written 0, free lines is 4095 [17:54:03]OFD Sender: Processing packet 63860 [packets to send 14, broken 13] [17:54:03]ProducePacketName [17:54:03]name=ofd_packets/00063860 [17:54:03]OFD Sender: To server: pG, [17:54:03]CommunicateWithHost lk.salyk.kg:30040 [17:54:03]ConnectInit lk.salyk.kg [17:54:03]Connected sock=10 [17:54:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0C 01 00 00 28 7E 04 01 48 2E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 32 34 31 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 31 FF 03 08 00 03 1C 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 D4 0C 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 0C 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E9 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 52 00 00 00 00 07 04 06 00 78 0C 03 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 39 03 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 74 F9 00 00 35 04 06 00 2A 7A 6D 80 E1 58 7D 4F AB 58 30 46 B7 54 [17:54:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 D3 6E 47 00 D8 7F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 74 F9 00 00 F4 03 04 00 0A AF 5D 66 B6 04 01 00 00 60 69 CE B2 EB 1E 85 6A [17:54:03]CommunicateWithHost err = 0 [17:54:03]CheckOFDResponse [17:54:03]1017 (14) - 77093643461234 [17:54:03]1041 (16) - 0000000000875074 [17:54:03]1040 (4) - 63860 [17:54:03]1012 (4) - 03.06.2024 11:54 [17:54:03]1206 (1) - 0 [17:54:03]OFD Sender: Remove packet 63860 [17:54:03]ProducePacketName [17:54:03]name=ofd_packets/00063860 [17:54:03]NVStorageDeleteData [17:54:03]Write to MH i2c: 01 00 00 A9 00 A9 [17:54:03]Write i2c OK [17:54:03]MH_I2C_Read... [17:54:03]Read from MH i2c: 01 [17:54:03]MH_I2C_Read... [17:54:03]Read from MH i2c: 01 07 00 [17:54:03]MH_I2C_Read... [17:54:03]Read from MH i2c: 01 07 00 A9 00 00 00 00 00 00 FB 0C B7 [17:54:03]RasterBufferAndPrint [17:54:03]line [17:54:03]line [17:54:03]line [17:54:03]line [17:54:03]line [17:54:03]written 0, free lines is 3336 [17:54:03]MH_Cut [17:54:03]Write to MH i2c: D1 01 00 B0 00 01 82 [17:54:03]Write i2c OK [17:54:03]MH_I2C_Read... [17:54:03]Read from MH i2c: D1 [17:54:03]MH_I2C_Read... [17:54:03]Read from MH i2c: D1 01 00 [17:54:03]MH_I2C_Read... [17:54:03]Read from MH i2c: D1 01 00 B0 00 00 81 [17:54:03]Write to MH i2c: 01 00 00 B1 00 B1 [17:54:03]Write i2c OK [17:54:03]MH_I2C_Read... [17:54:04]OFD Sender: No OFD packet to send [17:54:04]*** Cut start [17:54:04]*** Partial cut [17:54:04]*** CUTSNS_PIN = 1 [17:54:04]*** CUTSNS_PIN = 0 [17:54:04]*** Brake cut motor [17:54:05]Read from MH i2c: 01 [17:54:05]MH_I2C_Read... [17:54:05]*** Stop cut motor [17:54:05]*** Cut end [17:54:05]Read from MH i2c: 01 07 00 [17:54:05]MH_I2C_Read... [17:54:05]Read from MH i2c: 01 07 00 B1 00 00 00 00 00 00 FF 0F C6 [17:54:05]process_action close_receipt done [17:54:05]requested_data is exist [17:54:05]produce_requested_data [17:54:05]requested_item fm.sn is exist - process it [17:54:05]wFMCommunicate request_size=4 [17:54:05]MH_SAM_APDU [17:54:05]CAPDU: 80 11 00 00 [17:54:05]Write to MH i2c: E2 08 00 B2 00 80 11 00 00 00 00 00 00 2C [17:54:05]Write i2c OK [17:54:05]MH_I2C_Read... [17:54:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:54:05]Read from MH i2c: E2 [17:54:05]MH_I2C_Read... [17:54:05]Read from MH i2c: E2 17 00 [17:54:05]MH_I2C_Read... [17:54:05]Read from MH i2c: E2 17 00 B2 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 7E [17:54:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [17:54:05]wFMCommunicate OK [17:54:05]requested_item fd.num is exist - process it [17:54:05]SAM_PROTO_GetFieldsCounters [17:54:05]wFMCommunicate request_size=4 [17:54:05]MH_SAM_APDU [17:54:05]CAPDU: 80 13 00 00 [17:54:05]Write to MH i2c: E2 08 00 B3 00 80 13 00 00 00 00 00 00 2F [17:54:05]Write i2c OK [17:54:05]MH_I2C_Read... [17:54:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:54:05]Read from MH i2c: E2 [17:54:05]MH_I2C_Read... [17:54:05]Read from MH i2c: E2 62 00 [17:54:05]MH_I2C_Read... [17:54:05]Read from MH i2c: E2 62 00 B3 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 74 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 76 00 00 00 5E 04 04 00 76 00 00 00 57 04 04 00 77 00 00 00 19 04 04 00 00 00 00 00 90 00 97 [17:54: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 74 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 76 00 00 00 5E 04 04 00 76 00 00 00 57 04 04 00 77 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:54:05]wFMCommunicate OK [17:54:05]SAM_PROTO_GetFieldsCounters done [17:54:05]requested_item shift.num is exist - process it [17:54:05]requested_item shift.opened is exist - process it [17:54:05]req_shift_opened [17:54:05]FM_GetShiftState [17:54:05]SAM_PROTO_GetShiftState [17:54:05]wFMCommunicate request_size=4 [17:54:05]MH_SAM_APDU [17:54:05]CAPDU: 80 13 01 00 [17:54:05]Write to MH i2c: E2 08 00 B4 00 80 13 01 00 00 00 00 00 31 [17:54:05]Write i2c OK [17:54:05]MH_I2C_Read... [17:54:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:54:05]Read from MH i2c: E2 [17:54:05]MH_I2C_Read... [17:54:05]Read from MH i2c: E2 0E 00 [17:54:05]MH_I2C_Read... [17:54:05]Read from MH i2c: E2 0E 00 B4 00 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 FD [17:54:05]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [17:54:05]wFMCommunicate OK [17:54:05]SAM_PROTO_GetShiftState done [17:54:05]FM_GetShiftState done [17:54:05]req_shift_opened done [17:54:05]requested_item shift.open_date is exist - process it [17:54:05]req_shift_open_date [17:54:05]req_shift_open_date done [17:54:05]produce_requested_data done [17:54:05]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63860,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [17:54:05]process_action_free close_receipt [17:54:05]json_value_free [17:54:05]json_value_free done [17:54:05]process_json_proto returns [17:54:05]Send response to host [17:54:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63860,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [17:54:05]free response buf [17:54:05]execute_script done [17:54:05]execute_script returns [17:54:05]free content buf [17:54:05]Sock 7.Close socket [17:54:05]Sock 7.Thread stoped [17:54:09]OFD Sender: No OFD packet to send [17:54:14]OFD Sender: No OFD packet to send [17:54:19]OFD Sender: No OFD packet to send [17:54:24]OFD Sender: No OFD packet to send [17:54:29]OFD Sender: No OFD packet to send [17:54:34]OFD Sender: No OFD packet to send [17:54:39]OFD Sender: No OFD packet to send [17:54:44]OFD Sender: No OFD packet to send [17:54:49]OFD Sender: No OFD packet to send [17:54:54]OFD Sender: No OFD packet to send [17:54:59]OFD Sender: No OFD packet to send [17:55:04]OFD Sender: No OFD packet to send [17:55:09]OFD Sender: No OFD packet to send [17:55:14]OFD Sender: No OFD packet to send [17:55:19]OFD Sender: No OFD packet to send [17:55:24]OFD Sender: No OFD packet to send [17:55:29]OFD Sender: No OFD packet to send [17:55:34]OFD Sender: No OFD packet to send [17:55:39]OFD Sender: No OFD packet to send [17:55:44]OFD Sender: No OFD packet to send [17:55:49]OFD Sender: No OFD packet to send [17:55:54]OFD Sender: No OFD packet to send [17:55:59]OFD Sender: No OFD packet to send [17:56:04]OFD Sender: No OFD packet to send [17:56:09]OFD Sender: No OFD packet to send [17:56:14]OFD Sender: No OFD packet to send [17:56:19]OFD Sender: No OFD packet to send [17:56:24]OFD Sender: No OFD packet to send [17:56:29]OFD Sender: No OFD packet to send [17:56:34]OFD Sender: No OFD packet to send [17:56:39]OFD Sender: No OFD packet to send [17:56:44]OFD Sender: No OFD packet to send [17:56:49]OFD Sender: No OFD packet to send [17:56:54]OFD Sender: No OFD packet to send [17:56:59]OFD Sender: No OFD packet to send [17:57:04]OFD Sender: No OFD packet to send [17:57:09]OFD Sender: No OFD packet to send [17:57:14]OFD Sender: No OFD packet to send [17:57:19]OFD Sender: No OFD packet to send [17:57:24]OFD Sender: No OFD packet to send [17:57:29]OFD Sender: No OFD packet to send [17:57:34]OFD Sender: No OFD packet to send [17:57:39]OFD Sender: No OFD packet to send [17:57:44]OFD Sender: No OFD packet to send [17:57:49]OFD Sender: No OFD packet to send [17:57:54]OFD Sender: No OFD packet to send [17:57:59]OFD Sender: No OFD packet to send [17:58:04]OFD Sender: No OFD packet to send [17:58:09]OFD Sender: No OFD packet to send [17:58:14]OFD Sender: No OFD packet to send [17:58:19]OFD Sender: No OFD packet to send [17:58:24]OFD Sender: No OFD packet to send [17:58:29]OFD Sender: No OFD packet to send [17:58:34]OFD Sender: No OFD packet to send [17:58:39]OFD Sender: No OFD packet to send [17:58:44]OFD Sender: No OFD packet to send [17:58:49]OFD Sender: No OFD packet to send [17:58:54]OFD Sender: No OFD packet to send [17:58:59]OFD Sender: No OFD packet to send [17:59:04]OFD Sender: No OFD packet to send [17:59:09]OFD Sender: No OFD packet to send [17:59:14]OFD Sender: No OFD packet to send [17:59:19]OFD Sender: No OFD packet to send [17:59:24]OFD Sender: No OFD packet to send [17:59:29]OFD Sender: No OFD packet to send [17:59:34]OFD Sender: No OFD packet to send [17:59:39]OFD Sender: No OFD packet to send [17:59:40]accept exits with 9 [17:59:40]New connection [17:59:40]New thread 3066719588 created [17:59:40]Thread 3066576228 joined [17:59:40]Waiting for new connection... [17:59:40] Sock 9.Parse request [17:59:40]Sock 9.Check first char [17:59:40]Sock 9.First char is OK [17:59:40]request: POST /json_proto HTTP/1.0 [17:59:40]Method: POST [17:59:40]URL: /json_proto [17:59:40]Method is POST - this is cgi request [17:59:40]url: /json_proto [17:59:40]query_string will be loaded in cgi processing [17:59:40]execute_cgi json_proto POST (null) [17:59:40]execute_cgi path=json_proto method=POST [17:59:40]POST find Content-Length [17:59:40]Host: 172.17.60.69:8080 [17:59:40]Content-Length: 645 [17:59:40]Content-Type: application/json [17:59:40] [17:59:40]POST finish read [17:59:40]Found Content-Length = 645 [17:59:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73432", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:59:40]execute_script... [17:59:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73432", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:59:40]POST & json_proto [17:59:40]process_json_proto [17:59:40]json parsed OK: [17:59:40]protocol is kg_v1.0 [17:59:40]action value=close_receipt [17:59:40]process_action close_receipt [17:59:40]cmd_close_receipt [17:59:40]MH_GetDate [17:59:40]Write to MH i2c: F0 00 00 B5 00 A4 [17:59:40]Write i2c OK [17:59:40]MH_I2C_Read... [17:59:40]Read from MH i2c: F0 [17:59:40]MH_I2C_Read... [17:59:40]Read from MH i2c: F0 09 00 [17:59:40]MH_I2C_Read... [17:59:40]Read from MH i2c: F0 09 00 B5 00 00 8C 04 5E 66 6A 96 4A 66 B1 [17:59:40]GetLastDocTimeStamp 1717437241 [17:59:40]current date 1717437580 [17:59:40]FM_GetShiftState [17:59:40]SAM_PROTO_GetShiftState [17:59:40]wFMCommunicate request_size=4 [17:59:40]MH_SAM_APDU [17:59:40]CAPDU: 80 13 01 00 [17:59:40]Write to MH i2c: E2 08 00 B6 00 80 13 01 00 00 00 00 00 33 [17:59:40]Write i2c OK [17:59:40]MH_I2C_Read... [17:59:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:59:40]Read from MH i2c: E2 [17:59:40]MH_I2C_Read... [17:59:40]Read from MH i2c: E2 0E 00 [17:59:40]MH_I2C_Read... [17:59:40]Read from MH i2c: E2 0E 00 B6 00 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 FF [17:59:40]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [17:59:40]wFMCommunicate OK [17:59:40]SAM_PROTO_GetShiftState done [17:59:40]FM_GetShiftState done [17:59:40]opened in 1717373173 [17:59:40]opened+sec_in_day 1717459573 [17:59:40]quantity*price = 12500 [17:59:40]sum+1 = 12501 [17:59:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 125.00 НСП 1% : 1.11 НДС 12% : 13.27 Наличными: 125.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 119 03.06.2024 17:59 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63861 ФПД: 51680879040663 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T175940&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63861&fm=51680879040663&tin=02508201610067®Number=0000000000092737&sum=12500 0 [17:59:41]StoreToDocumentArchive [17:59:41]shift 373 fd 63861 [17:59:41]save to /storage/0373/doc_00063861 [17:59:41]save last doc name /storage/0373/doc_00063861 to /storage/kkm_last_doc_name [17:59:41]save OK [17:59:41]Clear old archive folders... [17:59:41]ProcessDocumentItem done err = 0, tmpTLVsize=282 [17:59:41]tlvbuf is 00A9E360 [17:59:41]SAM_PROTO_ClearQueue [17:59:41]wFMCommunicate request_size=4 [17:59:41]MH_SAM_APDU [17:59:41]CAPDU: 80 09 00 00 [17:59:41]Write to MH i2c: E2 08 00 C3 00 80 09 00 00 00 00 00 00 35 [17:59:41]Write i2c OK [17:59:41]MH_I2C_Read... [17:59:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:59:41]Read from MH i2c: E2 [17:59:41]MH_I2C_Read... [17:59:41]Read from MH i2c: E2 03 00 [17:59:41]MH_I2C_Read... [17:59:41]Read from MH i2c: E2 03 00 C3 00 00 90 00 37 [17:59:41]RAPDU: 90 00 [17:59:41]wFMCommunicate OK [17:59:41]SAM_PROTO_ClearQueue done [17:59:41]KKMCreateOFDPacket [17:59:41]OFDProtocolAddRootSTLVToBuf [17:59:41]FM_MakeSignedData [17:59:41]FM_MakeSignedData [17:59:41]SAM_PROTO_SignData [17:59:41]wFMCommunicate request_size=4 [17:59:41]MH_SAM_APDU [17:59:41]CAPDU: 80 0D 01 02 [17:59:41]Write to MH i2c: E2 08 00 C4 00 80 0D 01 02 00 00 00 00 3D [17:59:41]Write i2c OK [17:59:41]MH_I2C_Read... [17:59:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:59:41]Read from MH i2c: E2 [17:59:41]MH_I2C_Read... [17:59:41]Read from MH i2c: E2 03 00 [17:59:41]MH_I2C_Read... [17:59:41]Read from MH i2c: E2 03 00 C4 00 00 90 00 38 [17:59:41]RAPDU: 90 00 [17:59:41]wFMCommunicate OK [17:59:41]wFMCommunicate request_size=255 [17:59:41]MH_SAM_APDU [17:59:41]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 8C 04 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 [17:59:41]Write to MH i2c: E2 02 01 C5 00 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 8C 04 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 00 00 7F [17:59:41]Write i2c OK [17:59:41]MH_I2C_Read... [17:59:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:59:42]Read from MH i2c: E2 [17:59:42]MH_I2C_Read... [17:59:42]Read from MH i2c: E2 03 00 [17:59:42]MH_I2C_Read... [17:59:42]Read from MH i2c: E2 03 00 C5 00 00 90 00 39 [17:59:42]RAPDU: 90 00 [17:59:42]wFMCommunicate OK [17:59:42]wFMCommunicate request_size=41 [17:59:42]MH_SAM_APDU [17:59:42]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 75 F9 00 00 35 04 06 00 2F 00 E4 6F D8 97 [17:59:42]Write to MH i2c: E2 2C 00 C6 00 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 75 F9 00 00 35 04 06 00 2F 00 E4 6F D8 97 00 00 6D [17:59:42]Write i2c OK [17:59:42]MH_I2C_Read... [17:59:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:59:42]Read from MH i2c: E2 [17:59:42]MH_I2C_Read... [17:59:42]Read from MH i2c: E2 03 00 [17:59:42]MH_I2C_Read... [17:59:42]Read from MH i2c: E2 03 00 C6 00 00 90 00 3A [17:59:42]RAPDU: 90 00 [17:59:42]wFMCommunicate OK [17:59:42]wFMCommunicate request_size=4 [17:59:42]MH_SAM_APDU [17:59:42]CAPDU: 80 0D 03 02 [17:59:42]Write to MH i2c: E2 08 00 C7 00 80 0D 03 02 00 00 00 00 42 [17:59:42]Write i2c OK [17:59:42]MH_I2C_Read... [17:59:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:59:42]Read from MH i2c: E2 [17:59:42]MH_I2C_Read... [17:59:42]Read from MH i2c: E2 0B 00 [17:59:42]MH_I2C_Read... [17:59:42]Read from MH i2c: E2 0B 00 C7 00 00 4C 92 D6 9F C3 0E F1 8D 90 00 E5 [17:59:42]RAPDU: 4C 92 D6 9F C3 0E F1 8D 90 00 [17:59:42]wFMCommunicate OK [17:59:42]SAM_PROTO_SignData done [17:59:42]FM_MakeSignedData done [17:59:42]CreateOFDProtocolMessage [17:59:42]wFMCommunicate request_size=4 [17:59:42]MH_SAM_APDU [17:59:42]CAPDU: 80 11 00 00 [17:59:42]Write to MH i2c: E2 08 00 C8 00 80 11 00 00 00 00 00 00 42 [17:59:42]Write i2c OK [17:59:42]MH_I2C_Read... [17:59:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:59:42]Read from MH i2c: E2 [17:59:42]MH_I2C_Read... [17:59:42]Read from MH i2c: E2 17 00 [17:59:42]MH_I2C_Read... [17:59:42]Read from MH i2c: E2 17 00 C8 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 94 [17:59:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [17:59:42]wFMCommunicate OK [17:59:42]CreateOFDProtocolMessage done [17:59:42]OFDSenderStorePacket 63861 [17:59:42]StoreOFDPacket docnum=63861 [17:59:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 2E 01 00 00 DC C1 26 01 39 CD 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 8C 04 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 75 F9 00 00 35 04 06 00 2F 00 E4 6F D8 97 4C 92 D6 9F C3 0E F1 8D [17:59:42]CheckFolder [17:59:42]dirname=/storage/ofd_packets [17:59:42]CheckFolder done [17:59:42]ProducePacketName [17:59:42]name=ofd_packets/00063861 [17:59:42]NVStorageSaveData ofd_packets/00063861 [17:59:42]File name is /storage/ofd_packets/00063861 [17:59:42]Write 332 bytes [17:59:42]NVStorageSaveData done [17:59:42]OFDSenderStorePacket done [17:59:42]KKMCreateOFDPacket done [17:59:42]NVStorageSaveData kkm_last_timestamp [17:59:42]File name is /storage/kkm_last_timestamp [17:59:42]Write 4 bytes [17:59:42]NVStorageSaveData done [17:59:42]ExternCall_PrintAddStr [17:59:42]wPrintStart [17:59:42]Write to MH i2c: 01 00 00 C9 00 C9 [17:59:42]Write i2c OK [17:59:42]MH_I2C_Read... [17:59:42]Read from MH i2c: 01 [17:59:42]MH_I2C_Read... [17:59:42]Read from MH i2c: 01 07 00 [17:59:42]MH_I2C_Read... [17:59:42]Read from MH i2c: 01 07 00 C9 00 00 00 00 00 00 FF 0F DE [17:59:42]RasterBufferAndPrint [17:59:42]line Счет N : (3)73432 [17:59:42]line ИНН: 02508201610067 [17:59:42]line Контрольно-Кассовый Чек [17:59:42]line ПРОДАЖА [17:59:42]line Товар: 2000036220012 [17:59:42]line Кофе Капучино XL(GABB TRADE) [17:59:42]line 1.000 * 125.00 [17:59:42]line = 125.00 [17:59:42]line НДС 12% НСП 1% [17:59:42]line > о реализуемом товаре [17:59:42]line ИТОГО: 125.00 [17:59:42]line НСП 1% : 1.11 [17:59:42]line НДС 12% : 13.27 [17:59:42]line Наличными: 125.00 [17:59:42]line Безнал.: 0.00 [17:59:42]line Место: АЗС № 117 "Партнер Нефть" [17:59:42]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [17:59:42]line СНО: Общий режим [17:59:42]line Чек 119 03.06.2024 17:59 [17:59:42]line Смена: 373 ФФД: 1.0 [17:59:42]line ЗНМ: 0300000031 [17:59:42]line РНМ: 0000000000092737 [17:59:42]line Версия ККМ: 001 [17:59:42]line ФМ: 0000000000875074 [17:59:42]line ФД: 63861 [17:59:42]line ФПД: 51680879040663 [17:59:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T175940&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63861&fm=51680879040663&tin=02508201610067®Number=0000000000092737&sum=12500 [17:59:42]line 0 [17:59:42]OFD Sender: Processing packet 63861 [packets to send 14, broken 13] [17:59:42]ProducePacketName [17:59:42]name=ofd_packets/00063861 [17:59:42]OFD Sender: To server: pG, [17:59:42]CommunicateWithHost lk.salyk.kg:30040 [17:59:42]ConnectInit lk.salyk.kg [17:59:42]written 0, free lines is 4095 [17:59:42]Connected sock=10 [17:59:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 2E 01 00 00 DC C1 26 01 39 CD 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 8C 04 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 75 F9 00 00 35 04 06 00 2F 00 E4 6F D8 97 4C 92 D6 9F C3 0E F1 8D [17:59:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 C7 8A 47 00 51 09 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 75 F9 00 00 F4 03 04 00 5D B0 5D 66 B6 04 01 00 00 7D DA 05 94 A7 CE B5 44 [17:59:42]CommunicateWithHost err = 0 [17:59:42]CheckOFDResponse [17:59:42]1017 (14) - 77093643461234 [17:59:42]1041 (16) - 0000000000875074 [17:59:42]1040 (4) - 63861 [17:59:42]1012 (4) - 03.06.2024 12:00 [17:59:42]1206 (1) - 0 [17:59:42]OFD Sender: Remove packet 63861 [17:59:42]ProducePacketName [17:59:42]name=ofd_packets/00063861 [17:59:42]NVStorageDeleteData [17:59:43]Write to MH i2c: 01 00 00 F2 00 F2 [17:59:43]Write i2c OK [17:59:43]MH_I2C_Read... [17:59:43]Read from MH i2c: 01 [17:59:43]MH_I2C_Read... [17:59:43]Read from MH i2c: 01 07 00 [17:59:43]MH_I2C_Read... [17:59:43]Read from MH i2c: 01 07 00 F2 00 00 00 00 00 00 F0 0C F5 [17:59:43]RasterBufferAndPrint [17:59:43]line [17:59:43]line [17:59:43]line [17:59:43]line [17:59:43]line [17:59:43]written 0, free lines is 3318 [17:59:43]MH_Cut [17:59:43]Write to MH i2c: D1 01 00 F9 00 01 CB [17:59:43]Write i2c OK [17:59:43]MH_I2C_Read... [17:59:43]Read from MH i2c: D1 [17:59:43]MH_I2C_Read... [17:59:43]Read from MH i2c: D1 01 00 [17:59:43]MH_I2C_Read... [17:59:43]Read from MH i2c: D1 01 00 F9 00 00 CA [17:59:43]Write to MH i2c: 01 00 00 FA 00 FA [17:59:43]Write i2c OK [17:59:43]MH_I2C_Read... [17:59:43]OFD Sender: No OFD packet to send [17:59:43]*** Cut start [17:59:43]*** Partial cut [17:59:43]*** CUTSNS_PIN = 1 [17:59:43]*** CUTSNS_PIN = 0 [17:59:44]*** Brake cut motor [17:59:44]Read from MH i2c: 01 [17:59:44]MH_I2C_Read... [17:59:44]*** Stop cut motor [17:59:44]*** Cut end [17:59:44]Read from MH i2c: 01 07 00 [17:59:44]MH_I2C_Read... [17:59:44]Read from MH i2c: 01 07 00 FA 00 00 00 00 00 00 FF 0F 0F [17:59:44]process_action close_receipt done [17:59:44]requested_data is exist [17:59:44]produce_requested_data [17:59:44]requested_item fm.sn is exist - process it [17:59:44]wFMCommunicate request_size=4 [17:59:44]MH_SAM_APDU [17:59:44]CAPDU: 80 11 00 00 [17:59:44]Write to MH i2c: E2 08 00 FB 00 80 11 00 00 00 00 00 00 75 [17:59:44]Write i2c OK [17:59:44]MH_I2C_Read... [17:59:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:59:44]Read from MH i2c: E2 [17:59:44]MH_I2C_Read... [17:59:44]Read from MH i2c: E2 17 00 [17:59:44]MH_I2C_Read... [17:59:44]Read from MH i2c: E2 17 00 FB 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 C7 [17:59:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [17:59:44]wFMCommunicate OK [17:59:44]requested_item fd.num is exist - process it [17:59:44]SAM_PROTO_GetFieldsCounters [17:59:44]wFMCommunicate request_size=4 [17:59:44]MH_SAM_APDU [17:59:44]CAPDU: 80 13 00 00 [17:59:44]Write to MH i2c: E2 08 00 FC 00 80 13 00 00 00 00 00 00 78 [17:59:44]Write i2c OK [17:59:44]MH_I2C_Read... [17:59:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:59:44]Read from MH i2c: E2 [17:59:44]MH_I2C_Read... [17:59:44]Read from MH i2c: E2 62 00 [17:59:44]MH_I2C_Read... [17:59:44]Read from MH i2c: E2 62 00 FC 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 75 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 E4 [17:59: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 75 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:59:44]wFMCommunicate OK [17:59:44]SAM_PROTO_GetFieldsCounters done [17:59:44]requested_item shift.num is exist - process it [17:59:44]requested_item shift.opened is exist - process it [17:59:44]req_shift_opened [17:59:44]FM_GetShiftState [17:59:44]SAM_PROTO_GetShiftState [17:59:44]wFMCommunicate request_size=4 [17:59:44]MH_SAM_APDU [17:59:44]CAPDU: 80 13 01 00 [17:59:44]Write to MH i2c: E2 08 00 FD 00 80 13 01 00 00 00 00 00 7A [17:59:44]Write i2c OK [17:59:44]MH_I2C_Read... [17:59:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:59:44]Read from MH i2c: E2 [17:59:44]MH_I2C_Read... [17:59:44]Read from MH i2c: E2 0E 00 [17:59:44]MH_I2C_Read... [17:59:44]Read from MH i2c: E2 0E 00 FD 00 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 46 [17:59:44]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [17:59:44]wFMCommunicate OK [17:59:44]SAM_PROTO_GetShiftState done [17:59:44]FM_GetShiftState done [17:59:44]req_shift_opened done [17:59:44]requested_item shift.open_date is exist - process it [17:59:44]req_shift_open_date [17:59:44]req_shift_open_date done [17:59:44]produce_requested_data done [17:59:44]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63861,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [17:59:44]process_action_free close_receipt [17:59:44]json_value_free [17:59:44]json_value_free done [17:59:44]process_json_proto returns [17:59:44]Send response to host [17:59:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63861,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [17:59:44]free response buf [17:59:44]execute_script done [17:59:44]execute_script returns [17:59:44]free content buf [17:59:44]Sock 9.Close socket [17:59:44]Sock 9.Thread stoped [17:59:48]OFD Sender: No OFD packet to send [17:59:53]OFD Sender: No OFD packet to send [17:59:58]OFD Sender: No OFD packet to send [18:00:03]OFD Sender: No OFD packet to send [18:00:08]OFD Sender: No OFD packet to send [18:00:13]OFD Sender: No OFD packet to send [18:00:18]OFD Sender: No OFD packet to send [18:00:23]OFD Sender: No OFD packet to send [18:00:28]OFD Sender: No OFD packet to send [18:00:33]OFD Sender: No OFD packet to send [18:00:38]OFD Sender: No OFD packet to send [18:00:43]OFD Sender: No OFD packet to send [18:00:48]OFD Sender: No OFD packet to send [18:00:53]OFD Sender: No OFD packet to send [18:00:58]OFD Sender: No OFD packet to send [18:01:03]OFD Sender: No OFD packet to send [18:01:08]OFD Sender: No OFD packet to send [18:01:13]OFD Sender: No OFD packet to send [18:01:18]OFD Sender: No OFD packet to send [18:01:23]OFD Sender: No OFD packet to send [18:01:28]OFD Sender: No OFD packet to send [18:01:33]OFD Sender: No OFD packet to send [18:01:38]OFD Sender: No OFD packet to send [18:01:43]OFD Sender: No OFD packet to send [18:01:48]OFD Sender: No OFD packet to send [18:01:53]OFD Sender: No OFD packet to send [18:01:58]OFD Sender: No OFD packet to send [18:02:03]OFD Sender: No OFD packet to send [18:02:08]OFD Sender: No OFD packet to send [18:02:13]OFD Sender: No OFD packet to send [18:02:18]OFD Sender: No OFD packet to send [18:02:23]OFD Sender: No OFD packet to send [18:02:28]OFD Sender: No OFD packet to send [18:02:33]OFD Sender: No OFD packet to send [18:02:38]OFD Sender: No OFD packet to send [18:02:43]OFD Sender: No OFD packet to send [18:02:48]OFD Sender: No OFD packet to send [18:02:53]OFD Sender: No OFD packet to send [18:02:58]OFD Sender: No OFD packet to send [18:03:03]OFD Sender: No OFD packet to send [18:03:08]OFD Sender: No OFD packet to send [18:03:13]OFD Sender: No OFD packet to send [18:03:18]OFD Sender: No OFD packet to send [18:03:23]OFD Sender: No OFD packet to send [18:03:25]accept exits with 7 [18:03:25]New connection [18:03:25]New thread 3066576228 created [18:03:25]Thread 3066719588 joined [18:03:25]Waiting for new connection... [18:03:25] Sock 7.Parse request [18:03:25]Sock 7.Check first char [18:03:25]Sock 7.First char is OK [18:03:25]request: POST /json_proto HTTP/1.0 [18:03:25]Method: POST [18:03:25]URL: /json_proto [18:03:25]Method is POST - this is cgi request [18:03:25]url: /json_proto [18:03:25]query_string will be loaded in cgi processing [18:03:25]execute_cgi json_proto POST (null) [18:03:25]execute_cgi path=json_proto method=POST [18:03:25]POST find Content-Length [18:03:25]Host: 172.17.60.69:8080 [18:03:25]Content-Length: 628 [18:03:25]Content-Type: application/json [18:03:25] [18:03:25]POST finish read [18:03:25]Found Content-Length = 628 [18:03:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73433", "tax_sys" : 0, "items" : [ { "code": "6957531032038", "name": "\u041A\u0430\u0431\u0435\u043B\u044C hoco RAP CHAR X1 micro USB 1\u043C", "price" : 271.00, "quantity" : 1.000, "sum" : 271.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 271.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:03:25]execute_script... [18:03:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73433", "tax_sys" : 0, "items" : [ { "code": "6957531032038", "name": "\u041A\u0430\u0431\u0435\u043B\u044C hoco RAP CHAR X1 micro USB 1\u043C", "price" : 271.00, "quantity" : 1.000, "sum" : 271.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 271.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:03:25]POST & json_proto [18:03:25]process_json_proto [18:03:25]json parsed OK: [18:03:25]protocol is kg_v1.0 [18:03:25]action value=close_receipt [18:03:25]process_action close_receipt [18:03:25]cmd_close_receipt [18:03:25]MH_GetDate [18:03:25]Write to MH i2c: F0 00 00 FE 00 ED [18:03:25]Write i2c OK [18:03:25]MH_I2C_Read... [18:03:25]Read from MH i2c: F0 [18:03:25]MH_I2C_Read... [18:03:25]Read from MH i2c: F0 09 00 [18:03:25]MH_I2C_Read... [18:03:25]Read from MH i2c: F0 09 00 FE 00 00 6D 05 5E 66 6A 96 4A 66 DC [18:03:25]GetLastDocTimeStamp 1717437580 [18:03:25]current date 1717437805 [18:03:25]FM_GetShiftState [18:03:25]SAM_PROTO_GetShiftState [18:03:25]wFMCommunicate request_size=4 [18:03:25]MH_SAM_APDU [18:03:25]CAPDU: 80 13 01 00 [18:03:25]Write to MH i2c: E2 08 00 FF 00 80 13 01 00 00 00 00 00 7C [18:03:25]Write i2c OK [18:03:25]MH_I2C_Read... [18:03:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:03:25]Read from MH i2c: E2 [18:03:25]MH_I2C_Read... [18:03:25]Read from MH i2c: E2 0E 00 [18:03:25]MH_I2C_Read... [18:03:25]Read from MH i2c: E2 0E 00 FF 00 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 48 [18:03:25]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [18:03:25]wFMCommunicate OK [18:03:25]SAM_PROTO_GetShiftState done [18:03:25]FM_GetShiftState done [18:03:25]opened in 1717373173 [18:03:25]opened+sec_in_day 1717459573 [18:03:25]quantity*price = 27100 [18:03:25]sum+1 = 27101 [18:03:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 271.00 НСП 1% : 2.40 НДС 12% : 28.78 Наличными: 271.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 120 03.06.2024 18:03 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63862 ФПД: 280426120061868 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T180325&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63862&fm=280426120061868&tin=02508201610067®Number=0000000000092737&sum=27100 0 [18:03:26]StoreToDocumentArchive [18:03:26]shift 373 fd 63862 [18:03:26]save to /storage/0373/doc_00063862 [18:03:26]save last doc name /storage/0373/doc_00063862 to /storage/kkm_last_doc_name [18:03:26]save OK [18:03:26]Clear old archive folders... [18:03:26]ProcessDocumentItem done err = 0, tmpTLVsize=285 [18:03:26]tlvbuf is 00AE88A0 [18:03:26]SAM_PROTO_ClearQueue [18:03:26]wFMCommunicate request_size=4 [18:03:26]MH_SAM_APDU [18:03:26]CAPDU: 80 09 00 00 [18:03:26]Write to MH i2c: E2 08 00 0C 01 80 09 00 00 00 00 00 00 7F [18:03:26]Write i2c OK [18:03:26]MH_I2C_Read... [18:03:26]Read from MH i2c: E2 [18:03:26]MH_I2C_Read... [18:03:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:03:26]Read from MH i2c: E2 03 00 [18:03:26]MH_I2C_Read... [18:03:26]Read from MH i2c: E2 03 00 0C 01 00 90 00 81 [18:03:26]RAPDU: 90 00 [18:03:26]wFMCommunicate OK [18:03:26]SAM_PROTO_ClearQueue done [18:03:26]KKMCreateOFDPacket [18:03:26]OFDProtocolAddRootSTLVToBuf [18:03:26]FM_MakeSignedData [18:03:26]FM_MakeSignedData [18:03:26]SAM_PROTO_SignData [18:03:26]wFMCommunicate request_size=4 [18:03:26]MH_SAM_APDU [18:03:26]CAPDU: 80 0D 01 02 [18:03:26]Write to MH i2c: E2 08 00 0D 01 80 0D 01 02 00 00 00 00 87 [18:03:26]Write i2c OK [18:03:26]MH_I2C_Read... [18:03:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:03:26]Read from MH i2c: E2 [18:03:26]MH_I2C_Read... [18:03:26]Read from MH i2c: E2 03 00 [18:03:26]MH_I2C_Read... [18:03:26]Read from MH i2c: E2 03 00 0D 01 00 90 00 82 [18:03:26]RAPDU: 90 00 [18:03:26]wFMCommunicate OK [18:03:26]wFMCommunicate request_size=255 [18:03:26]MH_SAM_APDU [18:03:26]CAPDU: 80 0D 02 02 FA 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 36 39 35 37 35 33 31 30 33 32 30 33 38 06 04 2B 00 D0 9A D0 B0 D0 B1 D0 B5 D0 BB D1 8C 20 68 6F 63 6F 20 52 41 50 20 43 48 41 52 20 58 31 20 6D 69 63 72 6F 20 55 53 42 20 31 D0 BC FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 69 00 00 00 00 13 04 06 00 DC 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 0B 00 00 00 00 07 04 06 00 DC 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 78 00 00 00 F4 03 04 00 6D 05 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 [18:03:26]Write to MH i2c: E2 02 01 0E 01 80 0D 02 02 FA 00 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 36 39 35 37 35 33 31 30 33 32 30 33 38 06 04 2B 00 D0 9A D0 B0 D0 B1 D0 B5 D0 BB D1 8C 20 68 6F 63 6F 20 52 41 50 20 43 48 41 52 20 58 31 20 6D 69 63 72 6F 20 55 53 42 20 31 D0 BC FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 69 00 00 00 00 13 04 06 00 DC 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 0B 00 00 00 00 07 04 06 00 DC 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 78 00 00 00 F4 03 04 00 6D 05 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 00 00 66 [18:03:26]Write i2c OK [18:03:26]MH_I2C_Read... [18:03:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:03:26]Read from MH i2c: E2 [18:03:26]MH_I2C_Read... [18:03:26]Read from MH i2c: E2 03 00 [18:03:26]MH_I2C_Read... [18:03:26]Read from MH i2c: E2 03 00 0E 01 00 90 00 83 [18:03:26]RAPDU: 90 00 [18:03:26]wFMCommunicate OK [18:03:26]wFMCommunicate request_size=44 [18:03:26]MH_SAM_APDU [18:03:26]CAPDU: 80 0D 02 02 27 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 76 F9 00 00 35 04 06 00 FF 0B CB 45 A3 AC [18:03:26]Write to MH i2c: E2 2F 00 0F 01 80 0D 02 02 27 00 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 76 F9 00 00 35 04 06 00 FF 0B CB 45 A3 AC 00 00 82 [18:03:26]Write i2c OK [18:03:26]MH_I2C_Read... [18:03:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:03:26]Read from MH i2c: E2 [18:03:26]MH_I2C_Read... [18:03:26]Read from MH i2c: E2 03 00 [18:03:26]MH_I2C_Read... [18:03:26]Read from MH i2c: E2 03 00 0F 01 00 90 00 84 [18:03:26]RAPDU: 90 00 [18:03:26]wFMCommunicate OK [18:03:26]wFMCommunicate request_size=4 [18:03:26]MH_SAM_APDU [18:03:26]CAPDU: 80 0D 03 02 [18:03:26]Write to MH i2c: E2 08 00 10 01 80 0D 03 02 00 00 00 00 8C [18:03:26]Write i2c OK [18:03:26]MH_I2C_Read... [18:03:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:03:26]Read from MH i2c: E2 [18:03:26]MH_I2C_Read... [18:03:26]Read from MH i2c: E2 0B 00 [18:03:26]MH_I2C_Read... [18:03:26]Read from MH i2c: E2 0B 00 10 01 00 F0 49 53 60 6C 9D D5 59 90 00 B0 [18:03:26]RAPDU: F0 49 53 60 6C 9D D5 59 90 00 [18:03:26]wFMCommunicate OK [18:03:26]SAM_PROTO_SignData done [18:03:26]FM_MakeSignedData done [18:03:26]CreateOFDProtocolMessage [18:03:26]wFMCommunicate request_size=4 [18:03:26]MH_SAM_APDU [18:03:26]CAPDU: 80 11 00 00 [18:03:26]Write to MH i2c: E2 08 00 11 01 80 11 00 00 00 00 00 00 8C [18:03:26]Write i2c OK [18:03:26]MH_I2C_Read... [18:03:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:03:26]Read from MH i2c: E2 [18:03:26]MH_I2C_Read... [18:03:26]Read from MH i2c: E2 17 00 [18:03:26]MH_I2C_Read... [18:03:26]Read from MH i2c: E2 17 00 11 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 DE [18:03:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [18:03:26]wFMCommunicate OK [18:03:26]CreateOFDProtocolMessage done [18:03:26]OFDSenderStorePacket 63862 [18:03:26]StoreOFDPacket docnum=63862 [18:03:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 31 01 00 00 8C 60 29 01 FF F4 5A 03 01 00 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 36 39 35 37 35 33 31 30 33 32 30 33 38 06 04 2B 00 D0 9A D0 B0 D0 B1 D0 B5 D0 BB D1 8C 20 68 6F 63 6F 20 52 41 50 20 43 48 41 52 20 58 31 20 6D 69 63 72 6F 20 55 53 42 20 31 D0 BC FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 69 00 00 00 00 13 04 06 00 DC 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 0B 00 00 00 00 07 04 06 00 DC 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 78 00 00 00 F4 03 04 00 6D 05 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 76 F9 00 00 35 04 06 00 FF 0B CB 45 A3 AC F0 49 53 60 6C 9D D5 59 [18:03:26]CheckFolder [18:03:26]dirname=/storage/ofd_packets [18:03:26]CheckFolder done [18:03:26]ProducePacketName [18:03:26]name=ofd_packets/00063862 [18:03:26]NVStorageSaveData ofd_packets/00063862 [18:03:26]File name is /storage/ofd_packets/00063862 [18:03:26]Write 335 bytes [18:03:26]NVStorageSaveData done [18:03:26]OFDSenderStorePacket done [18:03:26]KKMCreateOFDPacket done [18:03:26]NVStorageSaveData kkm_last_timestamp [18:03:26]File name is /storage/kkm_last_timestamp [18:03:26]Write 4 bytes [18:03:26]NVStorageSaveData done [18:03:26]ExternCall_PrintAddStr [18:03:26]wPrintStart [18:03:26]Write to MH i2c: 01 00 00 12 01 13 [18:03:26]Write i2c OK [18:03:26]MH_I2C_Read... [18:03:26]Read from MH i2c: 01 [18:03:26]MH_I2C_Read... [18:03:26]Read from MH i2c: 01 07 00 [18:03:26]MH_I2C_Read... [18:03:26]Read from MH i2c: 01 07 00 12 01 00 00 00 00 00 FF 0F 28 [18:03:26]RasterBufferAndPrint [18:03:26]line Счет N : (3)73433 [18:03:26]line ИНН: 02508201610067 [18:03:26]line Контрольно-Кассовый Чек [18:03:26]line ПРОДАЖА [18:03:26]line Товар: 6957531032038 [18:03:26]line Кабель hoco RAP CHAR X1 micro USB 1м [18:03:26]line 1.000 * 271.00 [18:03:26]line = 271.00 [18:03:26]line НДС 12% НСП 1% [18:03:26]line > о реализуемом товаре [18:03:26]line ИТОГО: 271.00 [18:03:26]line НСП 1% : 2.40 [18:03:26]line НДС 12% : 28.78 [18:03:26]line Наличными: 271.00 [18:03:26]line Безнал.: 0.00 [18:03:26]line Место: АЗС № 117 "Партнер Нефть" [18:03:26]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [18:03:26]line СНО: Общий режим [18:03:26]line Чек 120 03.06.2024 18:03 [18:03:26]line Смена: 373 ФФД: 1.0 [18:03:26]line ЗНМ: 0300000031 [18:03:26]line РНМ: 0000000000092737 [18:03:26]line Версия ККМ: 001 [18:03:26]line ФМ: 0000000000875074 [18:03:26]line ФД: 63862 [18:03:26]line ФПД: 280426120061868 [18:03:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T180325&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63862&fm=280426120061868&tin=02508201610067®Number=0000000000092737&sum=27100 [18:03:27]line 0 [18:03:27]OFD Sender: Processing packet 63862 [packets to send 14, broken 13] [18:03:27]ProducePacketName [18:03:27]name=ofd_packets/00063862 [18:03:27]OFD Sender: To server: pG, [18:03:27]CommunicateWithHost lk.salyk.kg:30040 [18:03:27]ConnectInit lk.salyk.kg [18:03:27]written 0, free lines is 4095 [18:03:27]Connected sock=10 [18:03:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 31 01 00 00 8C 60 29 01 FF F4 5A 03 01 00 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 36 39 35 37 35 33 31 30 33 32 30 33 38 06 04 2B 00 D0 9A D0 B0 D0 B1 D0 B5 D0 BB D1 8C 20 68 6F 63 6F 20 52 41 50 20 43 48 41 52 20 58 31 20 6D 69 63 72 6F 20 55 53 42 20 31 D0 BC FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 69 00 00 00 00 13 04 06 00 DC 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 0B 00 00 00 00 07 04 06 00 DC 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 78 00 00 00 F4 03 04 00 6D 05 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 76 F9 00 00 35 04 06 00 FF 0B CB 45 A3 AC F0 49 53 60 6C 9D D5 59 [18:03:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 C0 ED 47 00 5F 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 35 30 37 34 10 04 04 00 76 F9 00 00 F4 03 04 00 3E B1 5D 66 B6 04 01 00 00 DF B5 CD 61 71 62 E9 6A [18:03:27]CommunicateWithHost err = 0 [18:03:27]CheckOFDResponse [18:03:27]1017 (14) - 77093643461234 [18:03:27]1041 (16) - 0000000000875074 [18:03:27]1040 (4) - 63862 [18:03:27]1012 (4) - 03.06.2024 12:04 [18:03:27]1206 (1) - 0 [18:03:27]OFD Sender: Remove packet 63862 [18:03:27]ProducePacketName [18:03:27]name=ofd_packets/00063862 [18:03:27]NVStorageDeleteData [18:03:27]Write to MH i2c: 01 00 00 3B 01 3C [18:03:27]Write i2c OK [18:03:27]MH_I2C_Read... [18:03:27]Read from MH i2c: 01 [18:03:27]MH_I2C_Read... [18:03:27]Read from MH i2c: 01 07 00 [18:03:27]MH_I2C_Read... [18:03:27]Read from MH i2c: 01 07 00 3B 01 00 00 00 00 00 FE 0C 4D [18:03:27]RasterBufferAndPrint [18:03:27]line [18:03:27]line [18:03:27]line [18:03:27]line [18:03:27]line [18:03:27]written 0, free lines is 3332 [18:03:27]MH_Cut [18:03:27]Write to MH i2c: D1 01 00 42 01 01 15 [18:03:27]Write i2c OK [18:03:27]MH_I2C_Read... [18:03:27]Read from MH i2c: D1 [18:03:27]MH_I2C_Read... [18:03:27]Read from MH i2c: D1 01 00 [18:03:27]MH_I2C_Read... [18:03:27]Read from MH i2c: D1 01 00 42 01 00 14 [18:03:27]Write to MH i2c: 01 00 00 43 01 44 [18:03:27]Write i2c OK [18:03:27]MH_I2C_Read... [18:03:27]OFD Sender: No OFD packet to send [18:03:28]*** Cut start [18:03:28]*** Partial cut [18:03:28]*** CUTSNS_PIN = 1 [18:03:28]*** CUTSNS_PIN = 0 [18:03:28]*** Brake cut motor [18:03:29]Read from MH i2c: 01 [18:03:29]MH_I2C_Read... [18:03:29]*** Stop cut motor [18:03:29]*** Cut end [18:03:29]Read from MH i2c: 01 07 00 [18:03:29]MH_I2C_Read... [18:03:29]Read from MH i2c: 01 07 00 43 01 00 00 00 00 00 FF 0F 59 [18:03:29]process_action close_receipt done [18:03:29]requested_data is exist [18:03:29]produce_requested_data [18:03:29]requested_item fm.sn is exist - process it [18:03:29]wFMCommunicate request_size=4 [18:03:29]MH_SAM_APDU [18:03:29]CAPDU: 80 11 00 00 [18:03:29]Write to MH i2c: E2 08 00 44 01 80 11 00 00 00 00 00 00 BF [18:03:29]Write i2c OK [18:03:29]MH_I2C_Read... [18:03:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:03:29]Read from MH i2c: E2 [18:03:29]MH_I2C_Read... [18:03:29]Read from MH i2c: E2 17 00 [18:03:29]MH_I2C_Read... [18:03:29]Read from MH i2c: E2 17 00 44 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 11 [18:03:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [18:03:29]wFMCommunicate OK [18:03:29]requested_item fd.num is exist - process it [18:03:29]SAM_PROTO_GetFieldsCounters [18:03:29]wFMCommunicate request_size=4 [18:03:29]MH_SAM_APDU [18:03:29]CAPDU: 80 13 00 00 [18:03:29]Write to MH i2c: E2 08 00 45 01 80 13 00 00 00 00 00 00 C2 [18:03:29]Write i2c OK [18:03:29]MH_I2C_Read... [18:03:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:03:29]Read from MH i2c: E2 [18:03:29]MH_I2C_Read... [18:03:29]Read from MH i2c: E2 62 00 [18:03:29]MH_I2C_Read... [18:03:29]Read from MH i2c: E2 62 00 45 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 76 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 32 [18:03: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 76 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:03:29]wFMCommunicate OK [18:03:29]SAM_PROTO_GetFieldsCounters done [18:03:29]requested_item shift.num is exist - process it [18:03:29]requested_item shift.opened is exist - process it [18:03:29]req_shift_opened [18:03:29]FM_GetShiftState [18:03:29]SAM_PROTO_GetShiftState [18:03:29]wFMCommunicate request_size=4 [18:03:29]MH_SAM_APDU [18:03:29]CAPDU: 80 13 01 00 [18:03:29]Write to MH i2c: E2 08 00 46 01 80 13 01 00 00 00 00 00 C4 [18:03:29]Write i2c OK [18:03:29]MH_I2C_Read... [18:03:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:03:29]Read from MH i2c: E2 [18:03:29]MH_I2C_Read... [18:03:29]Read from MH i2c: E2 0E 00 [18:03:29]MH_I2C_Read... [18:03:29]Read from MH i2c: E2 0E 00 46 01 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 90 [18:03:29]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [18:03:29]wFMCommunicate OK [18:03:29]SAM_PROTO_GetShiftState done [18:03:29]FM_GetShiftState done [18:03:29]req_shift_opened done [18:03:29]requested_item shift.open_date is exist - process it [18:03:29]req_shift_open_date [18:03:29]req_shift_open_date done [18:03:29]produce_requested_data done [18:03:29]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63862,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [18:03:29]process_action_free close_receipt [18:03:29]json_value_free [18:03:29]json_value_free done [18:03:29]process_json_proto returns [18:03:29]Send response to host [18:03:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63862,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [18:03:29]free response buf [18:03:29]execute_script done [18:03:29]execute_script returns [18:03:29]free content buf [18:03:29]Sock 7.Close socket [18:03:29]Sock 7.Thread stoped [18:03:32]OFD Sender: No OFD packet to send [18:03:37]OFD Sender: No OFD packet to send [18:03:42]OFD Sender: No OFD packet to send [18:03:47]OFD Sender: No OFD packet to send [18:03:52]OFD Sender: No OFD packet to send [18:03:57]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:04:58]accept exits with 9 [18:04:58]New connection [18:04:58]New thread 3066719588 created [18:04:58]Thread 3066576228 joined [18:04:58]Waiting for new connection... [18:04:58] Sock 9.Parse request [18:04:58]Sock 9.Check first char [18:04:58]Sock 9.First char is OK [18:04:58]request: POST /json_proto HTTP/1.0 [18:04:58]Method: POST [18:04:58]URL: /json_proto [18:04:58]Method is POST - this is cgi request [18:04:58]url: /json_proto [18:04:58]query_string will be loaded in cgi processing [18:04:58]execute_cgi json_proto POST (null) [18:04:58]execute_cgi path=json_proto method=POST [18:04:58]POST find Content-Length [18:04:58]Host: 172.17.60.69:8080 [18:04:58]Content-Length: 846 [18:04:58]Content-Type: application/json [18:04:58] [18:04:58]POST finish read [18:04:58]Found Content-Length = 846 [18:04:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73434", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:04:58]execute_script... [18:04:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73434", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:04:58]POST & json_proto [18:04:58]process_json_proto [18:04:58]json parsed OK: [18:04:58]protocol is kg_v1.0 [18:04:58]action value=close_receipt [18:04:58]process_action close_receipt [18:04:58]cmd_close_receipt [18:04:58]MH_GetDate [18:04:58]Write to MH i2c: F0 00 00 47 01 37 [18:04:58]Write i2c OK [18:04:58]MH_I2C_Read... [18:04:58]Read from MH i2c: F0 [18:04:58]MH_I2C_Read... [18:04:58]Read from MH i2c: F0 09 00 [18:04:58]MH_I2C_Read... [18:04:58]Read from MH i2c: F0 09 00 47 01 00 CB 05 5E 66 6A 96 4A 66 84 [18:04:58]GetLastDocTimeStamp 1717437805 [18:04:58]current date 1717437899 [18:04:58]FM_GetShiftState [18:04:58]SAM_PROTO_GetShiftState [18:04:58]wFMCommunicate request_size=4 [18:04:58]MH_SAM_APDU [18:04:58]CAPDU: 80 13 01 00 [18:04:58]Write to MH i2c: E2 08 00 48 01 80 13 01 00 00 00 00 00 C6 [18:04:58]Write i2c OK [18:04:58]MH_I2C_Read... [18:04:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:04:59]Read from MH i2c: E2 [18:04:59]MH_I2C_Read... [18:04:59]Read from MH i2c: E2 0E 00 [18:04:59]MH_I2C_Read... [18:04:59]Read from MH i2c: E2 0E 00 48 01 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 92 [18:04:59]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [18:04:59]wFMCommunicate OK [18:04:59]SAM_PROTO_GetShiftState done [18:04:59]FM_GetShiftState done [18:04:59]opened in 1717373173 [18:04:59]opened+sec_in_day 1717459573 [18:04:59]quantity*price = 12500 [18:04:59]sum+1 = 12501 [18:04:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 125.00 НСП 1% : 1.11 НДС 12% : 13.27 Наличными: 0.00 Безнал.: 125.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 121 03.06.2024 18:04 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000875074 ФД: 63863 ФПД: 179704359653789 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T180459&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63863&fm=179704359653789&tin=02508201610067®Number=0000000000092737&sum=12500 0 [18:05:00]StoreToDocumentArchive [18:05:00]shift 373 fd 63863 [18:05:00]save to /storage/0373/doc_00063863 [18:05:00]save last doc name /storage/0373/doc_00063863 to /storage/kkm_last_doc_name [18:05:00]save OK [18:05:00]Clear old archive folders... [18:05:00]ProcessDocumentItem done err = 0, tmpTLVsize=282 [18:05:00]tlvbuf is 00AF73F0 [18:05:00]SAM_PROTO_ClearQueue [18:05:00]wFMCommunicate request_size=4 [18:05:00]MH_SAM_APDU [18:05:00]CAPDU: 80 09 00 00 [18:05:00]Write to MH i2c: E2 08 00 55 01 80 09 00 00 00 00 00 00 C8 [18:05:00]Write i2c OK [18:05:00]MH_I2C_Read... [18:05:00]Read from MH i2c: E2 [18:05:00]MH_I2C_Read... [18:05:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:05:00]Read from MH i2c: E2 03 00 [18:05:00]MH_I2C_Read... [18:05:00]Read from MH i2c: E2 03 00 55 01 00 90 00 CA [18:05:00]RAPDU: 90 00 [18:05:00]wFMCommunicate OK [18:05:00]SAM_PROTO_ClearQueue done [18:05:00]KKMCreateOFDPacket [18:05:00]OFDProtocolAddRootSTLVToBuf [18:05:00]FM_MakeSignedData [18:05:00]FM_MakeSignedData [18:05:00]SAM_PROTO_SignData [18:05:00]wFMCommunicate request_size=4 [18:05:00]MH_SAM_APDU [18:05:00]CAPDU: 80 0D 01 02 [18:05:00]Write to MH i2c: E2 08 00 56 01 80 0D 01 02 00 00 00 00 D0 [18:05:00]Write i2c OK [18:05:00]MH_I2C_Read... [18:05:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:05:00]Read from MH i2c: E2 [18:05:00]MH_I2C_Read... [18:05:00]Read from MH i2c: E2 03 00 [18:05:00]MH_I2C_Read... [18:05:00]Read from MH i2c: E2 03 00 56 01 00 90 00 CB [18:05:00]RAPDU: 90 00 [18:05:00]wFMCommunicate OK [18:05:00]wFMCommunicate request_size=255 [18:05:00]MH_SAM_APDU [18:05:00]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 30 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 CB 05 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 [18:05:00]Write to MH i2c: E2 02 01 57 01 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 30 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 CB 05 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 00 00 54 [18:05:00]Write i2c OK [18:05:00]MH_I2C_Read... [18:05:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:05:00]Read from MH i2c: E2 [18:05:00]MH_I2C_Read... [18:05:00]Read from MH i2c: E2 03 00 [18:05:00]MH_I2C_Read... [18:05:00]Read from MH i2c: E2 03 00 57 01 00 90 00 CC [18:05:00]RAPDU: 90 00 [18:05:00]wFMCommunicate OK [18:05:00]wFMCommunicate request_size=41 [18:05:00]MH_SAM_APDU [18:05:00]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 77 F9 00 00 35 04 06 00 A3 70 AE 85 91 9D [18:05:00]Write to MH i2c: E2 2C 00 58 01 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 77 F9 00 00 35 04 06 00 A3 70 AE 85 91 9D 00 00 85 [18:05:00]Write i2c OK [18:05:00]MH_I2C_Read... [18:05:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:05:00]Read from MH i2c: E2 [18:05:00]MH_I2C_Read... [18:05:00]Read from MH i2c: E2 03 00 [18:05:00]MH_I2C_Read... [18:05:00]Read from MH i2c: E2 03 00 58 01 00 90 00 CD [18:05:00]RAPDU: 90 00 [18:05:00]wFMCommunicate OK [18:05:00]wFMCommunicate request_size=4 [18:05:00]MH_SAM_APDU [18:05:00]CAPDU: 80 0D 03 02 [18:05:00]Write to MH i2c: E2 08 00 59 01 80 0D 03 02 00 00 00 00 D5 [18:05:00]Write i2c OK [18:05:00]MH_I2C_Read... [18:05:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:05:00]Read from MH i2c: E2 [18:05:00]MH_I2C_Read... [18:05:00]Read from MH i2c: E2 0B 00 [18:05:00]MH_I2C_Read... [18:05:00]Read from MH i2c: E2 0B 00 59 01 00 A5 9B 1C 57 66 76 58 A9 90 00 66 [18:05:00]RAPDU: A5 9B 1C 57 66 76 58 A9 90 00 [18:05:00]wFMCommunicate OK [18:05:00]SAM_PROTO_SignData done [18:05:00]FM_MakeSignedData done [18:05:00]CreateOFDProtocolMessage [18:05:00]wFMCommunicate request_size=4 [18:05:00]MH_SAM_APDU [18:05:00]CAPDU: 80 11 00 00 [18:05:00]Write to MH i2c: E2 08 00 5A 01 80 11 00 00 00 00 00 00 D5 [18:05:00]Write i2c OK [18:05:00]MH_I2C_Read... [18:05:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:05:00]Read from MH i2c: E2 [18:05:00]MH_I2C_Read... [18:05:00]Read from MH i2c: E2 17 00 [18:05:00]MH_I2C_Read... [18:05:00]Read from MH i2c: E2 17 00 5A 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 27 [18:05:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [18:05:00]wFMCommunicate OK [18:05:00]CreateOFDProtocolMessage done [18:05:00]OFDSenderStorePacket 63863 [18:05:00]StoreOFDPacket docnum=63863 [18:05:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 2E 01 00 00 E8 FF 26 01 9E 9C 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 30 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 CB 05 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 77 F9 00 00 35 04 06 00 A3 70 AE 85 91 9D A5 9B 1C 57 66 76 58 A9 [18:05:00]CheckFolder [18:05:00]dirname=/storage/ofd_packets [18:05:00]CheckFolder done [18:05:00]ProducePacketName [18:05:00]name=ofd_packets/00063863 [18:05:00]NVStorageSaveData ofd_packets/00063863 [18:05:00]File name is /storage/ofd_packets/00063863 [18:05:00]Write 332 bytes [18:05:00]NVStorageSaveData done [18:05:00]OFDSenderStorePacket done [18:05:00]KKMCreateOFDPacket done [18:05:00]NVStorageSaveData kkm_last_timestamp [18:05:00]File name is /storage/kkm_last_timestamp [18:05:00]Write 4 bytes [18:05:00]NVStorageSaveData done [18:05:00]ExternCall_PrintAddStr [18:05:00]wPrintStart [18:05:00]Write to MH i2c: 01 00 00 5B 01 5C [18:05:00]Write i2c OK [18:05:00]MH_I2C_Read... [18:05:00]Read from MH i2c: 01 [18:05:00]MH_I2C_Read... [18:05:00]Read from MH i2c: 01 07 00 [18:05:00]MH_I2C_Read... [18:05:00]Read from MH i2c: 01 07 00 5B 01 00 00 00 00 00 FF 0F 71 [18:05:00]RasterBufferAndPrint [18:05:00]line Счет N : (3)73434 [18:05:00]line ИНН: 02508201610067 [18:05:00]line Контрольно-Кассовый Чек [18:05:00]line ПРОДАЖА [18:05:00]line Товар: 2000036220012 [18:05:00]line Кофе Капучино XL(GABB TRADE) [18:05:00]line 1.000 * 125.00 [18:05:00]line = 125.00 [18:05:00]line НДС 12% НСП 1% [18:05:00]line > о реализуемом товаре [18:05:00]line ИТОГО: 125.00 [18:05:00]line НСП 1% : 1.11 [18:05:00]line НДС 12% : 13.27 [18:05:00]line Наличными: 0.00 [18:05:00]line Безнал.: 125.00 [18:05:00]line Место: АЗС № 117 "Партнер Нефть" [18:05:00]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [18:05:00]line СНО: Общий режим [18:05:00]line Чек 121 03.06.2024 18:04 [18:05:00]line Смена: 373 ФФД: 1.0 [18:05:00]line ЗНМ: 0300000031 [18:05:00]line РНМ: 0000000000092737 [18:05:00]line Версия ККМ: 001 [18:05:00]line Платежная система: АКБ Кыргызстан [18:05:00]line ФМ: 0000000000875074 [18:05:00]line ФД: 63863 [18:05:00]line ФПД: 179704359653789 [18:05:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T180459&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63863&fm=179704359653789&tin=02508201610067®Number=0000000000092737&sum=12500 [18:05:01]line 0 [18:05:01]OFD Sender: Processing packet 63863 [packets to send 14, broken 13] [18:05:01]ProducePacketName [18:05:01]name=ofd_packets/00063863 [18:05:01]OFD Sender: To server: pG, [18:05:01]CommunicateWithHost lk.salyk.kg:30040 [18:05:01]ConnectInit lk.salyk.kg [18:05:01]written 0, free lines is 4095 [18:05:01]Connected sock=10 [18:05:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 2E 01 00 00 E8 FF 26 01 9E 9C 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 30 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 CB 05 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 77 F9 00 00 35 04 06 00 A3 70 AE 85 91 9D A5 9B 1C 57 66 76 58 A9 [18:05:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 C8 4A 47 00 92 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 35 30 37 34 10 04 04 00 77 F9 00 00 F4 03 04 00 9B B1 5D 66 B6 04 01 00 00 DC 59 50 20 D2 81 99 C8 [18:05:01]CommunicateWithHost err = 0 [18:05:01]CheckOFDResponse [18:05:01]1017 (14) - 77093643461234 [18:05:01]1041 (16) - 0000000000875074 [18:05:01]1040 (4) - 63863 [18:05:01]1012 (4) - 03.06.2024 12:05 [18:05:01]1206 (1) - 0 [18:05:01]OFD Sender: Remove packet 63863 [18:05:01]ProducePacketName [18:05:01]name=ofd_packets/00063863 [18:05:01]NVStorageDeleteData [18:05:01]Write to MH i2c: 01 00 00 86 01 87 [18:05:01]Write i2c OK [18:05:01]MH_I2C_Read... [18:05:01]Read from MH i2c: 01 [18:05:01]MH_I2C_Read... [18:05:01]Read from MH i2c: 01 07 00 [18:05:01]MH_I2C_Read... [18:05:01]Read from MH i2c: 01 07 00 86 01 00 00 00 00 00 E0 0C 7A [18:05:01]RasterBufferAndPrint [18:05:01]line [18:05:01]line [18:05:01]line [18:05:01]line [18:05:01]line [18:05:01]written 0, free lines is 3301 [18:05:01]MH_Cut [18:05:01]Write to MH i2c: D1 01 00 8D 01 01 60 [18:05:01]Write i2c OK [18:05:01]MH_I2C_Read... [18:05:01]Read from MH i2c: D1 [18:05:01]MH_I2C_Read... [18:05:01]Read from MH i2c: D1 01 00 [18:05:01]MH_I2C_Read... [18:05:01]Read from MH i2c: D1 01 00 8D 01 00 5F [18:05:01]Write to MH i2c: 01 00 00 8E 01 8F [18:05:01]Write i2c OK [18:05:01]MH_I2C_Read... [18:05:01]OFD Sender: No OFD packet to send [18:05:02]*** Cut start [18:05:02]*** Partial cut [18:05:02]*** CUTSNS_PIN = 1 [18:05:02]*** CUTSNS_PIN = 0 [18:05:02]*** Brake cut motor [18:05:02]Read from MH i2c: 01 [18:05:02]MH_I2C_Read... [18:05:02]*** Stop cut motor [18:05:02]*** Cut end [18:05:02]Read from MH i2c: 01 07 00 [18:05:02]MH_I2C_Read... [18:05:02]Read from MH i2c: 01 07 00 8E 01 00 00 00 00 00 FF 0F A4 [18:05:02]process_action close_receipt done [18:05:02]requested_data is exist [18:05:02]produce_requested_data [18:05:02]requested_item fm.sn is exist - process it [18:05:02]wFMCommunicate request_size=4 [18:05:02]MH_SAM_APDU [18:05:02]CAPDU: 80 11 00 00 [18:05:02]Write to MH i2c: E2 08 00 8F 01 80 11 00 00 00 00 00 00 0A [18:05:02]Write i2c OK [18:05:02]MH_I2C_Read... [18:05:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:05:03]Read from MH i2c: E2 [18:05:03]MH_I2C_Read... [18:05:03]Read from MH i2c: E2 17 00 [18:05:03]MH_I2C_Read... [18:05:03]Read from MH i2c: E2 17 00 8F 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 5C [18:05:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [18:05:03]wFMCommunicate OK [18:05:03]requested_item fd.num is exist - process it [18:05:03]SAM_PROTO_GetFieldsCounters [18:05:03]wFMCommunicate request_size=4 [18:05:03]MH_SAM_APDU [18:05:03]CAPDU: 80 13 00 00 [18:05:03]Write to MH i2c: E2 08 00 90 01 80 13 00 00 00 00 00 00 0D [18:05:03]Write i2c OK [18:05:03]MH_I2C_Read... [18:05:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:05:03]Read from MH i2c: E2 [18:05:03]MH_I2C_Read... [18:05:03]Read from MH i2c: E2 62 00 [18:05:03]MH_I2C_Read... [18:05:03]Read from MH i2c: E2 62 00 90 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 77 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 81 [18:05: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 77 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:05:03]wFMCommunicate OK [18:05:03]SAM_PROTO_GetFieldsCounters done [18:05:03]requested_item shift.num is exist - process it [18:05:03]requested_item shift.opened is exist - process it [18:05:03]req_shift_opened [18:05:03]FM_GetShiftState [18:05:03]SAM_PROTO_GetShiftState [18:05:03]wFMCommunicate request_size=4 [18:05:03]MH_SAM_APDU [18:05:03]CAPDU: 80 13 01 00 [18:05:03]Write to MH i2c: E2 08 00 91 01 80 13 01 00 00 00 00 00 0F [18:05:03]Write i2c OK [18:05:03]MH_I2C_Read... [18:05:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:05:03]Read from MH i2c: E2 [18:05:03]MH_I2C_Read... [18:05:03]Read from MH i2c: E2 0E 00 [18:05:03]MH_I2C_Read... [18:05:03]Read from MH i2c: E2 0E 00 91 01 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 DB [18:05:03]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [18:05:03]wFMCommunicate OK [18:05:03]SAM_PROTO_GetShiftState done [18:05:03]FM_GetShiftState done [18:05:03]req_shift_opened done [18:05:03]requested_item shift.open_date is exist - process it [18:05:03]req_shift_open_date [18:05:03]req_shift_open_date done [18:05:03]produce_requested_data done [18:05:03]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63863,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [18:05:03]process_action_free close_receipt [18:05:03]json_value_free [18:05:03]json_value_free done [18:05:03]process_json_proto returns [18:05:03]Send response to host [18:05:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63863,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [18:05:03]free response buf [18:05:03]execute_script done [18:05:03]execute_script returns [18:05:03]free content buf [18:05:03]Sock 9.Close socket [18:05:03]Sock 9.Thread stoped [18:05:06]OFD Sender: No OFD packet to send [18:05:11]OFD Sender: No OFD packet to send [18:05:16]OFD Sender: No OFD packet to send [18:05:21]OFD Sender: No OFD packet to send [18:05:26]OFD Sender: No OFD packet to send [18:05:31]OFD Sender: No OFD packet to send [18:05:36]OFD Sender: No OFD packet to send [18:05:41]OFD Sender: No OFD packet to send [18:05:46]OFD Sender: No OFD packet to send [18:05:51]OFD Sender: No OFD packet to send [18:05:56]OFD Sender: No OFD packet to send [18:06:01]OFD Sender: No OFD packet to send [18:06:06]OFD Sender: No OFD packet to send [18:06:11]OFD Sender: No OFD packet to send [18:06:16]OFD Sender: No OFD packet to send [18:06:21]OFD Sender: No OFD packet to send [18:06:26]OFD Sender: No OFD packet to send [18:06:31]OFD Sender: No OFD packet to send [18:06:36]OFD Sender: No OFD packet to send [18:06:41]OFD Sender: No OFD packet to send [18:06:46]OFD Sender: No OFD packet to send [18:06:51]OFD Sender: No OFD packet to send [18:06:56]OFD Sender: No OFD packet to send [18:07:01]OFD Sender: No OFD packet to send [18:07:06]OFD Sender: No OFD packet to send [18:07:11]OFD Sender: No OFD packet to send [18:07:16]OFD Sender: No OFD packet to send [18:07:21]OFD Sender: No OFD packet to send [18:07:26]OFD Sender: No OFD packet to send [18:07:31]OFD Sender: No OFD packet to send [18:07:36]OFD Sender: No OFD packet to send [18:07:41]OFD Sender: No OFD packet to send [18:07:46]OFD Sender: No OFD packet to send [18:07:51]OFD Sender: No OFD packet to send [18:07:56]accept exits with 7 [18:07:56]New connection [18:07:56]New thread 3066576228 created [18:07:56]Thread 3066719588 joined [18:07:56]Waiting for new connection... [18:07:56] Sock 7.Parse request [18:07:56]Sock 7.Check first char [18:07:56]Sock 7.First char is OK [18:07:56]request: POST /json_proto HTTP/1.0 [18:07:56]Method: POST [18:07:56]URL: /json_proto [18:07:56]Method is POST - this is cgi request [18:07:56]url: /json_proto [18:07:56]query_string will be loaded in cgi processing [18:07:56]execute_cgi json_proto POST (null) [18:07:56]execute_cgi path=json_proto method=POST [18:07:56]POST find Content-Length [18:07:56]Host: 172.17.60.69:8080 [18:07:56]Content-Length: 1101 [18:07:56]Content-Type: application/json [18:07:56] [18:07:56]POST finish read [18:07:56]Found Content-Length = 1101 [18:07:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73435", "tax_sys" : 0, "items" : [ { "code": "2000034730018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E (GABB TRADE)", "price" : 75.00, "quantity" : 2.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "8690504034500", "name": "\u041A\u041E\u041C\u0411\u041E \u041A\u043E\u043D\u0434 ULKER-Albeni 40gr (6*24)", "price" : 40.00, "quantity" : 1.000, "sum" : 40.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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 190.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:07:56]execute_script... [18:07:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73435", "tax_sys" : 0, "items" : [ { "code": "2000034730018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E (GABB TRADE)", "price" : 75.00, "quantity" : 2.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "8690504034500", "name": "\u041A\u041E\u041C\u0411\u041E \u041A\u043E\u043D\u0434 ULKER-Albeni 40gr (6*24)", "price" : 40.00, "quantity" : 1.000, "sum" : 40.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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 190.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:07:56]POST & json_proto [18:07:56]process_json_proto [18:07:56]json parsed OK: [18:07:56]protocol is kg_v1.0 [18:07:56]action value=close_receipt [18:07:56]process_action close_receipt [18:07:56]cmd_close_receipt [18:07:56]MH_GetDate [18:07:56]Write to MH i2c: F0 00 00 92 01 82 [18:07:56]Write i2c OK [18:07:56]MH_I2C_Read... [18:07:56]Read from MH i2c: F0 [18:07:56]MH_I2C_Read... [18:07:56]Read from MH i2c: F0 09 00 [18:07:56]MH_I2C_Read... [18:07:56]Read from MH i2c: F0 09 00 92 01 00 7C 06 5E 66 6A 96 4A 66 81 [18:07:56]GetLastDocTimeStamp 1717437899 [18:07:56]current date 1717438076 [18:07:56]FM_GetShiftState [18:07:56]SAM_PROTO_GetShiftState [18:07:56]wFMCommunicate request_size=4 [18:07:56]MH_SAM_APDU [18:07:56]CAPDU: 80 13 01 00 [18:07:56]Write to MH i2c: E2 08 00 93 01 80 13 01 00 00 00 00 00 11 [18:07:56]Write i2c OK [18:07:56]MH_I2C_Read... [18:07:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:07:56]Read from MH i2c: E2 [18:07:56]MH_I2C_Read... [18:07:56]Read from MH i2c: E2 0E 00 [18:07:56]MH_I2C_Read... [18:07:56]Read from MH i2c: E2 0E 00 93 01 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 DD [18:07:56]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [18:07:56]wFMCommunicate OK [18:07:56]SAM_PROTO_GetShiftState done [18:07:56]FM_GetShiftState done [18:07:56]opened in 1717373173 [18:07:56]opened+sec_in_day 1717459573 [18:07:56]quantity*price = 15000 [18:07:56]sum+1 = 15001 [18:07:56]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 8690504034500 КОМБО Конд ULKER-Albeni 40gr (6*24) 1.000 * 40.00 = 40.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 190.00 НСП 1% : 1.68 НДС 12% : 20.18 Наличными: 0.00 Безнал.: 190.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 122 03.06.2024 18:07 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000875074 ФД: 63864 ФПД: 228830044992839 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T180756&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63864&fm=228830044992839&tin=02508201610067®Number=0000000000092737&sum=19000 0 [18:07:57]StoreToDocumentArchive [18:07:57]shift 373 fd 63864 [18:07:57]save to /storage/0373/doc_00063864 [18:07:57]save last doc name /storage/0373/doc_00063864 to /storage/kkm_last_doc_name [18:07:57]save OK [18:07:57]Clear old archive folders... [18:07:57]ProcessDocumentItem done err = 0, tmpTLVsize=398 [18:07:57]tlvbuf is B6E884A0 [18:07:57]SAM_PROTO_ClearQueue [18:07:57]wFMCommunicate request_size=4 [18:07:57]MH_SAM_APDU [18:07:57]CAPDU: 80 09 00 00 [18:07:57]Write to MH i2c: E2 08 00 A0 01 80 09 00 00 00 00 00 00 13 [18:07:57]Write i2c OK [18:07:57]MH_I2C_Read... [18:07:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:07:57]Read from MH i2c: E2 [18:07:57]MH_I2C_Read... [18:07:57]Read from MH i2c: E2 03 00 [18:07:57]MH_I2C_Read... [18:07:57]Read from MH i2c: E2 03 00 A0 01 00 90 00 15 [18:07:57]RAPDU: 90 00 [18:07:57]wFMCommunicate OK [18:07:57]SAM_PROTO_ClearQueue done [18:07:57]KKMCreateOFDPacket [18:07:57]OFDProtocolAddRootSTLVToBuf [18:07:57]FM_MakeSignedData [18:07:57]FM_MakeSignedData [18:07:57]SAM_PROTO_SignData [18:07:57]wFMCommunicate request_size=4 [18:07:57]MH_SAM_APDU [18:07:57]CAPDU: 80 0D 01 02 [18:07:57]Write to MH i2c: E2 08 00 A1 01 80 0D 01 02 00 00 00 00 1B [18:07:57]Write i2c OK [18:07:57]MH_I2C_Read... [18:07:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:07:57]Read from MH i2c: E2 [18:07:57]MH_I2C_Read... [18:07:57]Read from MH i2c: E2 03 00 [18:07:57]MH_I2C_Read... [18:07:57]Read from MH i2c: E2 03 00 A1 01 00 90 00 16 [18:07:57]RAPDU: 90 00 [18:07:57]wFMCommunicate OK [18:07:57]wFMCommunicate request_size=255 [18:07:57]MH_SAM_APDU [18:07:57]CAPDU: 80 0D 02 02 FA 03 00 8E 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 70 00 8A 04 0D 00 38 36 39 30 35 30 34 30 33 34 35 30 30 06 04 2C 00 D0 9A D0 9E D0 9C D0 91 D0 9E 20 D0 9A D0 BE D0 BD D0 B4 20 55 4C 4B 45 52 2D 41 6C 62 65 6E 69 20 34 30 67 72 20 28 36 2A 32 34 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 [18:07:57]Write to MH i2c: E2 02 01 A2 01 80 0D 02 02 FA 00 03 00 8E 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 70 00 8A 04 0D 00 38 36 39 30 35 30 34 30 33 34 35 30 30 06 04 2C 00 D0 9A D0 9E D0 9C D0 91 D0 9E 20 D0 9A D0 BE D0 BD D0 B4 20 55 4C 4B 45 52 2D 41 6C 62 65 6E 69 20 34 30 67 72 20 28 36 2A 32 34 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 00 45 [18:07:57]Write i2c OK [18:07:57]MH_I2C_Read... [18:07:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:07:57]Read from MH i2c: E2 [18:07:57]MH_I2C_Read... [18:07:57]Read from MH i2c: E2 03 00 [18:07:57]MH_I2C_Read... [18:07:57]Read from MH i2c: E2 03 00 A2 01 00 90 00 17 [18:07:57]RAPDU: 90 00 [18:07:57]wFMCommunicate OK [18:07:57]wFMCommunicate request_size=157 [18:07:57]MH_SAM_APDU [18:07:57]CAPDU: 80 0D 02 02 98 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 38 4A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 7C 06 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 78 F9 00 00 35 04 06 00 D0 1E A5 8B B5 47 [18:07:57]Write to MH i2c: E2 A0 00 A3 01 80 0D 02 02 98 00 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 38 4A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 7C 06 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 78 F9 00 00 35 04 06 00 D0 1E A5 8B B5 47 00 00 4D [18:07:57]Write i2c OK [18:07:57]MH_I2C_Read... [18:07:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:07:57]Read from MH i2c: E2 [18:07:57]MH_I2C_Read... [18:07:57]Read from MH i2c: E2 03 00 [18:07:57]MH_I2C_Read... [18:07:57]Read from MH i2c: E2 03 00 A3 01 00 90 00 18 [18:07:57]RAPDU: 90 00 [18:07:57]wFMCommunicate OK [18:07:57]wFMCommunicate request_size=4 [18:07:57]MH_SAM_APDU [18:07:57]CAPDU: 80 0D 03 02 [18:07:57]Write to MH i2c: E2 08 00 A4 01 80 0D 03 02 00 00 00 00 20 [18:07:57]Write i2c OK [18:07:57]MH_I2C_Read... [18:07:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:07:57]Read from MH i2c: E2 [18:07:57]MH_I2C_Read... [18:07:57]Read from MH i2c: E2 0B 00 [18:07:57]MH_I2C_Read... [18:07:57]Read from MH i2c: E2 0B 00 A4 01 00 DA D4 E0 55 82 2F F1 93 90 00 39 [18:07:57]RAPDU: DA D4 E0 55 82 2F F1 93 90 00 [18:07:57]wFMCommunicate OK [18:07:57]SAM_PROTO_SignData done [18:07:57]FM_MakeSignedData done [18:07:57]CreateOFDProtocolMessage [18:07:57]wFMCommunicate request_size=4 [18:07:57]MH_SAM_APDU [18:07:57]CAPDU: 80 11 00 00 [18:07:57]Write to MH i2c: E2 08 00 A5 01 80 11 00 00 00 00 00 00 20 [18:07:57]Write i2c OK [18:07:57]MH_I2C_Read... [18:07:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:07:58]Read from MH i2c: E2 [18:07:58]MH_I2C_Read... [18:07:58]Read from MH i2c: E2 17 00 [18:07:58]MH_I2C_Read... [18:07:58]Read from MH i2c: E2 17 00 A5 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 72 [18:07:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [18:07:58]wFMCommunicate OK [18:07:58]CreateOFDProtocolMessage done [18:07:58]OFDSenderStorePacket 63864 [18:07:58]StoreOFDPacket docnum=63864 [18:07:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 A2 01 00 00 8E 68 9A 01 62 BC 5A 03 01 00 03 00 8E 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 70 00 8A 04 0D 00 38 36 39 30 35 30 34 30 33 34 35 30 30 06 04 2C 00 D0 9A D0 9E D0 9C D0 91 D0 9E 20 D0 9A D0 BE D0 BD D0 B4 20 55 4C 4B 45 52 2D 41 6C 62 65 6E 69 20 34 30 67 72 20 28 36 2A 32 34 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 38 4A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 7C 06 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 78 F9 00 00 35 04 06 00 D0 1E A5 8B B5 47 DA D4 E0 55 82 2F F1 93 [18:07:58]CheckFolder [18:07:58]dirname=/storage/ofd_packets [18:07:58]CheckFolder done [18:07:58]ProducePacketName [18:07:58]name=ofd_packets/00063864 [18:07:58]NVStorageSaveData ofd_packets/00063864 [18:07:58]File name is /storage/ofd_packets/00063864 [18:07:58]Write 448 bytes [18:07:58]NVStorageSaveData done [18:07:58]OFDSenderStorePacket done [18:07:58]KKMCreateOFDPacket done [18:07:58]NVStorageSaveData kkm_last_timestamp [18:07:58]File name is /storage/kkm_last_timestamp [18:07:58]Write 4 bytes [18:07:58]NVStorageSaveData done [18:07:58]ExternCall_PrintAddStr [18:07:58]wPrintStart [18:07:58]Write to MH i2c: 01 00 00 A6 01 A7 [18:07:58]Write i2c OK [18:07:58]MH_I2C_Read... [18:07:58]Read from MH i2c: 01 [18:07:58]MH_I2C_Read... [18:07:58]Read from MH i2c: 01 07 00 [18:07:58]MH_I2C_Read... [18:07:58]Read from MH i2c: 01 07 00 A6 01 00 00 00 00 00 FF 0F BC [18:07:58]RasterBufferAndPrint [18:07:58]line Счет N : (3)73435 [18:07:58]line ИНН: 02508201610067 [18:07:58]line Контрольно-Кассовый Чек [18:07:58]line ПРОДАЖА [18:07:58]line Товар: 2000034730018 [18:07:58]line Кофе Американо (GABB TRADE) [18:07:58]line 2.000 * 75.00 [18:07:58]line = 150.00 [18:07:58]line НДС 12% НСП 1% [18:07:58]line > о реализуемом товаре [18:07:58]line Товар: 8690504034500 [18:07:58]line КОМБО Конд ULKER-Albeni 40gr (6*24) [18:07:58]line 1.000 * 40.00 [18:07:58]line = 40.00 [18:07:58]line НДС 12% НСП 1% [18:07:58]line > о реализуемом товаре [18:07:58]line ИТОГО: 190.00 [18:07:58]line НСП 1% : 1.68 [18:07:58]line НДС 12% : 20.18 [18:07:58]line Наличными: 0.00 [18:07:58]line Безнал.: 190.00 [18:07:58]line Место: АЗС № 117 "Партнер Нефть" [18:07:58]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [18:07:58]line СНО: Общий режим [18:07:58]line Чек 122 03.06.2024 18:07 [18:07:58]line Смена: 373 ФФД: 1.0 [18:07:58]line ЗНМ: 0300000031 [18:07:58]line РНМ: 0000000000092737 [18:07:58]line Версия ККМ: 001 [18:07:58]line Платежная система: АКБ Кыргызстан [18:07:58]line ФМ: 0000000000875074 [18:07:58]line ФД: 63864 [18:07:58]line ФПД: 228830044992839 [18:07:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T180756&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63864&fm=228830044992839&tin=02508201610067®Number=0000000000092737&sum=19000 [18:07:58]line 0 [18:07:58]written 0, free lines is 4095 [18:07:58]OFD Sender: Processing packet 63864 [packets to send 14, broken 13] [18:07:58]ProducePacketName [18:07:58]name=ofd_packets/00063864 [18:07:58]OFD Sender: To server: pG, [18:07:58]CommunicateWithHost lk.salyk.kg:30040 [18:07:58]ConnectInit lk.salyk.kg [18:07:58]Connected sock=10 [18:07:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 A2 01 00 00 8E 68 9A 01 62 BC 5A 03 01 00 03 00 8E 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 70 00 8A 04 0D 00 38 36 39 30 35 30 34 30 33 34 35 30 30 06 04 2C 00 D0 9A D0 9E D0 9C D0 91 D0 9E 20 D0 9A D0 BE D0 BD D0 B4 20 55 4C 4B 45 52 2D 41 6C 62 65 6E 69 20 34 30 67 72 20 28 36 2A 32 34 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 38 4A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 7C 06 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 78 F9 00 00 35 04 06 00 D0 1E A5 8B B5 47 DA D4 E0 55 82 2F F1 93 [18:07:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 F0 AC 47 00 C2 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 35 30 37 34 10 04 04 00 78 F9 00 00 F4 03 04 00 4D B2 5D 66 B6 04 01 00 00 0B 8E A0 E3 5A 8D 88 C2 [18:07:58]CommunicateWithHost err = 0 [18:07:58]CheckOFDResponse [18:07:58]1017 (14) - 77093643461234 [18:07:58]1041 (16) - 0000000000875074 [18:07:58]1040 (4) - 63864 [18:07:58]1012 (4) - 03.06.2024 12:08 [18:07:58]1206 (1) - 0 [18:07:58]OFD Sender: Remove packet 63864 [18:07:58]ProducePacketName [18:07:58]name=ofd_packets/00063864 [18:07:58]NVStorageDeleteData [18:07:58]Write to MH i2c: 01 00 00 D8 01 D9 [18:07:58]Write i2c OK [18:07:58]MH_I2C_Read... [18:07:58]Read from MH i2c: 01 [18:07:58]MH_I2C_Read... [18:07:58]Read from MH i2c: 01 07 00 [18:07:58]MH_I2C_Read... [18:07:58]Read from MH i2c: 01 07 00 D8 01 00 00 00 00 00 73 0C 5F [18:07:58]RasterBufferAndPrint [18:07:58]line [18:07:58]line [18:07:58]line [18:07:58]line [18:07:58]line [18:07:58]written 0, free lines is 3191 [18:07:58]MH_Cut [18:07:58]Write to MH i2c: D1 01 00 DF 01 01 B2 [18:07:58]Write i2c OK [18:07:58]MH_I2C_Read... [18:07:58]Read from MH i2c: D1 [18:07:58]MH_I2C_Read... [18:07:58]Read from MH i2c: D1 01 00 [18:07:58]MH_I2C_Read... [18:07:58]Read from MH i2c: D1 01 00 DF 01 00 B1 [18:07:58]Write to MH i2c: 01 00 00 E0 01 E1 [18:07:58]Write i2c OK [18:07:58]MH_I2C_Read... [18:07:59]OFD Sender: No OFD packet to send [18:07:59]*** Cut start [18:07:59]*** Partial cut [18:07:59]*** CUTSNS_PIN = 1 [18:07:59]*** CUTSNS_PIN = 0 [18:08:00]*** Brake cut motor [18:08:00]Read from MH i2c: 01 [18:08:00]MH_I2C_Read... [18:08:00]*** Stop cut motor [18:08:00]*** Cut end [18:08:00]Read from MH i2c: 01 07 00 [18:08:00]MH_I2C_Read... [18:08:00]Read from MH i2c: 01 07 00 E0 01 00 00 00 00 00 FF 0F F6 [18:08:00]process_action close_receipt done [18:08:00]requested_data is exist [18:08:00]produce_requested_data [18:08:00]requested_item fm.sn is exist - process it [18:08:00]wFMCommunicate request_size=4 [18:08:00]MH_SAM_APDU [18:08:00]CAPDU: 80 11 00 00 [18:08:00]Write to MH i2c: E2 08 00 E1 01 80 11 00 00 00 00 00 00 5C [18:08:00]Write i2c OK [18:08:00]MH_I2C_Read... [18:08:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:08:00]Read from MH i2c: E2 [18:08:00]MH_I2C_Read... [18:08:00]Read from MH i2c: E2 17 00 [18:08:00]MH_I2C_Read... [18:08:00]Read from MH i2c: E2 17 00 E1 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 AE [18:08:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [18:08:00]wFMCommunicate OK [18:08:00]requested_item fd.num is exist - process it [18:08:00]SAM_PROTO_GetFieldsCounters [18:08:00]wFMCommunicate request_size=4 [18:08:00]MH_SAM_APDU [18:08:00]CAPDU: 80 13 00 00 [18:08:00]Write to MH i2c: E2 08 00 E2 01 80 13 00 00 00 00 00 00 5F [18:08:00]Write i2c OK [18:08:00]MH_I2C_Read... [18:08:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:08:00]Read from MH i2c: E2 [18:08:00]MH_I2C_Read... [18:08:00]Read from MH i2c: E2 62 00 [18:08:00]MH_I2C_Read... [18:08:00]Read from MH i2c: E2 62 00 E2 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 78 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 7A 00 00 00 5E 04 04 00 7A 00 00 00 57 04 04 00 7B 00 00 00 19 04 04 00 00 00 00 00 90 00 D7 [18:08: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 78 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 7A 00 00 00 5E 04 04 00 7A 00 00 00 57 04 04 00 7B 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:08:00]wFMCommunicate OK [18:08:00]SAM_PROTO_GetFieldsCounters done [18:08:00]requested_item shift.num is exist - process it [18:08:00]requested_item shift.opened is exist - process it [18:08:00]req_shift_opened [18:08:00]FM_GetShiftState [18:08:00]SAM_PROTO_GetShiftState [18:08:00]wFMCommunicate request_size=4 [18:08:00]MH_SAM_APDU [18:08:00]CAPDU: 80 13 01 00 [18:08:00]Write to MH i2c: E2 08 00 E3 01 80 13 01 00 00 00 00 00 61 [18:08:00]Write i2c OK [18:08:00]MH_I2C_Read... [18:08:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:08:00]Read from MH i2c: E2 [18:08:00]MH_I2C_Read... [18:08:00]Read from MH i2c: E2 0E 00 [18:08:00]MH_I2C_Read... [18:08:00]Read from MH i2c: E2 0E 00 E3 01 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 2D [18:08:00]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [18:08:00]wFMCommunicate OK [18:08:00]SAM_PROTO_GetShiftState done [18:08:00]FM_GetShiftState done [18:08:00]req_shift_opened done [18:08:00]requested_item shift.open_date is exist - process it [18:08:00]req_shift_open_date [18:08:00]req_shift_open_date done [18:08:00]produce_requested_data done [18:08:00]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63864,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [18:08:00]process_action_free close_receipt [18:08:00]json_value_free [18:08:00]json_value_free done [18:08:00]process_json_proto returns [18:08:00]Send response to host [18:08:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63864,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [18:08:00]free response buf [18:08:00]execute_script done [18:08:00]execute_script returns [18:08:00]free content buf [18:08:00]Sock 7.Close socket [18:08:00]Sock 7.Thread stoped [18:08:04]OFD Sender: No OFD packet to send [18:08:09]OFD Sender: No OFD packet to send [18:08:14]OFD Sender: No OFD packet to send [18:08:19]OFD Sender: No OFD packet to send [18:08:24]OFD Sender: No OFD packet to send [18:08:29]OFD Sender: No OFD packet to send [18:08:34]OFD Sender: No OFD packet to send [18:08:39]OFD Sender: No OFD packet to send [18:08:44]OFD Sender: No OFD packet to send [18:08:49]OFD Sender: No OFD packet to send [18:08:54]OFD Sender: No OFD packet to send [18:08:59]OFD Sender: No OFD packet to send [18:09:04]OFD Sender: No OFD packet to send [18:09:09]OFD Sender: No OFD packet to send [18:09:14]OFD Sender: No OFD packet to send [18:09:19]OFD Sender: No OFD packet to send [18:09:24]OFD Sender: No OFD packet to send [18:09:29]OFD Sender: No OFD packet to send [18:09:34]OFD Sender: No OFD packet to send [18:09:39]OFD Sender: No OFD packet to send [18:09:44]OFD Sender: No OFD packet to send [18:09:49]OFD Sender: No OFD packet to send [18:09:54]OFD Sender: No OFD packet to send [18:09:59]OFD Sender: No OFD packet to send [18:10:04]OFD Sender: No OFD packet to send [18:10:09]OFD Sender: No OFD packet to send [18:10:14]OFD Sender: No OFD packet to send [18:10:19]OFD Sender: No OFD packet to send [18:10:24]OFD Sender: No OFD packet to send [18:10:29]OFD Sender: No OFD packet to send [18:10:34]OFD Sender: No OFD packet to send [18:10:39]OFD Sender: No OFD packet to send [18:10:44]OFD Sender: No OFD packet to send [18:10:49]OFD Sender: No OFD packet to send [18:10:54]OFD Sender: No OFD packet to send [18:10:59]OFD Sender: No OFD packet to send [18:11:04]OFD Sender: No OFD packet to send [18:11:09]OFD Sender: No OFD packet to send [18:11:14]OFD Sender: No OFD packet to send [18:11:19]OFD Sender: No OFD packet to send [18:11:24]OFD Sender: No OFD packet to send [18:11:29]OFD Sender: No OFD packet to send [18:11:34]OFD Sender: No OFD packet to send [18:11:39]OFD Sender: No OFD packet to send [18:11:44]OFD Sender: No OFD packet to send [18:11:49]OFD Sender: No OFD packet to send [18:11:54]OFD Sender: No OFD packet to send [18:11:59]OFD Sender: No OFD packet to send [18:12:04]OFD Sender: No OFD packet to send [18:12:09]OFD Sender: No OFD packet to send [18:12:14]OFD Sender: No OFD packet to send [18:12:19]OFD Sender: No OFD packet to send [18:12:24]OFD Sender: No OFD packet to send [18:12:29]OFD Sender: No OFD packet to send [18:12:34]OFD Sender: No OFD packet to send [18:12:39]OFD Sender: No OFD packet to send [18:12:44]OFD Sender: No OFD packet to send [18:12:49]OFD Sender: No OFD packet to send [18:12:54]OFD Sender: No OFD packet to send [18:12:59]OFD Sender: No OFD packet to send [18:13:04]OFD Sender: No OFD packet to send [18:13:09]OFD Sender: No OFD packet to send [18:13:14]OFD Sender: No OFD packet to send [18:13:19]OFD Sender: No OFD packet to send [18:13:24]OFD Sender: No OFD packet to send [18:13:29]OFD Sender: No OFD packet to send [18:13:34]OFD Sender: No OFD packet to send [18:13:39]OFD Sender: No OFD packet to send [18:13:44]OFD Sender: No OFD packet to send [18:13:49]OFD Sender: No OFD packet to send [18:13:54]OFD Sender: No OFD packet to send [18:13:59]OFD Sender: No OFD packet to send [18:14:04]OFD Sender: No OFD packet to send [18:14:09]OFD Sender: No OFD packet to send [18:14:14]OFD Sender: No OFD packet to send [18:14:19]OFD Sender: No OFD packet to send [18:14:24]OFD Sender: No OFD packet to send [18:14:29]OFD Sender: No OFD packet to send [18:14:34]OFD Sender: No OFD packet to send [18:14:39]OFD Sender: No OFD packet to send [18:14:44]OFD Sender: No OFD packet to send [18:14:49]OFD Sender: No OFD packet to send [18:14:54]OFD Sender: No OFD packet to send [18:14:59]OFD Sender: No OFD packet to send [18:15:04]OFD Sender: No OFD packet to send [18:15:09]OFD Sender: No OFD packet to send [18:15:14]OFD Sender: No OFD packet to send [18:15:19]OFD Sender: No OFD packet to send [18:15:24]OFD Sender: No OFD packet to send [18:15:29]OFD Sender: No OFD packet to send [18:15:34]OFD Sender: No OFD packet to send [18:15:39]OFD Sender: No OFD packet to send [18:15:44]OFD Sender: No OFD packet to send [18:15:49]OFD Sender: No OFD packet to send [18:15:54]OFD Sender: No OFD packet to send [18:15:59]OFD Sender: No OFD packet to send [18:16:04]OFD Sender: No OFD packet to send [18:16:09]OFD Sender: No OFD packet to send [18:16:14]OFD Sender: No OFD packet to send [18:16:19]OFD Sender: No OFD packet to send [18:16:24]OFD Sender: No OFD packet to send [18:16:29]OFD Sender: No OFD packet to send [18:16:34]OFD Sender: No OFD packet to send [18:16:39]OFD Sender: No OFD packet to send [18:16:44]OFD Sender: No OFD packet to send [18:16:49]OFD Sender: No OFD packet to send [18:16:54]OFD Sender: No OFD packet to send [18:16:59]OFD Sender: No OFD packet to send [18:17:04]OFD Sender: No OFD packet to send [18:17:09]OFD Sender: No OFD packet to send [18:17:14]OFD Sender: No OFD packet to send [18:17:19]OFD Sender: No OFD packet to send [18:17:24]OFD Sender: No OFD packet to send [18:17:29]OFD Sender: No OFD packet to send [18:17:34]OFD Sender: No OFD packet to send [18:17:39]OFD Sender: No OFD packet to send [18:17:44]OFD Sender: No OFD packet to send [18:17:49]OFD Sender: No OFD packet to send [18:17:54]OFD Sender: No OFD packet to send [18:17:59]OFD Sender: No OFD packet to send [18:18:04]OFD Sender: No OFD packet to send [18:18:09]OFD Sender: No OFD packet to send [18:18:14]OFD Sender: No OFD packet to send [18:18:19]OFD Sender: No OFD packet to send [18:18:24]OFD Sender: No OFD packet to send [18:18:29]OFD Sender: No OFD packet to send [18:18:34]OFD Sender: No OFD packet to send [18:18:39]OFD Sender: No OFD packet to send [18:18:44]OFD Sender: No OFD packet to send [18:18:49]OFD Sender: No OFD packet to send [18:18:54]OFD Sender: No OFD packet to send [18:18:59]OFD Sender: No OFD packet to send [18:19:04]OFD Sender: No OFD packet to send [18:19:09]OFD Sender: No OFD packet to send [18:19:14]OFD Sender: No OFD packet to send [18:19:19]OFD Sender: No OFD packet to send [18:19:24]OFD Sender: No OFD packet to send [18:19:29]OFD Sender: No OFD packet to send [18:19:34]OFD Sender: No OFD packet to send [18:19:39]OFD Sender: No OFD packet to send [18:19:44]OFD Sender: No OFD packet to send [18:19:49]OFD Sender: No OFD packet to send [18:19:54]OFD Sender: No OFD packet to send [18:19:59]OFD Sender: No OFD packet to send [18:20:04]OFD Sender: No OFD packet to send [18:20:09]OFD Sender: No OFD packet to send [18:20:14]OFD Sender: No OFD packet to send [18:20:19]OFD Sender: No OFD packet to send [18:20:24]OFD Sender: No OFD packet to send [18:20:29]OFD Sender: No OFD packet to send [18:20:34]OFD Sender: No OFD packet to send [18:20:39]OFD Sender: No OFD packet to send [18:20:44]OFD Sender: No OFD packet to send [18:20:49]OFD Sender: No OFD packet to send [18:20:54]OFD Sender: No OFD packet to send [18:20:59]OFD Sender: No OFD packet to send [18:21:04]OFD Sender: No OFD packet to send [18:21:09]OFD Sender: No OFD packet to send [18:21:14]OFD Sender: No OFD packet to send [18:21:19]OFD Sender: No OFD packet to send [18:21:24]OFD Sender: No OFD packet to send [18:21:29]OFD Sender: No OFD packet to send [18:21:34]OFD Sender: No OFD packet to send [18:21:39]OFD Sender: No OFD packet to send [18:21:44]OFD Sender: No OFD packet to send [18:21:49]OFD Sender: No OFD packet to send [18:21:54]OFD Sender: No OFD packet to send [18:21:59]OFD Sender: No OFD packet to send [18:22:04]OFD Sender: No OFD packet to send [18:22:09]OFD Sender: No OFD packet to send [18:22:14]OFD Sender: No OFD packet to send [18:22:19]OFD Sender: No OFD packet to send [18:22:24]OFD Sender: No OFD packet to send [18:22:29]OFD Sender: No OFD packet to send [18:22:34]OFD Sender: No OFD packet to send [18:22:39]OFD Sender: No OFD packet to send [18:22:44]OFD Sender: No OFD packet to send [18:22:49]OFD Sender: No OFD packet to send [18:22:54]OFD Sender: No OFD packet to send [18:22:59]OFD Sender: No OFD packet to send [18:23:04]OFD Sender: No OFD packet to send [18:23:09]OFD Sender: No OFD packet to send [18:23:14]OFD Sender: No OFD packet to send [18:23:19]OFD Sender: No OFD packet to send [18:23:21]accept exits with 9 [18:23:21]New connection [18:23:21]New thread 3066719588 created [18:23:21]Thread 3066576228 joined [18:23:21]Waiting for new connection... [18:23:21] Sock 9.Parse request [18:23:21]Sock 9.Check first char [18:23:21]Sock 9.First char is OK [18:23:21]request: POST /json_proto HTTP/1.0 [18:23:21]Method: POST [18:23:21]URL: /json_proto [18:23:21]Method is POST - this is cgi request [18:23:21]url: /json_proto [18:23:21]query_string will be loaded in cgi processing [18:23:21]execute_cgi json_proto POST (null) [18:23:21]execute_cgi path=json_proto method=POST [18:23:21]POST find Content-Length [18:23:21]Host: 172.17.60.69:8080 [18:23:21]Content-Length: 1183 [18:23:21]Content-Type: application/json [18:23:21] [18:23:21]POST finish read [18:23:21]Found Content-Length = 1183 [18:23:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73436", "tax_sys" : 0, "items" : [ { "code": "4870001570057", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 0,5\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870112003956", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A ALBENI SUPER \u0410\u043B\u044C\u0431\u0435\u043D\u0438 \u0421\u0443\u043F\u0435\u0440", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 285.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:23:21]execute_script... [18:23:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73436", "tax_sys" : 0, "items" : [ { "code": "4870001570057", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 0,5\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870112003956", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A ALBENI SUPER \u0410\u043B\u044C\u0431\u0435\u043D\u0438 \u0421\u0443\u043F\u0435\u0440", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 285.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:23:21]POST & json_proto [18:23:21]process_json_proto [18:23:21]json parsed OK: [18:23:21]protocol is kg_v1.0 [18:23:21]action value=close_receipt [18:23:21]process_action close_receipt [18:23:21]cmd_close_receipt [18:23:21]MH_GetDate [18:23:21]Write to MH i2c: F0 00 00 E4 01 D4 [18:23:21]Write i2c OK [18:23:21]MH_I2C_Read... [18:23:21]Read from MH i2c: F0 [18:23:21]MH_I2C_Read... [18:23:21]Read from MH i2c: F0 09 00 [18:23:21]MH_I2C_Read... [18:23:21]Read from MH i2c: F0 09 00 E4 01 00 19 0A 5E 66 6A 96 4A 66 74 [18:23:21]GetLastDocTimeStamp 1717438076 [18:23:21]current date 1717439001 [18:23:21]FM_GetShiftState [18:23:21]SAM_PROTO_GetShiftState [18:23:21]wFMCommunicate request_size=4 [18:23:21]MH_SAM_APDU [18:23:21]CAPDU: 80 13 01 00 [18:23:21]Write to MH i2c: E2 08 00 E5 01 80 13 01 00 00 00 00 00 63 [18:23:21]Write i2c OK [18:23:21]MH_I2C_Read... [18:23:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:23:21]Read from MH i2c: E2 [18:23:21]MH_I2C_Read... [18:23:21]Read from MH i2c: E2 0E 00 [18:23:21]MH_I2C_Read... [18:23:21]Read from MH i2c: E2 0E 00 E5 01 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 2F [18:23:21]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [18:23:21]wFMCommunicate OK [18:23:21]SAM_PROTO_GetShiftState done [18:23:21]FM_GetShiftState done [18:23:21]opened in 1717373173 [18:23:21]opened+sec_in_day 1717459573 [18:23:21]quantity*price = 8000 [18:23:21]sum+1 = 8001 [18:23:21]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870112003956 Шок батончик ALBENI SUPER Альбени Супер 1.000 * 75.00 = 75.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000036230011 Кофе Латте XL(GABB TRADE) 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 285.00 НСП 1% : 2.52 НДС 12% : 30.26 Наличными: 285.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 123 03.06.2024 18:23 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63865 ФПД: 65275485717308 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T182321&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63865&fm=65275485717308&tin=02508201610067®Number=0000000000092737&sum=28500 0 [18:23:22]StoreToDocumentArchive [18:23:22]shift 373 fd 63865 [18:23:22]save to /storage/0373/doc_00063865 [18:23:22]save last doc name /storage/0373/doc_00063865 to /storage/kkm_last_doc_name [18:23:22]save OK [18:23:22]Clear old archive folders... [18:23:22]ProcessDocumentItem done err = 0, tmpTLVsize=508 [18:23:22]tlvbuf is B6D6F500 [18:23:22]SAM_PROTO_ClearQueue [18:23:22]wFMCommunicate request_size=4 [18:23:22]MH_SAM_APDU [18:23:22]CAPDU: 80 09 00 00 [18:23:22]Write to MH i2c: E2 08 00 F2 01 80 09 00 00 00 00 00 00 65 [18:23:22]Write i2c OK [18:23:22]MH_I2C_Read... [18:23:22]Read from MH i2c: E2 [18:23:22]MH_I2C_Read... [18:23:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:23:22]Read from MH i2c: E2 03 00 [18:23:22]MH_I2C_Read... [18:23:22]Read from MH i2c: E2 03 00 F2 01 00 90 00 67 [18:23:22]RAPDU: 90 00 [18:23:22]wFMCommunicate OK [18:23:22]SAM_PROTO_ClearQueue done [18:23:22]KKMCreateOFDPacket [18:23:22]OFDProtocolAddRootSTLVToBuf [18:23:22]FM_MakeSignedData [18:23:22]FM_MakeSignedData [18:23:22]SAM_PROTO_SignData [18:23:22]wFMCommunicate request_size=4 [18:23:22]MH_SAM_APDU [18:23:22]CAPDU: 80 0D 01 02 [18:23:22]Write to MH i2c: E2 08 00 F3 01 80 0D 01 02 00 00 00 00 6D [18:23:22]Write i2c OK [18:23:22]MH_I2C_Read... [18:23:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:23:22]Read from MH i2c: E2 [18:23:22]MH_I2C_Read... [18:23:22]Read from MH i2c: E2 03 00 [18:23:22]MH_I2C_Read... [18:23:22]Read from MH i2c: E2 03 00 F3 01 00 90 00 68 [18:23:22]RAPDU: 90 00 [18:23:22]wFMCommunicate OK [18:23:22]wFMCommunicate request_size=255 [18:23:22]MH_SAM_APDU [18:23:22]CAPDU: 80 0D 02 02 FA 03 00 FC 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 82 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 35 36 06 04 3E 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 41 4C 42 45 4E 49 20 53 55 50 45 52 20 D0 90 D0 BB D1 8C D0 B1 D0 B5 D0 BD D0 B8 20 D0 A1 D1 83 D0 BF D0 B5 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 32 [18:23:23]Write to MH i2c: E2 02 01 F4 01 80 0D 02 02 FA 00 03 00 FC 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 82 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 35 36 06 04 3E 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 41 4C 42 45 4E 49 20 53 55 50 45 52 20 D0 90 D0 BB D1 8C D0 B1 D0 B5 D0 BD D0 B8 20 D0 A1 D1 83 D0 BF D0 B5 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 32 00 00 2C [18:23:23]Write i2c OK [18:23:23]MH_I2C_Read... [18:23:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:23:23]Read from MH i2c: E2 [18:23:23]MH_I2C_Read... [18:23:23]Read from MH i2c: E2 03 00 [18:23:23]MH_I2C_Read... [18:23:23]Read from MH i2c: E2 03 00 F4 01 00 90 00 69 [18:23:23]RAPDU: 90 00 [18:23:23]wFMCommunicate OK [18:23:23]wFMCommunicate request_size=255 [18:23:23]MH_SAM_APDU [18:23:23]CAPDU: 80 0D 02 02 FA 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 6F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 0B 00 00 00 00 07 04 06 00 54 6F 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 19 0A 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 79 F9 [18:23:23]Write to MH i2c: E2 02 01 F5 01 80 0D 02 02 FA 00 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 6F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 0B 00 00 00 00 07 04 06 00 54 6F 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 19 0A 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 79 F9 00 00 46 [18:23:23]Write i2c OK [18:23:23]MH_I2C_Read... [18:23:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:23:23]Read from MH i2c: E2 [18:23:23]MH_I2C_Read... [18:23:23]Read from MH i2c: E2 03 00 [18:23:23]MH_I2C_Read... [18:23:23]Read from MH i2c: E2 03 00 F5 01 00 90 00 6A [18:23:23]RAPDU: 90 00 [18:23:23]wFMCommunicate OK [18:23:23]wFMCommunicate request_size=17 [18:23:23]MH_SAM_APDU [18:23:23]CAPDU: 80 0D 02 02 0C 00 00 35 04 06 00 3B 5E 22 23 83 3C [18:23:23]Write to MH i2c: E2 14 00 F6 01 80 0D 02 02 0C 00 00 00 35 04 06 00 3B 5E 22 23 83 3C 00 00 65 [18:23:23]Write i2c OK [18:23:23]MH_I2C_Read... [18:23:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:23:23]Read from MH i2c: E2 [18:23:23]MH_I2C_Read... [18:23:23]Read from MH i2c: E2 03 00 [18:23:23]MH_I2C_Read... [18:23:23]Read from MH i2c: E2 03 00 F6 01 00 90 00 6B [18:23:23]RAPDU: 90 00 [18:23:23]wFMCommunicate OK [18:23:23]wFMCommunicate request_size=4 [18:23:23]MH_SAM_APDU [18:23:23]CAPDU: 80 0D 03 02 [18:23:23]Write to MH i2c: E2 08 00 F7 01 80 0D 03 02 00 00 00 00 73 [18:23:23]Write i2c OK [18:23:23]MH_I2C_Read... [18:23:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:23:23]Read from MH i2c: E2 [18:23:23]MH_I2C_Read... [18:23:23]Read from MH i2c: E2 0B 00 [18:23:23]MH_I2C_Read... [18:23:23]Read from MH i2c: E2 0B 00 F7 01 00 04 07 F9 43 F8 7E 4D 0F 90 00 8D [18:23:23]RAPDU: 04 07 F9 43 F8 7E 4D 0F 90 00 [18:23:23]wFMCommunicate OK [18:23:23]SAM_PROTO_SignData done [18:23:23]FM_MakeSignedData done [18:23:23]CreateOFDProtocolMessage [18:23:23]wFMCommunicate request_size=4 [18:23:23]MH_SAM_APDU [18:23:23]CAPDU: 80 11 00 00 [18:23:23]Write to MH i2c: E2 08 00 F8 01 80 11 00 00 00 00 00 00 73 [18:23:23]Write i2c OK [18:23:23]MH_I2C_Read... [18:23:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:23:23]Read from MH i2c: E2 [18:23:23]MH_I2C_Read... [18:23:23]Read from MH i2c: E2 17 00 [18:23:23]MH_I2C_Read... [18:23:23]Read from MH i2c: E2 17 00 F8 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 C5 [18:23:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [18:23:23]wFMCommunicate OK [18:23:23]CreateOFDProtocolMessage done [18:23:23]OFDSenderStorePacket 63865 [18:23:23]StoreOFDPacket docnum=63865 [18:23:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 02 00 00 1B E5 08 02 2C CB 5A 03 01 00 03 00 FC 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 82 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 35 36 06 04 3E 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 41 4C 42 45 4E 49 20 53 55 50 45 52 20 D0 90 D0 BB D1 8C D0 B1 D0 B5 D0 BD D0 B8 20 D0 A1 D1 83 D0 BF D0 B5 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 6F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 0B 00 00 00 00 07 04 06 00 54 6F 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 19 0A 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 79 F9 00 00 35 04 06 00 3B 5E 22 23 83 3C 04 07 F9 43 F8 7E 4D 0F [18:23:23]CheckFolder [18:23:23]dirname=/storage/ofd_packets [18:23:23]CheckFolder done [18:23:23]ProducePacketName [18:23:23]name=ofd_packets/00063865 [18:23:23]NVStorageSaveData ofd_packets/00063865 [18:23:23]File name is /storage/ofd_packets/00063865 [18:23:23]Write 558 bytes [18:23:23]NVStorageSaveData done [18:23:23]OFDSenderStorePacket done [18:23:23]KKMCreateOFDPacket done [18:23:23]NVStorageSaveData kkm_last_timestamp [18:23:23]File name is /storage/kkm_last_timestamp [18:23:23]Write 4 bytes [18:23:23]NVStorageSaveData done [18:23:23]ExternCall_PrintAddStr [18:23:23]wPrintStart [18:23:23]Write to MH i2c: 01 00 00 F9 01 FA [18:23:23]Write i2c OK [18:23:23]MH_I2C_Read... [18:23:23]Read from MH i2c: 01 [18:23:23]MH_I2C_Read... [18:23:23]Read from MH i2c: 01 07 00 [18:23:23]MH_I2C_Read... [18:23:23]Read from MH i2c: 01 07 00 F9 01 00 00 00 00 00 FF 0F 0F [18:23:23]RasterBufferAndPrint [18:23:23]line Счет N : (3)73436 [18:23:23]line ИНН: 02508201610067 [18:23:23]line Контрольно-Кассовый Чек [18:23:23]line ПРОДАЖА [18:23:23]line Товар: 4870001570057 [18:23:23]line Напиток Pepsi 0,5л [18:23:23]line 1.000 * 80.00 [18:23:23]line = 80.00 [18:23:23]line НДС 12% НСП 1% [18:23:23]line > о реализуемом товаре [18:23:23]line Товар: 4870112003956 [18:23:23]line Шок батончик ALBENI SUPER Альбени Супер [18:23:23]line 1.000 * 75.00 [18:23:23]line = 75.00 [18:23:23]line НДС 12% НСП 1% [18:23:23]line > о реализуемом товаре [18:23:23]line Товар: 2000036230011 [18:23:23]line Кофе Латте XL(GABB TRADE) [18:23:23]line 1.000 * 130.00 [18:23:23]line = 130.00 [18:23:23]line НДС 12% НСП 1% [18:23:23]line > о реализуемом товаре [18:23:23]line ИТОГО: 285.00 [18:23:23]line НСП 1% : 2.52 [18:23:23]line НДС 12% : 30.26 [18:23:23]line Наличными: 285.00 [18:23:23]line Безнал.: 0.00 [18:23:23]line Место: АЗС № 117 "Партнер Нефть" [18:23:23]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [18:23:23]line СНО: Общий режим [18:23:23]line Чек 123 03.06.2024 18:23 [18:23:23]line Смена: 373 ФФД: 1.0 [18:23:23]line ЗНМ: 0300000031 [18:23:23]line РНМ: 0000000000092737 [18:23:23]line Версия ККМ: 001 [18:23:23]line ФМ: 0000000000875074 [18:23:23]line ФД: 63865 [18:23:23]line ФПД: 65275485717308 [18:23:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T182321&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63865&fm=65275485717308&tin=02508201610067®Number=0000000000092737&sum=28500 [18:23:24]line 0 [18:23:24]OFD Sender: Processing packet 63865 [packets to send 14, broken 13] [18:23:24]ProducePacketName [18:23:24]name=ofd_packets/00063865 [18:23:24]OFD Sender: To server: pG, [18:23:24]CommunicateWithHost lk.salyk.kg:30040 [18:23:24]ConnectInit lk.salyk.kg [18:23:24]written 0, free lines is 4095 [18:23:24]Connected sock=5 [18:23:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 02 00 00 1B E5 08 02 2C CB 5A 03 01 00 03 00 FC 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 82 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 35 36 06 04 3E 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 41 4C 42 45 4E 49 20 53 55 50 45 52 20 D0 90 D0 BB D1 8C D0 B1 D0 B5 D0 BD D0 B8 20 D0 A1 D1 83 D0 BF D0 B5 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 6F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 0B 00 00 00 00 07 04 06 00 54 6F 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 19 0A 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 79 F9 00 00 35 04 06 00 3B 5E 22 23 83 3C 04 07 F9 43 F8 7E 4D 0F [18:23:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 38 B6 47 00 36 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 35 30 37 34 10 04 04 00 79 F9 00 00 F4 03 04 00 EB B5 5D 66 B6 04 01 00 00 DB C0 BB 66 B4 2B 2F 9B [18:23:24]CommunicateWithHost err = 0 [18:23:24]CheckOFDResponse [18:23:24]1017 (14) - 77093643461234 [18:23:24]1041 (16) - 0000000000875074 [18:23:24]1040 (4) - 63865 [18:23:24]1012 (4) - 03.06.2024 12:24 [18:23:24]1206 (1) - 0 [18:23:24]OFD Sender: Remove packet 63865 [18:23:24]ProducePacketName [18:23:24]name=ofd_packets/00063865 [18:23:24]NVStorageDeleteData [18:23:24]Write to MH i2c: 01 00 00 2E 02 30 [18:23:24]Write i2c OK [18:23:24]MH_I2C_Read... [18:23:24]Read from MH i2c: 01 [18:23:24]MH_I2C_Read... [18:23:24]Read from MH i2c: 01 07 00 [18:23:24]MH_I2C_Read... [18:23:24]Read from MH i2c: 01 07 00 2E 02 00 00 00 00 00 31 0C 74 [18:23:24]RasterBufferAndPrint [18:23:24]line [18:23:24]line [18:23:24]line [18:23:24]line [18:23:24]line [18:23:24]written 0, free lines is 3127 [18:23:24]MH_Cut [18:23:24]Write to MH i2c: D1 01 00 35 02 01 09 [18:23:24]Write i2c OK [18:23:24]MH_I2C_Read... [18:23:24]Read from MH i2c: D1 [18:23:24]MH_I2C_Read... [18:23:24]Read from MH i2c: D1 01 00 [18:23:24]MH_I2C_Read... [18:23:24]Read from MH i2c: D1 01 00 35 02 00 08 [18:23:24]Write to MH i2c: 01 00 00 36 02 38 [18:23:24]Write i2c OK [18:23:24]MH_I2C_Read... [18:23:24]OFD Sender: No OFD packet to send [18:23:25]*** Cut start [18:23:25]*** Partial cut [18:23:25]*** CUTSNS_PIN = 1 [18:23:25]*** CUTSNS_PIN = 0 [18:23:25]*** Brake cut motor [18:23:26]Read from MH i2c: 01 [18:23:26]MH_I2C_Read... [18:23:26]*** Stop cut motor [18:23:26]*** Cut end [18:23:26]Read from MH i2c: 01 07 00 [18:23:26]MH_I2C_Read... [18:23:26]Read from MH i2c: 01 07 00 36 02 00 00 00 00 00 FF 0F 4D [18:23:26]process_action close_receipt done [18:23:26]requested_data is exist [18:23:26]produce_requested_data [18:23:26]requested_item fm.sn is exist - process it [18:23:26]wFMCommunicate request_size=4 [18:23:26]MH_SAM_APDU [18:23:26]CAPDU: 80 11 00 00 [18:23:26]Write to MH i2c: E2 08 00 37 02 80 11 00 00 00 00 00 00 B3 [18:23:26]Write i2c OK [18:23:26]MH_I2C_Read... [18:23:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:23:26]Read from MH i2c: E2 [18:23:26]MH_I2C_Read... [18:23:26]Read from MH i2c: E2 17 00 [18:23:26]MH_I2C_Read... [18:23:26]Read from MH i2c: E2 17 00 37 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 05 [18:23:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [18:23:26]wFMCommunicate OK [18:23:26]requested_item fd.num is exist - process it [18:23:26]SAM_PROTO_GetFieldsCounters [18:23:26]wFMCommunicate request_size=4 [18:23:26]MH_SAM_APDU [18:23:26]CAPDU: 80 13 00 00 [18:23:26]Write to MH i2c: E2 08 00 38 02 80 13 00 00 00 00 00 00 B6 [18:23:26]Write i2c OK [18:23:26]MH_I2C_Read... [18:23:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:23:26]Read from MH i2c: E2 [18:23:26]MH_I2C_Read... [18:23:26]Read from MH i2c: E2 62 00 [18:23:26]MH_I2C_Read... [18:23:26]Read from MH i2c: E2 62 00 38 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 79 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 32 [18:23:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 79 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:23:26]wFMCommunicate OK [18:23:26]SAM_PROTO_GetFieldsCounters done [18:23:26]requested_item shift.num is exist - process it [18:23:26]requested_item shift.opened is exist - process it [18:23:26]req_shift_opened [18:23:26]FM_GetShiftState [18:23:26]SAM_PROTO_GetShiftState [18:23:26]wFMCommunicate request_size=4 [18:23:26]MH_SAM_APDU [18:23:26]CAPDU: 80 13 01 00 [18:23:26]Write to MH i2c: E2 08 00 39 02 80 13 01 00 00 00 00 00 B8 [18:23:26]Write i2c OK [18:23:26]MH_I2C_Read... [18:23:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:23:26]Read from MH i2c: E2 [18:23:26]MH_I2C_Read... [18:23:26]Read from MH i2c: E2 0E 00 [18:23:26]MH_I2C_Read... [18:23:26]Read from MH i2c: E2 0E 00 39 02 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 84 [18:23:26]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [18:23:26]wFMCommunicate OK [18:23:26]SAM_PROTO_GetShiftState done [18:23:26]FM_GetShiftState done [18:23:26]req_shift_opened done [18:23:26]requested_item shift.open_date is exist - process it [18:23:26]req_shift_open_date [18:23:26]req_shift_open_date done [18:23:26]produce_requested_data done [18:23:26]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63865,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [18:23:26]process_action_free close_receipt [18:23:26]json_value_free [18:23:26]json_value_free done [18:23:26]process_json_proto returns [18:23:26]Send response to host [18:23:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63865,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [18:23:26]free response buf [18:23:26]execute_script done [18:23:26]execute_script returns [18:23:26]free content buf [18:23:26]Sock 9.Close socket [18:23:26]Sock 9.Thread stoped [18:23:29]OFD Sender: No OFD packet to send [18:23:34]OFD Sender: No OFD packet to send [18:23:39]OFD Sender: No OFD packet to send [18:23:44]OFD Sender: No OFD packet to send [18:23:49]OFD Sender: No OFD packet to send [18:23:54]OFD Sender: No OFD packet to send [18:24:00]OFD Sender: No OFD packet to send [18:24:03]accept exits with 7 [18:24:03]New connection [18:24:03]New thread 3066576228 created [18:24:03]Thread 3066719588 joined [18:24:03]Waiting for new connection... [18:24:03] Sock 7.Parse request [18:24:03]Sock 7.Check first char [18:24:03]Sock 7.First char is OK [18:24:03]request: POST /json_proto HTTP/1.0 [18:24:03]Method: POST [18:24:03]URL: /json_proto [18:24:03]Method is POST - this is cgi request [18:24:03]url: /json_proto [18:24:03]query_string will be loaded in cgi processing [18:24:03]execute_cgi json_proto POST (null) [18:24:03]execute_cgi path=json_proto method=POST [18:24:03]POST find Content-Length [18:24:03]Host: 172.17.60.69:8080 [18:24:03]Content-Length: 1243 [18:24:03]Content-Type: application/json [18:24:03] [18:24:03]POST finish read [18:24:03]Found Content-Length = 1243 [18:24:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 63865, "base_FM": "0000000000875074", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73436", "tax_sys" : 0, "items" : [ { "code": "4870001570057", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 0,5\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870112003956", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A ALBENI SUPER \u0410\u043B\u044C\u0431\u0435\u043D\u0438 \u0421\u0443\u043F\u0435\u0440", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 285.00 } ], "post_footer_text": "63865" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:24:03]execute_script... [18:24:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 63865, "base_FM": "0000000000875074", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73436", "tax_sys" : 0, "items" : [ { "code": "4870001570057", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 0,5\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870112003956", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A ALBENI SUPER \u0410\u043B\u044C\u0431\u0435\u043D\u0438 \u0421\u0443\u043F\u0435\u0440", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 285.00 } ], "post_footer_text": "63865" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:24:03]POST & json_proto [18:24:03]process_json_proto [18:24:03]json parsed OK: [18:24:03]protocol is kg_v1.0 [18:24:03]action value=close_receipt [18:24:03]process_action close_receipt [18:24:03]cmd_close_receipt [18:24:03]MH_GetDate [18:24:03]Write to MH i2c: F0 00 00 3A 02 2B [18:24:03]Write i2c OK [18:24:03]MH_I2C_Read... [18:24:03]Read from MH i2c: F0 [18:24:03]MH_I2C_Read... [18:24:03]Read from MH i2c: F0 09 00 [18:24:03]MH_I2C_Read... [18:24:03]Read from MH i2c: F0 09 00 3A 02 00 43 0A 5E 66 6A 96 4A 66 F5 [18:24:03]GetLastDocTimeStamp 1717439001 [18:24:03]current date 1717439043 [18:24:03]FM_GetShiftState [18:24:03]SAM_PROTO_GetShiftState [18:24:03]wFMCommunicate request_size=4 [18:24:03]MH_SAM_APDU [18:24:03]CAPDU: 80 13 01 00 [18:24:03]Write to MH i2c: E2 08 00 3B 02 80 13 01 00 00 00 00 00 BA [18:24:03]Write i2c OK [18:24:03]MH_I2C_Read... [18:24:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:24:03]Read from MH i2c: E2 [18:24:03]MH_I2C_Read... [18:24:03]Read from MH i2c: E2 0E 00 [18:24:03]MH_I2C_Read... [18:24:03]Read from MH i2c: E2 0E 00 3B 02 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 86 [18:24:03]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [18:24:03]wFMCommunicate OK [18:24:03]SAM_PROTO_GetShiftState done [18:24:03]FM_GetShiftState done [18:24:03]opened in 1717373173 [18:24:03]opened+sec_in_day 1717459573 [18:24:03]quantity*price = 8000 [18:24:03]sum+1 = 8001 [18:24:03]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870112003956 Шок батончик ALBENI SUPER Альбени Супер 1.000 * 75.00 = 75.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000036230011 Кофе Латте XL(GABB TRADE) 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 285.00 НСП 1% : 2.52 НДС 12% : 30.26 Наличными: 285.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 124 03.06.2024 18:24 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФД осн.: 63865 ФМ осн.: 0000000000875074 ФМ: 0000000000875074 ФД: 63866 ФПД: 85249762470816 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T182404&type=2&operation_type=1&fn_number=0000000000875074&fd_number=63866&fm=85249762470816&tin=02508201610067®Number=0000000000092737&sum=28500 63865 [18:24:04]StoreToDocumentArchive [18:24:04]shift 373 fd 63866 [18:24:04]save to /storage/0373/doc_00063866 [18:24:04]save last doc name /storage/0373/doc_00063866 to /storage/kkm_last_doc_name [18:24:04]save OK [18:24:04]Clear old archive folders... [18:24:04]ProcessDocumentItem done err = 0, tmpTLVsize=536 [18:24:04]tlvbuf is 00AF3AD0 [18:24:04]SAM_PROTO_ClearQueue [18:24:04]wFMCommunicate request_size=4 [18:24:04]MH_SAM_APDU [18:24:04]CAPDU: 80 09 00 00 [18:24:04]Write to MH i2c: E2 08 00 4A 02 80 09 00 00 00 00 00 00 BE [18:24:04]Write i2c OK [18:24:04]MH_I2C_Read... [18:24:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:24:04]Read from MH i2c: E2 [18:24:04]MH_I2C_Read... [18:24:04]Read from MH i2c: E2 03 00 [18:24:04]MH_I2C_Read... [18:24:04]Read from MH i2c: E2 03 00 4A 02 00 90 00 C0 [18:24:04]RAPDU: 90 00 [18:24:04]wFMCommunicate OK [18:24:04]SAM_PROTO_ClearQueue done [18:24:04]KKMCreateOFDPacket [18:24:04]OFDProtocolAddRootSTLVToBuf [18:24:04]FM_MakeSignedData [18:24:04]FM_MakeSignedData [18:24:04]SAM_PROTO_SignData [18:24:04]wFMCommunicate request_size=4 [18:24:04]MH_SAM_APDU [18:24:04]CAPDU: 80 0D 01 02 [18:24:04]Write to MH i2c: E2 08 00 4B 02 80 0D 01 02 00 00 00 00 C6 [18:24:04]Write i2c OK [18:24:04]MH_I2C_Read... [18:24:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:24:04]Read from MH i2c: E2 [18:24:04]MH_I2C_Read... [18:24:04]Read from MH i2c: E2 03 00 [18:24:04]MH_I2C_Read... [18:24:04]Read from MH i2c: E2 03 00 4B 02 00 90 00 C1 [18:24:04]RAPDU: 90 00 [18:24:04]wFMCommunicate OK [18:24:04]wFMCommunicate request_size=255 [18:24:04]MH_SAM_APDU [18:24:04]CAPDU: 80 0D 02 02 FA 03 00 18 02 1E 04 01 00 02 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 82 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 35 36 06 04 3E 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 41 4C 42 45 4E 49 20 53 55 50 45 52 20 D0 90 D0 BB D1 8C D0 B1 D0 B5 D0 BD D0 B8 20 D0 A1 D1 83 D0 BF D0 B5 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 32 [18:24:05]Write to MH i2c: E2 02 01 4C 02 80 0D 02 02 FA 00 03 00 18 02 1E 04 01 00 02 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 82 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 35 36 06 04 3E 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 41 4C 42 45 4E 49 20 53 55 50 45 52 20 D0 90 D0 BB D1 8C D0 B1 D0 B5 D0 BD D0 B8 20 D0 A1 D1 83 D0 BF D0 B5 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 32 00 00 A3 [18:24:05]OFD Sender: No OFD packet to send [18:24:05]Write i2c OK [18:24:05]MH_I2C_Read... [18:24:05]Read from MH i2c: E2 [18:24:05]MH_I2C_Read... [18:24:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:24:05]Read from MH i2c: E2 03 00 [18:24:05]MH_I2C_Read... [18:24:05]Read from MH i2c: E2 03 00 4C 02 00 90 00 C2 [18:24:05]RAPDU: 90 00 [18:24:05]wFMCommunicate OK [18:24:05]wFMCommunicate request_size=255 [18:24:05]MH_SAM_APDU [18:24:05]CAPDU: 80 0D 02 02 FA 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 6F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 0B 00 00 00 00 07 04 06 00 54 6F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 44 0A 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 27 04 04 00 79 F9 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 [18:24:05]Write to MH i2c: E2 02 01 4D 02 80 0D 02 02 FA 00 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 6F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 0B 00 00 00 00 07 04 06 00 54 6F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 44 0A 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 27 04 04 00 79 F9 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 00 00 8E [18:24:05]Write i2c OK [18:24:05]MH_I2C_Read... [18:24:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:24:05]Read from MH i2c: E2 [18:24:05]MH_I2C_Read... [18:24:05]Read from MH i2c: E2 03 00 [18:24:05]MH_I2C_Read... [18:24:05]Read from MH i2c: E2 03 00 4D 02 00 90 00 C3 [18:24:05]RAPDU: 90 00 [18:24:05]wFMCommunicate OK [18:24:05]wFMCommunicate request_size=45 [18:24:05]MH_SAM_APDU [18:24:05]CAPDU: 80 0D 02 02 28 37 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 7A F9 00 00 35 04 06 00 4D 88 C1 CF 2B A0 [18:24:05]Write to MH i2c: E2 30 00 4E 02 80 0D 02 02 28 00 37 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 7A F9 00 00 35 04 06 00 4D 88 C1 CF 2B A0 00 00 C3 [18:24:05]Write i2c OK [18:24:05]MH_I2C_Read... [18:24:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:24:05]Read from MH i2c: E2 [18:24:05]MH_I2C_Read... [18:24:05]Read from MH i2c: E2 03 00 [18:24:05]MH_I2C_Read... [18:24:05]Read from MH i2c: E2 03 00 4E 02 00 90 00 C4 [18:24:05]RAPDU: 90 00 [18:24:05]wFMCommunicate OK [18:24:05]wFMCommunicate request_size=4 [18:24:05]MH_SAM_APDU [18:24:05]CAPDU: 80 0D 03 02 [18:24:05]Write to MH i2c: E2 08 00 4F 02 80 0D 03 02 00 00 00 00 CC [18:24:05]Write i2c OK [18:24:05]MH_I2C_Read... [18:24:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:24:05]Read from MH i2c: E2 [18:24:05]MH_I2C_Read... [18:24:05]Read from MH i2c: E2 0B 00 [18:24:05]MH_I2C_Read... [18:24:05]Read from MH i2c: E2 0B 00 4F 02 00 84 BA 48 EC B0 32 A8 60 90 00 29 [18:24:05]RAPDU: 84 BA 48 EC B0 32 A8 60 90 00 [18:24:05]wFMCommunicate OK [18:24:05]SAM_PROTO_SignData done [18:24:05]FM_MakeSignedData done [18:24:05]CreateOFDProtocolMessage [18:24:05]wFMCommunicate request_size=4 [18:24:05]MH_SAM_APDU [18:24:05]CAPDU: 80 11 00 00 [18:24:05]Write to MH i2c: E2 08 00 50 02 80 11 00 00 00 00 00 00 CC [18:24:05]Write i2c OK [18:24:05]MH_I2C_Read... [18:24:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:24:05]Read from MH i2c: E2 [18:24:05]MH_I2C_Read... [18:24:05]Read from MH i2c: E2 17 00 [18:24:05]MH_I2C_Read... [18:24:05]Read from MH i2c: E2 17 00 50 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 1E [18:24:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [18:24:05]wFMCommunicate OK [18:24:05]CreateOFDProtocolMessage done [18:24:05]OFDSenderStorePacket 63866 [18:24:05]StoreOFDPacket docnum=63866 [18:24:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 2C 02 00 00 62 88 24 02 F5 1D 5A 03 01 00 03 00 18 02 1E 04 01 00 02 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 82 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 35 36 06 04 3E 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 41 4C 42 45 4E 49 20 53 55 50 45 52 20 D0 90 D0 BB D1 8C D0 B1 D0 B5 D0 BD D0 B8 20 D0 A1 D1 83 D0 BF D0 B5 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 6F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 0B 00 00 00 00 07 04 06 00 54 6F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 44 0A 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 27 04 04 00 79 F9 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 7A F9 00 00 35 04 06 00 4D 88 C1 CF 2B A0 84 BA 48 EC B0 32 A8 60 [18:24:05]CheckFolder [18:24:05]dirname=/storage/ofd_packets [18:24:05]CheckFolder done [18:24:05]ProducePacketName [18:24:05]name=ofd_packets/00063866 [18:24:05]NVStorageSaveData ofd_packets/00063866 [18:24:05]File name is /storage/ofd_packets/00063866 [18:24:05]Write 586 bytes [18:24:05]NVStorageSaveData done [18:24:05]OFDSenderStorePacket done [18:24:05]KKMCreateOFDPacket done [18:24:05]NVStorageSaveData kkm_last_timestamp [18:24:05]File name is /storage/kkm_last_timestamp [18:24:05]Write 4 bytes [18:24:05]NVStorageSaveData done [18:24:05]ExternCall_PrintAddStr [18:24:05]wPrintStart [18:24:05]Write to MH i2c: 01 00 00 51 02 53 [18:24:06]Write i2c OK [18:24:06]MH_I2C_Read... [18:24:06]Read from MH i2c: 01 [18:24:06]MH_I2C_Read... [18:24:06]Read from MH i2c: 01 07 00 [18:24:06]MH_I2C_Read... [18:24:06]Read from MH i2c: 01 07 00 51 02 00 00 00 00 00 FF 0F 68 [18:24:06]RasterBufferAndPrint [18:24:06]line Счет N : (3)73436 [18:24:06]line ИНН: 02508201610067 [18:24:06]line Контрольно-Кассовый Чек [18:24:06]line ВОЗВРАТ ПРОДАЖИ [18:24:06]line Товар: 4870001570057 [18:24:06]line Напиток Pepsi 0,5л [18:24:06]line 1.000 * 80.00 [18:24:06]line = 80.00 [18:24:06]line НДС 12% НСП 1% [18:24:06]line > о реализуемом товаре [18:24:06]line Товар: 4870112003956 [18:24:06]line Шок батончик ALBENI SUPER Альбени Супер [18:24:06]line 1.000 * 75.00 [18:24:06]line = 75.00 [18:24:06]line НДС 12% НСП 1% [18:24:06]line > о реализуемом товаре [18:24:06]line Товар: 2000036230011 [18:24:06]line Кофе Латте XL(GABB TRADE) [18:24:06]line 1.000 * 130.00 [18:24:06]line = 130.00 [18:24:06]line НДС 12% НСП 1% [18:24:06]line > о реализуемом товаре [18:24:06]line ИТОГО: 285.00 [18:24:06]line НСП 1% : 2.52 [18:24:06]line НДС 12% : 30.26 [18:24:06]line Наличными: 285.00 [18:24:06]line Безнал.: 0.00 [18:24:06]line Место: АЗС № 117 "Партнер Нефть" [18:24:06]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [18:24:06]line СНО: Общий режим [18:24:06]line Чек 124 03.06.2024 18:24 [18:24:06]line Смена: 373 ФФД: 1.0 [18:24:06]line ЗНМ: 0300000031 [18:24:06]line РНМ: 0000000000092737 [18:24:06]line Версия ККМ: 001 [18:24:06]line ФД осн.: 63865 [18:24:06]line ФМ осн.: 0000000000875074 [18:24:06]line ФМ: 0000000000875074 [18:24:06]line ФД: 63866 [18:24:06]line ФПД: 85249762470816 [18:24:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T182404&type=2&operation_type=1&fn_number=0000000000875074&fd_number=63866&fm=85249762470816&tin=02508201610067®Number=0000000000092737&sum=28500 [18:24:06]line 63865 [18:24:06]OFD Sender: Processing packet 63866 [packets to send 14, broken 13] [18:24:06]ProducePacketName [18:24:06]name=ofd_packets/00063866 [18:24:06]OFD Sender: To server: pG, [18:24:06]CommunicateWithHost lk.salyk.kg:30040 [18:24:06]ConnectInit lk.salyk.kg [18:24:06]written 0, free lines is 4095 [18:24:06]Connected sock=10 [18:24:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 2C 02 00 00 62 88 24 02 F5 1D 5A 03 01 00 03 00 18 02 1E 04 01 00 02 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 82 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 35 36 06 04 3E 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 41 4C 42 45 4E 49 20 53 55 50 45 52 20 D0 90 D0 BB D1 8C D0 B1 D0 B5 D0 BD D0 B8 20 D0 A1 D1 83 D0 BF D0 B5 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 6F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 0B 00 00 00 00 07 04 06 00 54 6F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 44 0A 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 27 04 04 00 79 F9 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 7A F9 00 00 35 04 06 00 4D 88 C1 CF 2B A0 84 BA 48 EC B0 32 A8 60 [18:24:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 79 DA 47 00 C4 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 35 30 37 34 10 04 04 00 7A F9 00 00 F4 03 04 00 15 B6 5D 66 B6 04 01 00 00 DF E4 C3 57 6A B2 42 7E [18:24:06]CommunicateWithHost err = 0 [18:24:06]CheckOFDResponse [18:24:06]1017 (14) - 77093643461234 [18:24:06]1041 (16) - 0000000000875074 [18:24:06]1040 (4) - 63866 [18:24:06]1012 (4) - 03.06.2024 12:24 [18:24:06]1206 (1) - 0 [18:24:06]OFD Sender: Remove packet 63866 [18:24:06]ProducePacketName [18:24:06]name=ofd_packets/00063866 [18:24:06]NVStorageDeleteData [18:24:06]Write to MH i2c: 01 00 00 88 02 8A [18:24:06]Write i2c OK [18:24:06]MH_I2C_Read... [18:24:06]Read from MH i2c: 01 [18:24:06]MH_I2C_Read... [18:24:06]Read from MH i2c: 01 07 00 [18:24:06]MH_I2C_Read... [18:24:06]Read from MH i2c: 01 07 00 88 02 00 00 00 00 00 1B 0C B8 [18:24:06]RasterBufferAndPrint [18:24:06]line [18:24:06]line [18:24:06]line [18:24:06]line [18:24:06]line [18:24:06]written 0, free lines is 3108 [18:24:06]MH_Cut [18:24:06]Write to MH i2c: D1 01 00 8F 02 01 63 [18:24:06]Write i2c OK [18:24:06]MH_I2C_Read... [18:24:06]Read from MH i2c: D1 [18:24:06]MH_I2C_Read... [18:24:06]Read from MH i2c: D1 01 00 [18:24:06]MH_I2C_Read... [18:24:06]Read from MH i2c: D1 01 00 8F 02 00 62 [18:24:06]Write to MH i2c: 01 00 00 90 02 92 [18:24:06]Write i2c OK [18:24:06]MH_I2C_Read... [18:24:07]OFD Sender: No OFD packet to send [18:24:07]*** Cut start [18:24:07]*** Partial cut [18:24:07]*** CUTSNS_PIN = 1 [18:24:07]*** CUTSNS_PIN = 0 [18:24:08]*** Brake cut motor [18:24:08]Read from MH i2c: 01 [18:24:08]MH_I2C_Read... [18:24:08]*** Stop cut motor [18:24:08]*** Cut end [18:24:08]Read from MH i2c: 01 07 00 [18:24:08]MH_I2C_Read... [18:24:08]Read from MH i2c: 01 07 00 90 02 00 00 00 00 00 FF 0F A7 [18:24:08]process_action close_receipt done [18:24:08]requested_data is exist [18:24:08]produce_requested_data [18:24:08]requested_item fm.sn is exist - process it [18:24:08]wFMCommunicate request_size=4 [18:24:08]MH_SAM_APDU [18:24:08]CAPDU: 80 11 00 00 [18:24:08]Write to MH i2c: E2 08 00 91 02 80 11 00 00 00 00 00 00 0D [18:24:08]Write i2c OK [18:24:08]MH_I2C_Read... [18:24:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:24:08]Read from MH i2c: E2 [18:24:08]MH_I2C_Read... [18:24:08]Read from MH i2c: E2 17 00 [18:24:08]MH_I2C_Read... [18:24:08]Read from MH i2c: E2 17 00 91 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 5F [18:24:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [18:24:08]wFMCommunicate OK [18:24:08]requested_item fd.num is exist - process it [18:24:08]SAM_PROTO_GetFieldsCounters [18:24:08]wFMCommunicate request_size=4 [18:24:08]MH_SAM_APDU [18:24:08]CAPDU: 80 13 00 00 [18:24:08]Write to MH i2c: E2 08 00 92 02 80 13 00 00 00 00 00 00 10 [18:24:08]Write i2c OK [18:24:08]MH_I2C_Read... [18:24:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:24:08]Read from MH i2c: E2 [18:24:08]MH_I2C_Read... [18:24:08]Read from MH i2c: E2 62 00 [18:24:08]MH_I2C_Read... [18:24:08]Read from MH i2c: E2 62 00 92 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 7A F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 7C 00 00 00 5E 04 04 00 7C 00 00 00 57 04 04 00 7D 00 00 00 19 04 04 00 00 00 00 00 90 00 90 [18:24: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 7A F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 7C 00 00 00 5E 04 04 00 7C 00 00 00 57 04 04 00 7D 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:24:08]wFMCommunicate OK [18:24:08]SAM_PROTO_GetFieldsCounters done [18:24:08]requested_item shift.num is exist - process it [18:24:08]requested_item shift.opened is exist - process it [18:24:08]req_shift_opened [18:24:08]FM_GetShiftState [18:24:08]SAM_PROTO_GetShiftState [18:24:08]wFMCommunicate request_size=4 [18:24:08]MH_SAM_APDU [18:24:08]CAPDU: 80 13 01 00 [18:24:08]Write to MH i2c: E2 08 00 93 02 80 13 01 00 00 00 00 00 12 [18:24:08]Write i2c OK [18:24:08]MH_I2C_Read... [18:24:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:24:08]Read from MH i2c: E2 [18:24:08]MH_I2C_Read... [18:24:08]Read from MH i2c: E2 0E 00 [18:24:08]MH_I2C_Read... [18:24:08]Read from MH i2c: E2 0E 00 93 02 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 DE [18:24:08]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [18:24:08]wFMCommunicate OK [18:24:08]SAM_PROTO_GetShiftState done [18:24:08]FM_GetShiftState done [18:24:08]req_shift_opened done [18:24:08]requested_item shift.open_date is exist - process it [18:24:08]req_shift_open_date [18:24:08]req_shift_open_date done [18:24:08]produce_requested_data done [18:24:08]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63866,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [18:24:08]process_action_free close_receipt [18:24:08]json_value_free [18:24:08]json_value_free done [18:24:08]process_json_proto returns [18:24:08]Send response to host [18:24:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63866,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [18:24:08]free response buf [18:24:08]execute_script done [18:24:08]execute_script returns [18:24:08]free content buf [18:24:08]Sock 7.Close socket [18:24:08]Sock 7.Thread stoped [18:24:12]OFD Sender: No OFD packet to send [18:24:17]OFD Sender: No OFD packet to send [18:24:22]OFD Sender: No OFD packet to send [18:24:27]OFD Sender: No OFD packet to send [18:24:32]OFD Sender: No OFD packet to send [18:24:36]accept exits with 9 [18:24:36]New connection [18:24:36]New thread 3066719588 created [18:24:36]Thread 3066576228 joined [18:24:36]Waiting for new connection... [18:24:36] Sock 9.Parse request [18:24:36]Sock 9.Check first char [18:24:36]Sock 9.First char is OK [18:24:36]request: POST /json_proto HTTP/1.0 [18:24:36]Method: POST [18:24:36]URL: /json_proto [18:24:36]Method is POST - this is cgi request [18:24:36]url: /json_proto [18:24:36]query_string will be loaded in cgi processing [18:24:36]execute_cgi json_proto POST (null) [18:24:36]execute_cgi path=json_proto method=POST [18:24:36]POST find Content-Length [18:24:36]Host: 172.17.60.69:8080 [18:24:36]Content-Length: 939 [18:24:36]Content-Type: application/json [18:24:36] [18:24:36]POST finish read [18:24:36]Found Content-Length = 939 [18:24:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73437", "tax_sys" : 0, "items" : [ { "code": "4870001570057", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 0,5\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870112003956", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A ALBENI SUPER \u0410\u043B\u044C\u0431\u0435\u043D\u0438 \u0421\u0443\u043F\u0435\u0440", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 155.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:24:36]execute_script... [18:24:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73437", "tax_sys" : 0, "items" : [ { "code": "4870001570057", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 0,5\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870112003956", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A ALBENI SUPER \u0410\u043B\u044C\u0431\u0435\u043D\u0438 \u0421\u0443\u043F\u0435\u0440", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 155.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:24:36]POST & json_proto [18:24:36]process_json_proto [18:24:36]json parsed OK: [18:24:36]protocol is kg_v1.0 [18:24:36]action value=close_receipt [18:24:36]process_action close_receipt [18:24:36]cmd_close_receipt [18:24:36]MH_GetDate [18:24:36]Write to MH i2c: F0 00 00 94 02 85 [18:24:36]Write i2c OK [18:24:36]MH_I2C_Read... [18:24:36]Read from MH i2c: F0 [18:24:36]MH_I2C_Read... [18:24:36]Read from MH i2c: F0 09 00 [18:24:36]MH_I2C_Read... [18:24:36]Read from MH i2c: F0 09 00 94 02 00 64 0A 5E 66 6A 96 4A 66 70 [18:24:36]GetLastDocTimeStamp 1717439044 [18:24:36]current date 1717439076 [18:24:36]FM_GetShiftState [18:24:36]SAM_PROTO_GetShiftState [18:24:36]wFMCommunicate request_size=4 [18:24:36]MH_SAM_APDU [18:24:36]CAPDU: 80 13 01 00 [18:24:36]Write to MH i2c: E2 08 00 95 02 80 13 01 00 00 00 00 00 14 [18:24:36]Write i2c OK [18:24:36]MH_I2C_Read... [18:24:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:24:36]Read from MH i2c: E2 [18:24:36]MH_I2C_Read... [18:24:36]Read from MH i2c: E2 0E 00 [18:24:36]MH_I2C_Read... [18:24:36]Read from MH i2c: E2 0E 00 95 02 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 E0 [18:24:36]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [18:24:36]wFMCommunicate OK [18:24:36]SAM_PROTO_GetShiftState done [18:24:36]FM_GetShiftState done [18:24:36]opened in 1717373173 [18:24:36]opened+sec_in_day 1717459573 [18:24:36]quantity*price = 8000 [18:24:36]sum+1 = 8001 [18:24:36]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870112003956 Шок батончик ALBENI SUPER Альбени Супер 1.000 * 75.00 = 75.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 155.00 НСП 1% : 1.37 НДС 12% : 16.46 Наличными: 155.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 125 03.06.2024 18:24 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63867 ФПД: 77702529528649 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T182436&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63867&fm=77702529528649&tin=02508201610067®Number=0000000000092737&sum=15500 0 [18:24:37]StoreToDocumentArchive [18:24:37]shift 373 fd 63867 [18:24:37]save to /storage/0373/doc_00063867 [18:24:37]save last doc name /storage/0373/doc_00063867 to /storage/kkm_last_doc_name [18:24:37]save OK [18:24:37]Clear old archive folders... [18:24:37]ProcessDocumentItem done err = 0, tmpTLVsize=402 [18:24:37]tlvbuf is B6D6FAE0 [18:24:37]SAM_PROTO_ClearQueue [18:24:37]wFMCommunicate request_size=4 [18:24:37]MH_SAM_APDU [18:24:37]CAPDU: 80 09 00 00 [18:24:37]Write to MH i2c: E2 08 00 A2 02 80 09 00 00 00 00 00 00 16 [18:24:37]Write i2c OK [18:24:37]MH_I2C_Read... [18:24:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:24:37]Read from MH i2c: E2 [18:24:37]MH_I2C_Read... [18:24:37]Read from MH i2c: E2 03 00 [18:24:37]MH_I2C_Read... [18:24:37]Read from MH i2c: E2 03 00 A2 02 00 90 00 18 [18:24:37]RAPDU: 90 00 [18:24:37]wFMCommunicate OK [18:24:37]SAM_PROTO_ClearQueue done [18:24:37]KKMCreateOFDPacket [18:24:37]OFDProtocolAddRootSTLVToBuf [18:24:37]FM_MakeSignedData [18:24:37]FM_MakeSignedData [18:24:37]SAM_PROTO_SignData [18:24:37]wFMCommunicate request_size=4 [18:24:37]MH_SAM_APDU [18:24:37]CAPDU: 80 0D 01 02 [18:24:37]Write to MH i2c: E2 08 00 A3 02 80 0D 01 02 00 00 00 00 1E [18:24:37]Write i2c OK [18:24:37]MH_I2C_Read... [18:24:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:24:37]Read from MH i2c: E2 [18:24:37]MH_I2C_Read... [18:24:37]Read from MH i2c: E2 03 00 [18:24:37]MH_I2C_Read... [18:24:37]Read from MH i2c: E2 03 00 A3 02 00 90 00 19 [18:24:37]RAPDU: 90 00 [18:24:37]wFMCommunicate OK [18:24:37]wFMCommunicate request_size=255 [18:24:37]MH_SAM_APDU [18:24:37]CAPDU: 80 0D 02 02 FA 03 00 92 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 82 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 35 36 06 04 3E 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 41 4C 42 45 4E 49 20 53 55 50 45 52 20 D0 90 D0 BB D1 8C D0 B1 D0 B5 D0 BD D0 B8 20 D0 A1 D1 83 D0 BF D0 B5 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 [18:24:37]Write to MH i2c: E2 02 01 A4 02 80 0D 02 02 FA 00 03 00 92 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 82 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 35 36 06 04 3E 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 41 4C 42 45 4E 49 20 53 55 50 45 52 20 D0 90 D0 BB D1 8C D0 B1 D0 B5 D0 BD D0 B8 20 D0 A1 D1 83 D0 BF D0 B5 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 00 E6 [18:24:37]Write i2c OK [18:24:37]MH_I2C_Read... [18:24:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:24:37]Read from MH i2c: E2 [18:24:37]MH_I2C_Read... [18:24:37]Read from MH i2c: E2 03 00 [18:24:37]MH_I2C_Read... [18:24:37]Read from MH i2c: E2 03 00 A4 02 00 90 00 1A [18:24:37]RAPDU: 90 00 [18:24:37]wFMCommunicate OK [18:24:37]wFMCommunicate request_size=161 [18:24:37]MH_SAM_APDU [18:24:37]CAPDU: 80 0D 02 02 9C 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 8C 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 64 0A 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 7B F9 00 00 35 04 06 00 46 AB 87 AB B3 49 [18:24:37]Write to MH i2c: E2 A4 00 A5 02 80 0D 02 02 9C 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 8C 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 64 0A 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 7B F9 00 00 35 04 06 00 46 AB 87 AB B3 49 00 00 15 [18:24:37]Write i2c OK [18:24:37]MH_I2C_Read... [18:24:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:24:38]Read from MH i2c: E2 [18:24:38]MH_I2C_Read... [18:24:38]Read from MH i2c: E2 03 00 [18:24:38]MH_I2C_Read... [18:24:38]Read from MH i2c: E2 03 00 A5 02 00 90 00 1B [18:24:38]RAPDU: 90 00 [18:24:38]wFMCommunicate OK [18:24:38]wFMCommunicate request_size=4 [18:24:38]MH_SAM_APDU [18:24:38]CAPDU: 80 0D 03 02 [18:24:38]Write to MH i2c: E2 08 00 A6 02 80 0D 03 02 00 00 00 00 23 [18:24:38]Write i2c OK [18:24:38]MH_I2C_Read... [18:24:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:24:38]Read from MH i2c: E2 [18:24:38]MH_I2C_Read... [18:24:38]Read from MH i2c: E2 0B 00 [18:24:38]MH_I2C_Read... [18:24:38]Read from MH i2c: E2 0B 00 A6 02 00 99 F4 7A 2A 58 8C 9C 12 90 00 E7 [18:24:38]RAPDU: 99 F4 7A 2A 58 8C 9C 12 90 00 [18:24:38]wFMCommunicate OK [18:24:38]SAM_PROTO_SignData done [18:24:38]FM_MakeSignedData done [18:24:38]CreateOFDProtocolMessage [18:24:38]wFMCommunicate request_size=4 [18:24:38]MH_SAM_APDU [18:24:38]CAPDU: 80 11 00 00 [18:24:38]Write to MH i2c: E2 08 00 A7 02 80 11 00 00 00 00 00 00 23 [18:24:38]Write i2c OK [18:24:38]MH_I2C_Read... [18:24:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:24:38]Read from MH i2c: E2 [18:24:38]MH_I2C_Read... [18:24:38]Read from MH i2c: E2 17 00 [18:24:38]MH_I2C_Read... [18:24:38]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 35 30 37 34 90 00 75 [18:24:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [18:24:38]wFMCommunicate OK [18:24:38]CreateOFDProtocolMessage done [18:24:38]OFDSenderStorePacket 63867 [18:24:38]StoreOFDPacket docnum=63867 [18:24:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 A6 01 00 00 0B C4 9E 01 46 B5 5A 03 01 00 03 00 92 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 82 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 35 36 06 04 3E 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 41 4C 42 45 4E 49 20 53 55 50 45 52 20 D0 90 D0 BB D1 8C D0 B1 D0 B5 D0 BD D0 B8 20 D0 A1 D1 83 D0 BF D0 B5 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 8C 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 64 0A 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 7B F9 00 00 35 04 06 00 46 AB 87 AB B3 49 99 F4 7A 2A 58 8C 9C 12 [18:24:38]CheckFolder [18:24:38]dirname=/storage/ofd_packets [18:24:38]CheckFolder done [18:24:38]ProducePacketName [18:24:38]name=ofd_packets/00063867 [18:24:38]NVStorageSaveData ofd_packets/00063867 [18:24:38]File name is /storage/ofd_packets/00063867 [18:24:38]Write 452 bytes [18:24:38]NVStorageSaveData done [18:24:38]OFDSenderStorePacket done [18:24:38]KKMCreateOFDPacket done [18:24:38]NVStorageSaveData kkm_last_timestamp [18:24:38]File name is /storage/kkm_last_timestamp [18:24:38]Write 4 bytes [18:24:38]NVStorageSaveData done [18:24:38]ExternCall_PrintAddStr [18:24:38]wPrintStart [18:24:38]Write to MH i2c: 01 00 00 A8 02 AA [18:24:38]OFD Sender: Processing packet 63867 [packets to send 14, broken 13] [18:24:38]ProducePacketName [18:24:38]name=ofd_packets/00063867 [18:24:38]OFD Sender: To server: pG, [18:24:38]CommunicateWithHost lk.salyk.kg:30040 [18:24:38]ConnectInit lk.salyk.kg [18:24:38]Write i2c OK [18:24:38]MH_I2C_Read... [18:24:38]Read from MH i2c: 01 [18:24:38]MH_I2C_Read... [18:24:38]Read from MH i2c: 01 07 00 [18:24:38]MH_I2C_Read... [18:24:38]Read from MH i2c: 01 07 00 A8 02 00 00 00 00 00 FF 0F BF [18:24:38]RasterBufferAndPrint [18:24:38]line Счет N : (3)73437 [18:24:38]line ИНН: 02508201610067 [18:24:38]line Контрольно-Кассовый Чек [18:24:38]line ПРОДАЖА [18:24:38]line Товар: 4870001570057 [18:24:38]line Напиток Pepsi 0,5л [18:24:38]line 1.000 * 80.00 [18:24:38]line = 80.00 [18:24:38]line НДС 12% НСП 1% [18:24:38]line > о реализуемом товаре [18:24:38]line Товар: 4870112003956 [18:24:38]line Шок батончик ALBENI SUPER Альбени Супер [18:24:38]line 1.000 * 75.00 [18:24:38]line = 75.00 [18:24:38]line НДС 12% НСП 1% [18:24:38]line > о реализуемом товаре [18:24:38]line ИТОГО: 155.00 [18:24:38]line НСП 1% : 1.37 [18:24:38]line НДС 12% : 16.46 [18:24:38]line Наличными: 155.00 [18:24:38]line Безнал.: 0.00 [18:24:38]line Место: АЗС № 117 "Партнер Нефть" [18:24:38]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [18:24:38]line СНО: Общий режим [18:24:38]line Чек 125 03.06.2024 18:24 [18:24:38]line Смена: 373 ФФД: 1.0 [18:24:38]line ЗНМ: 0300000031 [18:24:38]line РНМ: 0000000000092737 [18:24:38]line Версия ККМ: 001 [18:24:38]line ФМ: 0000000000875074 [18:24:38]line ФД: 63867 [18:24:38]line ФПД: 77702529528649 [18:24:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T182436&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63867&fm=77702529528649&tin=02508201610067®Number=0000000000092737&sum=15500 [18:24:38]line 0 [18:24:38]written 0, free lines is 4095 [18:24:38]Connected sock=10 [18:24:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 A6 01 00 00 0B C4 9E 01 46 B5 5A 03 01 00 03 00 92 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 82 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 35 36 06 04 3E 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 41 4C 42 45 4E 49 20 53 55 50 45 52 20 D0 90 D0 BB D1 8C D0 B1 D0 B5 D0 BD D0 B8 20 D0 A1 D1 83 D0 BF D0 B5 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 8C 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 64 0A 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 7B F9 00 00 35 04 06 00 46 AB 87 AB B3 49 99 F4 7A 2A 58 8C 9C 12 [18:24:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 1B 3F 47 00 79 A6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 7B F9 00 00 F4 03 04 00 35 B6 5D 66 B6 04 01 00 00 BC 14 AA CC 87 D3 1F D1 [18:24:38]CommunicateWithHost err = 0 [18:24:38]CheckOFDResponse [18:24:38]1017 (14) - 77093643461234 [18:24:38]1041 (16) - 0000000000875074 [18:24:38]1040 (4) - 63867 [18:24:38]1012 (4) - 03.06.2024 12:25 [18:24:38]1206 (1) - 0 [18:24:38]OFD Sender: Remove packet 63867 [18:24:38]ProducePacketName [18:24:38]name=ofd_packets/00063867 [18:24:38]NVStorageDeleteData [18:24:38]Write to MH i2c: 01 00 00 D7 02 D9 [18:24:38]Write i2c OK [18:24:38]MH_I2C_Read... [18:24:38]Read from MH i2c: 01 [18:24:38]MH_I2C_Read... [18:24:38]Read from MH i2c: 01 07 00 [18:24:38]MH_I2C_Read... [18:24:38]Read from MH i2c: 01 07 00 D7 02 00 00 00 00 00 88 0C 74 [18:24:38]RasterBufferAndPrint [18:24:38]line [18:24:38]line [18:24:38]line [18:24:38]line [18:24:38]line [18:24:38]written 0, free lines is 3214 [18:24:38]MH_Cut [18:24:38]Write to MH i2c: D1 01 00 DE 02 01 B2 [18:24:38]Write i2c OK [18:24:38]MH_I2C_Read... [18:24:38]Read from MH i2c: D1 [18:24:38]MH_I2C_Read... [18:24:38]Read from MH i2c: D1 01 00 [18:24:38]MH_I2C_Read... [18:24:38]Read from MH i2c: D1 01 00 DE 02 00 B1 [18:24:38]Write to MH i2c: 01 00 00 DF 02 E1 [18:24:38]Write i2c OK [18:24:38]MH_I2C_Read... [18:24:39]OFD Sender: No OFD packet to send [18:24:39]*** Cut start [18:24:39]*** Partial cut [18:24:39]*** CUTSNS_PIN = 1 [18:24:39]*** CUTSNS_PIN = 0 [18:24:40]*** Brake cut motor [18:24:40]Read from MH i2c: 01 [18:24:40]MH_I2C_Read... [18:24:40]*** Stop cut motor [18:24:40]*** Cut end [18:24:40]Read from MH i2c: 01 07 00 [18:24:40]MH_I2C_Read... [18:24:40]Read from MH i2c: 01 07 00 DF 02 00 00 00 00 00 FF 0F F6 [18:24:40]process_action close_receipt done [18:24:40]requested_data is exist [18:24:40]produce_requested_data [18:24:40]requested_item fm.sn is exist - process it [18:24:40]wFMCommunicate request_size=4 [18:24:40]MH_SAM_APDU [18:24:40]CAPDU: 80 11 00 00 [18:24:40]Write to MH i2c: E2 08 00 E0 02 80 11 00 00 00 00 00 00 5C [18:24:40]Write i2c OK [18:24:40]MH_I2C_Read... [18:24:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:24:40]Read from MH i2c: E2 [18:24:40]MH_I2C_Read... [18:24:40]Read from MH i2c: E2 17 00 [18:24:40]MH_I2C_Read... [18:24:40]Read from MH i2c: E2 17 00 E0 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 AE [18:24:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [18:24:40]wFMCommunicate OK [18:24:40]requested_item fd.num is exist - process it [18:24:40]SAM_PROTO_GetFieldsCounters [18:24:40]wFMCommunicate request_size=4 [18:24:40]MH_SAM_APDU [18:24:40]CAPDU: 80 13 00 00 [18:24:40]Write to MH i2c: E2 08 00 E1 02 80 13 00 00 00 00 00 00 5F [18:24:40]Write i2c OK [18:24:40]MH_I2C_Read... [18:24:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:24:40]Read from MH i2c: E2 [18:24:40]MH_I2C_Read... [18:24:40]Read from MH i2c: E2 62 00 [18:24:40]MH_I2C_Read... [18:24:40]Read from MH i2c: E2 62 00 E1 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 7B F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 7D 00 00 00 5E 04 04 00 7D 00 00 00 57 04 04 00 7E 00 00 00 19 04 04 00 00 00 00 00 90 00 E3 [18:24: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 7B F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 7D 00 00 00 5E 04 04 00 7D 00 00 00 57 04 04 00 7E 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:24:40]wFMCommunicate OK [18:24:40]SAM_PROTO_GetFieldsCounters done [18:24:40]requested_item shift.num is exist - process it [18:24:40]requested_item shift.opened is exist - process it [18:24:40]req_shift_opened [18:24:40]FM_GetShiftState [18:24:40]SAM_PROTO_GetShiftState [18:24:40]wFMCommunicate request_size=4 [18:24:40]MH_SAM_APDU [18:24:40]CAPDU: 80 13 01 00 [18:24:40]Write to MH i2c: E2 08 00 E2 02 80 13 01 00 00 00 00 00 61 [18:24:40]Write i2c OK [18:24:40]MH_I2C_Read... [18:24:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:24:40]Read from MH i2c: E2 [18:24:40]MH_I2C_Read... [18:24:40]Read from MH i2c: E2 0E 00 [18:24:40]MH_I2C_Read... [18:24:40]Read from MH i2c: E2 0E 00 E2 02 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 2D [18:24:40]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [18:24:40]wFMCommunicate OK [18:24:40]SAM_PROTO_GetShiftState done [18:24:40]FM_GetShiftState done [18:24:40]req_shift_opened done [18:24:40]requested_item shift.open_date is exist - process it [18:24:40]req_shift_open_date [18:24:40]req_shift_open_date done [18:24:40]produce_requested_data done [18:24:40]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63867,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [18:24:40]process_action_free close_receipt [18:24:40]json_value_free [18:24:40]json_value_free done [18:24:40]process_json_proto returns [18:24:40]Send response to host [18:24:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63867,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [18:24:40]free response buf [18:24:40]execute_script done [18:24:40]execute_script returns [18:24:40]free content buf [18:24:40]Sock 9.Close socket [18:24:40]Sock 9.Thread stoped [18:24:44]OFD Sender: No OFD packet to send [18:24:49]OFD Sender: No OFD packet to send [18:24:54]OFD Sender: No OFD packet to send [18:24:59]OFD Sender: No OFD packet to send [18:25:04]OFD Sender: No OFD packet to send [18:25:09]OFD Sender: No OFD packet to send [18:25:14]OFD Sender: No OFD packet to send [18:25:19]OFD Sender: No OFD packet to send [18:25:24]OFD Sender: No OFD packet to send [18:25:29]OFD Sender: No OFD packet to send [18:25:34]OFD Sender: No OFD packet to send [18:25:39]OFD Sender: No OFD packet to send [18:25:44]OFD Sender: No OFD packet to send [18:25:49]OFD Sender: No OFD packet to send [18:25:54]OFD Sender: No OFD packet to send [18:25:59]OFD Sender: No OFD packet to send [18:26:04]OFD Sender: No OFD packet to send [18:26:09]OFD Sender: No OFD packet to send [18:26:14]OFD Sender: No OFD packet to send [18:26:19]OFD Sender: No OFD packet to send [18:26:24]OFD Sender: No OFD packet to send [18:26:29]OFD Sender: No OFD packet to send [18:26:34]OFD Sender: No OFD packet to send [18:26:39]OFD Sender: No OFD packet to send [18:26:44]OFD Sender: No OFD packet to send [18:26:49]OFD Sender: No OFD packet to send [18:26:54]OFD Sender: No OFD packet to send [18:26:59]OFD Sender: No OFD packet to send [18:27:04]OFD Sender: No OFD packet to send [18:27:09]OFD Sender: No OFD packet to send [18:27:14]OFD Sender: No OFD packet to send [18:27:19]OFD Sender: No OFD packet to send [18:27:24]OFD Sender: No OFD packet to send [18:27:29]OFD Sender: No OFD packet to send [18:27:34]OFD Sender: No OFD packet to send [18:27:39]OFD Sender: No OFD packet to send [18:27:44]OFD Sender: No OFD packet to send [18:27:49]OFD Sender: No OFD packet to send [18:27:54]OFD Sender: No OFD packet to send [18:27:59]OFD Sender: No OFD packet to send [18:28:04]OFD Sender: No OFD packet to send [18:28:09]OFD Sender: No OFD packet to send [18:28:14]OFD Sender: No OFD packet to send [18:28:19]OFD Sender: No OFD packet to send [18:28:24]OFD Sender: No OFD packet to send [18:28:29]OFD Sender: No OFD packet to send [18:28:34]OFD Sender: No OFD packet to send [18:28:39]OFD Sender: No OFD packet to send [18:28:44]OFD Sender: No OFD packet to send [18:28:49]OFD Sender: No OFD packet to send [18:28:54]OFD Sender: No OFD packet to send [18:28:59]OFD Sender: No OFD packet to send [18:29:04]OFD Sender: No OFD packet to send [18:29:09]OFD Sender: No OFD packet to send [18:29:14]OFD Sender: No OFD packet to send [18:29:19]OFD Sender: No OFD packet to send [18:29:24]OFD Sender: No OFD packet to send [18:29:29]OFD Sender: No OFD packet to send [18:29:34]OFD Sender: No OFD packet to send [18:29:39]OFD Sender: No OFD packet to send [18:29:44]OFD Sender: No OFD packet to send [18:29:49]OFD Sender: No OFD packet to send [18:29:54]OFD Sender: No OFD packet to send [18:29:59]OFD Sender: No OFD packet to send [18:30:04]OFD Sender: No OFD packet to send [18:30:07]accept exits with 7 [18:30:07]New connection [18:30:07]New thread 3066576228 created [18:30:07]Thread 3066719588 joined [18:30:07]Waiting for new connection... [18:30:07] Sock 7.Parse request [18:30:07]Sock 7.Check first char [18:30:07]Sock 7.First char is OK [18:30:07]request: POST /json_proto HTTP/1.0 [18:30:07]Method: POST [18:30:07]URL: /json_proto [18:30:07]Method is POST - this is cgi request [18:30:07]url: /json_proto [18:30:07]query_string will be loaded in cgi processing [18:30:07]execute_cgi json_proto POST (null) [18:30:07]execute_cgi path=json_proto method=POST [18:30:07]POST find Content-Length [18:30:07]Host: 172.17.60.69:8080 [18:30:07]Content-Length: 653 [18:30:07]Content-Type: application/json [18:30:07] [18:30:07]POST finish read [18:30:07]Found Content-Length = 653 [18:30:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73438", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:30:07]execute_script... [18:30: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 : (3)73438", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:30:07]POST & json_proto [18:30:07]process_json_proto [18:30:07]json parsed OK: [18:30:07]protocol is kg_v1.0 [18:30:07]action value=close_receipt [18:30:07]process_action close_receipt [18:30:07]cmd_close_receipt [18:30:07]MH_GetDate [18:30:07]Write to MH i2c: F0 00 00 E3 02 D4 [18:30:07]Write i2c OK [18:30:07]MH_I2C_Read... [18:30:07]Read from MH i2c: F0 [18:30:07]MH_I2C_Read... [18:30:07]Read from MH i2c: F0 09 00 [18:30:07]MH_I2C_Read... [18:30:07]Read from MH i2c: F0 09 00 E3 02 00 AF 0B 5E 66 6A 96 4A 66 0B [18:30:07]GetLastDocTimeStamp 1717439076 [18:30:07]current date 1717439407 [18:30:07]FM_GetShiftState [18:30:07]SAM_PROTO_GetShiftState [18:30:07]wFMCommunicate request_size=4 [18:30:07]MH_SAM_APDU [18:30:07]CAPDU: 80 13 01 00 [18:30:07]Write to MH i2c: E2 08 00 E4 02 80 13 01 00 00 00 00 00 63 [18:30:07]Write i2c OK [18:30:07]MH_I2C_Read... [18:30:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:30:07]Read from MH i2c: E2 [18:30:07]MH_I2C_Read... [18:30:07]Read from MH i2c: E2 0E 00 [18:30:07]MH_I2C_Read... [18:30:07]Read from MH i2c: E2 0E 00 E4 02 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 2F [18:30:07]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [18:30:07]wFMCommunicate OK [18:30:07]SAM_PROTO_GetShiftState done [18:30:07]FM_GetShiftState done [18:30:07]opened in 1717373173 [18:30:07]opened+sec_in_day 1717459573 [18:30:07]quantity*price = 9500 [18:30:07]sum+1 = 9501 [18:30:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 95.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 126 03.06.2024 18:30 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63868 ФПД: 168229521069558 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T183007&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63868&fm=168229521069558&tin=02508201610067®Number=0000000000092737&sum=9500 0 [18:30:08]StoreToDocumentArchive [18:30:08]shift 373 fd 63868 [18:30:08]save to /storage/0373/doc_00063868 [18:30:08]save last doc name /storage/0373/doc_00063868 to /storage/kkm_last_doc_name [18:30:08]save OK [18:30:08]Clear old archive folders... [18:30:08]ProcessDocumentItem done err = 0, tmpTLVsize=293 [18:30:08]tlvbuf is 00AF29F0 [18:30:08]SAM_PROTO_ClearQueue [18:30:08]wFMCommunicate request_size=4 [18:30:08]MH_SAM_APDU [18:30:08]CAPDU: 80 09 00 00 [18:30:08]Write to MH i2c: E2 08 00 F1 02 80 09 00 00 00 00 00 00 65 [18:30:08]Write i2c OK [18:30:08]MH_I2C_Read... [18:30:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:30:08]Read from MH i2c: E2 [18:30:08]MH_I2C_Read... [18:30:08]Read from MH i2c: E2 03 00 [18:30:08]MH_I2C_Read... [18:30:08]Read from MH i2c: E2 03 00 F1 02 00 90 00 67 [18:30:08]RAPDU: 90 00 [18:30:08]wFMCommunicate OK [18:30:08]SAM_PROTO_ClearQueue done [18:30:08]KKMCreateOFDPacket [18:30:08]OFDProtocolAddRootSTLVToBuf [18:30:08]FM_MakeSignedData [18:30:08]FM_MakeSignedData [18:30:08]SAM_PROTO_SignData [18:30:08]wFMCommunicate request_size=4 [18:30:08]MH_SAM_APDU [18:30:08]CAPDU: 80 0D 01 02 [18:30:08]Write to MH i2c: E2 08 00 F2 02 80 0D 01 02 00 00 00 00 6D [18:30:08]Write i2c OK [18:30:08]MH_I2C_Read... [18:30:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:30:08]Read from MH i2c: E2 [18:30:08]MH_I2C_Read... [18:30:08]Read from MH i2c: E2 03 00 [18:30:08]MH_I2C_Read... [18:30:08]Read from MH i2c: E2 03 00 F2 02 00 90 00 68 [18:30:08]RAPDU: 90 00 [18:30:08]wFMCommunicate OK [18:30:08]wFMCommunicate request_size=255 [18:30:08]MH_SAM_APDU [18:30:08]CAPDU: 80 0D 02 02 FA 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 AF 0B 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [18:30:08]Write to MH i2c: E2 02 01 F3 02 80 0D 02 02 FA 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 AF 0B 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 7F [18:30:08]Write i2c OK [18:30:08]MH_I2C_Read... [18:30:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:30:08]Read from MH i2c: E2 [18:30:08]MH_I2C_Read... [18:30:08]Read from MH i2c: E2 03 00 [18:30:08]MH_I2C_Read... [18:30:08]Read from MH i2c: E2 03 00 F3 02 00 90 00 69 [18:30:08]RAPDU: 90 00 [18:30:08]wFMCommunicate OK [18:30:08]wFMCommunicate request_size=52 [18:30:08]MH_SAM_APDU [18:30:08]CAPDU: 80 0D 02 02 2F 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 7C F9 00 00 35 04 06 00 99 00 FC D8 15 F6 [18:30:08]Write to MH i2c: E2 37 00 F4 02 80 0D 02 02 2F 00 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 7C F9 00 00 35 04 06 00 99 00 FC D8 15 F6 00 00 22 [18:30:08]Write i2c OK [18:30:08]MH_I2C_Read... [18:30:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:30:08]Read from MH i2c: E2 [18:30:08]MH_I2C_Read... [18:30:08]Read from MH i2c: E2 03 00 [18:30:08]MH_I2C_Read... [18:30:08]Read from MH i2c: E2 03 00 F4 02 00 90 00 6A [18:30:08]RAPDU: 90 00 [18:30:08]wFMCommunicate OK [18:30:08]wFMCommunicate request_size=4 [18:30:08]MH_SAM_APDU [18:30:08]CAPDU: 80 0D 03 02 [18:30:08]Write to MH i2c: E2 08 00 F5 02 80 0D 03 02 00 00 00 00 72 [18:30:08]Write i2c OK [18:30:08]MH_I2C_Read... [18:30:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:30:08]Read from MH i2c: E2 [18:30:08]MH_I2C_Read... [18:30:08]Read from MH i2c: E2 0B 00 [18:30:08]MH_I2C_Read... [18:30:08]Read from MH i2c: E2 0B 00 F5 02 00 80 21 47 C2 C8 C0 14 EF 90 00 A8 [18:30:08]RAPDU: 80 21 47 C2 C8 C0 14 EF 90 00 [18:30:08]wFMCommunicate OK [18:30:08]SAM_PROTO_SignData done [18:30:08]FM_MakeSignedData done [18:30:08]CreateOFDProtocolMessage [18:30:08]wFMCommunicate request_size=4 [18:30:08]MH_SAM_APDU [18:30:08]CAPDU: 80 11 00 00 [18:30:08]Write to MH i2c: E2 08 00 F6 02 80 11 00 00 00 00 00 00 72 [18:30:08]Write i2c OK [18:30:08]MH_I2C_Read... [18:30:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:30:08]Read from MH i2c: E2 [18:30:08]MH_I2C_Read... [18:30:08]Read from MH i2c: E2 17 00 [18:30:08]MH_I2C_Read... [18:30:08]Read from MH i2c: E2 17 00 F6 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 C4 [18:30:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [18:30:08]wFMCommunicate OK [18:30:08]CreateOFDProtocolMessage done [18:30:08]OFDSenderStorePacket 63868 [18:30:08]StoreOFDPacket docnum=63868 [18:30:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 39 01 00 00 DB 7B 31 01 5E B5 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 AF 0B 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 7C F9 00 00 35 04 06 00 99 00 FC D8 15 F6 80 21 47 C2 C8 C0 14 EF [18:30:08]CheckFolder [18:30:08]dirname=/storage/ofd_packets [18:30:08]CheckFolder done [18:30:08]ProducePacketName [18:30:08]name=ofd_packets/00063868 [18:30:08]NVStorageSaveData ofd_packets/00063868 [18:30:08]File name is /storage/ofd_packets/00063868 [18:30:08]Write 343 bytes [18:30:08]NVStorageSaveData done [18:30:08]OFDSenderStorePacket done [18:30:08]KKMCreateOFDPacket done [18:30:08]NVStorageSaveData kkm_last_timestamp [18:30:08]File name is /storage/kkm_last_timestamp [18:30:08]Write 4 bytes [18:30:08]NVStorageSaveData done [18:30:08]ExternCall_PrintAddStr [18:30:08]wPrintStart [18:30:08]Write to MH i2c: 01 00 00 F7 02 F9 [18:30:08]Write i2c OK [18:30:08]MH_I2C_Read... [18:30:08]Read from MH i2c: 01 [18:30:08]MH_I2C_Read... [18:30:08]Read from MH i2c: 01 07 00 [18:30:08]MH_I2C_Read... [18:30:08]Read from MH i2c: 01 07 00 F7 02 00 00 00 00 00 FF 0F 0E [18:30:08]RasterBufferAndPrint [18:30:08]line Счет N : (3)73438 [18:30:08]line ИНН: 02508201610067 [18:30:08]line Контрольно-Кассовый Чек [18:30:08]line ПРОДАЖА [18:30:08]line Товар: 4700000480050 [18:30:08]line Напиток Nitro Energy эн green ж/б 0,45л [18:30:08]line 1.000 * 95.00 [18:30:08]line = 95.00 [18:30:08]line НДС 12% НСП 1% [18:30:08]line > о реализуемом товаре [18:30:08]line ИТОГО: 95.00 [18:30:08]line НСП 1% : 0.84 [18:30:08]line НДС 12% : 10.09 [18:30:08]line Наличными: 95.00 [18:30:08]line Безнал.: 0.00 [18:30:08]line Место: АЗС № 117 "Партнер Нефть" [18:30:08]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [18:30:08]line СНО: Общий режим [18:30:08]line Чек 126 03.06.2024 18:30 [18:30:08]line Смена: 373 ФФД: 1.0 [18:30:08]line ЗНМ: 0300000031 [18:30:08]line РНМ: 0000000000092737 [18:30:08]line Версия ККМ: 001 [18:30:08]line ФМ: 0000000000875074 [18:30:08]line ФД: 63868 [18:30:08]line ФПД: 168229521069558 [18:30:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T183007&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63868&fm=168229521069558&tin=02508201610067®Number=0000000000092737&sum=9500 [18:30:09]line 0 [18:30:09]OFD Sender: Processing packet 63868 [packets to send 14, broken 13] [18:30:09]ProducePacketName [18:30:09]name=ofd_packets/00063868 [18:30:09]OFD Sender: To server: pG, [18:30:09]CommunicateWithHost lk.salyk.kg:30040 [18:30:09]ConnectInit lk.salyk.kg [18:30:09]written 0, free lines is 4095 [18:30:09]Connected sock=10 [18:30:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 39 01 00 00 DB 7B 31 01 5E B5 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 AF 0B 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 7C F9 00 00 35 04 06 00 99 00 FC D8 15 F6 80 21 47 C2 C8 C0 14 EF [18:30:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 5B BF 47 00 0B CE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 7C F9 00 00 F4 03 04 00 80 B7 5D 66 B6 04 01 00 00 9F B3 9E 3B E9 1E 6D E4 [18:30:09]CommunicateWithHost err = 0 [18:30:09]CheckOFDResponse [18:30:09]1017 (14) - 77093643461234 [18:30:09]1041 (16) - 0000000000875074 [18:30:09]1040 (4) - 63868 [18:30:09]1012 (4) - 03.06.2024 12:30 [18:30:09]1206 (1) - 0 [18:30:09]OFD Sender: Remove packet 63868 [18:30:09]ProducePacketName [18:30:09]name=ofd_packets/00063868 [18:30:09]NVStorageDeleteData [18:30:09]Write to MH i2c: 01 00 00 20 03 23 [18:30:09]Write i2c OK [18:30:09]MH_I2C_Read... [18:30:09]Read from MH i2c: 01 [18:30:09]MH_I2C_Read... [18:30:09]Read from MH i2c: 01 07 00 [18:30:09]MH_I2C_Read... [18:30:09]Read from MH i2c: 01 07 00 20 03 00 00 00 00 00 EB 0C 21 [18:30:09]RasterBufferAndPrint [18:30:09]line [18:30:09]line [18:30:09]line [18:30:09]line [18:30:09]line [18:30:09]written 0, free lines is 3313 [18:30:09]MH_Cut [18:30:09]Write to MH i2c: D1 01 00 27 03 01 FC [18:30:09]Write i2c OK [18:30:09]MH_I2C_Read... [18:30:09]Read from MH i2c: D1 [18:30:09]MH_I2C_Read... [18:30:09]Read from MH i2c: D1 01 00 [18:30:09]MH_I2C_Read... [18:30:09]Read from MH i2c: D1 01 00 27 03 00 FB [18:30:09]Write to MH i2c: 01 00 00 28 03 2B [18:30:09]Write i2c OK [18:30:09]MH_I2C_Read... [18:30:09]OFD Sender: No OFD packet to send [18:30:10]*** Cut start [18:30:10]*** Partial cut [18:30:10]*** CUTSNS_PIN = 1 [18:30:10]*** CUTSNS_PIN = 0 [18:30:10]*** Brake cut motor [18:30:11]Read from MH i2c: 01 [18:30:11]MH_I2C_Read... [18:30:11]*** Stop cut motor [18:30:11]*** Cut end [18:30:11]Read from MH i2c: 01 07 00 [18:30:11]MH_I2C_Read... [18:30:11]Read from MH i2c: 01 07 00 28 03 00 00 00 00 00 FF 0F 40 [18:30:11]process_action close_receipt done [18:30:11]requested_data is exist [18:30:11]produce_requested_data [18:30:11]requested_item fm.sn is exist - process it [18:30:11]wFMCommunicate request_size=4 [18:30:11]MH_SAM_APDU [18:30:11]CAPDU: 80 11 00 00 [18:30:11]Write to MH i2c: E2 08 00 29 03 80 11 00 00 00 00 00 00 A6 [18:30:11]Write i2c OK [18:30:11]MH_I2C_Read... [18:30:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:30:11]Read from MH i2c: E2 [18:30:11]MH_I2C_Read... [18:30:11]Read from MH i2c: E2 17 00 [18:30:11]MH_I2C_Read... [18:30:11]Read from MH i2c: E2 17 00 29 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 F8 [18:30:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [18:30:11]wFMCommunicate OK [18:30:11]requested_item fd.num is exist - process it [18:30:11]SAM_PROTO_GetFieldsCounters [18:30:11]wFMCommunicate request_size=4 [18:30:11]MH_SAM_APDU [18:30:11]CAPDU: 80 13 00 00 [18:30:11]Write to MH i2c: E2 08 00 2A 03 80 13 00 00 00 00 00 00 A9 [18:30:11]Write i2c OK [18:30:11]MH_I2C_Read... [18:30:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:30:11]Read from MH i2c: E2 [18:30:11]MH_I2C_Read... [18:30:11]Read from MH i2c: E2 62 00 [18:30:11]MH_I2C_Read... [18:30:11]Read from MH i2c: E2 62 00 2A 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 7C F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 7F 00 00 00 19 04 04 00 00 00 00 00 90 00 31 [18:30: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 7C F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 7F 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:30:11]wFMCommunicate OK [18:30:11]SAM_PROTO_GetFieldsCounters done [18:30:11]requested_item shift.num is exist - process it [18:30:11]requested_item shift.opened is exist - process it [18:30:11]req_shift_opened [18:30:11]FM_GetShiftState [18:30:11]SAM_PROTO_GetShiftState [18:30:11]wFMCommunicate request_size=4 [18:30:11]MH_SAM_APDU [18:30:11]CAPDU: 80 13 01 00 [18:30:11]Write to MH i2c: E2 08 00 2B 03 80 13 01 00 00 00 00 00 AB [18:30:11]Write i2c OK [18:30:11]MH_I2C_Read... [18:30:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:30:11]Read from MH i2c: E2 [18:30:11]MH_I2C_Read... [18:30:11]Read from MH i2c: E2 0E 00 [18:30:11]MH_I2C_Read... [18:30:11]Read from MH i2c: E2 0E 00 2B 03 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 77 [18:30:11]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [18:30:11]wFMCommunicate OK [18:30:11]SAM_PROTO_GetShiftState done [18:30:11]FM_GetShiftState done [18:30:11]req_shift_opened done [18:30:11]requested_item shift.open_date is exist - process it [18:30:11]req_shift_open_date [18:30:11]req_shift_open_date done [18:30:11]produce_requested_data done [18:30:11]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63868,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [18:30:11]process_action_free close_receipt [18:30:11]json_value_free [18:30:11]json_value_free done [18:30:11]process_json_proto returns [18:30:11]Send response to host [18:30:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63868,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [18:30:11]free response buf [18:30:11]execute_script done [18:30:11]execute_script returns [18:30:11]free content buf [18:30:11]Sock 7.Close socket [18:30:11]Sock 7.Thread stoped [18:30:14]OFD Sender: No OFD packet to send [18:30:19]OFD Sender: No OFD packet to send [18:30:24]OFD Sender: No OFD packet to send [18:30:29]OFD Sender: No OFD packet to send [18:30:35]OFD Sender: No OFD packet to send [18:30:40]OFD Sender: No OFD packet to send [18:30:45]OFD Sender: No OFD packet to send [18:30:50]OFD Sender: No OFD packet to send [18:30:55]OFD Sender: No OFD packet to send [18:30:58]accept exits with 9 [18:30:58]New connection [18:30:58]New thread 3066719588 created [18:30:58]Thread 3066576228 joined [18:30:58]Waiting for new connection... [18:30:58] Sock 9.Parse request [18:30:58]Sock 9.Check first char [18:30:58]Sock 9.First char is OK [18:30:58]request: POST /json_proto HTTP/1.0 [18:30:58]Method: POST [18:30:58]URL: /json_proto [18:30:58]Method is POST - this is cgi request [18:30:58]url: /json_proto [18:30:58]query_string will be loaded in cgi processing [18:30:58]execute_cgi json_proto POST (null) [18:30:58]execute_cgi path=json_proto method=POST [18:30:58]POST find Content-Length [18:30:58]Host: 172.17.60.69:8080 [18:30:58]Content-Length: 625 [18:30:58]Content-Type: application/json [18:30:58] [18:30:58]POST finish read [18:30:58]Found Content-Length = 625 [18:30:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73439", "tax_sys" : 0, "items" : [ { "code": "2000036240010", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 115.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:30:58]execute_script... [18:30:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73439", "tax_sys" : 0, "items" : [ { "code": "2000036240010", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 115.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:30:58]POST & json_proto [18:30:58]process_json_proto [18:30:58]json parsed OK: [18:30:58]protocol is kg_v1.0 [18:30:58]action value=close_receipt [18:30:58]process_action close_receipt [18:30:58]cmd_close_receipt [18:30:58]MH_GetDate [18:30:58]Write to MH i2c: F0 00 00 2C 03 1E [18:30:58]Write i2c OK [18:30:58]MH_I2C_Read... [18:30:58]Read from MH i2c: F0 [18:30:58]MH_I2C_Read... [18:30:58]Read from MH i2c: F0 09 00 [18:30:58]MH_I2C_Read... [18:30:58]Read from MH i2c: F0 09 00 2C 03 00 E2 0B 5E 66 6A 96 4A 66 88 [18:30:58]GetLastDocTimeStamp 1717439407 [18:30:58]current date 1717439458 [18:30:58]FM_GetShiftState [18:30:58]SAM_PROTO_GetShiftState [18:30:58]wFMCommunicate request_size=4 [18:30:58]MH_SAM_APDU [18:30:58]CAPDU: 80 13 01 00 [18:30:58]Write to MH i2c: E2 08 00 2D 03 80 13 01 00 00 00 00 00 AD [18:30:58]Write i2c OK [18:30:58]MH_I2C_Read... [18:30:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:30:58]Read from MH i2c: E2 [18:30:58]MH_I2C_Read... [18:30:58]Read from MH i2c: E2 0E 00 [18:30:58]MH_I2C_Read... [18:30:58]Read from MH i2c: E2 0E 00 2D 03 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 79 [18:30:58]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [18:30:58]wFMCommunicate OK [18:30:58]SAM_PROTO_GetShiftState done [18:30:58]FM_GetShiftState done [18:30:58]opened in 1717373173 [18:30:58]opened+sec_in_day 1717459573 [18:30:58]quantity*price = 11500 [18:30:58]sum+1 = 11501 [18:30:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 115.00 НСП 1% : 1.02 НДС 12% : 12.21 Наличными: 115.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 127 03.06.2024 18:30 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63869 ФПД: 54019798900970 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T183058&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63869&fm=54019798900970&tin=02508201610067®Number=0000000000092737&sum=11500 0 [18:30:59]StoreToDocumentArchive [18:30:59]shift 373 fd 63869 [18:30:59]save to /storage/0373/doc_00063869 [18:30:59]save last doc name /storage/0373/doc_00063869 to /storage/kkm_last_doc_name [18:30:59]save OK [18:30:59]Clear old archive folders... [18:30:59]ProcessDocumentItem done err = 0, tmpTLVsize=274 [18:30:59]tlvbuf is 00AE07B0 [18:30:59]SAM_PROTO_ClearQueue [18:30:59]wFMCommunicate request_size=4 [18:30:59]MH_SAM_APDU [18:30:59]CAPDU: 80 09 00 00 [18:30:59]Write to MH i2c: E2 08 00 3A 03 80 09 00 00 00 00 00 00 AF [18:30:59]Write i2c OK [18:30:59]MH_I2C_Read... [18:30:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:30:59]Read from MH i2c: E2 [18:30:59]MH_I2C_Read... [18:30:59]Read from MH i2c: E2 03 00 [18:30:59]MH_I2C_Read... [18:30:59]Read from MH i2c: E2 03 00 3A 03 00 90 00 B1 [18:30:59]RAPDU: 90 00 [18:30:59]wFMCommunicate OK [18:30:59]SAM_PROTO_ClearQueue done [18:30:59]KKMCreateOFDPacket [18:30:59]OFDProtocolAddRootSTLVToBuf [18:30:59]FM_MakeSignedData [18:30:59]FM_MakeSignedData [18:30:59]SAM_PROTO_SignData [18:30:59]wFMCommunicate request_size=4 [18:30:59]MH_SAM_APDU [18:30:59]CAPDU: 80 0D 01 02 [18:30:59]Write to MH i2c: E2 08 00 3B 03 80 0D 01 02 00 00 00 00 B7 [18:30:59]Write i2c OK [18:30:59]MH_I2C_Read... [18:30:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:30:59]Read from MH i2c: E2 [18:30:59]MH_I2C_Read... [18:30:59]Read from MH i2c: E2 03 00 [18:30:59]MH_I2C_Read... [18:30:59]Read from MH i2c: E2 03 00 3B 03 00 90 00 B2 [18:30:59]RAPDU: 90 00 [18:30:59]wFMCommunicate OK [18:30:59]wFMCommunicate request_size=255 [18:30:59]MH_SAM_APDU [18:30:59]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 E2 0B 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 [18:30:59]Write to MH i2c: E2 02 01 3C 03 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 E2 0B 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 00 00 FC [18:30:59]Write i2c OK [18:30:59]MH_I2C_Read... [18:30:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:30:59]Read from MH i2c: E2 [18:30:59]MH_I2C_Read... [18:30:59]Read from MH i2c: E2 03 00 [18:30:59]MH_I2C_Read... [18:30:59]Read from MH i2c: E2 03 00 3C 03 00 90 00 B3 [18:30:59]RAPDU: 90 00 [18:30:59]wFMCommunicate OK [18:30:59]wFMCommunicate request_size=33 [18:30:59]MH_SAM_APDU [18:30:59]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 35 30 37 34 10 04 04 00 7D F9 00 00 35 04 06 00 31 21 76 EC A0 EA [18:30:59]Write to MH i2c: E2 24 00 3D 03 80 0D 02 02 1C 00 30 30 30 30 38 37 35 30 37 34 10 04 04 00 7D F9 00 00 35 04 06 00 31 21 76 EC A0 EA 00 00 FC [18:30:59]Write i2c OK [18:30:59]MH_I2C_Read... [18:30:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:30:59]Read from MH i2c: E2 [18:30:59]MH_I2C_Read... [18:30:59]Read from MH i2c: E2 03 00 [18:30:59]MH_I2C_Read... [18:30:59]Read from MH i2c: E2 03 00 3D 03 00 90 00 B4 [18:30:59]RAPDU: 90 00 [18:30:59]wFMCommunicate OK [18:30:59]wFMCommunicate request_size=4 [18:30:59]MH_SAM_APDU [18:30:59]CAPDU: 80 0D 03 02 [18:30:59]Write to MH i2c: E2 08 00 3E 03 80 0D 03 02 00 00 00 00 BC [18:30:59]Write i2c OK [18:30:59]MH_I2C_Read... [18:30:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:30:59]Read from MH i2c: E2 [18:30:59]MH_I2C_Read... [18:30:59]Read from MH i2c: E2 0B 00 [18:30:59]MH_I2C_Read... [18:30:59]Read from MH i2c: E2 0B 00 3E 03 00 16 77 C3 8F 94 FB 78 B2 90 00 55 [18:30:59]RAPDU: 16 77 C3 8F 94 FB 78 B2 90 00 [18:30:59]wFMCommunicate OK [18:30:59]SAM_PROTO_SignData done [18:30:59]FM_MakeSignedData done [18:30:59]CreateOFDProtocolMessage [18:30:59]wFMCommunicate request_size=4 [18:30:59]MH_SAM_APDU [18:30:59]CAPDU: 80 11 00 00 [18:30:59]Write to MH i2c: E2 08 00 3F 03 80 11 00 00 00 00 00 00 BC [18:30:59]Write i2c OK [18:30:59]MH_I2C_Read... [18:30:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:30:59]Read from MH i2c: E2 [18:30:59]MH_I2C_Read... [18:30:59]Read from MH i2c: E2 17 00 [18:30:59]MH_I2C_Read... [18:30:59]Read from MH i2c: E2 17 00 3F 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 0E [18:30:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [18:30:59]wFMCommunicate OK [18:30:59]CreateOFDProtocolMessage done [18:30:59]OFDSenderStorePacket 63869 [18:30:59]StoreOFDPacket docnum=63869 [18:30:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 26 01 00 00 EB 8A 1E 01 90 F7 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 E2 0B 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 7D F9 00 00 35 04 06 00 31 21 76 EC A0 EA 16 77 C3 8F 94 FB 78 B2 [18:30:59]CheckFolder [18:30:59]dirname=/storage/ofd_packets [18:30:59]CheckFolder done [18:30:59]ProducePacketName [18:30:59]name=ofd_packets/00063869 [18:30:59]NVStorageSaveData ofd_packets/00063869 [18:30:59]File name is /storage/ofd_packets/00063869 [18:30:59]Write 324 bytes [18:30:59]NVStorageSaveData done [18:30:59]OFDSenderStorePacket done [18:30:59]KKMCreateOFDPacket done [18:30:59]NVStorageSaveData kkm_last_timestamp [18:30:59]File name is /storage/kkm_last_timestamp [18:30:59]Write 4 bytes [18:30:59]NVStorageSaveData done [18:30:59]ExternCall_PrintAddStr [18:30:59]wPrintStart [18:30:59]Write to MH i2c: 01 00 00 40 03 43 [18:30:59]Write i2c OK [18:30:59]MH_I2C_Read... [18:30:59]Read from MH i2c: 01 [18:30:59]MH_I2C_Read... [18:30:59]Read from MH i2c: 01 07 00 [18:30:59]MH_I2C_Read... [18:30:59]Read from MH i2c: 01 07 00 40 03 00 00 00 00 00 FF 0F 58 [18:30:59]RasterBufferAndPrint [18:30:59]line Счет N : (3)73439 [18:30:59]line ИНН: 02508201610067 [18:30:59]line Контрольно-Кассовый Чек [18:30:59]line ПРОДАЖА [18:30:59]line Товар: 2000036240010 [18:30:59]line Кофе Латте (GABB TRADE) [18:30:59]line 1.000 * 115.00 [18:30:59]line = 115.00 [18:30:59]line НДС 12% НСП 1% [18:30:59]line > о реализуемом товаре [18:30:59]line ИТОГО: 115.00 [18:30:59]line НСП 1% : 1.02 [18:30:59]line НДС 12% : 12.21 [18:30:59]line Наличными: 115.00 [18:30:59]line Безнал.: 0.00 [18:30:59]line Место: АЗС № 117 "Партнер Нефть" [18:30:59]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [18:30:59]line СНО: Общий режим [18:30:59]line Чек 127 03.06.2024 18:30 [18:30:59]line Смена: 373 ФФД: 1.0 [18:30:59]line ЗНМ: 0300000031 [18:30:59]line РНМ: 0000000000092737 [18:30:59]line Версия ККМ: 001 [18:30:59]line ФМ: 0000000000875074 [18:30:59]line ФД: 63869 [18:30:59]line ФПД: 54019798900970 [18:31:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T183058&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63869&fm=54019798900970&tin=02508201610067®Number=0000000000092737&sum=11500 [18:31:00]line 0 [18:31:00]OFD Sender: Processing packet 63869 [packets to send 14, broken 13] [18:31:00]ProducePacketName [18:31:00]name=ofd_packets/00063869 [18:31:00]OFD Sender: To server: pG, [18:31:00]CommunicateWithHost lk.salyk.kg:30040 [18:31:00]ConnectInit lk.salyk.kg [18:31:00]written 0, free lines is 4095 [18:31:00]Connected sock=10 [18:31:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 26 01 00 00 EB 8A 1E 01 90 F7 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 E2 0B 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 7D F9 00 00 35 04 06 00 31 21 76 EC A0 EA 16 77 C3 8F 94 FB 78 B2 [18:31:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 3D 49 47 00 AF 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 35 30 37 34 10 04 04 00 7D F9 00 00 F4 03 04 00 B3 B7 5D 66 B6 04 01 00 00 E1 67 8E DF 3B D3 2B 65 [18:31:00]CommunicateWithHost err = 0 [18:31:00]CheckOFDResponse [18:31:00]1017 (14) - 77093643461234 [18:31:00]1041 (16) - 0000000000875074 [18:31:00]1040 (4) - 63869 [18:31:00]1012 (4) - 03.06.2024 12:31 [18:31:00]1206 (1) - 0 [18:31:00]OFD Sender: Remove packet 63869 [18:31:00]ProducePacketName [18:31:00]name=ofd_packets/00063869 [18:31:00]NVStorageDeleteData [18:31:00]Write to MH i2c: 01 00 00 68 03 6B [18:31:00]Write i2c OK [18:31:00]MH_I2C_Read... [18:31:00]Read from MH i2c: 01 [18:31:00]MH_I2C_Read... [18:31:00]Read from MH i2c: 01 07 00 [18:31:00]MH_I2C_Read... [18:31:00]Read from MH i2c: 01 07 00 68 03 00 00 00 00 00 0E 0D 8D [18:31:00]RasterBufferAndPrint [18:31:00]line [18:31:00]line [18:31:00]line [18:31:00]line [18:31:00]line [18:31:00]written 0, free lines is 3348 [18:31:00]MH_Cut [18:31:00]Write to MH i2c: D1 01 00 6F 03 01 44 [18:31:00]Write i2c OK [18:31:00]MH_I2C_Read... [18:31:00]Read from MH i2c: D1 [18:31:00]MH_I2C_Read... [18:31:00]Read from MH i2c: D1 01 00 [18:31:00]MH_I2C_Read... [18:31:00]Read from MH i2c: D1 01 00 6F 03 00 43 [18:31:00]Write to MH i2c: 01 00 00 70 03 73 [18:31:00]Write i2c OK [18:31:00]MH_I2C_Read... [18:31:01]OFD Sender: No OFD packet to send [18:31:01]*** Cut start [18:31:01]*** Partial cut [18:31:01]*** CUTSNS_PIN = 1 [18:31:01]*** CUTSNS_PIN = 0 [18:31:01]*** Brake cut motor [18:31:02]Read from MH i2c: 01 [18:31:02]MH_I2C_Read... [18:31:02]*** Stop cut motor [18:31:02]*** Cut end [18:31:02]Read from MH i2c: 01 07 00 [18:31:02]MH_I2C_Read... [18:31:02]Read from MH i2c: 01 07 00 70 03 00 00 00 00 00 FF 0F 88 [18:31:02]process_action close_receipt done [18:31:02]requested_data is exist [18:31:02]produce_requested_data [18:31:02]requested_item fm.sn is exist - process it [18:31:02]wFMCommunicate request_size=4 [18:31:02]MH_SAM_APDU [18:31:02]CAPDU: 80 11 00 00 [18:31:02]Write to MH i2c: E2 08 00 71 03 80 11 00 00 00 00 00 00 EE [18:31:02]Write i2c OK [18:31:02]MH_I2C_Read... [18:31:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:31:02]Read from MH i2c: E2 [18:31:02]MH_I2C_Read... [18:31:02]Read from MH i2c: E2 17 00 [18:31:02]MH_I2C_Read... [18:31:02]Read from MH i2c: E2 17 00 71 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 40 [18:31:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [18:31:02]wFMCommunicate OK [18:31:02]requested_item fd.num is exist - process it [18:31:02]SAM_PROTO_GetFieldsCounters [18:31:02]wFMCommunicate request_size=4 [18:31:02]MH_SAM_APDU [18:31:02]CAPDU: 80 13 00 00 [18:31:02]Write to MH i2c: E2 08 00 72 03 80 13 00 00 00 00 00 00 F1 [18:31:02]Write i2c OK [18:31:02]MH_I2C_Read... [18:31:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:31:02]Read from MH i2c: E2 [18:31:02]MH_I2C_Read... [18:31:02]Read from MH i2c: E2 62 00 [18:31:02]MH_I2C_Read... [18:31:02]Read from MH i2c: E2 62 00 72 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 7D F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 7F 00 00 00 5E 04 04 00 7F 00 00 00 57 04 04 00 80 00 00 00 19 04 04 00 00 00 00 00 90 00 7D [18:31: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 7D F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 7F 00 00 00 5E 04 04 00 7F 00 00 00 57 04 04 00 80 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:31:02]wFMCommunicate OK [18:31:02]SAM_PROTO_GetFieldsCounters done [18:31:02]requested_item shift.num is exist - process it [18:31:02]requested_item shift.opened is exist - process it [18:31:02]req_shift_opened [18:31:02]FM_GetShiftState [18:31:02]SAM_PROTO_GetShiftState [18:31:02]wFMCommunicate request_size=4 [18:31:02]MH_SAM_APDU [18:31:02]CAPDU: 80 13 01 00 [18:31:02]Write to MH i2c: E2 08 00 73 03 80 13 01 00 00 00 00 00 F3 [18:31:02]Write i2c OK [18:31:02]MH_I2C_Read... [18:31:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:31:02]Read from MH i2c: E2 [18:31:02]MH_I2C_Read... [18:31:02]Read from MH i2c: E2 0E 00 [18:31:02]MH_I2C_Read... [18:31:02]Read from MH i2c: E2 0E 00 73 03 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 BF [18:31:02]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [18:31:02]wFMCommunicate OK [18:31:02]SAM_PROTO_GetShiftState done [18:31:02]FM_GetShiftState done [18:31:02]req_shift_opened done [18:31:02]requested_item shift.open_date is exist - process it [18:31:02]req_shift_open_date [18:31:02]req_shift_open_date done [18:31:02]produce_requested_data done [18:31:02]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63869,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [18:31:02]process_action_free close_receipt [18:31:02]json_value_free [18:31:02]json_value_free done [18:31:02]process_json_proto returns [18:31:02]Send response to host [18:31:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63869,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [18:31:02]free response buf [18:31:02]execute_script done [18:31:02]execute_script returns [18:31:02]free content buf [18:31:02]Sock 9.Close socket [18:31:02]Sock 9.Thread stoped [18:31:06]OFD Sender: No OFD packet to send [18:31:11]OFD Sender: No OFD packet to send [18:31:16]OFD Sender: No OFD packet to send [18:31:21]OFD Sender: No OFD packet to send [18:31:26]OFD Sender: No OFD packet to send [18:31:31]OFD Sender: No OFD packet to send [18:31:36]OFD Sender: No OFD packet to send [18:31:41]OFD Sender: No OFD packet to send [18:31:46]OFD Sender: No OFD packet to send [18:31:51]OFD Sender: No OFD packet to send [18:31:56]OFD Sender: No OFD packet to send [18:32:01]OFD Sender: No OFD packet to send [18:32:06]OFD Sender: No OFD packet to send [18:32:11]OFD Sender: No OFD packet to send [18:32:16]OFD Sender: No OFD packet to send [18:32:21]OFD Sender: No OFD packet to send [18:32:26]OFD Sender: No OFD packet to send [18:32:31]OFD Sender: No OFD packet to send [18:32:36]OFD Sender: No OFD packet to send [18:32:41]OFD Sender: No OFD packet to send [18:32:46]OFD Sender: No OFD packet to send [18:32:51]OFD Sender: No OFD packet to send [18:32:56]OFD Sender: No OFD packet to send [18:33:01]OFD Sender: No OFD packet to send [18:33:06]OFD Sender: No OFD packet to send [18:33:11]OFD Sender: No OFD packet to send [18:33:16]OFD Sender: No OFD packet to send [18:33:21]OFD Sender: No OFD packet to send [18:33:26]OFD Sender: No OFD packet to send [18:33:31]OFD Sender: No OFD packet to send [18:33:36]OFD Sender: No OFD packet to send [18:33:41]OFD Sender: No OFD packet to send [18:33:46]OFD Sender: No OFD packet to send [18:33:51]OFD Sender: No OFD packet to send [18:33:56]OFD Sender: No OFD packet to send [18:34:01]OFD Sender: No OFD packet to send [18:34:06]OFD Sender: No OFD packet to send [18:34:11]OFD Sender: No OFD packet to send [18:34:16]OFD Sender: No OFD packet to send [18:34:21]OFD Sender: No OFD packet to send [18:34:26]OFD Sender: No OFD packet to send [18:34:31]OFD Sender: No OFD packet to send [18:34:36]OFD Sender: No OFD packet to send [18:34:41]OFD Sender: No OFD packet to send [18:34:46]OFD Sender: No OFD packet to send [18:34:51]OFD Sender: No OFD packet to send [18:34:56]OFD Sender: No OFD packet to send [18:35:01]OFD Sender: No OFD packet to send [18:35:06]OFD Sender: No OFD packet to send [18:35:11]OFD Sender: No OFD packet to send [18:35:16]OFD Sender: No OFD packet to send [18:35:21]OFD Sender: No OFD packet to send [18:35:26]OFD Sender: No OFD packet to send [18:35:31]OFD Sender: No OFD packet to send [18:35:36]OFD Sender: No OFD packet to send [18:35:41]OFD Sender: No OFD packet to send [18:35:46]OFD Sender: No OFD packet to send [18:35:51]OFD Sender: No OFD packet to send [18:35:56]OFD Sender: No OFD packet to send [18:36:01]OFD Sender: No OFD packet to send [18:36:06]OFD Sender: No OFD packet to send [18:36:11]OFD Sender: No OFD packet to send [18:36:16]OFD Sender: No OFD packet to send [18:36:21]OFD Sender: No OFD packet to send [18:36:26]OFD Sender: No OFD packet to send [18:36:31]OFD Sender: No OFD packet to send [18:36:36]OFD Sender: No OFD packet to send [18:36:41]OFD Sender: No OFD packet to send [18:36:46]OFD Sender: No OFD packet to send [18:36:51]OFD Sender: No OFD packet to send [18:36:56]OFD Sender: No OFD packet to send [18:37:01]OFD Sender: No OFD packet to send [18:37:04]accept exits with 7 [18:37:04]New connection [18:37:04]New thread 3066576228 created [18:37:04]Thread 3066719588 joined [18:37:04]Waiting for new connection... [18:37:04] Sock 7.Parse request [18:37:04]Sock 7.Check first char [18:37:04]Sock 7.First char is OK [18:37:04]request: POST /json_proto HTTP/1.0 [18:37:04]Method: POST [18:37:04]URL: /json_proto [18:37:04]Method is POST - this is cgi request [18:37:04]url: /json_proto [18:37:04]query_string will be loaded in cgi processing [18:37:04]execute_cgi json_proto POST (null) [18:37:04]execute_cgi path=json_proto method=POST [18:37:04]POST find Content-Length [18:37:04]Host: 172.17.60.69:8080 [18:37:04]Content-Length: 685 [18:37:04]Content-Type: application/json [18:37:04] [18:37:04]POST finish read [18:37:04]Found Content-Length = 685 [18:37:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 63869, "base_FM": "0000000000875074", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73439", "tax_sys" : 0, "items" : [ { "code": "2000036240010", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 115.00 } ], "post_footer_text": "63869" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:37:04]execute_script... [18:37:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 63869, "base_FM": "0000000000875074", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73439", "tax_sys" : 0, "items" : [ { "code": "2000036240010", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 115.00 } ], "post_footer_text": "63869" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:37:04]POST & json_proto [18:37:04]process_json_proto [18:37:04]json parsed OK: [18:37:04]protocol is kg_v1.0 [18:37:04]action value=close_receipt [18:37:04]process_action close_receipt [18:37:04]cmd_close_receipt [18:37:04]MH_GetDate [18:37:04]Write to MH i2c: F0 00 00 74 03 66 [18:37:04]Write i2c OK [18:37:04]MH_I2C_Read... [18:37:04]Read from MH i2c: F0 [18:37:04]MH_I2C_Read... [18:37:04]Read from MH i2c: F0 09 00 [18:37:04]MH_I2C_Read... [18:37:04]Read from MH i2c: F0 09 00 74 03 00 50 0D 5E 66 6A 96 4A 66 40 [18:37:04]GetLastDocTimeStamp 1717439458 [18:37:04]current date 1717439824 [18:37:04]FM_GetShiftState [18:37:04]SAM_PROTO_GetShiftState [18:37:04]wFMCommunicate request_size=4 [18:37:04]MH_SAM_APDU [18:37:04]CAPDU: 80 13 01 00 [18:37:04]Write to MH i2c: E2 08 00 75 03 80 13 01 00 00 00 00 00 F5 [18:37:04]Write i2c OK [18:37:04]MH_I2C_Read... [18:37:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:37:04]Read from MH i2c: E2 [18:37:04]MH_I2C_Read... [18:37:04]Read from MH i2c: E2 0E 00 [18:37:04]MH_I2C_Read... [18:37:04]Read from MH i2c: E2 0E 00 75 03 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 C1 [18:37:04]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [18:37:04]wFMCommunicate OK [18:37:04]SAM_PROTO_GetShiftState done [18:37:04]FM_GetShiftState done [18:37:04]opened in 1717373173 [18:37:04]opened+sec_in_day 1717459573 [18:37:04]quantity*price = 11500 [18:37:04]sum+1 = 11501 [18:37:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 115.00 НСП 1% : 1.02 НДС 12% : 12.21 Наличными: 115.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 128 03.06.2024 18:37 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФД осн.: 63869 ФМ осн.: 0000000000875074 ФМ: 0000000000875074 ФД: 63870 ФПД: 12908522906017 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T183704&type=2&operation_type=1&fn_number=0000000000875074&fd_number=63870&fm=12908522906017&tin=02508201610067®Number=0000000000092737&sum=11500 63869 [18:37:05]StoreToDocumentArchive [18:37:05]shift 373 fd 63870 [18:37:05]save to /storage/0373/doc_00063870 [18:37:05]save last doc name /storage/0373/doc_00063870 to /storage/kkm_last_doc_name [18:37:05]save OK [18:37:05]Clear old archive folders... [18:37:05]ProcessDocumentItem done err = 0, tmpTLVsize=302 [18:37:05]tlvbuf is 00AD33D0 [18:37:05]SAM_PROTO_ClearQueue [18:37:05]wFMCommunicate request_size=4 [18:37:05]MH_SAM_APDU [18:37:05]CAPDU: 80 09 00 00 [18:37:05]Write to MH i2c: E2 08 00 84 03 80 09 00 00 00 00 00 00 F9 [18:37:05]Write i2c OK [18:37:05]MH_I2C_Read... [18:37:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:37:05]Read from MH i2c: E2 [18:37:05]MH_I2C_Read... [18:37:05]Read from MH i2c: E2 03 00 [18:37:05]MH_I2C_Read... [18:37:05]Read from MH i2c: E2 03 00 84 03 00 90 00 FB [18:37:05]RAPDU: 90 00 [18:37:05]wFMCommunicate OK [18:37:05]SAM_PROTO_ClearQueue done [18:37:05]KKMCreateOFDPacket [18:37:05]OFDProtocolAddRootSTLVToBuf [18:37:05]FM_MakeSignedData [18:37:05]FM_MakeSignedData [18:37:05]SAM_PROTO_SignData [18:37:05]wFMCommunicate request_size=4 [18:37:05]MH_SAM_APDU [18:37:05]CAPDU: 80 0D 01 02 [18:37:05]Write to MH i2c: E2 08 00 85 03 80 0D 01 02 00 00 00 00 01 [18:37:05]Write i2c OK [18:37:05]MH_I2C_Read... [18:37:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:37:05]Read from MH i2c: E2 [18:37:05]MH_I2C_Read... [18:37:05]Read from MH i2c: E2 03 00 [18:37:05]MH_I2C_Read... [18:37:05]Read from MH i2c: E2 03 00 85 03 00 90 00 FC [18:37:05]RAPDU: 90 00 [18:37:05]wFMCommunicate OK [18:37:05]wFMCommunicate request_size=255 [18:37:05]MH_SAM_APDU [18:37:05]CAPDU: 80 0D 02 02 FA 03 00 2E 01 1E 04 01 00 02 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 50 0D 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 27 04 04 00 7D F9 00 00 28 04 [18:37:05]Write to MH i2c: E2 02 01 86 03 80 0D 02 02 FA 00 03 00 2E 01 1E 04 01 00 02 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 50 0D 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 27 04 04 00 7D F9 00 00 28 04 00 00 60 [18:37:05]Write i2c OK [18:37:05]MH_I2C_Read... [18:37:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:37:05]Read from MH i2c: E2 [18:37:05]MH_I2C_Read... [18:37:05]Read from MH i2c: E2 03 00 [18:37:05]MH_I2C_Read... [18:37:05]Read from MH i2c: E2 03 00 86 03 00 90 00 FD [18:37:05]RAPDU: 90 00 [18:37:05]wFMCommunicate OK [18:37:05]wFMCommunicate request_size=61 [18:37:05]MH_SAM_APDU [18:37:05]CAPDU: 80 0D 02 02 38 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 7E F9 00 00 35 04 06 00 0B BD 7F EC 21 A1 [18:37:05]Write to MH i2c: E2 40 00 87 03 80 0D 02 02 38 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 7E F9 00 00 35 04 06 00 0B BD 7F EC 21 A1 00 00 AA [18:37:05]Write i2c OK [18:37:05]MH_I2C_Read... [18:37:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:37:05]Read from MH i2c: E2 [18:37:05]MH_I2C_Read... [18:37:05]Read from MH i2c: E2 03 00 [18:37:05]MH_I2C_Read... [18:37:05]Read from MH i2c: E2 03 00 87 03 00 90 00 FE [18:37:05]RAPDU: 90 00 [18:37:05]wFMCommunicate OK [18:37:05]wFMCommunicate request_size=4 [18:37:05]MH_SAM_APDU [18:37:05]CAPDU: 80 0D 03 02 [18:37:05]Write to MH i2c: E2 08 00 88 03 80 0D 03 02 00 00 00 00 06 [18:37:05]Write i2c OK [18:37:05]MH_I2C_Read... [18:37:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:37:05]Read from MH i2c: E2 [18:37:05]MH_I2C_Read... [18:37:05]Read from MH i2c: E2 0B 00 [18:37:05]MH_I2C_Read... [18:37:05]Read from MH i2c: E2 0B 00 88 03 00 8E 89 C8 6F E3 92 4F C4 90 00 DD [18:37:05]RAPDU: 8E 89 C8 6F E3 92 4F C4 90 00 [18:37:05]wFMCommunicate OK [18:37:05]SAM_PROTO_SignData done [18:37:05]FM_MakeSignedData done [18:37:05]CreateOFDProtocolMessage [18:37:05]wFMCommunicate request_size=4 [18:37:05]MH_SAM_APDU [18:37:05]CAPDU: 80 11 00 00 [18:37:05]Write to MH i2c: E2 08 00 89 03 80 11 00 00 00 00 00 00 06 [18:37:05]Write i2c OK [18:37:05]MH_I2C_Read... [18:37:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:37:05]Read from MH i2c: E2 [18:37:05]MH_I2C_Read... [18:37:05]Read from MH i2c: E2 17 00 [18:37:05]MH_I2C_Read... [18:37:05]Read from MH i2c: E2 17 00 89 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 58 [18:37:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [18:37:05]wFMCommunicate OK [18:37:05]CreateOFDProtocolMessage done [18:37:05]OFDSenderStorePacket 63870 [18:37:05]StoreOFDPacket docnum=63870 [18:37:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 42 01 00 00 A0 8B 3A 01 43 36 5A 03 01 00 03 00 2E 01 1E 04 01 00 02 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 50 0D 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 27 04 04 00 7D F9 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 7E F9 00 00 35 04 06 00 0B BD 7F EC 21 A1 8E 89 C8 6F E3 92 4F C4 [18:37:05]CheckFolder [18:37:05]dirname=/storage/ofd_packets [18:37:05]CheckFolder done [18:37:05]ProducePacketName [18:37:05]name=ofd_packets/00063870 [18:37:05]NVStorageSaveData ofd_packets/00063870 [18:37:05]File name is /storage/ofd_packets/00063870 [18:37:05]Write 352 bytes [18:37:05]NVStorageSaveData done [18:37:05]OFDSenderStorePacket done [18:37:05]KKMCreateOFDPacket done [18:37:05]NVStorageSaveData kkm_last_timestamp [18:37:05]File name is /storage/kkm_last_timestamp [18:37:05]Write 4 bytes [18:37:05]NVStorageSaveData done [18:37:05]ExternCall_PrintAddStr [18:37:05]wPrintStart [18:37:05]Write to MH i2c: 01 00 00 8A 03 8D [18:37:05]Write i2c OK [18:37:05]MH_I2C_Read... [18:37:05]Read from MH i2c: 01 [18:37:05]MH_I2C_Read... [18:37:05]Read from MH i2c: 01 07 00 [18:37:05]MH_I2C_Read... [18:37:05]Read from MH i2c: 01 07 00 8A 03 00 00 00 00 00 FF 0F A2 [18:37:05]RasterBufferAndPrint [18:37:05]line Счет N : (3)73439 [18:37:05]line ИНН: 02508201610067 [18:37:05]line Контрольно-Кассовый Чек [18:37:05]line ВОЗВРАТ ПРОДАЖИ [18:37:05]line Товар: 2000036240010 [18:37:05]line Кофе Латте (GABB TRADE) [18:37:05]line 1.000 * 115.00 [18:37:05]line = 115.00 [18:37:05]line НДС 12% НСП 1% [18:37:05]line > о реализуемом товаре [18:37:05]line ИТОГО: 115.00 [18:37:05]line НСП 1% : 1.02 [18:37:05]line НДС 12% : 12.21 [18:37:05]line Наличными: 115.00 [18:37:05]line Безнал.: 0.00 [18:37:05]line Место: АЗС № 117 "Партнер Нефть" [18:37:06]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [18:37:06]line СНО: Общий режим [18:37:06]line Чек 128 03.06.2024 18:37 [18:37:06]line Смена: 373 ФФД: 1.0 [18:37:06]line ЗНМ: 0300000031 [18:37:06]line РНМ: 0000000000092737 [18:37:06]line Версия ККМ: 001 [18:37:06]line ФД осн.: 63869 [18:37:06]line ФМ осн.: 0000000000875074 [18:37:06]line ФМ: 0000000000875074 [18:37:06]line ФД: 63870 [18:37:06]line ФПД: 12908522906017 [18:37:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T183704&type=2&operation_type=1&fn_number=0000000000875074&fd_number=63870&fm=12908522906017&tin=02508201610067®Number=0000000000092737&sum=11500 [18:37:06]line 63869 [18:37:06]OFD Sender: Processing packet 63870 [packets to send 14, broken 13] [18:37:06]ProducePacketName [18:37:06]name=ofd_packets/00063870 [18:37:06]OFD Sender: To server: pG, [18:37:06]CommunicateWithHost lk.salyk.kg:30040 [18:37:06]ConnectInit lk.salyk.kg [18:37:06]written 0, free lines is 4095 [18:37:06]Connected sock=10 [18:37:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 42 01 00 00 A0 8B 3A 01 43 36 5A 03 01 00 03 00 2E 01 1E 04 01 00 02 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 50 0D 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 27 04 04 00 7D F9 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 7E F9 00 00 35 04 06 00 0B BD 7F EC 21 A1 8E 89 C8 6F E3 92 4F C4 [18:37:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 1C E9 47 00 2E B3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 7E F9 00 00 F4 03 04 00 21 B9 5D 66 B6 04 01 00 00 FB 5D 17 11 CD 7D E0 F8 [18:37:06]CommunicateWithHost err = 0 [18:37:06]CheckOFDResponse [18:37:06]1017 (14) - 77093643461234 [18:37:06]1041 (16) - 0000000000875074 [18:37:06]1040 (4) - 63870 [18:37:06]1012 (4) - 03.06.2024 12:37 [18:37:06]1206 (1) - 0 [18:37:06]OFD Sender: Remove packet 63870 [18:37:06]ProducePacketName [18:37:06]name=ofd_packets/00063870 [18:37:06]NVStorageDeleteData [18:37:06]Write to MH i2c: 01 00 00 B4 03 B7 [18:37:06]Write i2c OK [18:37:06]MH_I2C_Read... [18:37:06]Read from MH i2c: 01 [18:37:06]MH_I2C_Read... [18:37:06]Read from MH i2c: 01 07 00 [18:37:06]MH_I2C_Read... [18:37:06]Read from MH i2c: 01 07 00 B4 03 00 00 00 00 00 F6 0C C0 [18:37:06]RasterBufferAndPrint [18:37:06]line [18:37:06]line [18:37:06]line [18:37:06]line [18:37:06]line [18:37:06]written 0, free lines is 3325 [18:37:06]MH_Cut [18:37:06]Write to MH i2c: D1 01 00 BB 03 01 90 [18:37:06]Write i2c OK [18:37:06]MH_I2C_Read... [18:37:06]Read from MH i2c: D1 [18:37:06]MH_I2C_Read... [18:37:06]Read from MH i2c: D1 01 00 [18:37:06]MH_I2C_Read... [18:37:06]Read from MH i2c: D1 01 00 BB 03 00 8F [18:37:06]Write to MH i2c: 01 00 00 BC 03 BF [18:37:06]Write i2c OK [18:37:06]MH_I2C_Read... [18:37:06]OFD Sender: No OFD packet to send [18:37:07]*** Cut start [18:37:07]*** Partial cut [18:37:07]*** CUTSNS_PIN = 1 [18:37:07]*** CUTSNS_PIN = 0 [18:37:07]*** Brake cut motor [18:37:08]Read from MH i2c: 01 [18:37:08]MH_I2C_Read... [18:37:08]*** Stop cut motor [18:37:08]*** Cut end [18:37:08]Read from MH i2c: 01 07 00 [18:37:08]MH_I2C_Read... [18:37:08]Read from MH i2c: 01 07 00 BC 03 00 00 00 00 00 FF 0F D4 [18:37:08]process_action close_receipt done [18:37:08]requested_data is exist [18:37:08]produce_requested_data [18:37:08]requested_item fm.sn is exist - process it [18:37:08]wFMCommunicate request_size=4 [18:37:08]MH_SAM_APDU [18:37:08]CAPDU: 80 11 00 00 [18:37:08]Write to MH i2c: E2 08 00 BD 03 80 11 00 00 00 00 00 00 3A [18:37:08]Write i2c OK [18:37:08]MH_I2C_Read... [18:37:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:37:08]Read from MH i2c: E2 [18:37:08]MH_I2C_Read... [18:37:08]Read from MH i2c: E2 17 00 [18:37:08]MH_I2C_Read... [18:37:08]Read from MH i2c: E2 17 00 BD 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 8C [18:37:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [18:37:08]wFMCommunicate OK [18:37:08]requested_item fd.num is exist - process it [18:37:08]SAM_PROTO_GetFieldsCounters [18:37:08]wFMCommunicate request_size=4 [18:37:08]MH_SAM_APDU [18:37:08]CAPDU: 80 13 00 00 [18:37:08]Write to MH i2c: E2 08 00 BE 03 80 13 00 00 00 00 00 00 3D [18:37:08]Write i2c OK [18:37:08]MH_I2C_Read... [18:37:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:37:08]Read from MH i2c: E2 [18:37:08]MH_I2C_Read... [18:37:08]Read from MH i2c: E2 62 00 [18:37:08]MH_I2C_Read... [18:37:08]Read from MH i2c: E2 62 00 BE 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 7E F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 80 00 00 00 5E 04 04 00 80 00 00 00 57 04 04 00 81 00 00 00 19 04 04 00 00 00 00 00 90 00 CD [18:37: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 7E F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 80 00 00 00 5E 04 04 00 80 00 00 00 57 04 04 00 81 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:37:08]wFMCommunicate OK [18:37:08]SAM_PROTO_GetFieldsCounters done [18:37:08]requested_item shift.num is exist - process it [18:37:08]requested_item shift.opened is exist - process it [18:37:08]req_shift_opened [18:37:08]FM_GetShiftState [18:37:08]SAM_PROTO_GetShiftState [18:37:08]wFMCommunicate request_size=4 [18:37:08]MH_SAM_APDU [18:37:08]CAPDU: 80 13 01 00 [18:37:08]Write to MH i2c: E2 08 00 BF 03 80 13 01 00 00 00 00 00 3F [18:37:08]Write i2c OK [18:37:08]MH_I2C_Read... [18:37:08]Read from MH i2c: E2 [18:37:08]MH_I2C_Read... [18:37:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:37:08]Read from MH i2c: E2 0E 00 [18:37:08]MH_I2C_Read... [18:37:08]Read from MH i2c: E2 0E 00 BF 03 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 0B [18:37:08]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [18:37:08]wFMCommunicate OK [18:37:08]SAM_PROTO_GetShiftState done [18:37:08]FM_GetShiftState done [18:37:08]req_shift_opened done [18:37:08]requested_item shift.open_date is exist - process it [18:37:08]req_shift_open_date [18:37:08]req_shift_open_date done [18:37:08]produce_requested_data done [18:37:08]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63870,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [18:37:08]process_action_free close_receipt [18:37:08]json_value_free [18:37:08]json_value_free done [18:37:08]process_json_proto returns [18:37:08]Send response to host [18:37:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63870,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [18:37:08]free response buf [18:37:08]execute_script done [18:37:08]execute_script returns [18:37:08]free content buf [18:37:08]Sock 7.Close socket [18:37:08]Sock 7.Thread stoped [18:37:11]OFD Sender: No OFD packet to send [18:37:16]OFD Sender: No OFD packet to send [18:37:21]OFD Sender: No OFD packet to send [18:37:26]OFD Sender: No OFD packet to send [18:37:31]OFD Sender: No OFD packet to send [18:37:36]OFD Sender: No OFD packet to send [18:37: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:47]accept exits with 9 [18:38:47]New connection [18:38:47]New thread 3066719588 created [18:38:47]Thread 3066576228 joined [18:38:47]Waiting for new connection... [18:38:47] Sock 9.Parse request [18:38:47]Sock 9.Check first char [18:38:47]Sock 9.First char is OK [18:38:47]request: POST /json_proto HTTP/1.0 [18:38:47]Method: POST [18:38:47]URL: /json_proto [18:38:47]Method is POST - this is cgi request [18:38:47]url: /json_proto [18:38:47]query_string will be loaded in cgi processing [18:38:47]execute_cgi json_proto POST (null) [18:38:47]execute_cgi path=json_proto method=POST [18:38:47]POST find Content-Length [18:38:47]Host: 172.17.60.69:8080 [18:38:47]Content-Length: 215 [18:38:47]Content-Type: application/json [18:38:47] [18:38:47]POST finish read [18:38:47]Found Content-Length = 215 [18:38:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:38:47]execute_script... [18:38:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:38:47]POST & json_proto [18:38:47]process_json_proto [18:38:47]json parsed OK: [18:38:47]protocol is kg_v1.0 [18:38:47]action value=get_value [18:38:47]process_action get_value [18:38:47]cmd_get_value [18:38:47]process_action get_value done [18:38:47]requested_data is exist [18:38:47]produce_requested_data [18:38:47]requested_item kkm.sn is exist - process it [18:38:47]requested_item kkm.ver is exist - process it [18:38:47]requested_item fm.sn is exist - process it [18:38:47]wFMCommunicate request_size=4 [18:38:47]MH_SAM_APDU [18:38:47]CAPDU: 80 11 00 00 [18:38:47]Write to MH i2c: E2 08 00 C0 03 80 11 00 00 00 00 00 00 3D [18:38:47]Write i2c OK [18:38:47]MH_I2C_Read... [18:38:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:38:47]Read from MH i2c: E2 [18:38:47]MH_I2C_Read... [18:38:47]Read from MH i2c: E2 17 00 [18:38:47]MH_I2C_Read... [18:38:47]Read from MH i2c: E2 17 00 C0 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 8F [18:38:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [18:38:47]wFMCommunicate OK [18:38:47]requested_item fd.num is exist - process it [18:38:47]SAM_PROTO_GetFieldsCounters [18:38:47]wFMCommunicate request_size=4 [18:38:47]MH_SAM_APDU [18:38:47]CAPDU: 80 13 00 00 [18:38:47]Write to MH i2c: E2 08 00 C1 03 80 13 00 00 00 00 00 00 40 [18:38:47]Write i2c OK [18:38:47]MH_I2C_Read... [18:38:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:38:47]Read from MH i2c: E2 [18:38:47]MH_I2C_Read... [18:38:47]Read from MH i2c: E2 62 00 [18:38:47]MH_I2C_Read... [18:38:47]Read from MH i2c: E2 62 00 C1 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 7E F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 80 00 00 00 5E 04 04 00 80 00 00 00 57 04 04 00 81 00 00 00 19 04 04 00 00 00 00 00 90 00 D0 [18: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 7E F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 80 00 00 00 5E 04 04 00 80 00 00 00 57 04 04 00 81 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:38:47]wFMCommunicate OK [18:38:47]SAM_PROTO_GetFieldsCounters done [18:38:47]requested_item shift.num is exist - process it [18:38:47]requested_item shift.opened is exist - process it [18:38:47]req_shift_opened [18:38:47]FM_GetShiftState [18:38:47]SAM_PROTO_GetShiftState [18:38:47]wFMCommunicate request_size=4 [18:38:47]MH_SAM_APDU [18:38:47]CAPDU: 80 13 01 00 [18:38:47]Write to MH i2c: E2 08 00 C2 03 80 13 01 00 00 00 00 00 42 [18:38:47]Write i2c OK [18:38:47]MH_I2C_Read... [18:38:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:38:47]Read from MH i2c: E2 [18:38:47]MH_I2C_Read... [18:38:47]Read from MH i2c: E2 0E 00 [18:38:47]MH_I2C_Read... [18:38:47]Read from MH i2c: E2 0E 00 C2 03 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 0E [18:38:47]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [18:38:47]wFMCommunicate OK [18:38:47]SAM_PROTO_GetShiftState done [18:38:47]FM_GetShiftState done [18:38:47]req_shift_opened done [18:38:47]requested_item shift.open_date is exist - process it [18:38:47]req_shift_open_date [18:38:47]req_shift_open_date done [18:38:47]produce_requested_data done [18:38:47]produce_requested_data return {"kkm.sn":"0300000031","kkm.ver":"001","fm.sn":"0000000000875074","fd.num":63870,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [18:38:47]process_action_free get_value [18:38:47]json_value_free [18:38:47]json_value_free done [18:38:47]process_json_proto returns [18:38:47]Send response to host [18:38:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000031","kkm.ver":"001","fm.sn":"0000000000875074","fd.num":63870,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [18:38:47]free response buf [18:38:47]execute_script done [18:38:47]execute_script returns [18:38:47]free content buf [18:38:47]Sock 9.Close socket [18:38:47]Sock 9.Thread stoped [18:38:50]accept exits with 7 [18:38:50]New connection [18:38:50]New thread 3066576228 created [18:38:50]Thread 3066719588 joined [18:38:50]Waiting for new connection... [18:38:50] Sock 7.Parse request [18:38:50]Sock 7.Check first char [18:38:50]Sock 7.First char is OK [18:38:50]request: POST /json_proto HTTP/1.0 [18:38:50]Method: POST [18:38:50]URL: /json_proto [18:38:50]Method is POST - this is cgi request [18:38:50]url: /json_proto [18:38:50]query_string will be loaded in cgi processing [18:38:50]execute_cgi json_proto POST (null) [18:38:50]execute_cgi path=json_proto method=POST [18:38:50]POST find Content-Length [18:38:50]Host: 172.17.60.69:8080 [18:38:50]Content-Length: 331 [18:38:50]Content-Type: application/json [18:38:50] [18:38:50]POST finish read [18:38:50]Found Content-Length = 331 [18:38:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [18:38:50]execute_script... [18:38:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [18:38:50]POST & json_proto [18:38:50]process_json_proto [18:38:50]json parsed OK: [18:38:50]protocol is kg_v1.0 [18:38:50]action value=get_value [18:38:50]process_action get_value [18:38:50]cmd_get_value [18:38:50]process_action get_value done [18:38:50]requested_data is exist [18:38:50]produce_requested_data [18:38:50]requested_item fm.sale.total is exist - process it [18:38:50]SAM_PROTO_GetFMData [18:38:50]wFMCommunicate request_size=4 [18:38:50]MH_SAM_APDU [18:38:50]CAPDU: 80 13 03 00 [18:38:50]Write to MH i2c: E2 08 00 C3 03 80 13 03 00 00 00 00 00 45 [18:38:50]Write i2c OK [18:38:50]MH_I2C_Read... [18:38:50]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [18:38:50]Read from MH i2c: E2 [18:38:50]MH_I2C_Read... [18:38:50]Read from MH i2c: E2 FD 00 [18:38:50]MH_I2C_Read... [18:38:50]Read from MH i2c: E2 FD 00 C3 03 00 C5 04 85 04 C1 04 6E 04 04 00 94 F6 00 00 69 04 A1 00 6F 04 04 00 34 F4 00 00 B1 04 04 00 41 11 B5 76 70 04 04 00 C6 74 FA 65 72 04 04 00 7B 9C BA 10 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 3C 93 9B 0C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 46 E3 0C 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 60 02 00 00 B1 04 04 00 E4 BA 80 03 70 04 04 00 60 5F 65 03 72 04 03 00 84 5B 1B 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 84 3C 5F EF 03 09 90 00 7F [18:38:50]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 94 F6 00 00 69 04 A1 00 6F 04 04 00 34 F4 00 00 B1 04 04 00 41 11 B5 76 70 04 04 00 C6 74 FA 65 72 04 04 00 7B 9C BA 10 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 3C 93 9B 0C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 46 E3 0C 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 60 02 00 00 B1 04 04 00 E4 BA 80 03 70 04 04 00 60 5F 65 03 72 04 03 00 84 5B 1B 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 84 3C 5F EF 03 09 90 00 [18:38:50]wFMCommunicate OK [18:38:50]wFMCommunicate request_size=4 [18:38:50]MH_SAM_APDU [18:38:50]CAPDU: 80 17 00 00 [18:38:50]Write to MH i2c: E2 08 00 C4 03 80 17 00 00 00 00 00 00 47 [18:38:50]Write i2c OK [18:38:50]MH_I2C_Read... [18:38:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:38:51]Read from MH i2c: E2 [18:38:51]MH_I2C_Read... [18:38:51]Read from MH i2c: E2 FD 00 [18:38:51]MH_I2C_Read... [18:38:51]Read from MH i2c: E2 FD 00 C4 03 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 7A EF 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 6D [18:38:51]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 7A EF 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [18:38:51]wFMCommunicate OK [18:38:51]wFMCommunicate request_size=4 [18:38:51]MH_SAM_APDU [18:38:51]CAPDU: 80 17 00 00 [18:38:51]Write to MH i2c: E2 08 00 C5 03 80 17 00 00 00 00 00 00 48 [18:38:51]Write i2c OK [18:38:51]MH_I2C_Read... [18:38:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:38:51]Read from MH i2c: E2 [18:38:51]MH_I2C_Read... [18:38:51]Read from MH i2c: E2 FD 00 [18:38:51]MH_I2C_Read... [18:38:51]Read from MH i2c: E2 FD 00 C5 03 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 5A [18:38:51]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [18:38:51]wFMCommunicate OK [18:38:51]wFMCommunicate request_size=4 [18:38:51]MH_SAM_APDU [18:38:51]CAPDU: 80 17 00 00 [18:38:51]Write to MH i2c: E2 08 00 C6 03 80 17 00 00 00 00 00 00 49 [18:38:51]Write i2c OK [18:38:51]MH_I2C_Read... [18:38:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:38:51]Read from MH i2c: E2 [18:38:51]MH_I2C_Read... [18:38:51]Read from MH i2c: E2 FD 00 [18:38:51]MH_I2C_Read... [18:38:51]Read from MH i2c: E2 FD 00 C6 03 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 D5 [18:38:51]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [18:38:51]wFMCommunicate OK [18:38:51]wFMCommunicate request_size=4 [18:38:51]MH_SAM_APDU [18:38:51]CAPDU: 80 17 00 00 [18:38:51]Write to MH i2c: E2 08 00 C7 03 80 17 00 00 00 00 00 00 4A [18:38:51]Write i2c OK [18:38:51]MH_I2C_Read... [18:38:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [18:38:51]Read from MH i2c: E2 [18:38:51]MH_I2C_Read... [18:38:51]Read from MH i2c: E2 E2 00 [18:38:51]MH_I2C_Read... [18:38:51]Read from MH i2c: E2 E2 00 C7 03 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 28 [18:38:52]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [18:38:52]wFMCommunicate OK [18:38:52]SAM_PROTO_GetFMData done [18:38:52]requested_item fm.sale_refund.total is exist - process it [18:38:52]requested_item fm.buy.total is exist - process it [18:38:52]requested_item shift.sale.total is exist - process it [18:38:52]SAM_PROTO_GetShiftData [18:38:52]wFMCommunicate request_size=4 [18:38:52]MH_SAM_APDU [18:38:52]CAPDU: 80 13 02 00 [18:38:52]Write to MH i2c: E2 08 00 C8 03 80 13 02 00 00 00 00 00 49 [18:38:52]Write i2c OK [18:38:52]MH_I2C_Read... [18:38:52]OFD Sender: No OFD packet to send [18:38:52]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [18:38:52]Read from MH i2c: E2 [18:38:52]MH_I2C_Read... [18:38:52]Read from MH i2c: E2 FD 00 [18:38:52]MH_I2C_Read... [18:38:52]Read from MH i2c: E2 FD 00 C8 03 00 B8 04 AA 04 B4 04 6E 04 04 00 80 00 00 00 69 04 9B 00 6F 04 04 00 7D 00 00 00 B1 04 03 00 54 1C 3D 70 04 03 00 C0 D9 2E 72 04 03 00 94 42 0E 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 8C 7D 06 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 72 8A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 03 00 00 00 B1 04 03 00 80 A9 03 70 04 03 00 80 A9 03 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 92 63 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 EB [18:38:52]RAPDU: B8 04 AA 04 B4 04 6E 04 04 00 80 00 00 00 69 04 9B 00 6F 04 04 00 7D 00 00 00 B1 04 03 00 54 1C 3D 70 04 03 00 C0 D9 2E 72 04 03 00 94 42 0E 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 8C 7D 06 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 72 8A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 03 00 00 00 B1 04 03 00 80 A9 03 70 04 03 00 80 A9 03 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 92 63 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 [18:38:52]wFMCommunicate OK [18:38:52]wFMCommunicate request_size=4 [18:38:52]MH_SAM_APDU [18:38:52]CAPDU: 80 17 00 00 [18:38:52]Write to MH i2c: E2 08 00 C9 03 80 17 00 00 00 00 00 00 4C [18:38:52]Write i2c OK [18:38:52]MH_I2C_Read... [18:38:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:38:52]Read from MH i2c: E2 [18:38:52]MH_I2C_Read... [18:38:52]Read from MH i2c: E2 FD 00 [18:38:52]MH_I2C_Read... [18:38:52]Read from MH i2c: E2 FD 00 C9 03 00 0B 00 F6 03 01 00 01 F7 03 02 00 4C 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 90 00 D1 [18:38:52]RAPDU: 0B 00 F6 03 01 00 01 F7 03 02 00 4C 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 90 00 [18:38:52]wFMCommunicate OK [18:38:52]wFMCommunicate request_size=4 [18:38:52]MH_SAM_APDU [18:38:52]CAPDU: 80 17 00 00 [18:38:52]Write to MH i2c: E2 08 00 CA 03 80 17 00 00 00 00 00 00 4D [18:38:52]Write i2c OK [18:38:52]MH_I2C_Read... [18:38:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:38:53]Read from MH i2c: E2 [18:38:53]MH_I2C_Read... [18:38:53]Read from MH i2c: E2 FD 00 [18:38:53]MH_I2C_Read... [18:38:53]Read from MH i2c: E2 FD 00 CA 03 00 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 90 00 EF [18:38:53]RAPDU: 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 90 00 [18:38:53]wFMCommunicate OK [18:38:53]wFMCommunicate request_size=4 [18:38:53]MH_SAM_APDU [18:38:53]CAPDU: 80 17 00 00 [18:38:53]Write to MH i2c: E2 08 00 CB 03 80 17 00 00 00 00 00 00 4E [18:38:53]Write i2c OK [18:38:53]MH_I2C_Read... [18:38:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:38:53]Read from MH i2c: E2 [18:38:53]MH_I2C_Read... [18:38:53]Read from MH i2c: E2 FD 00 [18:38:53]MH_I2C_Read... [18:38:53]Read from MH i2c: E2 FD 00 CB 03 00 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 90 00 D7 [18:38:53]RAPDU: 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 90 00 [18:38:53]wFMCommunicate OK [18:38:53]wFMCommunicate request_size=4 [18:38:53]MH_SAM_APDU [18:38:53]CAPDU: 80 17 00 00 [18:38:53]Write to MH i2c: E2 08 00 CC 03 80 17 00 00 00 00 00 00 4F [18:38:53]Write i2c OK [18:38:53]MH_I2C_Read... [18:38:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 210! [18:38:53]Read from MH i2c: E2 [18:38:53]MH_I2C_Read... [18:38:53]Read from MH i2c: E2 D5 00 [18:38:53]MH_I2C_Read... [18:38:53]Read from MH i2c: E2 D5 00 CC 03 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 30 [18:38:53]RAPDU: EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [18:38:53]wFMCommunicate OK [18:38:53]SAM_PROTO_GetShiftData done [18:38:53]requested_item shift.sale.total_cash is exist - process it [18:38:53]requested_item shift.sale_refund.total is exist - process it [18:38:53]requested_item shift.sale_refund.total_cash is exist - process it [18:38:53]requested_item shift.buy.total is exist - process it [18:38:53]requested_item shift.buy.total_cash is exist - process it [18:38:53]produce_requested_data done [18:38:53]produce_requested_data return {"fm.sale.total":19915779.21,"fm.sale_refund.total":587681.00,"fm.buy.total":0.00,"shift.sale.total":40049.48,"shift.sale.total_cash":30704.00,"shift.sale_refund.total":2400.00,"shift.sale_refund.total_cash":2400.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [18:38:53]process_action_free get_value [18:38:53]json_value_free [18:38:53]json_value_free done [18:38:53]process_json_proto returns [18:38:53]Send response to host [18:38:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":19915779.21,"fm.sale_refund.total":587681.00,"fm.buy.total":0.00,"shift.sale.total":40049.48,"shift.sale.total_cash":30704.00,"shift.sale_refund.total":2400.00,"shift.sale_refund.total_cash":2400.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [18:38:53]free response buf [18:38:53]execute_script done [18:38:53]execute_script returns [18:38:53]free content buf [18:38:53]Sock 7.Close socket [18:38:53]Sock 7.Thread stoped [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:02]OFD Sender: No OFD packet to send [18:42:07]OFD Sender: No OFD packet to send [18:42:12]OFD Sender: No OFD packet to send [18:42:17]OFD Sender: No OFD packet to send [18:42:22]OFD Sender: No OFD packet to send [18:42:27]OFD Sender: No OFD packet to send [18:42:32]OFD Sender: No OFD packet to send [18:42:37]OFD Sender: No OFD packet to send [18:42:42]OFD Sender: No OFD packet to send [18:42:47]OFD Sender: No OFD packet to send [18:42:52]OFD Sender: No OFD packet to send [18:42:57]OFD Sender: No OFD packet to send [18:43:02]OFD Sender: No OFD packet to send [18:43:07]OFD Sender: No OFD packet to send [18:43:12]OFD Sender: No OFD packet to send [18:43:17]OFD Sender: No OFD packet to send [18:43:22]OFD Sender: No OFD packet to send [18:43:27]OFD Sender: No OFD packet to send [18:43:32]OFD Sender: No OFD packet to send [18:43:37]OFD Sender: No OFD packet to send [18:43:42]OFD Sender: No OFD packet to send [18:43:47]OFD Sender: No OFD packet to send [18:43:52]OFD Sender: No OFD packet to send [18:43:57]OFD Sender: No OFD packet to send [18:44:02]OFD Sender: No OFD packet to send [18:44:07]OFD Sender: No OFD packet to send [18:44:12]OFD Sender: No OFD packet to send [18:44:17]OFD Sender: No OFD packet to send [18:44:22]OFD Sender: No OFD packet to send [18:44:27]OFD Sender: No OFD packet to send [18:44:32]OFD Sender: No OFD packet to send [18:44:37]OFD Sender: No OFD packet to send [18:44:42]OFD Sender: No OFD packet to send [18:44:47]OFD Sender: No OFD packet to send [18:44:52]OFD Sender: No OFD packet to send [18:44:57]OFD Sender: No OFD packet to send [18:45:02]OFD Sender: No OFD packet to send [18:45:07]OFD Sender: No OFD packet to send [18:45:12]OFD Sender: No OFD packet to send [18:45:17]OFD Sender: No OFD packet to send [18:45:22]OFD Sender: No OFD packet to send [18:45:27]OFD Sender: No OFD packet to send [18:45:32]OFD Sender: No OFD packet to send [18:45:37]OFD Sender: No OFD packet to send [18:45:42]OFD Sender: No OFD packet to send [18:45:47]OFD Sender: No OFD packet to send [18:45:52]OFD Sender: No OFD packet to send [18:45:57]OFD Sender: No OFD packet to send [18:46:02]OFD Sender: No OFD packet to send [18:46:07]OFD Sender: No OFD packet to send [18:46:12]OFD Sender: No OFD packet to send [18:46:17]OFD Sender: No OFD packet to send [18:46:22]OFD Sender: No OFD packet to send [18:46:27]OFD Sender: No OFD packet to send [18:46:32]OFD Sender: No OFD packet to send [18:46:37]OFD Sender: No OFD packet to send [18:46:42]OFD Sender: No OFD packet to send [18:46:47]OFD Sender: No OFD packet to send [18:46:52]OFD Sender: No OFD packet to send [18:46:54]accept exits with 9 [18:46:54]New connection [18:46:54]New thread 3066719588 created [18:46:54]Thread 3066576228 joined [18:46:54]Waiting for new connection... [18:46:54] Sock 9.Parse request [18:46:54]Sock 9.Check first char [18:46:54]Sock 9.First char is OK [18:46:54]request: POST /json_proto HTTP/1.0 [18:46:54]Method: POST [18:46:54]URL: /json_proto [18:46:54]Method is POST - this is cgi request [18:46:54]url: /json_proto [18:46:54]query_string will be loaded in cgi processing [18:46:54]execute_cgi json_proto POST (null) [18:46:54]execute_cgi path=json_proto method=POST [18:46:54]POST find Content-Length [18:46:54]Host: 172.17.60.69:8080 [18:46:54]Content-Length: 1149 [18:46:54]Content-Type: application/json [18:46:54] [18:46:54]POST finish read [18:46:54]Found Content-Length = 1149 [18:46:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73440", "tax_sys" : 0, "items" : [ { "code": "4700000160044", "name": "\u0412\u043E\u0434\u0430 \u042B\u0441\u0441\u044B\u043A \u0410\u0442\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "8590042701239", "name": "\u0421\u0430\u043B\u0444\u0435\u0442\u043A\u0438 \u0432\u043B\u0430\u0436\u043D\u044B\u0435 VOK", "price" : 36.00, "quantity" : 1.000, "sum" : 36.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160198", "name": "\u0412\u043E\u0434\u0430 \u0411\u0430\u0439\u0442\u0438\u043A 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 116.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:46:54]execute_script... [18:46:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73440", "tax_sys" : 0, "items" : [ { "code": "4700000160044", "name": "\u0412\u043E\u0434\u0430 \u042B\u0441\u0441\u044B\u043A \u0410\u0442\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "8590042701239", "name": "\u0421\u0430\u043B\u0444\u0435\u0442\u043A\u0438 \u0432\u043B\u0430\u0436\u043D\u044B\u0435 VOK", "price" : 36.00, "quantity" : 1.000, "sum" : 36.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160198", "name": "\u0412\u043E\u0434\u0430 \u0411\u0430\u0439\u0442\u0438\u043A 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 116.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:46:54]POST & json_proto [18:46:54]process_json_proto [18:46:54]json parsed OK: [18:46:54]protocol is kg_v1.0 [18:46:54]action value=close_receipt [18:46:54]process_action close_receipt [18:46:54]cmd_close_receipt [18:46:54]MH_GetDate [18:46:54]Write to MH i2c: F0 00 00 CD 03 BF [18:46:54]Write i2c OK [18:46:54]MH_I2C_Read... [18:46:54]Read from MH i2c: F0 [18:46:54]MH_I2C_Read... [18:46:54]Read from MH i2c: F0 09 00 [18:46:54]MH_I2C_Read... [18:46:54]Read from MH i2c: F0 09 00 CD 03 00 9F 0F 5E 66 6A 96 4A 66 EA [18:46:54]GetLastDocTimeStamp 1717439824 [18:46:54]current date 1717440415 [18:46:54]FM_GetShiftState [18:46:54]SAM_PROTO_GetShiftState [18:46:54]wFMCommunicate request_size=4 [18:46:54]MH_SAM_APDU [18:46:54]CAPDU: 80 13 01 00 [18:46:54]Write to MH i2c: E2 08 00 CE 03 80 13 01 00 00 00 00 00 4E [18:46:54]Write i2c OK [18:46:54]MH_I2C_Read... [18:46:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:46:54]Read from MH i2c: E2 [18:46:54]MH_I2C_Read... [18:46:54]Read from MH i2c: E2 0E 00 [18:46:54]MH_I2C_Read... [18:46:54]Read from MH i2c: E2 0E 00 CE 03 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 1A [18:46:54]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [18:46:54]wFMCommunicate OK [18:46:54]SAM_PROTO_GetShiftState done [18:46:54]FM_GetShiftState done [18:46:54]opened in 1717373173 [18:46:54]opened+sec_in_day 1717459573 [18:46:54]quantity*price = 4000 [18:46:54]sum+1 = 4001 [18:46:54]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 8590042701239 Салфетки влажные VOK 1.000 * 36.00 = 36.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700000160198 Вода Байтик 0,5л 1.000 * 40.00 = 40.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 116.00 НСП 1% : 1.02 НДС 12% : 12.32 Наличными: 116.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 129 03.06.2024 18:46 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63871 ФПД: 105522597211018 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T184655&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63871&fm=105522597211018&tin=02508201610067®Number=0000000000092737&sum=11600 0 [18:46:56]StoreToDocumentArchive [18:46:56]shift 373 fd 63871 [18:46:56]save to /storage/0373/doc_00063871 [18:46:56]save last doc name /storage/0373/doc_00063871 to /storage/kkm_last_doc_name [18:46:56]save OK [18:46:56]Clear old archive folders... [18:46:56]ProcessDocumentItem done err = 0, tmpTLVsize=480 [18:46:56]tlvbuf is 00AD2F80 [18:46:56]SAM_PROTO_ClearQueue [18:46:56]wFMCommunicate request_size=4 [18:46:56]MH_SAM_APDU [18:46:56]CAPDU: 80 09 00 00 [18:46:56]Write to MH i2c: E2 08 00 DB 03 80 09 00 00 00 00 00 00 50 [18:46:56]Write i2c OK [18:46:56]MH_I2C_Read... [18:46:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:46:56]Read from MH i2c: E2 [18:46:56]MH_I2C_Read... [18:46:56]Read from MH i2c: E2 03 00 [18:46:56]MH_I2C_Read... [18:46:56]Read from MH i2c: E2 03 00 DB 03 00 90 00 52 [18:46:56]RAPDU: 90 00 [18:46:56]wFMCommunicate OK [18:46:56]SAM_PROTO_ClearQueue done [18:46:56]KKMCreateOFDPacket [18:46:56]OFDProtocolAddRootSTLVToBuf [18:46:56]FM_MakeSignedData [18:46:56]FM_MakeSignedData [18:46:56]SAM_PROTO_SignData [18:46:56]wFMCommunicate request_size=4 [18:46:56]MH_SAM_APDU [18:46:56]CAPDU: 80 0D 01 02 [18:46:56]Write to MH i2c: E2 08 00 DC 03 80 0D 01 02 00 00 00 00 58 [18:46:56]Write i2c OK [18:46:56]MH_I2C_Read... [18:46:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:46:56]Read from MH i2c: E2 [18:46:56]MH_I2C_Read... [18:46:56]Read from MH i2c: E2 03 00 [18:46:56]MH_I2C_Read... [18:46:56]Read from MH i2c: E2 03 00 DC 03 00 90 00 53 [18:46:56]RAPDU: 90 00 [18:46:56]wFMCommunicate OK [18:46:56]wFMCommunicate request_size=255 [18:46:56]MH_SAM_APDU [18:46:56]CAPDU: 80 0D 02 02 FA 03 00 E0 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 34 34 06 04 20 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AB D1 81 D1 81 D1 8B D0 BA 20 D0 90 D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 67 00 8A 04 0D 00 38 35 39 30 30 34 32 37 30 31 32 33 39 06 04 23 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 D0 B2 D0 BB D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 56 4F 4B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 0E 00 00 00 00 13 04 06 00 10 0E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 31 39 38 06 04 1B 00 D0 92 D0 BE D0 [18:46:56]Write to MH i2c: E2 02 01 DD 03 80 0D 02 02 FA 00 03 00 E0 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 34 34 06 04 20 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AB D1 81 D1 81 D1 8B D0 BA 20 D0 90 D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 67 00 8A 04 0D 00 38 35 39 30 30 34 32 37 30 31 32 33 39 06 04 23 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 D0 B2 D0 BB D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 56 4F 4B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 0E 00 00 00 00 13 04 06 00 10 0E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 31 39 38 06 04 1B 00 D0 92 D0 BE D0 00 00 85 [18:46:56]Write i2c OK [18:46:56]MH_I2C_Read... [18:46:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:46:56]Read from MH i2c: E2 [18:46:56]MH_I2C_Read... [18:46:56]Read from MH i2c: E2 03 00 [18:46:56]MH_I2C_Read... [18:46:56]Read from MH i2c: E2 03 00 DD 03 00 90 00 54 [18:46:56]RAPDU: 90 00 [18:46:56]wFMCommunicate OK [18:46:56]wFMCommunicate request_size=239 [18:46:56]MH_SAM_APDU [18:46:56]CAPDU: 80 0D 02 02 EA B4 D0 B0 20 D0 91 D0 B0 D0 B9 D1 82 D0 B8 D0 BA 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 2D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D0 04 00 00 00 00 07 04 06 00 50 2D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 9F 0F 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 7F F9 00 00 35 04 06 00 5F F8 E4 EC 2B 8A [18:46:56]Write to MH i2c: E2 F2 00 DE 03 80 0D 02 02 EA 00 B4 D0 B0 20 D0 91 D0 B0 D0 B9 D1 82 D0 B8 D0 BA 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 2D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D0 04 00 00 00 00 07 04 06 00 50 2D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 9F 0F 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 7F F9 00 00 35 04 06 00 5F F8 E4 EC 2B 8A 00 00 2B [18:46:56]Write i2c OK [18:46:56]MH_I2C_Read... [18:46:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:46:56]Read from MH i2c: E2 [18:46:56]MH_I2C_Read... [18:46:56]Read from MH i2c: E2 03 00 [18:46:56]MH_I2C_Read... [18:46:56]Read from MH i2c: E2 03 00 DE 03 00 90 00 55 [18:46:56]RAPDU: 90 00 [18:46:57]wFMCommunicate OK [18:46:57]wFMCommunicate request_size=4 [18:46:57]MH_SAM_APDU [18:46:57]CAPDU: 80 0D 03 02 [18:46:57]Write to MH i2c: E2 08 00 DF 03 80 0D 03 02 00 00 00 00 5D [18:46:57]Write i2c OK [18:46:57]MH_I2C_Read... [18:46:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:46:57]Read from MH i2c: E2 [18:46:57]MH_I2C_Read... [18:46:57]Read from MH i2c: E2 0B 00 [18:46:57]MH_I2C_Read... [18:46:57]Read from MH i2c: E2 0B 00 DF 03 00 14 74 1B CC 0A 52 B5 92 90 00 70 [18:46:57]RAPDU: 14 74 1B CC 0A 52 B5 92 90 00 [18:46:57]wFMCommunicate OK [18:46:57]SAM_PROTO_SignData done [18:46:57]FM_MakeSignedData done [18:46:57]CreateOFDProtocolMessage [18:46:57]wFMCommunicate request_size=4 [18:46:57]MH_SAM_APDU [18:46:57]CAPDU: 80 11 00 00 [18:46:57]Write to MH i2c: E2 08 00 E0 03 80 11 00 00 00 00 00 00 5D [18:46:57]Write i2c OK [18:46:57]MH_I2C_Read... [18:46:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:46:57]Read from MH i2c: E2 [18:46:57]MH_I2C_Read... [18:46:57]Read from MH i2c: E2 17 00 [18:46:57]MH_I2C_Read... [18:46:57]Read from MH i2c: E2 17 00 E0 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 AF [18:46:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [18:46:57]wFMCommunicate OK [18:46:57]CreateOFDProtocolMessage done [18:46:57]OFDSenderStorePacket 63871 [18:46:57]StoreOFDPacket docnum=63871 [18:46:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 F4 01 00 00 DA 9C EC 01 DD CD 5A 03 01 00 03 00 E0 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 34 34 06 04 20 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AB D1 81 D1 81 D1 8B D0 BA 20 D0 90 D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 67 00 8A 04 0D 00 38 35 39 30 30 34 32 37 30 31 32 33 39 06 04 23 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 D0 B2 D0 BB D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 56 4F 4B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 0E 00 00 00 00 13 04 06 00 10 0E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 31 39 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 B0 D0 B9 D1 82 D0 B8 D0 BA 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 2D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D0 04 00 00 00 00 07 04 06 00 50 2D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 9F 0F 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 7F F9 00 00 35 04 06 00 5F F8 E4 EC 2B 8A 14 74 1B CC 0A 52 B5 92 [18:46:57]CheckFolder [18:46:57]dirname=/storage/ofd_packets [18:46:57]CheckFolder done [18:46:57]ProducePacketName [18:46:57]name=ofd_packets/00063871 [18:46:57]NVStorageSaveData ofd_packets/00063871 [18:46:57]File name is /storage/ofd_packets/00063871 [18:46:57]Write 530 bytes [18:46:57]NVStorageSaveData done [18:46:57]OFDSenderStorePacket done [18:46:57]KKMCreateOFDPacket done [18:46:57]NVStorageSaveData kkm_last_timestamp [18:46:57]File name is /storage/kkm_last_timestamp [18:46:57]Write 4 bytes [18:46:57]NVStorageSaveData done [18:46:57]ExternCall_PrintAddStr [18:46:57]wPrintStart [18:46:57]Write to MH i2c: 01 00 00 E1 03 E4 [18:46:57]Write i2c OK [18:46:57]MH_I2C_Read... [18:46:57]Read from MH i2c: 01 [18:46:57]MH_I2C_Read... [18:46:57]Read from MH i2c: 01 07 00 [18:46:57]MH_I2C_Read... [18:46:57]Read from MH i2c: 01 07 00 E1 03 00 00 00 00 00 FF 0F F9 [18:46:57]RasterBufferAndPrint [18:46:57]line Счет N : (3)73440 [18:46:57]line ИНН: 02508201610067 [18:46:57]line Контрольно-Кассовый Чек [18:46:57]line ПРОДАЖА [18:46:57]line Товар: 4700000160044 [18:46:57]line Вода Ыссык Ата 0,5л [18:46:57]line 1.000 * 40.00 [18:46:57]line = 40.00 [18:46:57]line НДС 12% НСП 1% [18:46:57]line > о реализуемом товаре [18:46:57]line Товар: 8590042701239 [18:46:57]line Салфетки влажные VOK [18:46:57]line 1.000 * 36.00 [18:46:57]line = 36.00 [18:46:57]line НДС 12% НСП 1% [18:46:57]line > о реализуемом товаре [18:46:57]line Товар: 4700000160198 [18:46:57]line Вода Байтик 0,5л [18:46:57]line 1.000 * 40.00 [18:46:57]line = 40.00 [18:46:57]line НДС 12% НСП 1% [18:46:57]line > о реализуемом товаре [18:46:57]line ИТОГО: 116.00 [18:46:57]line НСП 1% : 1.02 [18:46:57]line НДС 12% : 12.32 [18:46:57]line Наличными: 116.00 [18:46:57]line Безнал.: 0.00 [18:46:57]line Место: АЗС № 117 "Партнер Нефть" [18:46:57]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [18:46:57]line СНО: Общий режим [18:46:57]line Чек 129 03.06.2024 18:46 [18:46:57]line Смена: 373 ФФД: 1.0 [18:46:57]line ЗНМ: 0300000031 [18:46:57]line РНМ: 0000000000092737 [18:46:57]line Версия ККМ: 001 [18:46:57]line ФМ: 0000000000875074 [18:46:57]line ФД: 63871 [18:46:57]line ФПД: 105522597211018 [18:46:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T184655&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63871&fm=105522597211018&tin=02508201610067®Number=0000000000092737&sum=11600 [18:46:57]line 0 [18:46:57]written 0, free lines is 4095 [18:46:57]OFD Sender: Processing packet 63871 [packets to send 14, broken 13] [18:46:57]ProducePacketName [18:46:57]name=ofd_packets/00063871 [18:46:57]OFD Sender: To server: pG, [18:46:57]CommunicateWithHost lk.salyk.kg:30040 [18:46:57]ConnectInit lk.salyk.kg [18:46:57]Connected sock=10 [18:46:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 F4 01 00 00 DA 9C EC 01 DD CD 5A 03 01 00 03 00 E0 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 34 34 06 04 20 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AB D1 81 D1 81 D1 8B D0 BA 20 D0 90 D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 67 00 8A 04 0D 00 38 35 39 30 30 34 32 37 30 31 32 33 39 06 04 23 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 D0 B2 D0 BB D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 56 4F 4B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 0E 00 00 00 00 13 04 06 00 10 0E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 31 39 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 B0 D0 B9 D1 82 D0 B8 D0 BA 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 2D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D0 04 00 00 00 00 07 04 06 00 50 2D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 9F 0F 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 7F F9 00 00 35 04 06 00 5F F8 E4 EC 2B 8A 14 74 1B CC 0A 52 B5 92 [18:46:57]Write to MH i2c: 01 00 00 15 04 19 [18:46:57]Write i2c OK [18:46:57]MH_I2C_Read... [18:46:57]Read from MH i2c: 01 [18:46:57]MH_I2C_Read... [18:46:57]Read from MH i2c: 01 07 00 [18:46:57]MH_I2C_Read... [18:46:57]Read from MH i2c: 01 07 00 15 04 00 00 00 00 00 50 0C 7C [18:46:57]RasterBufferAndPrint [18:46:57]line [18:46:57]line [18:46:57]line [18:46:57]line [18:46:57]line [18:46:57]written 0, free lines is 3161 [18:46:57]MH_Cut [18:46:57]Write to MH i2c: D1 01 00 1C 04 01 F2 [18:46:57]Write i2c OK [18:46:57]MH_I2C_Read... [18:46:57]Read from MH i2c: D1 [18:46:57]MH_I2C_Read... [18:46:57]Read from MH i2c: D1 01 00 [18:46:57]MH_I2C_Read... [18:46:57]Read from MH i2c: D1 01 00 1C 04 00 F1 [18:46:57]Write to MH i2c: 01 00 00 1D 04 21 [18:46:57]Write i2c OK [18:46:57]MH_I2C_Read... [18:46:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 21 65 47 00 B9 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 35 30 37 34 10 04 04 00 7F F9 00 00 F4 03 04 00 70 BB 5D 66 B6 04 01 00 00 F2 62 4A 3D A6 AD B0 5C [18:46:57]CommunicateWithHost err = 0 [18:46:57]CheckOFDResponse [18:46:57]1017 (14) - 77093643461234 [18:46:57]1041 (16) - 0000000000875074 [18:46:57]1040 (4) - 63871 [18:46:57]1012 (4) - 03.06.2024 12:47 [18:46:57]1206 (1) - 0 [18:46:57]OFD Sender: Remove packet 63871 [18:46:57]ProducePacketName [18:46:57]name=ofd_packets/00063871 [18:46:57]NVStorageDeleteData [18:46:58]OFD Sender: No OFD packet to send [18:46:58]*** Cut start [18:46:58]*** Partial cut [18:46:58]*** CUTSNS_PIN = 1 [18:46:58]*** CUTSNS_PIN = 0 [18:46:58]*** Brake cut motor [18:46:59]Read from MH i2c: 01 [18:46:59]MH_I2C_Read... [18:46:59]*** Stop cut motor [18:46:59]*** Cut end [18:46:59]Read from MH i2c: 01 07 00 [18:46:59]MH_I2C_Read... [18:46:59]Read from MH i2c: 01 07 00 1D 04 00 00 00 00 00 FF 0F 36 [18:46:59]process_action close_receipt done [18:46:59]requested_data is exist [18:46:59]produce_requested_data [18:46:59]requested_item fm.sn is exist - process it [18:46:59]wFMCommunicate request_size=4 [18:46:59]MH_SAM_APDU [18:46:59]CAPDU: 80 11 00 00 [18:46:59]Write to MH i2c: E2 08 00 1E 04 80 11 00 00 00 00 00 00 9C [18:46:59]Write i2c OK [18:46:59]MH_I2C_Read... [18:46:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:46:59]Read from MH i2c: E2 [18:46:59]MH_I2C_Read... [18:46:59]Read from MH i2c: E2 17 00 [18:46:59]MH_I2C_Read... [18:46:59]Read from MH i2c: E2 17 00 1E 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 EE [18:46:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [18:46:59]wFMCommunicate OK [18:46:59]requested_item fd.num is exist - process it [18:46:59]SAM_PROTO_GetFieldsCounters [18:46:59]wFMCommunicate request_size=4 [18:46:59]MH_SAM_APDU [18:46:59]CAPDU: 80 13 00 00 [18:46:59]Write to MH i2c: E2 08 00 1F 04 80 13 00 00 00 00 00 00 9F [18:46:59]Write i2c OK [18:46:59]MH_I2C_Read... [18:46:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:46:59]Read from MH i2c: E2 [18:46:59]MH_I2C_Read... [18:46:59]Read from MH i2c: E2 62 00 [18:46:59]MH_I2C_Read... [18:46:59]Read from MH i2c: E2 62 00 1F 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 7F F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 33 [18:46: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 7F F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:46:59]wFMCommunicate OK [18:46:59]SAM_PROTO_GetFieldsCounters done [18:46:59]requested_item shift.num is exist - process it [18:46:59]requested_item shift.opened is exist - process it [18:46:59]req_shift_opened [18:46:59]FM_GetShiftState [18:46:59]SAM_PROTO_GetShiftState [18:46:59]wFMCommunicate request_size=4 [18:46:59]MH_SAM_APDU [18:46:59]CAPDU: 80 13 01 00 [18:46:59]Write to MH i2c: E2 08 00 20 04 80 13 01 00 00 00 00 00 A1 [18:46:59]Write i2c OK [18:46:59]MH_I2C_Read... [18:46:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:46:59]Read from MH i2c: E2 [18:46:59]MH_I2C_Read... [18:46:59]Read from MH i2c: E2 0E 00 [18:46:59]MH_I2C_Read... [18:46:59]Read from MH i2c: E2 0E 00 20 04 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 6D [18:46:59]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [18:46:59]wFMCommunicate OK [18:46:59]SAM_PROTO_GetShiftState done [18:46:59]FM_GetShiftState done [18:46:59]req_shift_opened done [18:46:59]requested_item shift.open_date is exist - process it [18:46:59]req_shift_open_date [18:46:59]req_shift_open_date done [18:46:59]produce_requested_data done [18:46:59]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63871,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [18:46:59]process_action_free close_receipt [18:46:59]json_value_free [18:46:59]json_value_free done [18:46:59]process_json_proto returns [18:46:59]Send response to host [18:46:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63871,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [18:46:59]free response buf [18:46:59]execute_script done [18:46:59]execute_script returns [18:46:59]free content buf [18:46:59]Sock 9.Close socket [18:46:59]Sock 9.Thread stoped [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:43]OFD Sender: No OFD packet to send [18:54:48]OFD Sender: No OFD packet to send [18:54:53]OFD Sender: No OFD packet to send [18:54:58]OFD Sender: No OFD packet to send [18:55:03]OFD Sender: No OFD packet to send [18:55:08]OFD Sender: No OFD packet to send [18:55:13]OFD Sender: No OFD packet to send [18:55:18]OFD Sender: No OFD packet to send [18:55:23]OFD Sender: No OFD packet to send [18:55:28]OFD Sender: No OFD packet to send [18:55:33]OFD Sender: No OFD packet to send [18:55:38]OFD Sender: No OFD packet to send [18:55:43]OFD Sender: No OFD packet to send [18:55:48]OFD Sender: No OFD packet to send [18:55:53]OFD Sender: No OFD packet to send [18:55:58]OFD Sender: No OFD packet to send [18:56:03]OFD Sender: No OFD packet to send [18:56:08]OFD Sender: No OFD packet to send [18:56:13]OFD Sender: No OFD packet to send [18:56:18]OFD Sender: No OFD packet to send [18:56:23]OFD Sender: No OFD packet to send [18:56:28]OFD Sender: No OFD packet to send [18:56:33]OFD Sender: No OFD packet to send [18:56:38]OFD Sender: No OFD packet to send [18:56:43]OFD Sender: No OFD packet to send [18:56:48]OFD Sender: No OFD packet to send [18:56:53]OFD Sender: No OFD packet to send [18:56:58]OFD Sender: No OFD packet to send [18:57:03]OFD Sender: No OFD packet to send [18:57:08]OFD Sender: No OFD packet to send [18:57:13]OFD Sender: No OFD packet to send [18:57:18]OFD Sender: No OFD packet to send [18:57:23]OFD Sender: No OFD packet to send [18:57:28]OFD Sender: No OFD packet to send [18:57:33]OFD Sender: No OFD packet to send [18:57:38]OFD Sender: No OFD packet to send [18:57:43]OFD Sender: No OFD packet to send [18:57:48]OFD Sender: No OFD packet to send [18:57:53]OFD Sender: No OFD packet to send [18:57:58]OFD Sender: No OFD packet to send [18:58:03]OFD Sender: No OFD packet to send [18:58:08]OFD Sender: No OFD packet to send [18:58:13]OFD Sender: No OFD packet to send [18:58:18]OFD Sender: No OFD packet to send [18:58:23]OFD Sender: No OFD packet to send [18:58:28]OFD Sender: No OFD packet to send [18:58:33]OFD Sender: No OFD packet to send [18:58:38]OFD Sender: No OFD packet to send [18:58:43]OFD Sender: No OFD packet to send [18:58:48]OFD Sender: No OFD packet to send [18:58:53]OFD Sender: No OFD packet to send [18:58:58]OFD Sender: No OFD packet to send [18:59:03]OFD Sender: No OFD packet to send [18:59:08]OFD Sender: No OFD packet to send [18:59:13]OFD Sender: No OFD packet to send [18:59:18]OFD Sender: No OFD packet to send [18:59:23]OFD Sender: No OFD packet to send [18:59:28]OFD Sender: No OFD packet to send [18:59:33]OFD Sender: No OFD packet to send [18:59:38]OFD Sender: No OFD packet to send [18:59:43]OFD Sender: No OFD packet to send [18:59:48]OFD Sender: No OFD packet to send [18:59:53]OFD Sender: No OFD packet to send [18:59:58]OFD Sender: No OFD packet to send [19:00:03]OFD Sender: No OFD packet to send [19:00:08]OFD Sender: No OFD packet to send [19:00:13]OFD Sender: No OFD packet to send [19:00:18]OFD Sender: No OFD packet to send [19:00:23]OFD Sender: No OFD packet to send [19:00:28]OFD Sender: No OFD packet to send [19:00:33]OFD Sender: No OFD packet to send [19:00:38]OFD Sender: No OFD packet to send [19:00:43]OFD Sender: No OFD packet to send [19:00:48]OFD Sender: No OFD packet to send [19:00:50]accept exits with 7 [19:00:50]New connection [19:00:50]New thread 3066576228 created [19:00:50]Thread 3066719588 joined [19:00:50]Waiting for new connection... [19:00:50] Sock 7.Parse request [19:00:50]Sock 7.Check first char [19:00:50]Sock 7.First char is OK [19:00:50]request: POST /json_proto HTTP/1.0 [19:00:50]Method: POST [19:00:50]URL: /json_proto [19:00:50]Method is POST - this is cgi request [19:00:50]url: /json_proto [19:00:50]query_string will be loaded in cgi processing [19:00:50]execute_cgi json_proto POST (null) [19:00:50]execute_cgi path=json_proto method=POST [19:00:50]POST find Content-Length [19:00:50]Host: 172.17.60.69:8080 [19:00:50]Content-Length: 624 [19:00:50]Content-Type: application/json [19:00:50] [19:00:50]POST finish read [19:00:50]Found Content-Length = 624 [19:00:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73441", "tax_sys" : 0, "items" : [ { "code": "46230607", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Bronze Edition", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:00:50]execute_script... [19:00:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73441", "tax_sys" : 0, "items" : [ { "code": "46230607", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Bronze Edition", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:00:50]POST & json_proto [19:00:50]process_json_proto [19:00:50]json parsed OK: [19:00:50]protocol is kg_v1.0 [19:00:50]action value=close_receipt [19:00:50]process_action close_receipt [19:00:50]cmd_close_receipt [19:00:50]MH_GetDate [19:00:50]Write to MH i2c: F0 00 00 21 04 14 [19:00:50]Write i2c OK [19:00:50]MH_I2C_Read... [19:00:50]Read from MH i2c: F0 [19:00:50]MH_I2C_Read... [19:00:50]Read from MH i2c: F0 09 00 [19:00:50]MH_I2C_Read... [19:00:50]Read from MH i2c: F0 09 00 21 04 00 E2 12 5E 66 6A 96 4A 66 85 [19:00:50]GetLastDocTimeStamp 1717440415 [19:00:50]current date 1717441250 [19:00:50]FM_GetShiftState [19:00:50]SAM_PROTO_GetShiftState [19:00:50]wFMCommunicate request_size=4 [19:00:50]MH_SAM_APDU [19:00:50]CAPDU: 80 13 01 00 [19:00:50]Write to MH i2c: E2 08 00 22 04 80 13 01 00 00 00 00 00 A3 [19:00:50]Write i2c OK [19:00:50]MH_I2C_Read... [19:00:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:00:50]Read from MH i2c: E2 [19:00:50]MH_I2C_Read... [19:00:50]Read from MH i2c: E2 0E 00 [19:00:50]MH_I2C_Read... [19:00:50]Read from MH i2c: E2 0E 00 22 04 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 6F [19:00:50]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [19:00:50]wFMCommunicate OK [19:00:50]SAM_PROTO_GetShiftState done [19:00:50]FM_GetShiftState done [19:00:50]opened in 1717373173 [19:00:50]opened+sec_in_day 1717459573 [19:00:50]quantity*price = 15000 [19:00:50]sum+1 = 15001 [19:00:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 150.00 НСП 1% : 1.33 НДС 12% : 15.93 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 130 03.06.2024 19:00 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63872 ФПД: 210124634531270 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T190051&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63872&fm=210124634531270&tin=02508201610067®Number=0000000000092737&sum=15000 0 [19:00:51]StoreToDocumentArchive [19:00:51]shift 373 fd 63872 [19:00:51]save to /storage/0373/doc_00063872 [19:00:51]save last doc name /storage/0373/doc_00063872 to /storage/kkm_last_doc_name [19:00:51]save OK [19:00:51]Clear old archive folders... [19:00:51]ProcessDocumentItem done err = 0, tmpTLVsize=277 [19:00:51]tlvbuf is 00AD84E0 [19:00:51]SAM_PROTO_ClearQueue [19:00:51]wFMCommunicate request_size=4 [19:00:51]MH_SAM_APDU [19:00:51]CAPDU: 80 09 00 00 [19:00:51]Write to MH i2c: E2 08 00 2F 04 80 09 00 00 00 00 00 00 A5 [19:00:51]Write i2c OK [19:00:51]MH_I2C_Read... [19:00:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:00:51]Read from MH i2c: E2 [19:00:51]MH_I2C_Read... [19:00:51]Read from MH i2c: E2 03 00 [19:00:51]MH_I2C_Read... [19:00:51]Read from MH i2c: E2 03 00 2F 04 00 90 00 A7 [19:00:51]RAPDU: 90 00 [19:00:51]wFMCommunicate OK [19:00:51]SAM_PROTO_ClearQueue done [19:00:51]KKMCreateOFDPacket [19:00:51]OFDProtocolAddRootSTLVToBuf [19:00:51]FM_MakeSignedData [19:00:51]FM_MakeSignedData [19:00:51]SAM_PROTO_SignData [19:00:51]wFMCommunicate request_size=4 [19:00:51]MH_SAM_APDU [19:00:51]CAPDU: 80 0D 01 02 [19:00:51]Write to MH i2c: E2 08 00 30 04 80 0D 01 02 00 00 00 00 AD [19:00:51]Write i2c OK [19:00:51]MH_I2C_Read... [19:00:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:00:51]Read from MH i2c: E2 [19:00:51]MH_I2C_Read... [19:00:51]Read from MH i2c: E2 03 00 [19:00:51]MH_I2C_Read... [19:00:51]Read from MH i2c: E2 03 00 30 04 00 90 00 A8 [19:00:51]RAPDU: 90 00 [19:00:51]wFMCommunicate OK [19:00:51]wFMCommunicate request_size=255 [19:00:51]MH_SAM_APDU [19:00:51]CAPDU: 80 0D 02 02 FA 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 08 00 34 36 32 33 30 36 30 37 06 04 28 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 42 72 6F 6E 7A 65 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 E3 12 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 [19:00:51]Write to MH i2c: E2 02 01 31 04 80 0D 02 02 FA 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 08 00 34 36 32 33 30 36 30 37 06 04 28 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 42 72 6F 6E 7A 65 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 E3 12 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 00 00 49 [19:00:51]Write i2c OK [19:00:51]MH_I2C_Read... [19:00:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:00:51]Read from MH i2c: E2 [19:00:51]MH_I2C_Read... [19:00:51]Read from MH i2c: E2 03 00 [19:00:51]MH_I2C_Read... [19:00:51]Read from MH i2c: E2 03 00 31 04 00 90 00 A9 [19:00:51]RAPDU: 90 00 [19:00:51]wFMCommunicate OK [19:00:51]wFMCommunicate request_size=36 [19:00:51]MH_SAM_APDU [19:00:51]CAPDU: 80 0D 02 02 1F 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 80 F9 00 00 35 04 06 00 BF 1B 74 33 25 C6 [19:00:51]Write to MH i2c: E2 27 00 32 04 80 0D 02 02 1F 00 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 80 F9 00 00 35 04 06 00 BF 1B 74 33 25 C6 00 00 B9 [19:00:51]Write i2c OK [19:00:51]MH_I2C_Read... [19:00:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:00:52]Read from MH i2c: E2 [19:00:52]MH_I2C_Read... [19:00:52]Read from MH i2c: E2 03 00 [19:00:52]MH_I2C_Read... [19:00:52]Read from MH i2c: E2 03 00 32 04 00 90 00 AA [19:00:52]RAPDU: 90 00 [19:00:52]wFMCommunicate OK [19:00:52]wFMCommunicate request_size=4 [19:00:52]MH_SAM_APDU [19:00:52]CAPDU: 80 0D 03 02 [19:00:52]Write to MH i2c: E2 08 00 33 04 80 0D 03 02 00 00 00 00 B2 [19:00:52]Write i2c OK [19:00:52]MH_I2C_Read... [19:00:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:00:52]Read from MH i2c: E2 [19:00:52]MH_I2C_Read... [19:00:52]Read from MH i2c: E2 0B 00 [19:00:52]MH_I2C_Read... [19:00:52]Read from MH i2c: E2 0B 00 33 04 00 47 A4 EE 98 83 2C 99 8B 90 00 F7 [19:00:52]RAPDU: 47 A4 EE 98 83 2C 99 8B 90 00 [19:00:52]wFMCommunicate OK [19:00:52]SAM_PROTO_SignData done [19:00:52]FM_MakeSignedData done [19:00:52]CreateOFDProtocolMessage [19:00:52]wFMCommunicate request_size=4 [19:00:52]MH_SAM_APDU [19:00:52]CAPDU: 80 11 00 00 [19:00:52]Write to MH i2c: E2 08 00 34 04 80 11 00 00 00 00 00 00 B2 [19:00:52]Write i2c OK [19:00:52]MH_I2C_Read... [19:00:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:00:52]Read from MH i2c: E2 [19:00:52]MH_I2C_Read... [19:00:52]Read from MH i2c: E2 17 00 [19:00:52]MH_I2C_Read... [19:00:52]Read from MH i2c: E2 17 00 34 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 04 [19:00:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [19:00:52]wFMCommunicate OK [19:00:52]CreateOFDProtocolMessage done [19:00:52]OFDSenderStorePacket 63872 [19:00:52]StoreOFDPacket docnum=63872 [19:00:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 29 01 00 00 96 B6 21 01 BE F5 5A 03 01 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 08 00 34 36 32 33 30 36 30 37 06 04 28 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 42 72 6F 6E 7A 65 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 E3 12 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 80 F9 00 00 35 04 06 00 BF 1B 74 33 25 C6 47 A4 EE 98 83 2C 99 8B [19:00:52]CheckFolder [19:00:52]dirname=/storage/ofd_packets [19:00:52]CheckFolder done [19:00:52]ProducePacketName [19:00:52]name=ofd_packets/00063872 [19:00:52]NVStorageSaveData ofd_packets/00063872 [19:00:52]File name is /storage/ofd_packets/00063872 [19:00:52]Write 327 bytes [19:00:52]NVStorageSaveData done [19:00:52]OFDSenderStorePacket done [19:00:52]KKMCreateOFDPacket done [19:00:52]NVStorageSaveData kkm_last_timestamp [19:00:52]File name is /storage/kkm_last_timestamp [19:00:52]Write 4 bytes [19:00:52]NVStorageSaveData done [19:00:52]ExternCall_PrintAddStr [19:00:52]wPrintStart [19:00:52]Write to MH i2c: 01 00 00 35 04 39 [19:00:52]Write i2c OK [19:00:52]MH_I2C_Read... [19:00:52]Read from MH i2c: 01 [19:00:52]MH_I2C_Read... [19:00:52]Read from MH i2c: 01 07 00 [19:00:52]MH_I2C_Read... [19:00:52]Read from MH i2c: 01 07 00 35 04 00 00 00 00 00 FF 0F 4E [19:00:52]RasterBufferAndPrint [19:00:52]line Счет N : (3)73441 [19:00:52]line ИНН: 02508201610067 [19:00:52]line Контрольно-Кассовый Чек [19:00:52]line ПРОДАЖА [19:00:52]line Товар: 46230607 [19:00:52]line Сигареты Richmond Bronze Edition [19:00:52]line 1.000 * 150.00 [19:00:52]line = 150.00 [19:00:52]line НДС 12% НСП 1% [19:00:52]line > о реализуемом товаре [19:00:52]line ИТОГО: 150.00 [19:00:52]line НСП 1% : 1.33 [19:00:52]line НДС 12% : 15.93 [19:00:52]line Наличными: 150.00 [19:00:52]line Безнал.: 0.00 [19:00:52]line Место: АЗС № 117 "Партнер Нефть" [19:00:52]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [19:00:52]line СНО: Общий режим [19:00:52]line Чек 130 03.06.2024 19:00 [19:00:52]line Смена: 373 ФФД: 1.0 [19:00:52]line ЗНМ: 0300000031 [19:00:52]line РНМ: 0000000000092737 [19:00:52]line Версия ККМ: 001 [19:00:52]line ФМ: 0000000000875074 [19:00:52]line ФД: 63872 [19:00:52]line ФПД: 210124634531270 [19:00:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T190051&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63872&fm=210124634531270&tin=02508201610067®Number=0000000000092737&sum=15000 [19:00:52]line 0 [19:00:52]OFD Sender: Processing packet 63872 [packets to send 14, broken 13] [19:00:52]ProducePacketName [19:00:52]name=ofd_packets/00063872 [19:00:52]OFD Sender: To server: pG, [19:00:52]CommunicateWithHost lk.salyk.kg:30040 [19:00:52]ConnectInit lk.salyk.kg [19:00:52]written 0, free lines is 4095 [19:00:52]Connected sock=10 [19:00:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 29 01 00 00 96 B6 21 01 BE F5 5A 03 01 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 08 00 34 36 32 33 30 36 30 37 06 04 28 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 42 72 6F 6E 7A 65 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 E3 12 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 80 F9 00 00 35 04 06 00 BF 1B 74 33 25 C6 47 A4 EE 98 83 2C 99 8B [19:00:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 EC CB 47 00 C7 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 35 30 37 34 10 04 04 00 80 F9 00 00 F4 03 04 00 B3 BE 5D 66 B6 04 01 00 00 16 A2 BC 89 CC 3C BD 66 [19:00:52]CommunicateWithHost err = 0 [19:00:52]CheckOFDResponse [19:00:52]1017 (14) - 77093643461234 [19:00:52]1041 (16) - 0000000000875074 [19:00:52]1040 (4) - 63872 [19:00:52]1012 (4) - 03.06.2024 13:01 [19:00:52]1206 (1) - 0 [19:00:52]OFD Sender: Remove packet 63872 [19:00:52]ProducePacketName [19:00:52]name=ofd_packets/00063872 [19:00:52]NVStorageDeleteData [19:00:52]Write to MH i2c: 01 00 00 5E 04 62 [19:00:52]Write i2c OK [19:00:52]MH_I2C_Read... [19:00:52]Read from MH i2c: 01 [19:00:52]MH_I2C_Read... [19:00:52]Read from MH i2c: 01 07 00 [19:00:52]MH_I2C_Read... [19:00:52]Read from MH i2c: 01 07 00 5E 04 00 00 00 00 00 CD 0C 42 [19:00:52]RasterBufferAndPrint [19:00:52]line [19:00:52]line [19:00:52]line [19:00:52]line [19:00:52]line [19:00:52]written 0, free lines is 3282 [19:00:52]MH_Cut [19:00:52]Write to MH i2c: D1 01 00 65 04 01 3B [19:00:52]Write i2c OK [19:00:52]MH_I2C_Read... [19:00:52]Read from MH i2c: D1 [19:00:52]MH_I2C_Read... [19:00:52]Read from MH i2c: D1 01 00 [19:00:52]MH_I2C_Read... [19:00:52]Read from MH i2c: D1 01 00 65 04 00 3A [19:00:52]Write to MH i2c: 01 00 00 66 04 6A [19:00:52]Write i2c OK [19:00:52]MH_I2C_Read... [19:00:53]OFD Sender: No OFD packet to send [19:00:53]*** Cut start [19:00:53]*** Partial cut [19:00:53]*** CUTSNS_PIN = 1 [19:00:53]*** CUTSNS_PIN = 0 [19:00:54]*** Brake cut motor [19:00:54]Read from MH i2c: 01 [19:00:54]MH_I2C_Read... [19:00:54]*** Stop cut motor [19:00:54]*** Cut end [19:00:54]Read from MH i2c: 01 07 00 [19:00:54]MH_I2C_Read... [19:00:54]Read from MH i2c: 01 07 00 66 04 00 00 00 00 00 FF 0F 7F [19:00:54]process_action close_receipt done [19:00:54]requested_data is exist [19:00:54]produce_requested_data [19:00:54]requested_item fm.sn is exist - process it [19:00:54]wFMCommunicate request_size=4 [19:00:54]MH_SAM_APDU [19:00:54]CAPDU: 80 11 00 00 [19:00:54]Write to MH i2c: E2 08 00 67 04 80 11 00 00 00 00 00 00 E5 [19:00:54]Write i2c OK [19:00:54]MH_I2C_Read... [19:00:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:00:54]Read from MH i2c: E2 [19:00:54]MH_I2C_Read... [19:00:54]Read from MH i2c: E2 17 00 [19:00:54]MH_I2C_Read... [19:00:54]Read from MH i2c: E2 17 00 67 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 37 [19:00:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [19:00:54]wFMCommunicate OK [19:00:54]requested_item fd.num is exist - process it [19:00:54]SAM_PROTO_GetFieldsCounters [19:00:54]wFMCommunicate request_size=4 [19:00:54]MH_SAM_APDU [19:00:54]CAPDU: 80 13 00 00 [19:00:54]Write to MH i2c: E2 08 00 68 04 80 13 00 00 00 00 00 00 E8 [19:00:54]Write i2c OK [19:00:54]MH_I2C_Read... [19:00:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:00:54]Read from MH i2c: E2 [19:00:54]MH_I2C_Read... [19:00:54]Read from MH i2c: E2 62 00 [19:00:54]MH_I2C_Read... [19:00:54]Read from MH i2c: E2 62 00 68 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 80 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 82 00 00 00 5E 04 04 00 82 00 00 00 57 04 04 00 83 00 00 00 19 04 04 00 00 00 00 00 90 00 80 [19:00: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 80 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 82 00 00 00 5E 04 04 00 82 00 00 00 57 04 04 00 83 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:00:54]wFMCommunicate OK [19:00:54]SAM_PROTO_GetFieldsCounters done [19:00:54]requested_item shift.num is exist - process it [19:00:54]requested_item shift.opened is exist - process it [19:00:54]req_shift_opened [19:00:54]FM_GetShiftState [19:00:54]SAM_PROTO_GetShiftState [19:00:54]wFMCommunicate request_size=4 [19:00:54]MH_SAM_APDU [19:00:54]CAPDU: 80 13 01 00 [19:00:54]Write to MH i2c: E2 08 00 69 04 80 13 01 00 00 00 00 00 EA [19:00:54]Write i2c OK [19:00:54]MH_I2C_Read... [19:00:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:00:54]Read from MH i2c: E2 [19:00:54]MH_I2C_Read... [19:00:54]Read from MH i2c: E2 0E 00 [19:00:54]MH_I2C_Read... [19:00:54]Read from MH i2c: E2 0E 00 69 04 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 B6 [19:00:54]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [19:00:54]wFMCommunicate OK [19:00:54]SAM_PROTO_GetShiftState done [19:00:54]FM_GetShiftState done [19:00:54]req_shift_opened done [19:00:54]requested_item shift.open_date is exist - process it [19:00:54]req_shift_open_date [19:00:54]req_shift_open_date done [19:00:54]produce_requested_data done [19:00:54]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63872,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [19:00:54]process_action_free close_receipt [19:00:54]json_value_free [19:00:54]json_value_free done [19:00:54]process_json_proto returns [19:00:54]Send response to host [19:00:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63872,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [19:00:54]free response buf [19:00:54]execute_script done [19:00:54]execute_script returns [19:00:54]free content buf [19:00:54]Sock 7.Close socket [19:00:54]Sock 7.Thread stoped [19:00:58]OFD Sender: No OFD packet to send [19:01:03]OFD Sender: No OFD packet to send [19:01:08]OFD Sender: No OFD packet to send [19:01:13]OFD Sender: No OFD packet to send [19:01:18]OFD Sender: No OFD packet to send [19:01:23]OFD Sender: No OFD packet to send [19:01:28]OFD Sender: No OFD packet to send [19:01:33]OFD Sender: No OFD packet to send [19:01:38]OFD Sender: No OFD packet to send [19:01:43]OFD Sender: No OFD packet to send [19:01:48]OFD Sender: No OFD packet to send [19:01:53]OFD Sender: No OFD packet to send [19:01:58]OFD Sender: No OFD packet to send [19:02:03]OFD Sender: No OFD packet to send [19:02:08]OFD Sender: No OFD packet to send [19:02:13]OFD Sender: No OFD packet to send [19:02:18]OFD Sender: No OFD packet to send [19:02:23]OFD Sender: No OFD packet to send [19:02:28]OFD Sender: No OFD packet to send [19:02:33]OFD Sender: No OFD packet to send [19:02:38]OFD Sender: No OFD packet to send [19:02:43]OFD Sender: No OFD packet to send [19:02:48]OFD Sender: No OFD packet to send [19:02:53]OFD Sender: No OFD packet to send [19:02:55]accept exits with 9 [19:02:55]New connection [19:02:55]New thread 3066719588 created [19:02:55]Thread 3066576228 joined [19:02:55]Waiting for new connection... [19:02:55] Sock 9.Parse request [19:02:55]Sock 9.Check first char [19:02:55]Sock 9.First char is OK [19:02:55]request: POST /json_proto HTTP/1.0 [19:02:55]Method: POST [19:02:55]URL: /json_proto [19:02:55]Method is POST - this is cgi request [19:02:55]url: /json_proto [19:02:55]query_string will be loaded in cgi processing [19:02:55]execute_cgi json_proto POST (null) [19:02:55]execute_cgi path=json_proto method=POST [19:02:55]POST find Content-Length [19:02:55]Host: 172.17.60.69:8080 [19:02:55]Content-Length: 621 [19:02:55]Content-Type: application/json [19:02:55] [19:02:55]POST finish read [19:02:55]Found Content-Length = 621 [19:02:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73442", "tax_sys" : 0, "items" : [ { "code": "46230614", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Red Edition", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:02:55]execute_script... [19:02:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73442", "tax_sys" : 0, "items" : [ { "code": "46230614", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Red Edition", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:02:55]POST & json_proto [19:02:55]process_json_proto [19:02:55]json parsed OK: [19:02:55]protocol is kg_v1.0 [19:02:55]action value=close_receipt [19:02:55]process_action close_receipt [19:02:55]cmd_close_receipt [19:02:55]MH_GetDate [19:02:55]Write to MH i2c: F0 00 00 6A 04 5D [19:02:55]Write i2c OK [19:02:55]MH_I2C_Read... [19:02:55]Read from MH i2c: F0 [19:02:55]MH_I2C_Read... [19:02:55]Read from MH i2c: F0 09 00 [19:02:55]MH_I2C_Read... [19:02:55]Read from MH i2c: F0 09 00 6A 04 00 5F 13 5E 66 6A 96 4A 66 4C [19:02:55]GetLastDocTimeStamp 1717441251 [19:02:55]current date 1717441375 [19:02:55]FM_GetShiftState [19:02:55]SAM_PROTO_GetShiftState [19:02:55]wFMCommunicate request_size=4 [19:02:55]MH_SAM_APDU [19:02:55]CAPDU: 80 13 01 00 [19:02:55]Write to MH i2c: E2 08 00 6B 04 80 13 01 00 00 00 00 00 EC [19:02:55]Write i2c OK [19:02:55]MH_I2C_Read... [19:02:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:02:55]Read from MH i2c: E2 [19:02:55]MH_I2C_Read... [19:02:55]Read from MH i2c: E2 0E 00 [19:02:55]MH_I2C_Read... [19:02:55]Read from MH i2c: E2 0E 00 6B 04 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 B8 [19:02:55]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [19:02:55]wFMCommunicate OK [19:02:55]SAM_PROTO_GetShiftState done [19:02:55]FM_GetShiftState done [19:02:55]opened in 1717373173 [19:02:55]opened+sec_in_day 1717459573 [19:02:55]quantity*price = 15000 [19:02:55]sum+1 = 15001 [19:02:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 150.00 НСП 1% : 1.33 НДС 12% : 15.93 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 131 03.06.2024 19:02 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63873 ФПД: 227065667144314 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T190255&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63873&fm=227065667144314&tin=02508201610067®Number=0000000000092737&sum=15000 0 [19:02:56]StoreToDocumentArchive [19:02:56]shift 373 fd 63873 [19:02:56]save to /storage/0373/doc_00063873 [19:02:56]save last doc name /storage/0373/doc_00063873 to /storage/kkm_last_doc_name [19:02:56]save OK [19:02:56]Clear old archive folders... [19:02:56]ProcessDocumentItem done err = 0, tmpTLVsize=274 [19:02:56]tlvbuf is 00A9FAA0 [19:02:56]SAM_PROTO_ClearQueue [19:02:56]wFMCommunicate request_size=4 [19:02:56]MH_SAM_APDU [19:02:56]CAPDU: 80 09 00 00 [19:02:56]Write to MH i2c: E2 08 00 78 04 80 09 00 00 00 00 00 00 EE [19:02:56]Write i2c OK [19:02:56]MH_I2C_Read... [19:02:56]Read from MH i2c: E2 [19:02:56]MH_I2C_Read... [19:02:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:02:56]Read from MH i2c: E2 03 00 [19:02:56]MH_I2C_Read... [19:02:56]Read from MH i2c: E2 03 00 78 04 00 90 00 F0 [19:02:56]RAPDU: 90 00 [19:02:56]wFMCommunicate OK [19:02:56]SAM_PROTO_ClearQueue done [19:02:56]KKMCreateOFDPacket [19:02:56]OFDProtocolAddRootSTLVToBuf [19:02:56]FM_MakeSignedData [19:02:56]FM_MakeSignedData [19:02:56]SAM_PROTO_SignData [19:02:56]wFMCommunicate request_size=4 [19:02:56]MH_SAM_APDU [19:02:56]CAPDU: 80 0D 01 02 [19:02:56]Write to MH i2c: E2 08 00 79 04 80 0D 01 02 00 00 00 00 F6 [19:02:56]Write i2c OK [19:02:56]MH_I2C_Read... [19:02:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:02:56]Read from MH i2c: E2 [19:02:56]MH_I2C_Read... [19:02:56]Read from MH i2c: E2 03 00 [19:02:56]MH_I2C_Read... [19:02:56]Read from MH i2c: E2 03 00 79 04 00 90 00 F1 [19:02:56]RAPDU: 90 00 [19:02:56]wFMCommunicate OK [19:02:56]wFMCommunicate request_size=255 [19:02:56]MH_SAM_APDU [19:02:56]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 36 32 33 30 36 31 34 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 65 64 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 5F 13 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 [19:02:56]Write to MH i2c: E2 02 01 7A 04 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 36 32 33 30 36 31 34 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 65 64 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 5F 13 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 00 00 40 [19:02:56]Write i2c OK [19:02:56]MH_I2C_Read... [19:02:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:02:57]Read from MH i2c: E2 [19:02:57]MH_I2C_Read... [19:02:57]Read from MH i2c: E2 03 00 [19:02:57]MH_I2C_Read... [19:02:57]Read from MH i2c: E2 03 00 7A 04 00 90 00 F2 [19:02:57]RAPDU: 90 00 [19:02:57]wFMCommunicate OK [19:02:57]wFMCommunicate request_size=33 [19:02:57]MH_SAM_APDU [19:02:57]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 35 30 37 34 10 04 04 00 81 F9 00 00 35 04 06 00 CE 83 D8 6E 4A 7A [19:02:57]Write to MH i2c: E2 24 00 7B 04 80 0D 02 02 1C 00 30 30 30 30 38 37 35 30 37 34 10 04 04 00 81 F9 00 00 35 04 06 00 CE 83 D8 6E 4A 7A 00 00 5C [19:02:57]Write i2c OK [19:02:57]MH_I2C_Read... [19:02:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:02:57]Read from MH i2c: E2 [19:02:57]MH_I2C_Read... [19:02:57]Read from MH i2c: E2 03 00 [19:02:57]MH_I2C_Read... [19:02:57]Read from MH i2c: E2 03 00 7B 04 00 90 00 F3 [19:02:57]RAPDU: 90 00 [19:02:57]wFMCommunicate OK [19:02:57]wFMCommunicate request_size=4 [19:02:57]MH_SAM_APDU [19:02:57]CAPDU: 80 0D 03 02 [19:02:57]Write to MH i2c: E2 08 00 7C 04 80 0D 03 02 00 00 00 00 FB [19:02:57]Write i2c OK [19:02:57]MH_I2C_Read... [19:02:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:02:57]Read from MH i2c: E2 [19:02:57]MH_I2C_Read... [19:02:57]Read from MH i2c: E2 0B 00 [19:02:57]MH_I2C_Read... [19:02:57]Read from MH i2c: E2 0B 00 7C 04 00 65 3C A2 B6 53 A5 FB 72 90 00 5A [19:02:57]RAPDU: 65 3C A2 B6 53 A5 FB 72 90 00 [19:02:57]wFMCommunicate OK [19:02:57]SAM_PROTO_SignData done [19:02:57]FM_MakeSignedData done [19:02:57]CreateOFDProtocolMessage [19:02:57]wFMCommunicate request_size=4 [19:02:57]MH_SAM_APDU [19:02:57]CAPDU: 80 11 00 00 [19:02:57]Write to MH i2c: E2 08 00 7D 04 80 11 00 00 00 00 00 00 FB [19:02:57]Write i2c OK [19:02:57]MH_I2C_Read... [19:02:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:02:57]Read from MH i2c: E2 [19:02:57]MH_I2C_Read... [19:02:57]Read from MH i2c: E2 17 00 [19:02:57]MH_I2C_Read... [19:02:57]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 35 30 37 34 90 00 4D [19:02:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [19:02:57]wFMCommunicate OK [19:02:57]CreateOFDProtocolMessage done [19:02:57]OFDSenderStorePacket 63873 [19:02:57]StoreOFDPacket docnum=63873 [19:02:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 26 01 00 00 69 0E 1E 01 93 01 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 36 32 33 30 36 31 34 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 65 64 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 5F 13 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 81 F9 00 00 35 04 06 00 CE 83 D8 6E 4A 7A 65 3C A2 B6 53 A5 FB 72 [19:02:57]CheckFolder [19:02:57]dirname=/storage/ofd_packets [19:02:57]CheckFolder done [19:02:57]ProducePacketName [19:02:57]name=ofd_packets/00063873 [19:02:57]NVStorageSaveData ofd_packets/00063873 [19:02:57]File name is /storage/ofd_packets/00063873 [19:02:57]Write 324 bytes [19:02:57]NVStorageSaveData done [19:02:57]OFDSenderStorePacket done [19:02:57]KKMCreateOFDPacket done [19:02:57]NVStorageSaveData kkm_last_timestamp [19:02:57]File name is /storage/kkm_last_timestamp [19:02:57]Write 4 bytes [19:02:57]NVStorageSaveData done [19:02:57]ExternCall_PrintAddStr [19:02:57]wPrintStart [19:02:57]Write to MH i2c: 01 00 00 7E 04 82 [19:02:57]Write i2c OK [19:02:57]MH_I2C_Read... [19:02:57]Read from MH i2c: 01 [19:02:57]MH_I2C_Read... [19:02:57]Read from MH i2c: 01 07 00 [19:02:57]MH_I2C_Read... [19:02:57]Read from MH i2c: 01 07 00 7E 04 00 00 00 00 00 FF 0F 97 [19:02:57]RasterBufferAndPrint [19:02:57]line Счет N : (3)73442 [19:02:57]line ИНН: 02508201610067 [19:02:57]line Контрольно-Кассовый Чек [19:02:57]line ПРОДАЖА [19:02:57]line Товар: 46230614 [19:02:57]line Сигареты Richmond Red Edition [19:02:57]line 1.000 * 150.00 [19:02:57]line = 150.00 [19:02:57]line НДС 12% НСП 1% [19:02:57]line > о реализуемом товаре [19:02:57]line ИТОГО: 150.00 [19:02:57]line НСП 1% : 1.33 [19:02:57]line НДС 12% : 15.93 [19:02:57]line Наличными: 150.00 [19:02:57]line Безнал.: 0.00 [19:02:57]line Место: АЗС № 117 "Партнер Нефть" [19:02:57]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [19:02:57]line СНО: Общий режим [19:02:57]line Чек 131 03.06.2024 19:02 [19:02:57]line Смена: 373 ФФД: 1.0 [19:02:57]line ЗНМ: 0300000031 [19:02:57]line РНМ: 0000000000092737 [19:02:57]line Версия ККМ: 001 [19:02:57]line ФМ: 0000000000875074 [19:02:57]line ФД: 63873 [19:02:57]line ФПД: 227065667144314 [19:02:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T190255&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63873&fm=227065667144314&tin=02508201610067®Number=0000000000092737&sum=15000 [19:02:57]line 0 [19:02:57]OFD Sender: Processing packet 63873 [packets to send 14, broken 13] [19:02:57]ProducePacketName [19:02:57]name=ofd_packets/00063873 [19:02:57]OFD Sender: To server: pG, [19:02:57]CommunicateWithHost lk.salyk.kg:30040 [19:02:57]ConnectInit lk.salyk.kg [19:02:57]written 0, free lines is 4095 [19:02:57]Connected sock=10 [19:02:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 26 01 00 00 69 0E 1E 01 93 01 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 36 32 33 30 36 31 34 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 65 64 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 5F 13 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 81 F9 00 00 35 04 06 00 CE 83 D8 6E 4A 7A 65 3C A2 B6 53 A5 FB 72 [19:02:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 38 86 47 00 5A 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 35 30 37 34 10 04 04 00 81 F9 00 00 F4 03 04 00 30 BF 5D 66 B6 04 01 00 00 76 99 40 CF 51 9C 6A 1F [19:02:57]CommunicateWithHost err = 0 [19:02:57]CheckOFDResponse [19:02:57]1017 (14) - 77093643461234 [19:02:57]1041 (16) - 0000000000875074 [19:02:57]1040 (4) - 63873 [19:02:57]1012 (4) - 03.06.2024 13:03 [19:02:57]1206 (1) - 0 [19:02:57]OFD Sender: Remove packet 63873 [19:02:57]ProducePacketName [19:02:57]name=ofd_packets/00063873 [19:02:57]NVStorageDeleteData [19:02:58]Write to MH i2c: 01 00 00 A7 04 AB [19:02:58]Write i2c OK [19:02:58]MH_I2C_Read... [19:02:58]Read from MH i2c: 01 [19:02:58]MH_I2C_Read... [19:02:58]Read from MH i2c: 01 07 00 [19:02:58]MH_I2C_Read... [19:02:58]Read from MH i2c: 01 07 00 A7 04 00 00 00 00 00 CA 0C 88 [19:02:58]RasterBufferAndPrint [19:02:58]line [19:02:58]line [19:02:58]line [19:02:58]line [19:02:58]line [19:02:58]written 0, free lines is 3279 [19:02:58]MH_Cut [19:02:58]Write to MH i2c: D1 01 00 AE 04 01 84 [19:02:58]Write i2c OK [19:02:58]MH_I2C_Read... [19:02:58]Read from MH i2c: D1 [19:02:58]MH_I2C_Read... [19:02:58]Read from MH i2c: D1 01 00 [19:02:58]MH_I2C_Read... [19:02:58]Read from MH i2c: D1 01 00 AE 04 00 83 [19:02:58]Write to MH i2c: 01 00 00 AF 04 B3 [19:02:58]Write i2c OK [19:02:58]MH_I2C_Read... [19:02:58]OFD Sender: No OFD packet to send [19:02:58]*** Cut start [19:02:58]*** Partial cut [19:02:58]*** CUTSNS_PIN = 1 [19:02:58]*** CUTSNS_PIN = 0 [19:02:59]*** Brake cut motor [19:02:59]Read from MH i2c: 01 [19:02:59]MH_I2C_Read... [19:02:59]*** Stop cut motor [19:02:59]*** Cut end [19:02:59]Read from MH i2c: 01 07 00 [19:02:59]MH_I2C_Read... [19:02:59]Read from MH i2c: 01 07 00 AF 04 00 00 00 00 00 FF 0F C8 [19:02:59]process_action close_receipt done [19:02:59]requested_data is exist [19:02:59]produce_requested_data [19:02:59]requested_item fm.sn is exist - process it [19:02:59]wFMCommunicate request_size=4 [19:02:59]MH_SAM_APDU [19:02:59]CAPDU: 80 11 00 00 [19:02:59]Write to MH i2c: E2 08 00 B0 04 80 11 00 00 00 00 00 00 2E [19:02:59]Write i2c OK [19:02:59]MH_I2C_Read... [19:02:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:02:59]Read from MH i2c: E2 [19:02:59]MH_I2C_Read... [19:02:59]Read from MH i2c: E2 17 00 [19:02:59]MH_I2C_Read... [19:02:59]Read from MH i2c: E2 17 00 B0 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 80 [19:02:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [19:02:59]wFMCommunicate OK [19:02:59]requested_item fd.num is exist - process it [19:02:59]SAM_PROTO_GetFieldsCounters [19:02:59]wFMCommunicate request_size=4 [19:02:59]MH_SAM_APDU [19:02:59]CAPDU: 80 13 00 00 [19:02:59]Write to MH i2c: E2 08 00 B1 04 80 13 00 00 00 00 00 00 31 [19:02:59]Write i2c OK [19:02:59]MH_I2C_Read... [19:02:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:02:59]Read from MH i2c: E2 [19:02:59]MH_I2C_Read... [19:02:59]Read from MH i2c: E2 62 00 [19:02:59]MH_I2C_Read... [19:02:59]Read from MH i2c: E2 62 00 B1 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 81 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 83 00 00 00 5E 04 04 00 83 00 00 00 57 04 04 00 84 00 00 00 19 04 04 00 00 00 00 00 90 00 CD [19:02: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 81 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 83 00 00 00 5E 04 04 00 83 00 00 00 57 04 04 00 84 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:02:59]wFMCommunicate OK [19:02:59]SAM_PROTO_GetFieldsCounters done [19:02:59]requested_item shift.num is exist - process it [19:02:59]requested_item shift.opened is exist - process it [19:02:59]req_shift_opened [19:02:59]FM_GetShiftState [19:02:59]SAM_PROTO_GetShiftState [19:02:59]wFMCommunicate request_size=4 [19:02:59]MH_SAM_APDU [19:02:59]CAPDU: 80 13 01 00 [19:02:59]Write to MH i2c: E2 08 00 B2 04 80 13 01 00 00 00 00 00 33 [19:02:59]Write i2c OK [19:02:59]MH_I2C_Read... [19:02:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:02:59]Read from MH i2c: E2 [19:02:59]MH_I2C_Read... [19:02:59]Read from MH i2c: E2 0E 00 [19:02:59]MH_I2C_Read... [19:02:59]Read from MH i2c: E2 0E 00 B2 04 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 FF [19:02:59]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [19:02:59]wFMCommunicate OK [19:02:59]SAM_PROTO_GetShiftState done [19:02:59]FM_GetShiftState done [19:02:59]req_shift_opened done [19:02:59]requested_item shift.open_date is exist - process it [19:02:59]req_shift_open_date [19:02:59]req_shift_open_date done [19:02:59]produce_requested_data done [19:02:59]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63873,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [19:02:59]process_action_free close_receipt [19:02:59]json_value_free [19:02:59]json_value_free done [19:02:59]process_json_proto returns [19:02:59]Send response to host [19:02:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63873,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [19:02:59]free response buf [19:02:59]execute_script done [19:02:59]execute_script returns [19:02:59]free content buf [19:02:59]Sock 9.Close socket [19:02:59]Sock 9.Thread stoped [19:03:03]OFD Sender: No OFD packet to send [19:03:08]OFD Sender: No OFD packet to send [19:03:13]OFD Sender: No OFD packet to send [19:03:18]OFD Sender: No OFD packet to send [19:03:23]OFD Sender: No OFD packet to send [19:03:28]OFD Sender: No OFD packet to send [19:03:33]OFD Sender: No OFD packet to send [19:03:38]OFD Sender: No OFD packet to send [19:03:43]OFD Sender: No OFD packet to send [19:03:48]OFD Sender: No OFD packet to send [19:03:53]OFD Sender: No OFD packet to send [19:03:58]OFD Sender: No OFD packet to send [19:04:03]OFD Sender: No OFD packet to send [19:04:08]OFD Sender: No OFD packet to send [19:04:13]OFD Sender: No OFD packet to send [19:04:18]OFD Sender: No OFD packet to send [19:04:23]OFD Sender: No OFD packet to send [19:04:28]OFD Sender: No OFD packet to send [19:04:33]OFD Sender: No OFD packet to send [19:04:38]OFD Sender: No OFD packet to send [19:04:43]OFD Sender: No OFD packet to send [19:04:48]OFD Sender: No OFD packet to send [19:04:53]OFD Sender: No OFD packet to send [19:04:58]OFD Sender: No OFD packet to send [19:05:03]OFD Sender: No OFD packet to send [19:05:08]OFD Sender: No OFD packet to send [19:05:13]OFD Sender: No OFD packet to send [19:05:18]OFD Sender: No OFD packet to send [19:05:23]OFD Sender: No OFD packet to send [19:05:28]OFD Sender: No OFD packet to send [19:05:33]OFD Sender: No OFD packet to send [19:05:38]OFD Sender: No OFD packet to send [19:05:43]OFD Sender: No OFD packet to send [19:05:48]OFD Sender: No OFD packet to send [19:05:53]OFD Sender: No OFD packet to send [19:05:58]OFD Sender: No OFD packet to send [19:06:03]OFD Sender: No OFD packet to send [19:06:08]OFD Sender: No OFD packet to send [19:06:13]OFD Sender: No OFD packet to send [19:06:18]OFD Sender: No OFD packet to send [19:06:23]OFD Sender: No OFD packet to send [19:06:28]OFD Sender: No OFD packet to send [19:06:33]OFD Sender: No OFD packet to send [19:06:38]OFD Sender: No OFD packet to send [19:06:43]OFD Sender: No OFD packet to send [19:06:48]OFD Sender: No OFD packet to send [19:06:53]OFD Sender: No OFD packet to send [19:06:58]OFD Sender: No OFD packet to send [19:07:03]OFD Sender: No OFD packet to send [19:07:08]OFD Sender: No OFD packet to send [19:07:13]OFD Sender: No OFD packet to send [19:07:18]OFD Sender: No OFD packet to send [19:07:23]OFD Sender: No OFD packet to send [19:07:28]OFD Sender: No OFD packet to send [19:07:33]OFD Sender: No OFD packet to send [19:07:38]OFD Sender: No OFD packet to send [19:07:43]OFD Sender: No OFD packet to send [19:07:48]OFD Sender: No OFD packet to send [19:07:53]OFD Sender: No OFD packet to send [19:07:58]OFD Sender: No OFD packet to send [19:08:03]OFD Sender: No OFD packet to send [19:08:08]OFD Sender: No OFD packet to send [19:08:13]OFD Sender: No OFD packet to send [19:08:16]accept exits with 7 [19:08:16]New connection [19:08:16]New thread 3066576228 created [19:08:16]Thread 3066719588 joined [19:08:16]Waiting for new connection... [19:08:16] Sock 7.Parse request [19:08:16]Sock 7.Check first char [19:08:16]Sock 7.First char is OK [19:08:16]request: POST /json_proto HTTP/1.0 [19:08:16]Method: POST [19:08:16]URL: /json_proto [19:08:16]Method is POST - this is cgi request [19:08:16]url: /json_proto [19:08:16]query_string will be loaded in cgi processing [19:08:16]execute_cgi json_proto POST (null) [19:08:16]execute_cgi path=json_proto method=POST [19:08:16]POST find Content-Length [19:08:16]Host: 172.17.60.69:8080 [19:08:16]Content-Length: 699 [19:08:16]Content-Type: application/json [19:08:16] [19:08:16]POST finish read [19:08:16]Found Content-Length = 699 [19:08:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73443", "tax_sys" : 0, "items" : [ { "code": "4870002325113", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A PEPSI \u0433\u0430\u0437\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0439 \u0441\u0442 0,25\u043B", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 90.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:08:16]execute_script... [19:08:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73443", "tax_sys" : 0, "items" : [ { "code": "4870002325113", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A PEPSI \u0433\u0430\u0437\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0439 \u0441\u0442 0,25\u043B", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 90.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:08:16]POST & json_proto [19:08:16]process_json_proto [19:08:16]json parsed OK: [19:08:16]protocol is kg_v1.0 [19:08:16]action value=close_receipt [19:08:16]process_action close_receipt [19:08:16]cmd_close_receipt [19:08:16]MH_GetDate [19:08:16]Write to MH i2c: F0 00 00 B3 04 A6 [19:08:16]Write i2c OK [19:08:16]MH_I2C_Read... [19:08:16]Read from MH i2c: F0 [19:08:16]MH_I2C_Read... [19:08:16]Read from MH i2c: F0 09 00 [19:08:16]MH_I2C_Read... [19:08:16]Read from MH i2c: F0 09 00 B3 04 00 A0 14 5E 66 6A 96 4A 66 D7 [19:08:16]GetLastDocTimeStamp 1717441375 [19:08:16]current date 1717441696 [19:08:16]FM_GetShiftState [19:08:16]SAM_PROTO_GetShiftState [19:08:16]wFMCommunicate request_size=4 [19:08:16]MH_SAM_APDU [19:08:16]CAPDU: 80 13 01 00 [19:08:16]Write to MH i2c: E2 08 00 B4 04 80 13 01 00 00 00 00 00 35 [19:08:16]Write i2c OK [19:08:16]MH_I2C_Read... [19:08:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:08:16]Read from MH i2c: E2 [19:08:16]MH_I2C_Read... [19:08:16]Read from MH i2c: E2 0E 00 [19:08:16]MH_I2C_Read... [19:08:16]Read from MH i2c: E2 0E 00 B4 04 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 01 [19:08:16]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [19:08:16]wFMCommunicate OK [19:08:16]SAM_PROTO_GetShiftState done [19:08:16]FM_GetShiftState done [19:08:16]opened in 1717373173 [19:08:16]opened+sec_in_day 1717459573 [19:08:16]quantity*price = 9000 [19:08:16]sum+1 = 9001 [19:08:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 90.00 НСП 1% : 0.80 НДС 12% : 9.56 Наличными: 90.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 132 03.06.2024 19:08 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63874 ФПД: 146028347499111 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T190816&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63874&fm=146028347499111&tin=02508201610067®Number=0000000000092737&sum=9000 0 [19:08:17]StoreToDocumentArchive [19:08:17]shift 373 fd 63874 [19:08:17]save to /storage/0373/doc_00063874 [19:08:17]save last doc name /storage/0373/doc_00063874 to /storage/kkm_last_doc_name [19:08:17]save OK [19:08:17]Clear old archive folders... [19:08:17]ProcessDocumentItem done err = 0, tmpTLVsize=299 [19:08:17]tlvbuf is 00AD9AE0 [19:08:17]SAM_PROTO_ClearQueue [19:08:17]wFMCommunicate request_size=4 [19:08:17]MH_SAM_APDU [19:08:17]CAPDU: 80 09 00 00 [19:08:17]Write to MH i2c: E2 08 00 C1 04 80 09 00 00 00 00 00 00 37 [19:08:17]Write i2c OK [19:08:17]MH_I2C_Read... [19:08:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:08:17]Read from MH i2c: E2 [19:08:17]MH_I2C_Read... [19:08:17]Read from MH i2c: E2 03 00 [19:08:17]MH_I2C_Read... [19:08:17]Read from MH i2c: E2 03 00 C1 04 00 90 00 39 [19:08:17]RAPDU: 90 00 [19:08:17]wFMCommunicate OK [19:08:17]SAM_PROTO_ClearQueue done [19:08:17]KKMCreateOFDPacket [19:08:17]OFDProtocolAddRootSTLVToBuf [19:08:17]FM_MakeSignedData [19:08:17]FM_MakeSignedData [19:08:17]SAM_PROTO_SignData [19:08:17]wFMCommunicate request_size=4 [19:08:17]MH_SAM_APDU [19:08:17]CAPDU: 80 0D 01 02 [19:08:17]Write to MH i2c: E2 08 00 C2 04 80 0D 01 02 00 00 00 00 3F [19:08:17]Write i2c OK [19:08:17]MH_I2C_Read... [19:08:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:08:17]Read from MH i2c: E2 [19:08:17]MH_I2C_Read... [19:08:17]Read from MH i2c: E2 03 00 [19:08:17]MH_I2C_Read... [19:08:17]Read from MH i2c: E2 03 00 C2 04 00 90 00 3A [19:08:17]RAPDU: 90 00 [19:08:17]wFMCommunicate OK [19:08:17]wFMCommunicate request_size=255 [19:08:17]MH_SAM_APDU [19:08:17]CAPDU: 80 0D 02 02 FA 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 35 31 31 33 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 45 50 53 49 20 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 D0 BE D0 B2 D0 B0 D0 BD D0 BD D1 8B D0 B9 20 D1 81 D1 82 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 A0 14 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 [19:08:17]Write to MH i2c: E2 02 01 C3 04 80 0D 02 02 FA 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 35 31 31 33 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 45 50 53 49 20 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 D0 BE D0 B2 D0 B0 D0 BD D0 BD D1 8B D0 B9 20 D1 81 D1 82 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 A0 14 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 00 00 68 [19:08:17]Write i2c OK [19:08:17]MH_I2C_Read... [19:08:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:08:18]Read from MH i2c: E2 [19:08:18]MH_I2C_Read... [19:08:18]Read from MH i2c: E2 03 00 [19:08:18]MH_I2C_Read... [19:08:18]Read from MH i2c: E2 03 00 C3 04 00 90 00 3B [19:08:18]RAPDU: 90 00 [19:08:18]wFMCommunicate OK [19:08:18]wFMCommunicate request_size=58 [19:08:18]MH_SAM_APDU [19:08:18]CAPDU: 80 0D 02 02 35 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 82 F9 00 00 35 04 06 00 84 CF DF C7 A2 67 [19:08:18]Write to MH i2c: E2 3D 00 C4 04 80 0D 02 02 35 00 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 82 F9 00 00 35 04 06 00 84 CF DF C7 A2 67 00 00 B0 [19:08:18]Write i2c OK [19:08:18]MH_I2C_Read... [19:08:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:08:18]Read from MH i2c: E2 [19:08:18]MH_I2C_Read... [19:08:18]Read from MH i2c: E2 03 00 [19:08:18]MH_I2C_Read... [19:08:18]Read from MH i2c: E2 03 00 C4 04 00 90 00 3C [19:08:18]RAPDU: 90 00 [19:08:18]wFMCommunicate OK [19:08:18]wFMCommunicate request_size=4 [19:08:18]MH_SAM_APDU [19:08:18]CAPDU: 80 0D 03 02 [19:08:18]Write to MH i2c: E2 08 00 C5 04 80 0D 03 02 00 00 00 00 44 [19:08:18]Write i2c OK [19:08:18]MH_I2C_Read... [19:08:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:08:18]Read from MH i2c: E2 [19:08:18]MH_I2C_Read... [19:08:18]Read from MH i2c: E2 0B 00 [19:08:18]MH_I2C_Read... [19:08:18]Read from MH i2c: E2 0B 00 C5 04 00 FC 87 01 3E 69 64 9B 14 90 00 83 [19:08:18]RAPDU: FC 87 01 3E 69 64 9B 14 90 00 [19:08:18]wFMCommunicate OK [19:08:18]SAM_PROTO_SignData done [19:08:18]FM_MakeSignedData done [19:08:18]CreateOFDProtocolMessage [19:08:18]wFMCommunicate request_size=4 [19:08:18]MH_SAM_APDU [19:08:18]CAPDU: 80 11 00 00 [19:08:18]Write to MH i2c: E2 08 00 C6 04 80 11 00 00 00 00 00 00 44 [19:08:18]Write i2c OK [19:08:18]MH_I2C_Read... [19:08:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:08:18]Read from MH i2c: E2 [19:08:18]MH_I2C_Read... [19:08:18]Read from MH i2c: E2 17 00 [19:08:18]MH_I2C_Read... [19:08:18]Read from MH i2c: E2 17 00 C6 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 96 [19:08:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [19:08:18]wFMCommunicate OK [19:08:18]CreateOFDProtocolMessage done [19:08:18]OFDSenderStorePacket 63874 [19:08:18]StoreOFDPacket docnum=63874 [19:08:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 3F 01 00 00 6B 8A 37 01 D7 59 5A 03 01 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 35 31 31 33 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 45 50 53 49 20 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 D0 BE D0 B2 D0 B0 D0 BD D0 BD D1 8B D0 B9 20 D1 81 D1 82 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 A0 14 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 82 F9 00 00 35 04 06 00 84 CF DF C7 A2 67 FC 87 01 3E 69 64 9B 14 [19:08:18]CheckFolder [19:08:18]dirname=/storage/ofd_packets [19:08:18]CheckFolder done [19:08:18]ProducePacketName [19:08:18]name=ofd_packets/00063874 [19:08:18]NVStorageSaveData ofd_packets/00063874 [19:08:18]File name is /storage/ofd_packets/00063874 [19:08:18]Write 349 bytes [19:08:18]NVStorageSaveData done [19:08:18]OFDSenderStorePacket done [19:08:18]KKMCreateOFDPacket done [19:08:18]NVStorageSaveData kkm_last_timestamp [19:08:18]File name is /storage/kkm_last_timestamp [19:08:18]Write 4 bytes [19:08:18]NVStorageSaveData done [19:08:18]ExternCall_PrintAddStr [19:08:18]wPrintStart [19:08:18]Write to MH i2c: 01 00 00 C7 04 CB [19:08:18]Write i2c OK [19:08:18]MH_I2C_Read... [19:08:18]Read from MH i2c: 01 [19:08:18]MH_I2C_Read... [19:08:18]Read from MH i2c: 01 07 00 [19:08:18]MH_I2C_Read... [19:08:18]Read from MH i2c: 01 07 00 C7 04 00 00 00 00 00 FF 0F E0 [19:08:18]RasterBufferAndPrint [19:08:18]line Счет N : (3)73443 [19:08:18]line ИНН: 02508201610067 [19:08:18]line Контрольно-Кассовый Чек [19:08:18]line ПРОДАЖА [19:08:18]line Товар: 4870002325113 [19:08:18]line Напиток PEPSI газированный ст 0,25л [19:08:18]line 1.000 * 90.00 [19:08:18]line = 90.00 [19:08:18]line НДС 12% НСП 1% [19:08:18]line > о реализуемом товаре [19:08:18]line ИТОГО: 90.00 [19:08:18]line НСП 1% : 0.80 [19:08:18]line НДС 12% : 9.56 [19:08:18]line Наличными: 90.00 [19:08:18]line Безнал.: 0.00 [19:08:18]line Место: АЗС № 117 "Партнер Нефть" [19:08:18]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [19:08:18]line СНО: Общий режим [19:08:18]line Чек 132 03.06.2024 19:08 [19:08:18]line Смена: 373 ФФД: 1.0 [19:08:18]line ЗНМ: 0300000031 [19:08:18]line РНМ: 0000000000092737 [19:08:18]line Версия ККМ: 001 [19:08:18]line ФМ: 0000000000875074 [19:08:18]line ФД: 63874 [19:08:18]line ФПД: 146028347499111 [19:08:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T190816&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63874&fm=146028347499111&tin=02508201610067®Number=0000000000092737&sum=9000 [19:08:18]line 0 [19:08:18]OFD Sender: Processing packet 63874 [packets to send 14, broken 13] [19:08:18]ProducePacketName [19:08:18]name=ofd_packets/00063874 [19:08:18]OFD Sender: To server: pG, [19:08:18]CommunicateWithHost lk.salyk.kg:30040 [19:08:18]ConnectInit lk.salyk.kg [19:08:18]written 0, free lines is 4095 [19:08:18]Connected sock=11 [19: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 35 30 37 34 3F 01 00 00 6B 8A 37 01 D7 59 5A 03 01 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 35 31 31 33 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 45 50 53 49 20 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 D0 BE D0 B2 D0 B0 D0 BD D0 BD D1 8B D0 B9 20 D1 81 D1 82 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 A0 14 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 82 F9 00 00 35 04 06 00 84 CF DF C7 A2 67 FC 87 01 3E 69 64 9B 14 [19:08:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 7B D7 47 00 2E 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 35 30 37 34 10 04 04 00 82 F9 00 00 F4 03 04 00 71 C0 5D 66 B6 04 01 00 00 E7 EF 25 00 BF 9B 7F EE [19:08:18]CommunicateWithHost err = 0 [19:08:18]CheckOFDResponse [19:08:18]1017 (14) - 77093643461234 [19:08:18]1041 (16) - 0000000000875074 [19:08:18]1040 (4) - 63874 [19:08:18]1012 (4) - 03.06.2024 13:09 [19:08:18]1206 (1) - 0 [19:08:18]OFD Sender: Remove packet 63874 [19:08:18]ProducePacketName [19:08:18]name=ofd_packets/00063874 [19:08:18]NVStorageDeleteData [19:08:19]Write to MH i2c: 01 00 00 F0 04 F4 [19:08:19]Write i2c OK [19:08:19]MH_I2C_Read... [19:08:19]Read from MH i2c: 01 [19:08:19]MH_I2C_Read... [19:08:19]Read from MH i2c: 01 07 00 [19:08:19]MH_I2C_Read... [19:08:19]Read from MH i2c: 01 07 00 F0 04 00 00 00 00 00 E3 0C EA [19:08:19]RasterBufferAndPrint [19:08:19]line [19:08:19]line [19:08:19]line [19:08:19]line [19:08:19]line [19:08:19]written 0, free lines is 3305 [19:08:19]MH_Cut [19:08:19]Write to MH i2c: D1 01 00 F7 04 01 CD [19:08:19]Write i2c OK [19:08:19]MH_I2C_Read... [19:08:19]Read from MH i2c: D1 [19:08:19]MH_I2C_Read... [19:08:19]Read from MH i2c: D1 01 00 [19:08:19]MH_I2C_Read... [19:08:19]Read from MH i2c: D1 01 00 F7 04 00 CC [19:08:19]Write to MH i2c: 01 00 00 F8 04 FC [19:08:19]Write i2c OK [19:08:19]MH_I2C_Read... [19:08:19]OFD Sender: No OFD packet to send [19:08:19]*** Cut start [19:08:19]*** Partial cut [19:08:19]*** CUTSNS_PIN = 1 [19:08:19]*** CUTSNS_PIN = 0 [19:08:20]*** Brake cut motor [19:08:20]Read from MH i2c: 01 [19:08:20]MH_I2C_Read... [19:08:20]*** Stop cut motor [19:08:20]*** Cut end [19:08:20]Read from MH i2c: 01 07 00 [19:08:20]MH_I2C_Read... [19:08:20]Read from MH i2c: 01 07 00 F8 04 00 00 00 00 00 FF 0F 11 [19:08:20]process_action close_receipt done [19:08:20]requested_data is exist [19:08:20]produce_requested_data [19:08:20]requested_item fm.sn is exist - process it [19:08:20]wFMCommunicate request_size=4 [19:08:20]MH_SAM_APDU [19:08:20]CAPDU: 80 11 00 00 [19:08:20]Write to MH i2c: E2 08 00 F9 04 80 11 00 00 00 00 00 00 77 [19:08:20]Write i2c OK [19:08:20]MH_I2C_Read... [19:08:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:08:20]Read from MH i2c: E2 [19:08:20]MH_I2C_Read... [19:08:20]Read from MH i2c: E2 17 00 [19:08:20]MH_I2C_Read... [19:08:20]Read from MH i2c: E2 17 00 F9 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 C9 [19:08:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [19:08:20]wFMCommunicate OK [19:08:20]requested_item fd.num is exist - process it [19:08:20]SAM_PROTO_GetFieldsCounters [19:08:20]wFMCommunicate request_size=4 [19:08:20]MH_SAM_APDU [19:08:20]CAPDU: 80 13 00 00 [19:08:20]Write to MH i2c: E2 08 00 FA 04 80 13 00 00 00 00 00 00 7A [19:08:20]Write i2c OK [19:08:20]MH_I2C_Read... [19:08:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:08:20]Read from MH i2c: E2 [19:08:20]MH_I2C_Read... [19:08:20]Read from MH i2c: E2 62 00 [19:08:20]MH_I2C_Read... [19:08:20]Read from MH i2c: E2 62 00 FA 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 82 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 84 00 00 00 5E 04 04 00 84 00 00 00 57 04 04 00 85 00 00 00 19 04 04 00 00 00 00 00 90 00 1A [19:08: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 82 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 84 00 00 00 5E 04 04 00 84 00 00 00 57 04 04 00 85 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:08:20]wFMCommunicate OK [19:08:20]SAM_PROTO_GetFieldsCounters done [19:08:20]requested_item shift.num is exist - process it [19:08:20]requested_item shift.opened is exist - process it [19:08:20]req_shift_opened [19:08:20]FM_GetShiftState [19:08:20]SAM_PROTO_GetShiftState [19:08:20]wFMCommunicate request_size=4 [19:08:20]MH_SAM_APDU [19:08:20]CAPDU: 80 13 01 00 [19:08:20]Write to MH i2c: E2 08 00 FB 04 80 13 01 00 00 00 00 00 7C [19:08:20]Write i2c OK [19:08:20]MH_I2C_Read... [19:08:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:08:20]Read from MH i2c: E2 [19:08:20]MH_I2C_Read... [19:08:20]Read from MH i2c: E2 0E 00 [19:08:20]MH_I2C_Read... [19:08:20]Read from MH i2c: E2 0E 00 FB 04 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 48 [19:08:20]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [19:08:20]wFMCommunicate OK [19:08:20]SAM_PROTO_GetShiftState done [19:08:20]FM_GetShiftState done [19:08:20]req_shift_opened done [19:08:20]requested_item shift.open_date is exist - process it [19:08:20]req_shift_open_date [19:08:20]req_shift_open_date done [19:08:20]produce_requested_data done [19:08:20]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63874,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [19:08:20]process_action_free close_receipt [19:08:20]json_value_free [19:08:20]json_value_free done [19:08:20]process_json_proto returns [19:08:20]Send response to host [19:08:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63874,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [19:08:20]free response buf [19:08:20]execute_script done [19:08:20]execute_script returns [19:08:20]free content buf [19:08:20]Sock 7.Close socket [19:08:20]Sock 7.Thread stoped [19:08:24]OFD Sender: No OFD packet to send [19:08:29]OFD Sender: No OFD packet to send [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:27]accept exits with 9 [19:10:27]New connection [19:10:27]New thread 3066719588 created [19:10:27]Thread 3066576228 joined [19:10:27]Waiting for new connection... [19:10:27] Sock 9.Parse request [19:10:27]Sock 9.Check first char [19:10:27]Sock 9.First char is OK [19:10:27]request: POST /json_proto HTTP/1.0 [19:10:27]Method: POST [19:10:27]URL: /json_proto [19:10:27]Method is POST - this is cgi request [19:10:27]url: /json_proto [19:10:27]query_string will be loaded in cgi processing [19:10:27]execute_cgi json_proto POST (null) [19:10:27]execute_cgi path=json_proto method=POST [19:10:27]POST find Content-Length [19:10:27]Host: 172.17.60.69:8080 [19:10:27]Content-Length: 978 [19:10:27]Content-Type: application/json [19:10:27] [19:10:27]POST finish read [19:10:27]Found Content-Length = 978 [19:10:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)544070", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 41.440, "sum" : 3000.26, "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 117\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 20.72 \u0441\u043E\u043C", "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" ] } } [19:10:27]execute_script... [19:10: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)544070", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 41.440, "sum" : 3000.26, "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 117\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 20.72 \u0441\u043E\u043C", "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" ] } } [19:10:27]POST & json_proto [19:10:27]process_json_proto [19:10:27]json parsed OK: [19:10:27]protocol is kg_v1.0 [19:10:27]action value=close_receipt [19:10:27]process_action close_receipt [19:10:27]cmd_close_receipt [19:10:27]MH_GetDate [19:10:27]Write to MH i2c: F0 00 00 FC 04 EF [19:10:27]Write i2c OK [19:10:27]MH_I2C_Read... [19:10:27]Read from MH i2c: F0 [19:10:27]MH_I2C_Read... [19:10:27]Read from MH i2c: F0 09 00 [19:10:27]MH_I2C_Read... [19:10:27]Read from MH i2c: F0 09 00 FC 04 00 23 15 5E 66 6A 96 4A 66 A4 [19:10:27]GetLastDocTimeStamp 1717441696 [19:10:27]current date 1717441827 [19:10:27]FM_GetShiftState [19:10:27]SAM_PROTO_GetShiftState [19:10:27]wFMCommunicate request_size=4 [19:10:27]MH_SAM_APDU [19:10:27]CAPDU: 80 13 01 00 [19:10:27]Write to MH i2c: E2 08 00 FD 04 80 13 01 00 00 00 00 00 7E [19:10:27]Write i2c OK [19:10:27]MH_I2C_Read... [19:10:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:10:27]Read from MH i2c: E2 [19:10:27]MH_I2C_Read... [19:10:27]Read from MH i2c: E2 0E 00 [19:10:27]MH_I2C_Read... [19:10:27]Read from MH i2c: E2 0E 00 FD 04 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 4A [19:10:27]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [19:10:27]wFMCommunicate OK [19:10:27]SAM_PROTO_GetShiftState done [19:10:27]FM_GetShiftState done [19:10:27]opened in 1717373173 [19:10:27]opened+sec_in_day 1717459573 [19:10:27]quantity*price = 300025 [19:10:27]sum+1 = 300027 [19:10:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.61 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 133 03.06.2024 19:10 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 Дисконтная программа ДТ номер 117 сэкономлено 20.72 сом ФМ: 0000000000875074 ФД: 63875 ФПД: 80905807902205 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T191027&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63875&fm=80905807902205&tin=02508201610067®Number=0000000000092737&sum=300000 [19:10:28]StoreToDocumentArchive [19:10:28]shift 373 fd 63875 [19:10:28]save to /storage/0373/doc_00063875 [19:10:28]save last doc name /storage/0373/doc_00063875 to /storage/kkm_last_doc_name [19:10:28]save OK [19:10:28]Clear old archive folders... [19:10:28]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:10:28]tlvbuf is 00A9E1E0 [19:10:28]SAM_PROTO_ClearQueue [19:10:28]wFMCommunicate request_size=4 [19:10:28]MH_SAM_APDU [19:10:28]CAPDU: 80 09 00 00 [19:10:28]Write to MH i2c: E2 08 00 0A 05 80 09 00 00 00 00 00 00 81 [19:10:28]Write i2c OK [19:10:28]MH_I2C_Read... [19:10:28]Read from MH i2c: E2 [19:10:28]MH_I2C_Read... [19:10:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:10:28]Read from MH i2c: E2 03 00 [19:10:28]MH_I2C_Read... [19:10:28]Read from MH i2c: E2 03 00 0A 05 00 90 00 83 [19:10:28]RAPDU: 90 00 [19:10:28]wFMCommunicate OK [19:10:28]SAM_PROTO_ClearQueue done [19:10:28]KKMCreateOFDPacket [19:10:28]OFDProtocolAddRootSTLVToBuf [19:10:28]FM_MakeSignedData [19:10:28]FM_MakeSignedData [19:10:28]SAM_PROTO_SignData [19:10:28]wFMCommunicate request_size=4 [19:10:28]MH_SAM_APDU [19:10:28]CAPDU: 80 0D 01 02 [19:10:28]Write to MH i2c: E2 08 00 0B 05 80 0D 01 02 00 00 00 00 89 [19:10:28]Write i2c OK [19:10:28]MH_I2C_Read... [19:10:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:10:28]Read from MH i2c: E2 [19:10:28]MH_I2C_Read... [19:10:28]Read from MH i2c: E2 03 00 [19:10:28]MH_I2C_Read... [19:10:28]Read from MH i2c: E2 03 00 0B 05 00 90 00 84 [19:10:28]RAPDU: 90 00 [19:10:28]wFMCommunicate OK [19:10:28]wFMCommunicate request_size=255 [19:10:28]MH_SAM_APDU [19:10: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 35 FF 03 08 00 03 E0 A1 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 FA 93 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 75 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 85 00 00 00 F4 03 04 00 23 15 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 83 F9 00 00 35 04 06 00 49 95 59 F0 [19:10:28]Write to MH i2c: E2 02 01 0C 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 35 FF 03 08 00 03 E0 A1 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 FA 93 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 75 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 85 00 00 00 F4 03 04 00 23 15 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 83 F9 00 00 35 04 06 00 49 95 59 F0 00 00 40 [19:10:28]Write i2c OK [19:10:28]MH_I2C_Read... [19:10:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:10:28]Read from MH i2c: E2 [19:10:28]MH_I2C_Read... [19:10:28]Read from MH i2c: E2 03 00 [19:10:28]MH_I2C_Read... [19:10:28]Read from MH i2c: E2 03 00 0C 05 00 90 00 85 [19:10:28]RAPDU: 90 00 [19:10:28]wFMCommunicate OK [19:10:28]wFMCommunicate request_size=7 [19:10:28]MH_SAM_APDU [19:10:28]CAPDU: 80 0D 02 02 02 B5 FD [19:10:28]Write to MH i2c: E2 0A 00 0D 05 80 0D 02 02 02 00 B5 FD 00 00 42 [19:10:28]Write i2c OK [19:10:28]MH_I2C_Read... [19:10:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:10:28]Read from MH i2c: E2 [19:10:28]MH_I2C_Read... [19:10:28]Read from MH i2c: E2 03 00 [19:10:28]MH_I2C_Read... [19:10:28]Read from MH i2c: E2 03 00 0D 05 00 90 00 86 [19:10:28]RAPDU: 90 00 [19:10:28]wFMCommunicate OK [19:10:28]wFMCommunicate request_size=4 [19:10:28]MH_SAM_APDU [19:10:28]CAPDU: 80 0D 03 02 [19:10:28]Write to MH i2c: E2 08 00 0E 05 80 0D 03 02 00 00 00 00 8E [19:10:28]Write i2c OK [19:10:28]MH_I2C_Read... [19:10:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:10:28]Read from MH i2c: E2 [19:10:28]MH_I2C_Read... [19:10:28]Read from MH i2c: E2 0B 00 [19:10:28]MH_I2C_Read... [19:10:28]Read from MH i2c: E2 0B 00 0E 05 00 7D 18 D3 9E F6 F5 F6 EC 90 00 62 [19:10:28]RAPDU: 7D 18 D3 9E F6 F5 F6 EC 90 00 [19:10:28]wFMCommunicate OK [19:10:28]SAM_PROTO_SignData done [19:10:28]FM_MakeSignedData done [19:10:28]CreateOFDProtocolMessage [19:10:28]wFMCommunicate request_size=4 [19:10:28]MH_SAM_APDU [19:10:28]CAPDU: 80 11 00 00 [19:10:28]Write to MH i2c: E2 08 00 0F 05 80 11 00 00 00 00 00 00 8E [19:10:28]Write i2c OK [19:10:28]MH_I2C_Read... [19:10:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:10:28]Read from MH i2c: E2 [19:10:28]MH_I2C_Read... [19:10:28]Read from MH i2c: E2 17 00 [19:10:28]MH_I2C_Read... [19:10:28]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 35 30 37 34 90 00 E0 [19:10:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [19:10:28]wFMCommunicate OK [19:10:28]CreateOFDProtocolMessage done [19:10:28]OFDSenderStorePacket 63875 [19:10:28]StoreOFDPacket docnum=63875 [19:10:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0C 01 00 00 CC FC 04 01 24 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 35 FF 03 08 00 03 E0 A1 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 FA 93 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 75 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 85 00 00 00 F4 03 04 00 23 15 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 83 F9 00 00 35 04 06 00 49 95 59 F0 B5 FD 7D 18 D3 9E F6 F5 F6 EC [19:10:28]CheckFolder [19:10:28]dirname=/storage/ofd_packets [19:10:28]CheckFolder done [19:10:28]ProducePacketName [19:10:28]name=ofd_packets/00063875 [19:10:28]NVStorageSaveData ofd_packets/00063875 [19:10:28]File name is /storage/ofd_packets/00063875 [19:10:28]Write 298 bytes [19:10:28]NVStorageSaveData done [19:10:28]OFDSenderStorePacket done [19:10:28]KKMCreateOFDPacket done [19:10:28]NVStorageSaveData kkm_last_timestamp [19:10:28]File name is /storage/kkm_last_timestamp [19:10:28]Write 4 bytes [19:10:28]NVStorageSaveData done [19:10:28]ExternCall_PrintAddStr [19:10:28]wPrintStart [19:10:28]Write to MH i2c: 01 00 00 10 05 15 [19:10:28]Write i2c OK [19:10:28]MH_I2C_Read... [19:10:28]Read from MH i2c: 01 [19:10:28]MH_I2C_Read... [19:10:28]Read from MH i2c: 01 07 00 [19:10:28]MH_I2C_Read... [19:10:28]Read from MH i2c: 01 07 00 10 05 00 00 00 00 00 FF 0F 2A [19:10:28]RasterBufferAndPrint [19:10:28]line Счет N : (1)544070 [19:10:28]line ИНН: 02508201610067 [19:10:28]line Контрольно-Кассовый Чек [19:10:28]line ПРОДАЖА [19:10:28]line ТРК (МРК, ГНК) : 61 [19:10:28]line Товар: 2710194210 [19:10:28]line ДТ-К-5 [19:10:28]line 41.440 * 72.40 [19:10:28]line = 3000.26 [19:10:28]line НДС 12% НСП 1% [19:10:28]line > о реализуемом товаре [19:10:28]line ОКРУГЛЕНИЕ: -0.26 [19:10:28]line ИТОГО: 3000.00 [19:10:28]line Внесено: 3000.00 [19:10:28]line СДАЧА: 0.00 [19:10:28]line НСП 1% : 26.55 [19:10:28]line НДС 12% : 318.61 [19:10:28]line Наличными: 3000.00 [19:10:28]line Безнал.: 0.00 [19:10:28]line Место: АЗС № 117 "Партнер Нефть" [19:10:28]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [19:10:28]line СНО: Общий режим [19:10:28]line Чек 133 03.06.2024 19:10 [19:10:28]line Смена: 373 ФФД: 1.0 [19:10:28]line ЗНМ: 0300000031 [19:10:28]line РНМ: 0000000000092737 [19:10:28]line Версия ККМ: 001 [19:10:28]line [19:10:28]line Дисконтная программа [19:10:28]line ДТ [19:10:28]line номер 117 [19:10:28]line сэкономлено 20.72 сом [19:10:28]line ФМ: 0000000000875074 [19:10:28]line ФД: 63875 [19:10:28]line ФПД: 80905807902205 [19:10:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T191027&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63875&fm=80905807902205&tin=02508201610067®Number=0000000000092737&sum=300000 [19:10:29]OFD Sender: Processing packet 63875 [packets to send 14, broken 13] [19:10:29]ProducePacketName [19:10:29]name=ofd_packets/00063875 [19:10:29]OFD Sender: To server: pG, [19:10:29]CommunicateWithHost lk.salyk.kg:30040 [19:10:29]ConnectInit lk.salyk.kg [19:10:29]written 0, free lines is 4095 [19:10:29]Connected sock=10 [19:10:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0C 01 00 00 CC FC 04 01 24 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 35 FF 03 08 00 03 E0 A1 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 FA 93 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 75 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 85 00 00 00 F4 03 04 00 23 15 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 83 F9 00 00 35 04 06 00 49 95 59 F0 B5 FD 7D 18 D3 9E F6 F5 F6 EC [19:10:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 94 D6 47 00 9A 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 35 30 37 34 10 04 04 00 83 F9 00 00 F4 03 04 00 F4 C0 5D 66 B6 04 01 00 00 BB D6 46 FE 2D C7 96 EA [19:10:29]CommunicateWithHost err = 0 [19:10:29]CheckOFDResponse [19:10:29]1017 (14) - 77093643461234 [19:10:29]1041 (16) - 0000000000875074 [19:10:29]1040 (4) - 63875 [19:10:29]1012 (4) - 03.06.2024 13:11 [19:10:29]1206 (1) - 0 [19:10:29]OFD Sender: Remove packet 63875 [19:10:29]ProducePacketName [19:10:29]name=ofd_packets/00063875 [19:10:29]NVStorageDeleteData [19:10:29]Write to MH i2c: 01 00 00 40 05 45 [19:10:29]Write i2c OK [19:10:29]MH_I2C_Read... [19:10:29]Read from MH i2c: 01 [19:10:29]MH_I2C_Read... [19:10:29]Read from MH i2c: 01 07 00 [19:10:29]MH_I2C_Read... [19:10:29]Read from MH i2c: 01 07 00 40 05 00 00 00 00 00 94 0C EC [19:10:29]RasterBufferAndPrint [19:10:29]line [19:10:29]line [19:10:29]line [19:10:29]line [19:10:29]line [19:10:29]written 0, free lines is 3227 [19:10:29]MH_Cut [19:10:29]Write to MH i2c: D1 01 00 47 05 01 1E [19:10:29]Write i2c OK [19:10:29]MH_I2C_Read... [19:10:29]Read from MH i2c: D1 [19:10:29]MH_I2C_Read... [19:10:29]Read from MH i2c: D1 01 00 [19:10:29]MH_I2C_Read... [19:10:29]Read from MH i2c: D1 01 00 47 05 00 1D [19:10:29]Write to MH i2c: 01 00 00 48 05 4D [19:10:29]Write i2c OK [19:10:29]MH_I2C_Read... [19:10:29]OFD Sender: No OFD packet to send [19:10:30]*** Cut start [19:10:30]*** Partial cut [19:10:30]*** CUTSNS_PIN = 1 [19:10:30]*** CUTSNS_PIN = 0 [19:10:30]*** Brake cut motor [19:10:31]Read from MH i2c: 01 [19:10:31]*** Stop cut motor [19:10:31]*** Cut end [19:10:31]MH_I2C_Read... [19:10:31]Read from MH i2c: 01 07 00 [19:10:31]MH_I2C_Read... [19:10:31]Read from MH i2c: 01 07 00 48 05 00 00 00 00 00 FF 0F 62 [19:10:31]process_action close_receipt done [19:10:31]requested_data is exist [19:10:31]produce_requested_data [19:10:31]requested_item fm.sn is exist - process it [19:10:31]wFMCommunicate request_size=4 [19:10:31]MH_SAM_APDU [19:10:31]CAPDU: 80 11 00 00 [19:10:31]Write to MH i2c: E2 08 00 49 05 80 11 00 00 00 00 00 00 C8 [19:10:31]Write i2c OK [19:10:31]MH_I2C_Read... [19:10:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:10:31]Read from MH i2c: E2 [19:10:31]MH_I2C_Read... [19:10:31]Read from MH i2c: E2 17 00 [19:10:31]MH_I2C_Read... [19:10:31]Read from MH i2c: E2 17 00 49 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 1A [19:10:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [19:10:31]wFMCommunicate OK [19:10:31]requested_item fd.num is exist - process it [19:10:31]SAM_PROTO_GetFieldsCounters [19:10:31]wFMCommunicate request_size=4 [19:10:31]MH_SAM_APDU [19:10:31]CAPDU: 80 13 00 00 [19:10:31]Write to MH i2c: E2 08 00 4A 05 80 13 00 00 00 00 00 00 CB [19:10:31]Write i2c OK [19:10:31]MH_I2C_Read... [19:10:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:10:31]Read from MH i2c: E2 [19:10:31]MH_I2C_Read... [19:10:31]Read from MH i2c: E2 62 00 [19:10:31]MH_I2C_Read... [19:10:31]Read from MH i2c: E2 62 00 4A 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 83 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 85 00 00 00 5E 04 04 00 85 00 00 00 57 04 04 00 86 00 00 00 19 04 04 00 00 00 00 00 90 00 6F [19:10:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 83 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 85 00 00 00 5E 04 04 00 85 00 00 00 57 04 04 00 86 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:10:31]wFMCommunicate OK [19:10:31]SAM_PROTO_GetFieldsCounters done [19:10:31]requested_item shift.num is exist - process it [19:10:31]requested_item shift.opened is exist - process it [19:10:31]req_shift_opened [19:10:31]FM_GetShiftState [19:10:31]SAM_PROTO_GetShiftState [19:10:31]wFMCommunicate request_size=4 [19:10:31]MH_SAM_APDU [19:10:31]CAPDU: 80 13 01 00 [19:10:31]Write to MH i2c: E2 08 00 4B 05 80 13 01 00 00 00 00 00 CD [19:10:31]Write i2c OK [19:10:31]MH_I2C_Read... [19:10:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:10:31]Read from MH i2c: E2 [19:10:31]MH_I2C_Read... [19:10:31]Read from MH i2c: E2 0E 00 [19:10:31]MH_I2C_Read... [19:10:31]Read from MH i2c: E2 0E 00 4B 05 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 99 [19:10:31]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [19:10:31]wFMCommunicate OK [19:10:31]SAM_PROTO_GetShiftState done [19:10:31]FM_GetShiftState done [19:10:31]req_shift_opened done [19:10:31]requested_item shift.open_date is exist - process it [19:10:31]req_shift_open_date [19:10:31]req_shift_open_date done [19:10:31]produce_requested_data done [19:10:31]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63875,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [19:10:31]process_action_free close_receipt [19:10:31]json_value_free [19:10:31]json_value_free done [19:10:31]process_json_proto returns [19:10:31]Send response to host [19:10:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63875,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [19:10:31]free response buf [19:10:31]execute_script done [19:10:31]execute_script returns [19:10:31]free content buf [19:10:31]Sock 9.Close socket [19:10:31]Sock 9.Thread stoped [19:10:34]OFD Sender: No OFD packet to send [19:10:39]OFD Sender: No OFD packet to send [19:10:45]OFD Sender: No OFD packet to send [19:10:50]OFD Sender: No OFD packet to send [19:10:55]OFD Sender: No OFD packet to send [19:11:00]OFD Sender: No OFD packet to send [19:11:05]OFD Sender: No OFD packet to send [19:11:10]OFD Sender: No OFD packet to send [19:11:15]OFD Sender: No OFD packet to send [19:11:20]OFD Sender: No OFD packet to send [19:11:25]OFD Sender: No OFD packet to send [19:11:30]OFD Sender: No OFD packet to send [19:11:35]OFD Sender: No OFD packet to send [19:11:40]OFD Sender: No OFD packet to send [19:11:45]OFD Sender: No OFD packet to send [19:11:50]OFD Sender: No OFD packet to send [19:11:55]OFD Sender: No OFD packet to send [19:12:00]OFD Sender: No OFD packet to send [19:12:05]OFD Sender: No OFD packet to send [19:12:10]OFD Sender: No OFD packet to send [19:12:15]OFD Sender: No OFD packet to send [19:12:20]OFD Sender: No OFD packet to send [19:12:25]OFD Sender: No OFD packet to send [19:12:30]OFD Sender: No OFD packet to send [19:12:35]OFD Sender: No OFD packet to send [19:12:40]OFD Sender: No OFD packet to send [19:12:45]OFD Sender: No OFD packet to send [19:12:50]OFD Sender: No OFD packet to send [19:12:55]OFD Sender: No OFD packet to send [19:13:00]OFD Sender: No OFD packet to send [19:13:05]OFD Sender: No OFD packet to send [19:13:10]OFD Sender: No OFD packet to send [19:13:15]OFD Sender: No OFD packet to send [19:13:20]OFD Sender: No OFD packet to send [19:13:25]OFD Sender: No OFD packet to send [19:13:29]accept exits with 7 [19:13:29]New connection [19:13:29]New thread 3066576228 created [19:13:29]Thread 3066719588 joined [19:13:29]Waiting for new connection... [19:13:29] Sock 7.Parse request [19:13:29]Sock 7.Check first char [19:13:29]Sock 7.First char is OK [19:13:29]request: POST /json_proto HTTP/1.0 [19:13:29]Method: POST [19:13:29]URL: /json_proto [19:13:29]Method is POST - this is cgi request [19:13:29]url: /json_proto [19:13:29]query_string will be loaded in cgi processing [19:13:29]execute_cgi json_proto POST (null) [19:13:29]execute_cgi path=json_proto method=POST [19:13:29]POST find Content-Length [19:13:29]Host: 172.17.60.69:8080 [19:13:29]Content-Length: 629 [19:13:29]Content-Type: application/json [19:13:29] [19:13:29]POST finish read [19:13:29]Found Content-Length = 629 [19:13:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73444", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:13:29]execute_script... [19:13:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73444", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:13:29]POST & json_proto [19:13:29]process_json_proto [19:13:29]json parsed OK: [19:13:29]protocol is kg_v1.0 [19:13:29]action value=close_receipt [19:13:29]process_action close_receipt [19:13:29]cmd_close_receipt [19:13:29]MH_GetDate [19:13:29]Write to MH i2c: F0 00 00 4C 05 40 [19:13:29]Write i2c OK [19:13:29]MH_I2C_Read... [19:13:29]Read from MH i2c: F0 [19:13:29]MH_I2C_Read... [19:13:29]Read from MH i2c: F0 09 00 [19:13:29]MH_I2C_Read... [19:13:29]Read from MH i2c: F0 09 00 4C 05 00 D9 15 5E 66 6A 96 4A 66 AB [19:13:29]GetLastDocTimeStamp 1717441827 [19:13:29]current date 1717442009 [19:13:29]FM_GetShiftState [19:13:29]SAM_PROTO_GetShiftState [19:13:29]wFMCommunicate request_size=4 [19:13:29]MH_SAM_APDU [19:13:29]CAPDU: 80 13 01 00 [19:13:29]Write to MH i2c: E2 08 00 4D 05 80 13 01 00 00 00 00 00 CF [19:13:29]Write i2c OK [19:13:29]MH_I2C_Read... [19:13:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:13:29]Read from MH i2c: E2 [19:13:29]MH_I2C_Read... [19:13:29]Read from MH i2c: E2 0E 00 [19:13:29]MH_I2C_Read... [19:13:29]Read from MH i2c: E2 0E 00 4D 05 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 9B [19:13:29]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [19:13:29]wFMCommunicate OK [19:13:29]SAM_PROTO_GetShiftState done [19:13:29]FM_GetShiftState done [19:13:29]opened in 1717373173 [19:13:29]opened+sec_in_day 1717459573 [19:13:29]quantity*price = 5000 [19:13:29]sum+1 = 5001 [19:13:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 50.00 НСП 1% : 0.44 НДС 12% : 5.31 Наличными: 50.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 134 03.06.2024 19:13 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63876 ФПД: 273409006984951 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T191329&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63876&fm=273409006984951&tin=02508201610067®Number=0000000000092737&sum=5000 0 [19:13:30]StoreToDocumentArchive [19:13:30]shift 373 fd 63876 [19:13:30]save to /storage/0373/doc_00063876 [19:13:30]save last doc name /storage/0373/doc_00063876 to /storage/kkm_last_doc_name [19:13:30]save OK [19:13:30]Clear old archive folders... [19:13:30]ProcessDocumentItem done err = 0, tmpTLVsize=269 [19:13:30]tlvbuf is 00AD2D80 [19:13:30]SAM_PROTO_ClearQueue [19:13:30]wFMCommunicate request_size=4 [19:13:30]MH_SAM_APDU [19:13:30]CAPDU: 80 09 00 00 [19:13:30]Write to MH i2c: E2 08 00 5A 05 80 09 00 00 00 00 00 00 D1 [19:13:30]Write i2c OK [19:13:30]MH_I2C_Read... [19:13:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:13:30]Read from MH i2c: E2 [19:13:30]MH_I2C_Read... [19:13:30]Read from MH i2c: E2 03 00 [19:13:30]MH_I2C_Read... [19:13:30]Read from MH i2c: E2 03 00 5A 05 00 90 00 D3 [19:13:30]RAPDU: 90 00 [19:13:30]wFMCommunicate OK [19:13:30]SAM_PROTO_ClearQueue done [19:13:30]KKMCreateOFDPacket [19:13:30]OFDProtocolAddRootSTLVToBuf [19:13:30]FM_MakeSignedData [19:13:30]FM_MakeSignedData [19:13:30]SAM_PROTO_SignData [19:13:30]wFMCommunicate request_size=4 [19:13:30]MH_SAM_APDU [19:13:30]CAPDU: 80 0D 01 02 [19:13:30]Write to MH i2c: E2 08 00 5B 05 80 0D 01 02 00 00 00 00 D9 [19:13:30]Write i2c OK [19:13:30]MH_I2C_Read... [19:13:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:13:30]Read from MH i2c: E2 [19:13:30]MH_I2C_Read... [19:13:30]Read from MH i2c: E2 03 00 [19:13:30]MH_I2C_Read... [19:13:30]Read from MH i2c: E2 03 00 5B 05 00 90 00 D4 [19:13:30]RAPDU: 90 00 [19:13:30]wFMCommunicate OK [19:13:30]wFMCommunicate request_size=255 [19:13:30]MH_SAM_APDU [19:13:30]CAPDU: 80 0D 02 02 FA 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 D9 15 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 [19:13:30]Write to MH i2c: E2 02 01 5C 05 80 0D 02 02 FA 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 D9 15 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 00 00 A1 [19:13:30]Write i2c OK [19:13:30]MH_I2C_Read... [19:13:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:13:31]Read from MH i2c: E2 [19:13:31]MH_I2C_Read... [19:13:31]Read from MH i2c: E2 03 00 [19:13:31]MH_I2C_Read... [19:13:31]Read from MH i2c: E2 03 00 5C 05 00 90 00 D5 [19:13:31]RAPDU: 90 00 [19:13:31]wFMCommunicate OK [19:13:31]wFMCommunicate request_size=28 [19:13:31]MH_SAM_APDU [19:13:31]CAPDU: 80 0D 02 02 17 37 35 30 37 34 10 04 04 00 84 F9 00 00 35 04 06 00 F8 A9 FE BD 5E F7 [19:13:31]Write to MH i2c: E2 1F 00 5D 05 80 0D 02 02 17 00 37 35 30 37 34 10 04 04 00 84 F9 00 00 35 04 06 00 F8 A9 FE BD 5E F7 00 00 96 [19:13:31]Write i2c OK [19:13:31]MH_I2C_Read... [19:13:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:13:31]Read from MH i2c: E2 [19:13:31]MH_I2C_Read... [19:13:31]Read from MH i2c: E2 03 00 [19:13:31]MH_I2C_Read... [19:13:31]Read from MH i2c: E2 03 00 5D 05 00 90 00 D6 [19:13:31]RAPDU: 90 00 [19:13:31]wFMCommunicate OK [19:13:31]wFMCommunicate request_size=4 [19:13:31]MH_SAM_APDU [19:13:31]CAPDU: 80 0D 03 02 [19:13:31]Write to MH i2c: E2 08 00 5E 05 80 0D 03 02 00 00 00 00 DE [19:13:31]Write i2c OK [19:13:31]MH_I2C_Read... [19:13:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:13:31]Read from MH i2c: E2 [19:13:31]MH_I2C_Read... [19:13:31]Read from MH i2c: E2 0B 00 [19:13:31]MH_I2C_Read... [19:13:31]Read from MH i2c: E2 0B 00 5E 05 00 CD DD 7D F3 5A 69 85 49 90 00 8A [19:13:31]RAPDU: CD DD 7D F3 5A 69 85 49 90 00 [19:13:31]wFMCommunicate OK [19:13:31]SAM_PROTO_SignData done [19:13:31]FM_MakeSignedData done [19:13:31]CreateOFDProtocolMessage [19:13:31]wFMCommunicate request_size=4 [19:13:31]MH_SAM_APDU [19:13:31]CAPDU: 80 11 00 00 [19:13:31]Write to MH i2c: E2 08 00 5F 05 80 11 00 00 00 00 00 00 DE [19:13:31]Write i2c OK [19:13:31]MH_I2C_Read... [19:13:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:13:31]Read from MH i2c: E2 [19:13:31]MH_I2C_Read... [19:13:31]Read from MH i2c: E2 17 00 [19:13:31]MH_I2C_Read... [19:13:31]Read from MH i2c: E2 17 00 5F 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 30 [19:13:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [19:13:31]wFMCommunicate OK [19:13:31]CreateOFDProtocolMessage done [19:13:31]OFDSenderStorePacket 63876 [19:13:31]StoreOFDPacket docnum=63876 [19:13:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 21 01 00 00 81 21 19 01 0A 99 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 D9 15 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 84 F9 00 00 35 04 06 00 F8 A9 FE BD 5E F7 CD DD 7D F3 5A 69 85 49 [19:13:31]CheckFolder [19:13:31]dirname=/storage/ofd_packets [19:13:31]CheckFolder done [19:13:31]ProducePacketName [19:13:31]name=ofd_packets/00063876 [19:13:31]NVStorageSaveData ofd_packets/00063876 [19:13:31]File name is /storage/ofd_packets/00063876 [19:13:31]Write 319 bytes [19:13:31]NVStorageSaveData done [19:13:31]OFDSenderStorePacket done [19:13:31]KKMCreateOFDPacket done [19:13:31]NVStorageSaveData kkm_last_timestamp [19:13:31]File name is /storage/kkm_last_timestamp [19:13:31]Write 4 bytes [19:13:31]NVStorageSaveData done [19:13:31]ExternCall_PrintAddStr [19:13:31]wPrintStart [19:13:31]Write to MH i2c: 01 00 00 60 05 65 [19:13:31]Write i2c OK [19:13:31]MH_I2C_Read... [19:13:31]Read from MH i2c: 01 [19:13:31]MH_I2C_Read... [19:13:31]Read from MH i2c: 01 07 00 [19:13:31]MH_I2C_Read... [19:13:31]Read from MH i2c: 01 07 00 60 05 00 00 00 00 00 FF 0F 7A [19:13:31]RasterBufferAndPrint [19:13:31]line Счет N : (3)73444 [19:13:31]line ИНН: 02508201610067 [19:13:31]line Контрольно-Кассовый Чек [19:13:31]line ПРОДАЖА [19:13:31]line Товар: 4700000160358 [19:13:31]line Вода Легенда 1л [19:13:31]line 1.000 * 50.00 [19:13:31]line = 50.00 [19:13:31]line НДС 12% НСП 1% [19:13:31]line > о реализуемом товаре [19:13:31]line ИТОГО: 50.00 [19:13:31]line НСП 1% : 0.44 [19:13:31]line НДС 12% : 5.31 [19:13:31]line Наличными: 50.00 [19:13:31]line Безнал.: 0.00 [19:13:31]line Место: АЗС № 117 "Партнер Нефть" [19:13:31]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [19:13:31]line СНО: Общий режим [19:13:31]line Чек 134 03.06.2024 19:13 [19:13:31]line Смена: 373 ФФД: 1.0 [19:13:31]line ЗНМ: 0300000031 [19:13:31]line РНМ: 0000000000092737 [19:13:31]line Версия ККМ: 001 [19:13:31]line ФМ: 0000000000875074 [19:13:31]line ФД: 63876 [19:13:31]line ФПД: 273409006984951 [19:13:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T191329&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63876&fm=273409006984951&tin=02508201610067®Number=0000000000092737&sum=5000 [19:13:31]OFD Sender: Processing packet 63876 [packets to send 14, broken 13] [19:13:31]ProducePacketName [19:13:31]name=ofd_packets/00063876 [19:13:31]OFD Sender: To server: pG, [19:13:31]CommunicateWithHost lk.salyk.kg:30040 [19:13:31]ConnectInit lk.salyk.kg [19:13:31]line 0 [19:13:31]written 0, free lines is 4095 [19:13:31]Connected sock=10 [19:13:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 21 01 00 00 81 21 19 01 0A 99 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 D9 15 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 84 F9 00 00 35 04 06 00 F8 A9 FE BD 5E F7 CD DD 7D F3 5A 69 85 49 [19:13:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 E4 18 47 00 DC 71 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 84 F9 00 00 F4 03 04 00 AA C1 5D 66 B6 04 01 00 00 A9 64 B5 37 B4 FC 17 39 [19:13:31]CommunicateWithHost err = 0 [19:13:31]CheckOFDResponse [19:13:31]1017 (14) - 77093643461234 [19:13:31]1041 (16) - 0000000000875074 [19:13:31]1040 (4) - 63876 [19:13:31]1012 (4) - 03.06.2024 13:14 [19:13:31]1206 (1) - 0 [19:13:31]OFD Sender: Remove packet 63876 [19:13:31]ProducePacketName [19:13:31]name=ofd_packets/00063876 [19:13:31]NVStorageDeleteData [19:13:32]Write to MH i2c: 01 00 00 88 05 8D [19:13:32]Write i2c OK [19:13:32]MH_I2C_Read... [19:13:32]Read from MH i2c: 01 [19:13:32]MH_I2C_Read... [19:13:32]Read from MH i2c: 01 07 00 [19:13:32]MH_I2C_Read... [19:13:32]Read from MH i2c: 01 07 00 88 05 00 00 00 00 00 FD 0C 9D [19:13:32]RasterBufferAndPrint [19:13:32]line [19:13:32]line [19:13:32]line [19:13:32]line [19:13:32]line [19:13:32]written 0, free lines is 3334 [19:13:32]MH_Cut [19:13:32]Write to MH i2c: D1 01 00 8F 05 01 66 [19:13:32]Write i2c OK [19:13:32]MH_I2C_Read... [19:13:32]Read from MH i2c: D1 [19:13:32]MH_I2C_Read... [19:13:32]Read from MH i2c: D1 01 00 [19:13:32]MH_I2C_Read... [19:13:32]Read from MH i2c: D1 01 00 8F 05 00 65 [19:13:32]Write to MH i2c: 01 00 00 90 05 95 [19:13:32]Write i2c OK [19:13:32]MH_I2C_Read... [19:13:32]OFD Sender: No OFD packet to send [19:13:32]*** Cut start [19:13:32]*** Partial cut [19:13:32]*** CUTSNS_PIN = 1 [19:13:32]*** CUTSNS_PIN = 0 [19:13:33]*** Brake cut motor [19:13:33]Read from MH i2c: 01 [19:13:33]MH_I2C_Read... [19:13:33]*** Stop cut motor [19:13:33]*** Cut end [19:13:33]Read from MH i2c: 01 07 00 [19:13:33]MH_I2C_Read... [19:13:33]Read from MH i2c: 01 07 00 90 05 00 00 00 00 00 FF 0F AA [19:13:33]process_action close_receipt done [19:13:33]requested_data is exist [19:13:33]produce_requested_data [19:13:33]requested_item fm.sn is exist - process it [19:13:33]wFMCommunicate request_size=4 [19:13:33]MH_SAM_APDU [19:13:33]CAPDU: 80 11 00 00 [19:13:33]Write to MH i2c: E2 08 00 91 05 80 11 00 00 00 00 00 00 10 [19:13:33]Write i2c OK [19:13:33]MH_I2C_Read... [19:13:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:13:33]Read from MH i2c: E2 [19:13:33]MH_I2C_Read... [19:13:33]Read from MH i2c: E2 17 00 [19:13:33]MH_I2C_Read... [19:13:33]Read from MH i2c: E2 17 00 91 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 62 [19:13:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [19:13:33]wFMCommunicate OK [19:13:33]requested_item fd.num is exist - process it [19:13:33]SAM_PROTO_GetFieldsCounters [19:13:33]wFMCommunicate request_size=4 [19:13:33]MH_SAM_APDU [19:13:33]CAPDU: 80 13 00 00 [19:13:33]Write to MH i2c: E2 08 00 92 05 80 13 00 00 00 00 00 00 13 [19:13:33]Write i2c OK [19:13:33]MH_I2C_Read... [19:13:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:13:33]Read from MH i2c: E2 [19:13:33]MH_I2C_Read... [19:13:33]Read from MH i2c: E2 62 00 [19:13:33]MH_I2C_Read... [19:13:33]Read from MH i2c: E2 62 00 92 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 84 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 86 00 00 00 5E 04 04 00 86 00 00 00 57 04 04 00 87 00 00 00 19 04 04 00 00 00 00 00 90 00 BB [19:13: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 84 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 86 00 00 00 5E 04 04 00 86 00 00 00 57 04 04 00 87 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:13:33]wFMCommunicate OK [19:13:33]SAM_PROTO_GetFieldsCounters done [19:13:33]requested_item shift.num is exist - process it [19:13:33]requested_item shift.opened is exist - process it [19:13:33]req_shift_opened [19:13:33]FM_GetShiftState [19:13:33]SAM_PROTO_GetShiftState [19:13:33]wFMCommunicate request_size=4 [19:13:33]MH_SAM_APDU [19:13:33]CAPDU: 80 13 01 00 [19:13:33]Write to MH i2c: E2 08 00 93 05 80 13 01 00 00 00 00 00 15 [19:13:33]Write i2c OK [19:13:33]MH_I2C_Read... [19:13:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:13:33]Read from MH i2c: E2 [19:13:33]MH_I2C_Read... [19:13:33]Read from MH i2c: E2 0E 00 [19:13:33]MH_I2C_Read... [19:13:33]Read from MH i2c: E2 0E 00 93 05 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 E1 [19:13:33]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [19:13:33]wFMCommunicate OK [19:13:33]SAM_PROTO_GetShiftState done [19:13:33]FM_GetShiftState done [19:13:33]req_shift_opened done [19:13:33]requested_item shift.open_date is exist - process it [19:13:33]req_shift_open_date [19:13:33]req_shift_open_date done [19:13:33]produce_requested_data done [19:13:33]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63876,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [19:13:33]process_action_free close_receipt [19:13:33]json_value_free [19:13:33]json_value_free done [19:13:33]process_json_proto returns [19:13:33]Send response to host [19:13:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63876,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [19:13:33]free response buf [19:13:33]execute_script done [19:13:33]execute_script returns [19:13:33]free content buf [19:13:33]Sock 7.Close socket [19:13:33]Sock 7.Thread stoped [19:13:37]OFD Sender: No OFD packet to send [19:13:42]OFD Sender: No OFD packet to send [19:13:47]OFD Sender: No OFD packet to send [19:13:52]OFD Sender: No OFD packet to send [19:13:57]OFD Sender: No OFD packet to send [19:14:02]OFD Sender: No OFD packet to send [19:14:07]OFD Sender: No OFD packet to send [19:14:12]OFD Sender: No OFD packet to send [19:14:17]OFD Sender: No OFD packet to send [19:14:22]OFD Sender: No OFD packet to send [19:14:27]OFD Sender: No OFD packet to send [19:14:32]OFD Sender: No OFD packet to send [19:14:37]OFD Sender: No OFD packet to send [19:14:42]OFD Sender: No OFD packet to send [19:14:47]OFD Sender: No OFD packet to send [19:14:52]OFD Sender: No OFD packet to send [19:14:57]OFD Sender: No OFD packet to send [19:15:02]OFD Sender: No OFD packet to send [19:15:07]OFD Sender: No OFD packet to send [19:15:12]OFD Sender: No OFD packet to send [19:15:17]OFD Sender: No OFD packet to send [19:15:22]OFD Sender: No OFD packet to send [19:15:27]OFD Sender: No OFD packet to send [19:15:32]OFD Sender: No OFD packet to send [19:15:37]OFD Sender: No OFD packet to send [19:15:42]OFD Sender: No OFD packet to send [19:15:47]OFD Sender: No OFD packet to send [19:15:52]OFD Sender: No OFD packet to send [19:15:57]OFD Sender: No OFD packet to send [19:16:02]OFD Sender: No OFD packet to send [19:16:07]OFD Sender: No OFD packet to send [19:16:12]OFD Sender: No OFD packet to send [19:16:17]OFD Sender: No OFD packet to send [19:16:22]OFD Sender: No OFD packet to send [19:16:27]OFD Sender: No OFD packet to send [19:16:32]OFD Sender: No OFD packet to send [19:16:37]OFD Sender: No OFD packet to send [19:16:42]OFD Sender: No OFD packet to send [19:16:47]OFD Sender: No OFD packet to send [19:16:52]OFD Sender: No OFD packet to send [19:16:57]OFD Sender: No OFD packet to send [19:17:02]OFD Sender: No OFD packet to send [19:17:07]OFD Sender: No OFD packet to send [19:17:12]OFD Sender: No OFD packet to send [19:17:17]OFD Sender: No OFD packet to send [19:17:22]OFD Sender: No OFD packet to send [19:17:27]OFD Sender: No OFD packet to send [19:17:32]OFD Sender: No OFD packet to send [19:17:37]OFD Sender: No OFD packet to send [19:17:42]OFD Sender: No OFD packet to send [19:17:47]OFD Sender: No OFD packet to send [19:17:52]OFD Sender: No OFD packet to send [19:17:57]OFD Sender: No OFD packet to send [19:18:02]OFD Sender: No OFD packet to send [19:18:07]OFD Sender: No OFD packet to send [19:18:12]OFD Sender: No OFD packet to send [19:18:17]OFD Sender: No OFD packet to send [19:18:22]OFD Sender: No OFD packet to send [19:18:27]OFD Sender: No OFD packet to send [19:18:32]OFD Sender: No OFD packet to send [19:18:37]OFD Sender: No OFD packet to send [19:18:42]OFD Sender: No OFD packet to send [19:18:47]OFD Sender: No OFD packet to send [19:18:52]OFD Sender: No OFD packet to send [19:18:57]OFD Sender: No OFD packet to send [19:19:02]OFD Sender: No OFD packet to send [19:19:07]OFD Sender: No OFD packet to send [19:19:12]OFD Sender: No OFD packet to send [19:19:17]OFD Sender: No OFD packet to send [19:19:22]OFD Sender: No OFD packet to send [19:19:27]OFD Sender: No OFD packet to send [19:19:32]OFD Sender: No OFD packet to send [19:19:37]OFD Sender: No OFD packet to send [19:19:42]OFD Sender: No OFD packet to send [19:19:47]OFD Sender: No OFD packet to send [19:19:52]OFD Sender: No OFD packet to send [19:19:57]OFD Sender: No OFD packet to send [19:20:02]OFD Sender: No OFD packet to send [19:20:07]OFD Sender: No OFD packet to send [19:20:12]OFD Sender: No OFD packet to send [19:20:17]OFD Sender: No OFD packet to send [19:20:22]OFD Sender: No OFD packet to send [19:20:27]OFD Sender: No OFD packet to send [19:20:32]OFD Sender: No OFD packet to send [19:20:37]OFD Sender: No OFD packet to send [19:20:42]OFD Sender: No OFD packet to send [19:20:47]OFD Sender: No OFD packet to send [19:20:52]OFD Sender: No OFD packet to send [19:20:57]OFD Sender: No OFD packet to send [19:21:02]OFD Sender: No OFD packet to send [19:21:07]OFD Sender: No OFD packet to send [19:21:12]OFD Sender: No OFD packet to send [19:21:17]OFD Sender: No OFD packet to send [19:21:22]OFD Sender: No OFD packet to send [19:21:27]OFD Sender: No OFD packet to send [19:21:32]OFD Sender: No OFD packet to send [19:21:37]OFD Sender: No OFD packet to send [19:21:42]OFD Sender: No OFD packet to send [19:21:47]OFD Sender: No OFD packet to send [19:21:52]OFD Sender: No OFD packet to send [19:21:57]OFD Sender: No OFD packet to send [19:22:02]OFD Sender: No OFD packet to send [19:22:07]OFD Sender: No OFD packet to send [19:22:12]OFD Sender: No OFD packet to send [19:22:17]OFD Sender: No OFD packet to send [19:22:22]OFD Sender: No OFD packet to send [19:22:27]OFD Sender: No OFD packet to send [19:22:32]OFD Sender: No OFD packet to send [19:22:37]OFD Sender: No OFD packet to send [19:22:42]OFD Sender: No OFD packet to send [19:22:47]OFD Sender: No OFD packet to send [19:22:52]OFD Sender: No OFD packet to send [19:22:57]OFD Sender: No OFD packet to send [19:23:02]OFD Sender: No OFD packet to send [19:23:07]OFD Sender: No OFD packet to send [19:23:12]OFD Sender: No OFD packet to send [19:23:17]OFD Sender: No OFD packet to send [19:23:22]OFD Sender: No OFD packet to send [19:23:27]OFD Sender: No OFD packet to send [19:23:32]OFD Sender: No OFD packet to send [19:23:37]OFD Sender: No OFD packet to send [19:23:42]OFD Sender: No OFD packet to send [19:23:47]OFD Sender: No OFD packet to send [19:23:52]OFD Sender: No OFD packet to send [19:23:57]OFD Sender: No OFD packet to send [19:24:02]OFD Sender: No OFD packet to send [19:24:07]OFD Sender: No OFD packet to send [19:24:12]OFD Sender: No OFD packet to send [19:24:17]OFD Sender: No OFD packet to send [19:24:22]OFD Sender: No OFD packet to send [19:24:27]OFD Sender: No OFD packet to send [19:24:32]OFD Sender: No OFD packet to send [19:24:37]OFD Sender: No OFD packet to send [19:24:42]OFD Sender: No OFD packet to send [19:24:47]OFD Sender: No OFD packet to send [19:24:52]OFD Sender: No OFD packet to send [19:24:57]OFD Sender: No OFD packet to send [19:25:02]OFD Sender: No OFD packet to send [19:25:07]OFD Sender: No OFD packet to send [19:25:12]OFD Sender: No OFD packet to send [19:25:17]OFD Sender: No OFD packet to send [19:25:22]OFD Sender: No OFD packet to send [19:25:27]OFD Sender: No OFD packet to send [19:25:32]OFD Sender: No OFD packet to send [19:25:37]OFD Sender: No OFD packet to send [19:25:42]OFD Sender: No OFD packet to send [19:25:47]OFD Sender: No OFD packet to send [19:25:52]OFD Sender: No OFD packet to send [19:25:57]OFD Sender: No OFD packet to send [19:26:02]OFD Sender: No OFD packet to send [19:26:07]OFD Sender: No OFD packet to send [19:26:12]OFD Sender: No OFD packet to send [19:26:17]OFD Sender: No OFD packet to send [19:26:22]OFD Sender: No OFD packet to send [19:26:27]OFD Sender: No OFD packet to send [19:26:32]OFD Sender: No OFD packet to send [19:26:38]OFD Sender: No OFD packet to send [19:26:43]OFD Sender: No OFD packet to send [19:26:48]OFD Sender: No OFD packet to send [19:26:53]OFD Sender: No OFD packet to send [19:26:58]OFD Sender: No OFD packet to send [19:27:03]OFD Sender: No OFD packet to send [19:27:08]OFD Sender: No OFD packet to send [19:27:13]OFD Sender: No OFD packet to send [19:27:18]OFD Sender: No OFD packet to send [19:27:23]OFD Sender: No OFD packet to send [19:27:28]OFD Sender: No OFD packet to send [19:27:33]OFD Sender: No OFD packet to send [19:27:38]OFD Sender: No OFD packet to send [19:27:43]OFD Sender: No OFD packet to send [19:27:48]OFD Sender: No OFD packet to send [19:27:48]accept exits with 9 [19:27:48]New connection [19:27:48]New thread 3066719588 created [19:27:48]Thread 3066576228 joined [19:27:48]Waiting for new connection... [19:27:48] Sock 9.Parse request [19:27:48]Sock 9.Check first char [19:27:48]Sock 9.First char is OK [19:27:48]request: POST /json_proto HTTP/1.0 [19:27:48]Method: POST [19:27:48]URL: /json_proto [19:27:48]Method is POST - this is cgi request [19:27:48]url: /json_proto [19:27:48]query_string will be loaded in cgi processing [19:27:48]execute_cgi json_proto POST (null) [19:27:48]execute_cgi path=json_proto method=POST [19:27:48]POST find Content-Length [19:27:48]Host: 172.17.60.69:8080 [19:27:48]Content-Length: 629 [19:27:48]Content-Type: application/json [19:27:48] [19:27:48]POST finish read [19:27:48]Found Content-Length = 629 [19:27:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73445", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:27:48]execute_script... [19:27:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73445", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:27:48]POST & json_proto [19:27:48]process_json_proto [19:27:48]json parsed OK: [19:27:48]protocol is kg_v1.0 [19:27:48]action value=close_receipt [19:27:48]process_action close_receipt [19:27:48]cmd_close_receipt [19:27:48]MH_GetDate [19:27:48]Write to MH i2c: F0 00 00 94 05 88 [19:27:48]Write i2c OK [19:27:48]MH_I2C_Read... [19:27:48]Read from MH i2c: F0 [19:27:48]MH_I2C_Read... [19:27:48]Read from MH i2c: F0 09 00 [19:27:48]MH_I2C_Read... [19:27:48]Read from MH i2c: F0 09 00 94 05 00 34 19 5E 66 6A 96 4A 66 52 [19:27:48]GetLastDocTimeStamp 1717442009 [19:27:48]current date 1717442868 [19:27:48]FM_GetShiftState [19:27:48]SAM_PROTO_GetShiftState [19:27:48]wFMCommunicate request_size=4 [19:27:48]MH_SAM_APDU [19:27:48]CAPDU: 80 13 01 00 [19:27:48]Write to MH i2c: E2 08 00 95 05 80 13 01 00 00 00 00 00 17 [19:27:48]Write i2c OK [19:27:48]MH_I2C_Read... [19:27:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:27:48]Read from MH i2c: E2 [19:27:48]MH_I2C_Read... [19:27:48]Read from MH i2c: E2 0E 00 [19:27:48]MH_I2C_Read... [19:27:48]Read from MH i2c: E2 0E 00 95 05 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 E3 [19:27:48]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [19:27:48]wFMCommunicate OK [19:27:48]SAM_PROTO_GetShiftState done [19:27:48]FM_GetShiftState done [19:27:48]opened in 1717373173 [19:27:48]opened+sec_in_day 1717459573 [19:27:48]quantity*price = 5000 [19:27:48]sum+1 = 5001 [19:27:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 50.00 НСП 1% : 0.44 НДС 12% : 5.31 Наличными: 50.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 135 03.06.2024 19:27 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63877 ФПД: 53063355080424 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T192748&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63877&fm=53063355080424&tin=02508201610067®Number=0000000000092737&sum=5000 0 [19:27:49]StoreToDocumentArchive [19:27:49]shift 373 fd 63877 [19:27:49]save to /storage/0373/doc_00063877 [19:27:49]save last doc name /storage/0373/doc_00063877 to /storage/kkm_last_doc_name [19:27:49]save OK [19:27:49]Clear old archive folders... [19:27:49]ProcessDocumentItem done err = 0, tmpTLVsize=269 [19:27:49]tlvbuf is 00AD32D0 [19:27:49]SAM_PROTO_ClearQueue [19:27:49]wFMCommunicate request_size=4 [19:27:49]MH_SAM_APDU [19:27:49]CAPDU: 80 09 00 00 [19:27:49]Write to MH i2c: E2 08 00 A2 05 80 09 00 00 00 00 00 00 19 [19:27:49]Write i2c OK [19:27:49]MH_I2C_Read... [19:27:49]Read from MH i2c: E2 [19:27:49]MH_I2C_Read... [19:27:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:27:49]Read from MH i2c: E2 03 00 [19:27:49]MH_I2C_Read... [19:27:49]Read from MH i2c: E2 03 00 A2 05 00 90 00 1B [19:27:49]RAPDU: 90 00 [19:27:49]wFMCommunicate OK [19:27:49]SAM_PROTO_ClearQueue done [19:27:49]KKMCreateOFDPacket [19:27:49]OFDProtocolAddRootSTLVToBuf [19:27:49]FM_MakeSignedData [19:27:49]FM_MakeSignedData [19:27:49]SAM_PROTO_SignData [19:27:49]wFMCommunicate request_size=4 [19:27:49]MH_SAM_APDU [19:27:49]CAPDU: 80 0D 01 02 [19:27:49]Write to MH i2c: E2 08 00 A3 05 80 0D 01 02 00 00 00 00 21 [19:27:49]Write i2c OK [19:27:49]MH_I2C_Read... [19:27:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:27:49]Read from MH i2c: E2 [19:27:49]MH_I2C_Read... [19:27:49]Read from MH i2c: E2 03 00 [19:27:49]MH_I2C_Read... [19:27:49]Read from MH i2c: E2 03 00 A3 05 00 90 00 1C [19:27:49]RAPDU: 90 00 [19:27:49]wFMCommunicate OK [19:27:49]wFMCommunicate request_size=255 [19:27:49]MH_SAM_APDU [19:27:49]CAPDU: 80 0D 02 02 FA 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 34 19 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 [19:27:49]Write to MH i2c: E2 02 01 A4 05 80 0D 02 02 FA 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 34 19 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 00 00 49 [19:27:49]Write i2c OK [19:27:49]MH_I2C_Read... [19:27:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:27:49]Read from MH i2c: E2 [19:27:49]MH_I2C_Read... [19:27:49]Read from MH i2c: E2 03 00 [19:27:49]MH_I2C_Read... [19:27:49]Read from MH i2c: E2 03 00 A4 05 00 90 00 1D [19:27:49]RAPDU: 90 00 [19:27:49]wFMCommunicate OK [19:27:49]wFMCommunicate request_size=28 [19:27:49]MH_SAM_APDU [19:27:49]CAPDU: 80 0D 02 02 17 37 35 30 37 34 10 04 04 00 85 F9 00 00 35 04 06 00 30 42 C6 6E 1E E8 [19:27:49]Write to MH i2c: E2 1F 00 A5 05 80 0D 02 02 17 00 37 35 30 37 34 10 04 04 00 85 F9 00 00 35 04 06 00 30 42 C6 6E 1E E8 00 00 DA [19:27:49]Write i2c OK [19:27:49]MH_I2C_Read... [19:27:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:27:50]Read from MH i2c: E2 [19:27:50]MH_I2C_Read... [19:27:50]Read from MH i2c: E2 03 00 [19:27:50]MH_I2C_Read... [19:27:50]Read from MH i2c: E2 03 00 A5 05 00 90 00 1E [19:27:50]RAPDU: 90 00 [19:27:50]wFMCommunicate OK [19:27:50]wFMCommunicate request_size=4 [19:27:50]MH_SAM_APDU [19:27:50]CAPDU: 80 0D 03 02 [19:27:50]Write to MH i2c: E2 08 00 A6 05 80 0D 03 02 00 00 00 00 26 [19:27:50]Write i2c OK [19:27:50]MH_I2C_Read... [19:27:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:27:50]Read from MH i2c: E2 [19:27:50]MH_I2C_Read... [19:27:50]Read from MH i2c: E2 0B 00 [19:27:50]MH_I2C_Read... [19:27:50]Read from MH i2c: E2 0B 00 A6 05 00 4F DD 01 F0 71 4C 71 DE 90 00 50 [19:27:50]RAPDU: 4F DD 01 F0 71 4C 71 DE 90 00 [19:27:50]wFMCommunicate OK [19:27:50]SAM_PROTO_SignData done [19:27:50]FM_MakeSignedData done [19:27:50]CreateOFDProtocolMessage [19:27:50]wFMCommunicate request_size=4 [19:27:50]MH_SAM_APDU [19:27:50]CAPDU: 80 11 00 00 [19:27:50]Write to MH i2c: E2 08 00 A7 05 80 11 00 00 00 00 00 00 26 [19:27:50]Write i2c OK [19:27:50]MH_I2C_Read... [19:27:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:27:50]Read from MH i2c: E2 [19:27:50]MH_I2C_Read... [19:27:50]Read from MH i2c: E2 17 00 [19:27:50]MH_I2C_Read... [19:27:50]Read from MH i2c: E2 17 00 A7 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 78 [19:27:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [19:27:50]wFMCommunicate OK [19:27:50]CreateOFDProtocolMessage done [19:27:50]OFDSenderStorePacket 63877 [19:27:50]StoreOFDPacket docnum=63877 [19:27:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 21 01 00 00 31 C8 19 01 0D 48 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 34 19 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 85 F9 00 00 35 04 06 00 30 42 C6 6E 1E E8 4F DD 01 F0 71 4C 71 DE [19:27:50]CheckFolder [19:27:50]dirname=/storage/ofd_packets [19:27:50]CheckFolder done [19:27:50]ProducePacketName [19:27:50]name=ofd_packets/00063877 [19:27:50]NVStorageSaveData ofd_packets/00063877 [19:27:50]File name is /storage/ofd_packets/00063877 [19:27:50]Write 319 bytes [19:27:50]NVStorageSaveData done [19:27:50]OFDSenderStorePacket done [19:27:50]KKMCreateOFDPacket done [19:27:50]NVStorageSaveData kkm_last_timestamp [19:27:50]File name is /storage/kkm_last_timestamp [19:27:50]Write 4 bytes [19:27:50]NVStorageSaveData done [19:27:50]ExternCall_PrintAddStr [19:27:50]wPrintStart [19:27:50]Write to MH i2c: 01 00 00 A8 05 AD [19:27:50]Write i2c OK [19:27:50]MH_I2C_Read... [19:27:50]Read from MH i2c: 01 [19:27:50]MH_I2C_Read... [19:27:50]Read from MH i2c: 01 07 00 [19:27:50]MH_I2C_Read... [19:27:50]Read from MH i2c: 01 07 00 A8 05 00 00 00 00 00 FF 0F C2 [19:27:50]RasterBufferAndPrint [19:27:50]line Счет N : (3)73445 [19:27:50]line ИНН: 02508201610067 [19:27:50]line Контрольно-Кассовый Чек [19:27:50]line ПРОДАЖА [19:27:50]line Товар: 4700000160358 [19:27:50]line Вода Легенда 1л [19:27:50]line 1.000 * 50.00 [19:27:50]line = 50.00 [19:27:50]line НДС 12% НСП 1% [19:27:50]line > о реализуемом товаре [19:27:50]line ИТОГО: 50.00 [19:27:50]line НСП 1% : 0.44 [19:27:50]line НДС 12% : 5.31 [19:27:50]line Наличными: 50.00 [19:27:50]line Безнал.: 0.00 [19:27:50]line Место: АЗС № 117 "Партнер Нефть" [19:27:50]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [19:27:50]line СНО: Общий режим [19:27:50]line Чек 135 03.06.2024 19:27 [19:27:50]line Смена: 373 ФФД: 1.0 [19:27:50]line ЗНМ: 0300000031 [19:27:50]line РНМ: 0000000000092737 [19:27:50]line Версия ККМ: 001 [19:27:50]line ФМ: 0000000000875074 [19:27:50]line ФД: 63877 [19:27:50]line ФПД: 53063355080424 [19:27:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T192748&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63877&fm=53063355080424&tin=02508201610067®Number=0000000000092737&sum=5000 [19:27:50]OFD Sender: Processing packet 63877 [packets to send 14, broken 13] [19:27:50]ProducePacketName [19:27:50]name=ofd_packets/00063877 [19:27:50]OFD Sender: To server: pG, [19:27:50]CommunicateWithHost lk.salyk.kg:30040 [19:27:50]ConnectInit lk.salyk.kg [19:27:50]line 0 [19:27:50]written 0, free lines is 4095 [19:27:50]Connected sock=10 [19:27:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 21 01 00 00 31 C8 19 01 0D 48 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 34 19 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 85 F9 00 00 35 04 06 00 30 42 C6 6E 1E E8 4F DD 01 F0 71 4C 71 DE [19:27:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 C9 B1 47 00 AE 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 35 30 37 34 10 04 04 00 85 F9 00 00 F4 03 04 00 05 C5 5D 66 B6 04 01 00 00 AD AA A8 E8 4C C6 AE A3 [19:27:50]CommunicateWithHost err = 0 [19:27:50]CheckOFDResponse [19:27:50]1017 (14) - 77093643461234 [19:27:50]1041 (16) - 0000000000875074 [19:27:50]1040 (4) - 63877 [19:27:50]1012 (4) - 03.06.2024 13:28 [19:27:50]1206 (1) - 0 [19:27:50]OFD Sender: Remove packet 63877 [19:27:50]ProducePacketName [19:27:50]name=ofd_packets/00063877 [19:27:50]NVStorageDeleteData [19:27:50]Write to MH i2c: 01 00 00 D0 05 D5 [19:27:50]Write i2c OK [19:27:50]MH_I2C_Read... [19:27:50]Read from MH i2c: 01 [19:27:50]MH_I2C_Read... [19:27:50]Read from MH i2c: 01 07 00 [19:27:50]MH_I2C_Read... [19:27:50]Read from MH i2c: 01 07 00 D0 05 00 00 00 00 00 02 0D EB [19:27:50]RasterBufferAndPrint [19:27:50]line [19:27:50]line [19:27:50]line [19:27:50]line [19:27:50]line [19:27:50]written 0, free lines is 3337 [19:27:50]MH_Cut [19:27:50]Write to MH i2c: D1 01 00 D7 05 01 AE [19:27:50]Write i2c OK [19:27:50]MH_I2C_Read... [19:27:50]Read from MH i2c: D1 [19:27:50]MH_I2C_Read... [19:27:50]Read from MH i2c: D1 01 00 [19:27:50]MH_I2C_Read... [19:27:50]Read from MH i2c: D1 01 00 D7 05 00 AD [19:27:50]Write to MH i2c: 01 00 00 D8 05 DD [19:27:50]Write i2c OK [19:27:50]MH_I2C_Read... [19:27:51]OFD Sender: No OFD packet to send [19:27:51]*** Cut start [19:27:51]*** Partial cut [19:27:51]*** CUTSNS_PIN = 1 [19:27:51]*** CUTSNS_PIN = 0 [19:27:51]*** Brake cut motor [19:27:52]Read from MH i2c: 01 [19:27:52]MH_I2C_Read... [19:27:52]*** Stop cut motor [19:27:52]*** Cut end [19:27:52]Read from MH i2c: 01 07 00 [19:27:52]MH_I2C_Read... [19:27:52]Read from MH i2c: 01 07 00 D8 05 00 00 00 00 00 FF 0F F2 [19:27:52]process_action close_receipt done [19:27:52]requested_data is exist [19:27:52]produce_requested_data [19:27:52]requested_item fm.sn is exist - process it [19:27:52]wFMCommunicate request_size=4 [19:27:52]MH_SAM_APDU [19:27:52]CAPDU: 80 11 00 00 [19:27:52]Write to MH i2c: E2 08 00 D9 05 80 11 00 00 00 00 00 00 58 [19:27:52]Write i2c OK [19:27:52]MH_I2C_Read... [19:27:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:27:52]Read from MH i2c: E2 [19:27:52]MH_I2C_Read... [19:27:52]Read from MH i2c: E2 17 00 [19:27:52]MH_I2C_Read... [19:27:52]Read from MH i2c: E2 17 00 D9 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 AA [19:27:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [19:27:52]wFMCommunicate OK [19:27:52]requested_item fd.num is exist - process it [19:27:52]SAM_PROTO_GetFieldsCounters [19:27:52]wFMCommunicate request_size=4 [19:27:52]MH_SAM_APDU [19:27:52]CAPDU: 80 13 00 00 [19:27:52]Write to MH i2c: E2 08 00 DA 05 80 13 00 00 00 00 00 00 5B [19:27:52]Write i2c OK [19:27:52]MH_I2C_Read... [19:27:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:27:52]Read from MH i2c: E2 [19:27:52]MH_I2C_Read... [19:27:52]Read from MH i2c: E2 62 00 [19:27:52]MH_I2C_Read... [19:27:52]Read from MH i2c: E2 62 00 DA 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 85 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 87 00 00 00 5E 04 04 00 87 00 00 00 57 04 04 00 88 00 00 00 19 04 04 00 00 00 00 00 90 00 07 [19:27:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 85 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 87 00 00 00 5E 04 04 00 87 00 00 00 57 04 04 00 88 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:27:52]wFMCommunicate OK [19:27:52]SAM_PROTO_GetFieldsCounters done [19:27:52]requested_item shift.num is exist - process it [19:27:52]requested_item shift.opened is exist - process it [19:27:52]req_shift_opened [19:27:52]FM_GetShiftState [19:27:52]SAM_PROTO_GetShiftState [19:27:52]wFMCommunicate request_size=4 [19:27:52]MH_SAM_APDU [19:27:52]CAPDU: 80 13 01 00 [19:27:52]Write to MH i2c: E2 08 00 DB 05 80 13 01 00 00 00 00 00 5D [19:27:52]Write i2c OK [19:27:52]MH_I2C_Read... [19:27:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:27:52]Read from MH i2c: E2 [19:27:52]MH_I2C_Read... [19:27:52]Read from MH i2c: E2 0E 00 [19:27:52]MH_I2C_Read... [19:27:52]Read from MH i2c: E2 0E 00 DB 05 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 29 [19:27:52]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [19:27:52]wFMCommunicate OK [19:27:52]SAM_PROTO_GetShiftState done [19:27:52]FM_GetShiftState done [19:27:52]req_shift_opened done [19:27:52]requested_item shift.open_date is exist - process it [19:27:52]req_shift_open_date [19:27:52]req_shift_open_date done [19:27:52]produce_requested_data done [19:27:52]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63877,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [19:27:52]process_action_free close_receipt [19:27:52]json_value_free [19:27:52]json_value_free done [19:27:52]process_json_proto returns [19:27:52]Send response to host [19:27:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63877,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [19:27:52]free response buf [19:27:52]execute_script done [19:27:52]execute_script returns [19:27:52]free content buf [19:27:52]Sock 9.Close socket [19:27:52]Sock 9.Thread stoped [19:27:56]OFD Sender: No OFD packet to send [19:28:01]OFD Sender: No OFD packet to send [19:28:06]OFD Sender: No OFD packet to send [19:28:11]OFD Sender: No OFD packet to send [19:28:16]OFD Sender: No OFD packet to send [19:28:21]OFD Sender: No OFD packet to send [19:28:26]OFD Sender: No OFD packet to send [19:28:31]OFD Sender: No OFD packet to send [19:28:36]OFD Sender: No OFD packet to send [19:28:41]OFD Sender: No OFD packet to send [19:28:46]OFD Sender: No OFD packet to send [19:28:51]OFD Sender: No OFD packet to send [19:28:56]OFD Sender: No OFD packet to send [19:29:01]OFD Sender: No OFD packet to send [19:29:06]OFD Sender: No OFD packet to send [19:29:11]OFD Sender: No OFD packet to send [19:29:16]OFD Sender: No OFD packet to send [19:29:21]OFD Sender: No OFD packet to send [19:29:26]OFD Sender: No OFD packet to send [19:29:31]OFD Sender: No OFD packet to send [19:29:36]OFD Sender: No OFD packet to send [19:29:41]OFD Sender: No OFD packet to send [19:29:46]OFD Sender: No OFD packet to send [19:29:51]OFD Sender: No OFD packet to send [19:29:56]OFD Sender: No OFD packet to send [19:30:01]OFD Sender: No OFD packet to send [19:30:06]OFD Sender: No OFD packet to send [19:30:11]OFD Sender: No OFD packet to send [19:30:16]OFD Sender: No OFD packet to send [19:30:21]OFD Sender: No OFD packet to send [19:30:26]OFD Sender: No OFD packet to send [19:30:31]OFD Sender: No OFD packet to send [19:30:36]OFD Sender: No OFD packet to send [19:30:41]OFD Sender: No OFD packet to send [19:30:46]OFD Sender: No OFD packet to send [19:30:51]OFD Sender: No OFD packet to send [19:30:56]OFD Sender: No OFD packet to send [19:31:01]OFD Sender: No OFD packet to send [19:31:06]OFD Sender: No OFD packet to send [19:31:11]OFD Sender: No OFD packet to send [19:31:16]OFD Sender: No OFD packet to send [19:31:21]OFD Sender: No OFD packet to send [19:31:26]OFD Sender: No OFD packet to send [19:31:31]OFD Sender: No OFD packet to send [19:31:36]OFD Sender: No OFD packet to send [19:31:41]OFD Sender: No OFD packet to send [19:31:46]OFD Sender: No OFD packet to send [19:31:51]OFD Sender: No OFD packet to send [19:31:56]OFD Sender: No OFD packet to send [19:32:01]OFD Sender: No OFD packet to send [19:32:06]OFD Sender: No OFD packet to send [19:32:11]OFD Sender: No OFD packet to send [19:32:16]OFD Sender: No OFD packet to send [19:32:21]OFD Sender: No OFD packet to send [19:32:26]OFD Sender: No OFD packet to send [19:32:31]OFD Sender: No OFD packet to send [19:32:36]OFD Sender: No OFD packet to send [19:32:41]OFD Sender: No OFD packet to send [19:32:46]OFD Sender: No OFD packet to send [19:32:51]OFD Sender: No OFD packet to send [19:32:56]OFD Sender: No OFD packet to send [19:33:01]OFD Sender: No OFD packet to send [19:33:06]OFD Sender: No OFD packet to send [19:33:11]OFD Sender: No OFD packet to send [19:33:16]OFD Sender: No OFD packet to send [19:33:21]OFD Sender: No OFD packet to send [19:33:26]OFD Sender: No OFD packet to send [19:33:31]OFD Sender: No OFD packet to send [19:33:36]OFD Sender: No OFD packet to send [19:33:41]OFD Sender: No OFD packet to send [19:33:46]OFD Sender: No OFD packet to send [19:33:51]OFD Sender: No OFD packet to send [19:33:56]OFD Sender: No OFD packet to send [19:34:01]OFD Sender: No OFD packet to send [19:34:06]OFD Sender: No OFD packet to send [19:34:11]OFD Sender: No OFD packet to send [19:34:16]OFD Sender: No OFD packet to send [19:34:21]OFD Sender: No OFD packet to send [19:34:26]OFD Sender: No OFD packet to send [19:34:31]OFD Sender: No OFD packet to send [19:34:36]OFD Sender: No OFD packet to send [19:34:41]OFD Sender: No OFD packet to send [19:34:46]OFD Sender: No OFD packet to send [19:34:51]OFD Sender: No OFD packet to send [19:34:56]OFD Sender: No OFD packet to send [19:35:01]OFD Sender: No OFD packet to send [19:35:06]OFD Sender: No OFD packet to send [19:35:11]OFD Sender: No OFD packet to send [19:35:16]OFD Sender: No OFD packet to send [19:35:21]OFD Sender: No OFD packet to send [19:35:26]OFD Sender: No OFD packet to send [19:35:31]OFD Sender: No OFD packet to send [19:35:36]OFD Sender: No OFD packet to send [19:35:41]OFD Sender: No OFD packet to send [19:35:46]OFD Sender: No OFD packet to send [19:35:51]OFD Sender: No OFD packet to send [19:35:56]OFD Sender: No OFD packet to send [19:36:01]OFD Sender: No OFD packet to send [19:36:06]OFD Sender: No OFD packet to send [19:36:11]OFD Sender: No OFD packet to send [19:36:16]OFD Sender: No OFD packet to send [19:36:21]OFD Sender: No OFD packet to send [19:36:26]OFD Sender: No OFD packet to send [19:36:31]OFD Sender: No OFD packet to send [19:36:36]OFD Sender: No OFD packet to send [19:36:41]OFD Sender: No OFD packet to send [19:36:46]OFD Sender: No OFD packet to send [19:36:51]OFD Sender: No OFD packet to send [19:36:56]OFD Sender: No OFD packet to send [19:37:01]OFD Sender: No OFD packet to send [19:37:06]OFD Sender: No OFD packet to send [19:37:11]OFD Sender: No OFD packet to send [19:37:16]OFD Sender: No OFD packet to send [19:37:21]OFD Sender: No OFD packet to send [19:37:26]OFD Sender: No OFD packet to send [19:37:31]OFD Sender: No OFD packet to send [19:37:36]OFD Sender: No OFD packet to send [19:37:41]OFD Sender: No OFD packet to send [19:37:46]OFD Sender: No OFD packet to send [19:37:51]OFD Sender: No OFD packet to send [19:37:56]OFD Sender: No OFD packet to send [19:38:01]OFD Sender: No OFD packet to send [19:38:06]OFD Sender: No OFD packet to send [19:38:11]OFD Sender: No OFD packet to send [19:38:16]OFD Sender: No OFD packet to send [19:38:21]OFD Sender: No OFD packet to send [19:38:26]OFD Sender: No OFD packet to send [19:38:31]OFD Sender: No OFD packet to send [19:38:36]accept exits with 7 [19:38:36]New connection [19:38:36]New thread 3066576228 created [19:38:36]Thread 3066719588 joined [19:38:36]Waiting for new connection... [19:38:36] Sock 7.Parse request [19:38:36]Sock 7.Check first char [19:38:36]Sock 7.First char is OK [19:38:36]request: POST /json_proto HTTP/1.0 [19:38:36]Method: POST [19:38:36]URL: /json_proto [19:38:36]Method is POST - this is cgi request [19:38:36]url: /json_proto [19:38:36]query_string will be loaded in cgi processing [19:38:36]execute_cgi json_proto POST (null) [19:38:36]execute_cgi path=json_proto method=POST [19:38:36]POST find Content-Length [19:38:36]Host: 172.17.60.69:8080 [19:38:36]Content-Length: 631 [19:38:36]Content-Type: application/json [19:38:36] [19:38:36]POST finish read [19:38:36]Found Content-Length = 631 [19:38:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73446", "tax_sys" : 0, "items" : [ { "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 40.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:38:36]execute_script... [19:38:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73446", "tax_sys" : 0, "items" : [ { "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 40.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:38:36]POST & json_proto [19:38:36]process_json_proto [19:38:36]json parsed OK: [19:38:36]protocol is kg_v1.0 [19:38:36]action value=close_receipt [19:38:36]process_action close_receipt [19:38:36]cmd_close_receipt [19:38:36]MH_GetDate [19:38:36]Write to MH i2c: F0 00 00 DC 05 D0 [19:38:36]Write i2c OK [19:38:36]MH_I2C_Read... [19:38:36]Read from MH i2c: F0 [19:38:36]MH_I2C_Read... [19:38:36]Read from MH i2c: F0 09 00 [19:38:36]MH_I2C_Read... [19:38:36]Read from MH i2c: F0 09 00 DC 05 00 BD 1B 5E 66 6A 96 4A 66 25 [19:38:36]GetLastDocTimeStamp 1717442868 [19:38:36]current date 1717443517 [19:38:36]FM_GetShiftState [19:38:36]SAM_PROTO_GetShiftState [19:38:36]wFMCommunicate request_size=4 [19:38:36]MH_SAM_APDU [19:38:36]CAPDU: 80 13 01 00 [19:38:36]Write to MH i2c: E2 08 00 DD 05 80 13 01 00 00 00 00 00 5F [19:38:36]Write i2c OK [19:38:36]MH_I2C_Read... [19:38:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:38:36]Read from MH i2c: E2 [19:38:36]MH_I2C_Read... [19:38:36]Read from MH i2c: E2 0E 00 [19:38:36]MH_I2C_Read... [19:38:36]Read from MH i2c: E2 0E 00 DD 05 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 2B [19:38:36]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [19:38:36]wFMCommunicate OK [19:38:36]SAM_PROTO_GetShiftState done [19:38:36]FM_GetShiftState done [19:38:36]opened in 1717373173 [19:38:36]opened+sec_in_day 1717459573 [19:38:36]quantity*price = 4000 [19:38:36]sum+1 = 4001 [19:38:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 40.00 НСП 1% : 0.35 НДС 12% : 4.25 Наличными: 40.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 136 03.06.2024 19:38 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63878 ФПД: 158101655132510 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T193837&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63878&fm=158101655132510&tin=02508201610067®Number=0000000000092737&sum=4000 0 [19:38:37]StoreToDocumentArchive [19:38:37]shift 373 fd 63878 [19:38:37]save to /storage/0373/doc_00063878 [19:38:37]save last doc name /storage/0373/doc_00063878 to /storage/kkm_last_doc_name [19:38:37]save OK [19:38:37]Clear old archive folders... [19:38:37]ProcessDocumentItem done err = 0, tmpTLVsize=271 [19:38:37]tlvbuf is 00AB7010 [19:38:37]SAM_PROTO_ClearQueue [19:38:37]wFMCommunicate request_size=4 [19:38:37]MH_SAM_APDU [19:38:37]CAPDU: 80 09 00 00 [19:38:37]Write to MH i2c: E2 08 00 EA 05 80 09 00 00 00 00 00 00 61 [19:38:37]Write i2c OK [19:38:37]MH_I2C_Read... [19:38:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:38:37]Read from MH i2c: E2 [19:38:37]MH_I2C_Read... [19:38:37]Read from MH i2c: E2 03 00 [19:38:37]MH_I2C_Read... [19:38:37]Read from MH i2c: E2 03 00 EA 05 00 90 00 63 [19:38:37]RAPDU: 90 00 [19:38:37]wFMCommunicate OK [19:38:37]SAM_PROTO_ClearQueue done [19:38:37]KKMCreateOFDPacket [19:38:37]OFDProtocolAddRootSTLVToBuf [19:38:37]FM_MakeSignedData [19:38:37]FM_MakeSignedData [19:38:37]SAM_PROTO_SignData [19:38:37]wFMCommunicate request_size=4 [19:38:37]MH_SAM_APDU [19:38:37]CAPDU: 80 0D 01 02 [19:38:37]Write to MH i2c: E2 08 00 EB 05 80 0D 01 02 00 00 00 00 69 [19:38:37]Write i2c OK [19:38:37]MH_I2C_Read... [19:38:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:38:37]Read from MH i2c: E2 [19:38:37]MH_I2C_Read... [19:38:37]Read from MH i2c: E2 03 00 [19:38:37]MH_I2C_Read... [19:38:37]Read from MH i2c: E2 03 00 EB 05 00 90 00 64 [19:38:37]RAPDU: 90 00 [19:38:37]wFMCommunicate OK [19:38:37]wFMCommunicate request_size=255 [19:38:37]MH_SAM_APDU [19:38:37]CAPDU: 80 0D 02 02 FA 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 BD 1B 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 [19:38:37]Write to MH i2c: E2 02 01 EC 05 80 0D 02 02 FA 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 BD 1B 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 EB [19:38:37]Write i2c OK [19:38:37]MH_I2C_Read... [19:38:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:38:38]Read from MH i2c: E2 [19:38:38]MH_I2C_Read... [19:38:38]Read from MH i2c: E2 03 00 [19:38:38]MH_I2C_Read... [19:38:38]Read from MH i2c: E2 03 00 EC 05 00 90 00 65 [19:38:38]RAPDU: 90 00 [19:38:38]wFMCommunicate OK [19:38:38]wFMCommunicate request_size=30 [19:38:38]MH_SAM_APDU [19:38:38]CAPDU: 80 0D 02 02 19 30 38 37 35 30 37 34 10 04 04 00 86 F9 00 00 35 04 06 00 8F CA E8 FE 19 5E [19:38:38]Write to MH i2c: E2 21 00 ED 05 80 0D 02 02 19 00 30 38 37 35 30 37 34 10 04 04 00 86 F9 00 00 35 04 06 00 8F CA E8 FE 19 5E 00 00 99 [19:38:38]Write i2c OK [19:38:38]MH_I2C_Read... [19:38:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:38:38]Read from MH i2c: E2 [19:38:38]MH_I2C_Read... [19:38:38]Read from MH i2c: E2 03 00 [19:38:38]MH_I2C_Read... [19:38:38]Read from MH i2c: E2 03 00 ED 05 00 90 00 66 [19:38:38]RAPDU: 90 00 [19:38:38]wFMCommunicate OK [19:38:38]wFMCommunicate request_size=4 [19:38:38]MH_SAM_APDU [19:38:38]CAPDU: 80 0D 03 02 [19:38:38]Write to MH i2c: E2 08 00 EE 05 80 0D 03 02 00 00 00 00 6E [19:38:38]Write i2c OK [19:38:38]MH_I2C_Read... [19:38:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:38:38]Read from MH i2c: E2 [19:38:38]MH_I2C_Read... [19:38:38]Read from MH i2c: E2 0B 00 [19:38:38]MH_I2C_Read... [19:38:38]Read from MH i2c: E2 0B 00 EE 05 00 08 AD 59 E0 96 3F 80 B0 90 00 62 [19:38:38]RAPDU: 08 AD 59 E0 96 3F 80 B0 90 00 [19:38:38]wFMCommunicate OK [19:38:38]SAM_PROTO_SignData done [19:38:38]FM_MakeSignedData done [19:38:38]CreateOFDProtocolMessage [19:38:38]wFMCommunicate request_size=4 [19:38:38]MH_SAM_APDU [19:38:38]CAPDU: 80 11 00 00 [19:38:38]Write to MH i2c: E2 08 00 EF 05 80 11 00 00 00 00 00 00 6E [19:38:38]Write i2c OK [19:38:38]MH_I2C_Read... [19:38:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:38:38]Read from MH i2c: E2 [19:38:38]MH_I2C_Read... [19:38:38]Read from MH i2c: E2 17 00 [19:38:38]MH_I2C_Read... [19:38:38]Read from MH i2c: E2 17 00 EF 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 C0 [19:38:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [19:38:38]wFMCommunicate OK [19:38:38]CreateOFDProtocolMessage done [19:38:38]OFDSenderStorePacket 63878 [19:38:38]StoreOFDPacket docnum=63878 [19:38:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 23 01 00 00 62 B7 1B 01 AC 2B 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 BD 1B 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 86 F9 00 00 35 04 06 00 8F CA E8 FE 19 5E 08 AD 59 E0 96 3F 80 B0 [19:38:38]CheckFolder [19:38:38]dirname=/storage/ofd_packets [19:38:38]CheckFolder done [19:38:38]ProducePacketName [19:38:38]name=ofd_packets/00063878 [19:38:38]NVStorageSaveData ofd_packets/00063878 [19:38:38]File name is /storage/ofd_packets/00063878 [19:38:38]Write 321 bytes [19:38:38]NVStorageSaveData done [19:38:38]OFDSenderStorePacket done [19:38:38]KKMCreateOFDPacket done [19:38:38]NVStorageSaveData kkm_last_timestamp [19:38:38]File name is /storage/kkm_last_timestamp [19:38:38]Write 4 bytes [19:38:38]NVStorageSaveData done [19:38:38]ExternCall_PrintAddStr [19:38:38]wPrintStart [19:38:38]Write to MH i2c: 01 00 00 F0 05 F5 [19:38:38]Write i2c OK [19:38:38]MH_I2C_Read... [19:38:38]Read from MH i2c: 01 [19:38:38]MH_I2C_Read... [19:38:38]Read from MH i2c: 01 07 00 [19:38:38]MH_I2C_Read... [19:38:38]Read from MH i2c: 01 07 00 F0 05 00 00 00 00 00 FF 0F 0A [19:38:38]RasterBufferAndPrint [19:38:38]line Счет N : (3)73446 [19:38:38]line ИНН: 02508201610067 [19:38:38]line Контрольно-Кассовый Чек [19:38:38]line ПРОДАЖА [19:38:38]line Товар: 4700000160211 [19:38:38]line Вода Легенда 0,5л [19:38:38]line 1.000 * 40.00 [19:38:38]line = 40.00 [19:38:38]line НДС 12% НСП 1% [19:38:38]line > о реализуемом товаре [19:38:38]line ИТОГО: 40.00 [19:38:38]line НСП 1% : 0.35 [19:38:38]line НДС 12% : 4.25 [19:38:38]line Наличными: 40.00 [19:38:38]line Безнал.: 0.00 [19:38:38]line Место: АЗС № 117 "Партнер Нефть" [19:38:38]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [19:38:38]line СНО: Общий режим [19:38:38]line Чек 136 03.06.2024 19:38 [19:38:38]line Смена: 373 ФФД: 1.0 [19:38:38]line ЗНМ: 0300000031 [19:38:38]line РНМ: 0000000000092737 [19:38:38]line Версия ККМ: 001 [19:38:38]line ФМ: 0000000000875074 [19:38:38]line ФД: 63878 [19:38:38]line ФПД: 158101655132510 [19:38:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T193837&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63878&fm=158101655132510&tin=02508201610067®Number=0000000000092737&sum=4000 [19:38:38]line 0 [19:38:38]OFD Sender: Processing packet 63878 [packets to send 14, broken 13] [19:38:38]ProducePacketName [19:38:38]name=ofd_packets/00063878 [19:38:38]OFD Sender: To server: pG, [19:38:38]CommunicateWithHost lk.salyk.kg:30040 [19:38:38]ConnectInit lk.salyk.kg [19:38:38]written 0, free lines is 4095 [19:38:38]Connected sock=10 [19:38:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 23 01 00 00 62 B7 1B 01 AC 2B 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 BD 1B 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 86 F9 00 00 35 04 06 00 8F CA E8 FE 19 5E 08 AD 59 E0 96 3F 80 B0 [19:38:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 41 C9 47 00 12 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 35 30 37 34 10 04 04 00 86 F9 00 00 F4 03 04 00 8D C7 5D 66 B6 04 01 00 00 27 20 0D C8 08 B9 E6 B5 [19:38:38]CommunicateWithHost err = 0 [19:38:38]CheckOFDResponse [19:38:38]1017 (14) - 77093643461234 [19:38:38]1041 (16) - 0000000000875074 [19:38:38]1040 (4) - 63878 [19:38:38]1012 (4) - 03.06.2024 13:39 [19:38:38]1206 (1) - 0 [19:38:38]OFD Sender: Remove packet 63878 [19:38:38]ProducePacketName [19:38:38]name=ofd_packets/00063878 [19:38:38]NVStorageDeleteData [19:38:39]Write to MH i2c: 01 00 00 18 06 1E [19:38:39]Write i2c OK [19:38:39]MH_I2C_Read... [19:38:39]Read from MH i2c: 01 [19:38:39]MH_I2C_Read... [19:38:39]Read from MH i2c: 01 07 00 [19:38:39]MH_I2C_Read... [19:38:39]Read from MH i2c: 01 07 00 18 06 00 00 00 00 00 FD 0C 2E [19:38:39]RasterBufferAndPrint [19:38:39]line [19:38:39]line [19:38:39]line [19:38:39]line [19:38:39]line [19:38:39]written 0, free lines is 3334 [19:38:39]MH_Cut [19:38:39]Write to MH i2c: D1 01 00 1F 06 01 F7 [19:38:39]Write i2c OK [19:38:39]MH_I2C_Read... [19:38:39]Read from MH i2c: D1 [19:38:39]MH_I2C_Read... [19:38:39]Read from MH i2c: D1 01 00 [19:38:39]MH_I2C_Read... [19:38:39]Read from MH i2c: D1 01 00 1F 06 00 F6 [19:38:39]Write to MH i2c: 01 00 00 20 06 26 [19:38:39]Write i2c OK [19:38:39]MH_I2C_Read... [19:38:39]OFD Sender: No OFD packet to send [19:38:39]*** Cut start [19:38:39]*** Partial cut [19:38:39]*** CUTSNS_PIN = 1 [19:38:39]*** CUTSNS_PIN = 0 [19:38:40]*** Brake cut motor [19:38:40]Read from MH i2c: 01 [19:38:40]MH_I2C_Read... [19:38:40]*** Stop cut motor [19:38:40]*** Cut end [19:38:40]Read from MH i2c: 01 07 00 [19:38:40]MH_I2C_Read... [19:38:40]Read from MH i2c: 01 07 00 20 06 00 00 00 00 00 FF 0F 3B [19:38:40]process_action close_receipt done [19:38:40]requested_data is exist [19:38:40]produce_requested_data [19:38:40]requested_item fm.sn is exist - process it [19:38:40]wFMCommunicate request_size=4 [19:38:40]MH_SAM_APDU [19:38:40]CAPDU: 80 11 00 00 [19:38:40]Write to MH i2c: E2 08 00 21 06 80 11 00 00 00 00 00 00 A1 [19:38:40]Write i2c OK [19:38:40]MH_I2C_Read... [19:38:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:38:40]Read from MH i2c: E2 [19:38:40]MH_I2C_Read... [19:38:40]Read from MH i2c: E2 17 00 [19:38:40]MH_I2C_Read... [19:38:40]Read from MH i2c: E2 17 00 21 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 F3 [19:38:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [19:38:40]wFMCommunicate OK [19:38:40]requested_item fd.num is exist - process it [19:38:40]SAM_PROTO_GetFieldsCounters [19:38:40]wFMCommunicate request_size=4 [19:38:40]MH_SAM_APDU [19:38:40]CAPDU: 80 13 00 00 [19:38:40]Write to MH i2c: E2 08 00 22 06 80 13 00 00 00 00 00 00 A4 [19:38:40]Write i2c OK [19:38:40]MH_I2C_Read... [19:38:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:38:40]Read from MH i2c: E2 [19:38:40]MH_I2C_Read... [19:38:40]Read from MH i2c: E2 62 00 [19:38:40]MH_I2C_Read... [19:38:40]Read from MH i2c: E2 62 00 22 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 86 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 88 00 00 00 5E 04 04 00 88 00 00 00 57 04 04 00 89 00 00 00 19 04 04 00 00 00 00 00 90 00 54 [19:38: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 86 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 88 00 00 00 5E 04 04 00 88 00 00 00 57 04 04 00 89 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:38:40]wFMCommunicate OK [19:38:40]SAM_PROTO_GetFieldsCounters done [19:38:40]requested_item shift.num is exist - process it [19:38:40]requested_item shift.opened is exist - process it [19:38:40]req_shift_opened [19:38:40]FM_GetShiftState [19:38:40]SAM_PROTO_GetShiftState [19:38:40]wFMCommunicate request_size=4 [19:38:40]MH_SAM_APDU [19:38:40]CAPDU: 80 13 01 00 [19:38:40]Write to MH i2c: E2 08 00 23 06 80 13 01 00 00 00 00 00 A6 [19:38:40]Write i2c OK [19:38:40]MH_I2C_Read... [19:38:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:38:40]Read from MH i2c: E2 [19:38:40]MH_I2C_Read... [19:38:40]Read from MH i2c: E2 0E 00 [19:38:40]MH_I2C_Read... [19:38:40]Read from MH i2c: E2 0E 00 23 06 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 72 [19:38:40]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [19:38:40]wFMCommunicate OK [19:38:40]SAM_PROTO_GetShiftState done [19:38:40]FM_GetShiftState done [19:38:40]req_shift_opened done [19:38:40]requested_item shift.open_date is exist - process it [19:38:40]req_shift_open_date [19:38:40]req_shift_open_date done [19:38:40]produce_requested_data done [19:38:40]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63878,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [19:38:40]process_action_free close_receipt [19:38:40]json_value_free [19:38:40]json_value_free done [19:38:40]process_json_proto returns [19:38:40]Send response to host [19:38:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63878,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [19:38:40]free response buf [19:38:40]execute_script done [19:38:40]execute_script returns [19:38:40]free content buf [19:38:40]Sock 7.Close socket [19:38:40]Sock 7.Thread stoped [19:38:44]OFD Sender: No OFD packet to send [19:38:49]OFD Sender: No OFD packet to send [19:38:54]OFD Sender: No OFD packet to send [19:38:59]OFD Sender: No OFD packet to send [19:39:04]OFD Sender: No OFD packet to send [19:39:09]OFD Sender: No OFD packet to send [19:39:14]OFD Sender: No OFD packet to send [19:39:19]OFD Sender: No OFD packet to send [19:39:24]OFD Sender: No OFD packet to send [19:39:29]OFD Sender: No OFD packet to send [19:39:34]OFD Sender: No OFD packet to send [19:39:39]OFD Sender: No OFD packet to send [19:39:44]OFD Sender: No OFD packet to send [19:39:49]OFD Sender: No OFD packet to send [19:39:54]OFD Sender: No OFD packet to send [19:39:59]OFD Sender: No OFD packet to send [19:40:04]OFD Sender: No OFD packet to send [19:40:09]OFD Sender: No OFD packet to send [19:40:14]OFD Sender: No OFD packet to send [19:40:19]OFD Sender: No OFD packet to send [19:40:24]OFD Sender: No OFD packet to send [19:40:29]OFD Sender: No OFD packet to send [19:40:34]OFD Sender: No OFD packet to send [19:40:39]OFD Sender: No OFD packet to send [19:40:44]OFD Sender: No OFD packet to send [19:40:49]OFD Sender: No OFD packet to send [19:40:54]OFD Sender: No OFD packet to send [19:40:59]OFD Sender: No OFD packet to send [19:41:04]OFD Sender: No OFD packet to send [19:41:09]OFD Sender: No OFD packet to send [19:41:14]OFD Sender: No OFD packet to send [19:41:19]OFD Sender: No OFD packet to send [19:41:24]OFD Sender: No OFD packet to send [19:41:29]OFD Sender: No OFD packet to send [19:41:34]OFD Sender: No OFD packet to send [19:41:39]OFD Sender: No OFD packet to send [19:41:44]OFD Sender: No OFD packet to send [19:41:49]OFD Sender: No OFD packet to send [19:41:54]OFD Sender: No OFD packet to send [19:41:59]OFD Sender: No OFD packet to send [19:42:04]OFD Sender: No OFD packet to send [19:42:09]OFD Sender: No OFD packet to send [19:42:14]OFD Sender: No OFD packet to send [19:42:19]OFD Sender: No OFD packet to send [19:42:24]OFD Sender: No OFD packet to send [19:42:29]OFD Sender: No OFD packet to send [19:42:34]OFD Sender: No OFD packet to send [19:42:39]OFD Sender: No OFD packet to send [19:42:44]OFD Sender: No OFD packet to send [19:42:49]OFD Sender: No OFD packet to send [19:42:54]OFD Sender: No OFD packet to send [19:42:59]OFD Sender: No OFD packet to send [19:43:04]OFD Sender: No OFD packet to send [19:43:09]OFD Sender: No OFD packet to send [19:43:14]OFD Sender: No OFD packet to send [19:43:19]OFD Sender: No OFD packet to send [19:43:24]OFD Sender: No OFD packet to send [19:43:29]OFD Sender: No OFD packet to send [19:43:34]OFD Sender: No OFD packet to send [19:43:39]OFD Sender: No OFD packet to send [19:43:44]OFD Sender: No OFD packet to send [19:43:49]OFD Sender: No OFD packet to send [19:43:54]OFD Sender: No OFD packet to send [19:43:59]OFD Sender: No OFD packet to send [19:44:04]OFD Sender: No OFD packet to send [19:44:09]OFD Sender: No OFD packet to send [19:44:14]OFD Sender: No OFD packet to send [19:44:19]OFD Sender: No OFD packet to send [19:44:24]OFD Sender: No OFD packet to send [19:44:29]OFD Sender: No OFD packet to send [19:44:34]OFD Sender: No OFD packet to send [19:44:39]OFD Sender: No OFD packet to send [19:44:44]OFD Sender: No OFD packet to send [19:44:49]OFD Sender: No OFD packet to send [19:44:54]OFD Sender: No OFD packet to send [19:44:59]OFD Sender: No OFD packet to send [19:45:04]OFD Sender: No OFD packet to send [19:45:09]OFD Sender: No OFD packet to send [19:45:14]OFD Sender: No OFD packet to send [19:45:19]OFD Sender: No OFD packet to send [19:45:24]OFD Sender: No OFD packet to send [19:45:29]OFD Sender: No OFD packet to send [19:45:34]OFD Sender: No OFD packet to send [19:45:39]OFD Sender: No OFD packet to send [19:45:44]OFD Sender: No OFD packet to send [19:45:49]OFD Sender: No OFD packet to send [19:45:54]OFD Sender: No OFD packet to send [19:45:59]OFD Sender: No OFD packet to send [19:46:04]OFD Sender: No OFD packet to send [19:46:09]OFD Sender: No OFD packet to send [19:46:14]OFD Sender: No OFD packet to send [19:46:19]OFD Sender: No OFD packet to send [19:46:24]OFD Sender: No OFD packet to send [19:46:29]OFD Sender: No OFD packet to send [19:46:34]OFD Sender: No OFD packet to send [19:46:39]OFD Sender: No OFD packet to send [19:46:44]OFD Sender: No OFD packet to send [19:46:49]OFD Sender: No OFD packet to send [19:46:54]OFD Sender: No OFD packet to send [19:46:59]OFD Sender: No OFD packet to send [19:47:04]OFD Sender: No OFD packet to send [19:47:09]OFD Sender: No OFD packet to send [19:47:14]OFD Sender: No OFD packet to send [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]OFD Sender: No OFD packet to send [19:48:49]OFD Sender: No OFD packet to send [19:48:54]OFD Sender: No OFD packet to send [19:48:59]OFD Sender: No OFD packet to send [19:49:04]OFD Sender: No OFD packet to send [19:49:09]OFD Sender: No OFD packet to send [19:49:14]OFD Sender: No OFD packet to send [19:49:19]OFD Sender: No OFD packet to send [19:49:24]OFD Sender: No OFD packet to send [19:49:29]OFD Sender: No OFD packet to send [19:49:34]OFD Sender: No OFD packet to send [19:49:39]OFD Sender: No OFD packet to send [19:49:44]OFD Sender: No OFD packet to send [19:49:49]OFD Sender: No OFD packet to send [19:49:54]OFD Sender: No OFD packet to send [19:49:59]OFD Sender: No OFD packet to send [19:50:04]OFD Sender: No OFD packet to send [19:50:09]OFD Sender: No OFD packet to send [19:50:14]OFD Sender: No OFD packet to send [19:50:19]OFD Sender: No OFD packet to send [19:50:24]OFD Sender: No OFD packet to send [19:50:29]OFD Sender: No OFD packet to send [19:50:34]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:15]OFD Sender: No OFD packet to send [19:51:20]OFD Sender: No OFD packet to send [19:51:25]OFD Sender: No OFD packet to send [19:51:30]OFD Sender: No OFD packet to send [19:51:35]OFD Sender: No OFD packet to send [19:51:40]OFD Sender: No OFD packet to send [19:51:45]OFD Sender: No OFD packet to send [19:51:50]OFD Sender: No OFD packet to send [19:51:55]OFD Sender: No OFD packet to send [19:52:00]OFD Sender: No OFD packet to send [19:52:05]OFD Sender: No OFD packet to send [19:52:10]OFD Sender: No OFD packet to send [19:52:15]OFD Sender: No OFD packet to send [19:52:20]OFD Sender: No OFD packet to send [19:52:25]OFD Sender: No OFD packet to send [19:52:30]OFD Sender: No OFD packet to send [19:52:35]OFD Sender: No OFD packet to send [19:52:40]OFD Sender: No OFD packet to send [19:52:45]OFD Sender: No OFD packet to send [19:52:50]OFD Sender: No OFD packet to send [19:52:55]OFD Sender: No OFD packet to send [19:53:00]OFD Sender: No OFD packet to send [19:53:05]OFD Sender: No OFD packet to send [19:53:10]OFD Sender: No OFD packet to send [19:53:15]OFD Sender: No OFD packet to send [19:53:20]OFD Sender: No OFD packet to send [19:53:25]OFD Sender: No OFD packet to send [19:53:30]OFD Sender: No OFD packet to send [19:53:35]OFD Sender: No OFD packet to send [19:53:40]OFD Sender: No OFD packet to send [19:53:45]OFD Sender: No OFD packet to send [19:53:50]OFD Sender: No OFD packet to send [19:53:55]OFD Sender: No OFD packet to send [19:54:00]OFD Sender: No OFD packet to send [19:54:05]OFD Sender: No OFD packet to send [19:54:10]OFD Sender: No OFD packet to send [19:54:15]OFD Sender: No OFD packet to send [19:54:20]OFD Sender: No OFD packet to send [19:54:25]OFD Sender: No OFD packet to send [19:54:30]OFD Sender: No OFD packet to send [19:54:35]OFD Sender: No OFD packet to send [19:54:40]OFD Sender: No OFD packet to send [19:54:45]OFD Sender: No OFD packet to send [19:54:50]OFD Sender: No OFD packet to send [19:54:55]OFD Sender: No OFD packet to send [19:55:00]OFD Sender: No OFD packet to send [19:55:05]OFD Sender: No OFD packet to send [19:55:10]OFD Sender: No OFD packet to send [19:55:15]OFD Sender: No OFD packet to send [19:55:20]OFD Sender: No OFD packet to send [19:55:25]OFD Sender: No OFD packet to send [19:55:30]OFD Sender: No OFD packet to send [19:55:35]OFD Sender: No OFD packet to send [19:55:40]OFD Sender: No OFD packet to send [19:55:45]OFD Sender: No OFD packet to send [19:55:50]OFD Sender: No OFD packet to send [19:55:55]OFD Sender: No OFD packet to send [19:56:00]OFD Sender: No OFD packet to send [19:56:05]OFD Sender: No OFD packet to send [19:56:10]OFD Sender: No OFD packet to send [19:56:15]OFD Sender: No OFD packet to send [19:56:20]OFD Sender: No OFD packet to send [19:56:25]OFD Sender: No OFD packet to send [19:56:30]OFD Sender: No OFD packet to send [19:56:35]OFD Sender: No OFD packet to send [19:56:40]OFD Sender: No OFD packet to send [19:56:45]OFD Sender: No OFD packet to send [19:56:50]OFD Sender: No OFD packet to send [19:56:55]OFD Sender: No OFD packet to send [19:57:00]OFD Sender: No OFD packet to send [19:57:05]OFD Sender: No OFD packet to send [19:57:10]OFD Sender: No OFD packet to send [19:57:15]OFD Sender: No OFD packet to send [19:57:20]OFD Sender: No OFD packet to send [19:57:25]OFD Sender: No OFD packet to send [19:57:30]OFD Sender: No OFD packet to send [19:57:35]OFD Sender: No OFD packet to send [19:57:40]OFD Sender: No OFD packet to send [19:57:45]OFD Sender: No OFD packet to send [19:57:50]OFD Sender: No OFD packet to send [19:57:55]OFD Sender: No OFD packet to send [19:58:00]OFD Sender: No OFD packet to send [19:58:05]OFD Sender: No OFD packet to send [19:58:10]OFD Sender: No OFD packet to send [19:58:15]OFD Sender: No OFD packet to send [19:58:20]OFD Sender: No OFD packet to send [19:58:25]OFD Sender: No OFD packet to send [19:58:30]OFD Sender: No OFD packet to send [19:58:35]OFD Sender: No OFD packet to send [19:58:40]OFD Sender: No OFD packet to send [19:58:45]OFD Sender: No OFD packet to send [19:58:50]OFD Sender: No OFD packet to send [19:58:55]OFD Sender: No OFD packet to send [19:59:00]OFD Sender: No OFD packet to send [19:59:05]OFD Sender: No OFD packet to send [19:59:10]OFD Sender: No OFD packet to send [19:59:15]OFD Sender: No OFD packet to send [19:59:20]OFD Sender: No OFD packet to send [19:59:25]OFD Sender: No OFD packet to send [19:59:30]OFD Sender: No OFD packet to send [19:59:35]OFD Sender: No OFD packet to send [19:59:40]OFD Sender: No OFD packet to send [19:59:45]OFD Sender: No OFD packet to send [19:59:50]OFD Sender: No OFD packet to send [19:59:55]OFD Sender: No OFD packet to send [20:00:00]OFD Sender: No OFD packet to send [20:00:05]OFD Sender: No OFD packet to send [20:00:10]OFD Sender: No OFD packet to send [20:00:15]OFD Sender: No OFD packet to send [20:00:20]OFD Sender: No OFD packet to send [20:00:25]OFD Sender: No OFD packet to send [20:00:30]OFD Sender: No OFD packet to send [20:00:35]OFD Sender: No OFD packet to send [20:00:40]OFD Sender: No OFD packet to send [20:00:45]OFD Sender: No OFD packet to send [20:00:50]OFD Sender: No OFD packet to send [20:00:55]OFD Sender: No OFD packet to send [20:01:00]OFD Sender: No OFD packet to send [20:01:05]OFD Sender: No OFD packet to send [20:01:10]OFD Sender: No OFD packet to send [20:01:15]OFD Sender: No OFD packet to send [20:01:20]OFD Sender: No OFD packet to send [20:01:25]OFD Sender: No OFD packet to send [20:01:30]OFD Sender: No OFD packet to send [20:01:35]OFD Sender: No OFD packet to send [20:01:40]OFD Sender: No OFD packet to send [20:01:45]OFD Sender: No OFD packet to send [20:01:50]OFD Sender: No OFD packet to send [20:01:55]OFD Sender: No OFD packet to send [20:02:00]OFD Sender: No OFD packet to send [20:02:05]OFD Sender: No OFD packet to send [20:02:10]OFD Sender: No OFD packet to send [20:02:15]OFD Sender: No OFD packet to send [20:02:20]OFD Sender: No OFD packet to send [20:02:25]OFD Sender: No OFD packet to send [20:02:30]OFD Sender: No OFD packet to send [20:02:35]OFD Sender: No OFD packet to send [20:02:40]OFD Sender: No OFD packet to send [20:02:45]OFD Sender: No OFD packet to send [20:02:50]OFD Sender: No OFD packet to send [20:02:55]OFD Sender: No OFD packet to send [20:03:00]OFD Sender: No OFD packet to send [20:03:05]OFD Sender: No OFD packet to send [20:03:10]OFD Sender: No OFD packet to send [20:03:15]OFD Sender: No OFD packet to send [20:03:20]OFD Sender: No OFD packet to send [20:03:25]OFD Sender: No OFD packet to send [20:03:30]OFD Sender: No OFD packet to send [20:03:35]OFD Sender: No OFD packet to send [20:03:40]OFD Sender: No OFD packet to send [20:03:45]OFD Sender: No OFD packet to send [20:03:50]OFD Sender: No OFD packet to send [20:03:55]OFD Sender: No OFD packet to send [20:04:00]OFD Sender: No OFD packet to send [20:04:05]OFD Sender: No OFD packet to send [20:04:10]OFD Sender: No OFD packet to send [20:04:15]OFD Sender: No OFD packet to send [20:04:20]OFD Sender: No OFD packet to send [20:04:25]OFD Sender: No OFD packet to send [20:04:30]OFD Sender: No OFD packet to send [20:04:35]OFD Sender: No OFD packet to send [20:04:40]OFD Sender: No OFD packet to send [20:04:45]OFD Sender: No OFD packet to send [20:04:50]OFD Sender: No OFD packet to send [20:04:55]OFD Sender: No OFD packet to send [20:05:00]OFD Sender: No OFD packet to send [20:05:05]OFD Sender: No OFD packet to send [20:05:10]OFD Sender: No OFD packet to send [20:05:15]OFD Sender: No OFD packet to send [20:05:20]OFD Sender: No OFD packet to send [20:05:25]OFD Sender: No OFD packet to send [20:05:30]OFD Sender: No OFD packet to send [20:05:35]OFD Sender: No OFD packet to send [20:05:40]OFD Sender: No OFD packet to send [20:05:45]OFD Sender: No OFD packet to send [20:05:50]OFD Sender: No OFD packet to send [20:05:55]OFD Sender: No OFD packet to send [20:06:00]OFD Sender: No OFD packet to send [20:06:05]OFD Sender: No OFD packet to send [20:06:10]OFD Sender: No OFD packet to send [20:06:15]OFD Sender: No OFD packet to send [20:06:17]accept exits with 9 [20:06:17]New connection [20:06:17]New thread 3066719588 created [20:06:17]Thread 3066576228 joined [20:06:17]Waiting for new connection... [20:06:17] Sock 9.Parse request [20:06:17]Sock 9.Check first char [20:06:17]Sock 9.First char is OK [20:06:17]request: POST /json_proto HTTP/1.0 [20:06:17]Method: POST [20:06:17]URL: /json_proto [20:06:17]Method is POST - this is cgi request [20:06:17]url: /json_proto [20:06:17]query_string will be loaded in cgi processing [20:06:17]execute_cgi json_proto POST (null) [20:06:17]execute_cgi path=json_proto method=POST [20:06:17]POST find Content-Length [20:06:17]Host: 172.17.60.69:8080 [20:06:17]Content-Length: 1739 [20:06:17]Content-Type: application/json [20:06:17] [20:06:17]POST finish read [20:06:17]Found Content-Length = 1739 [20:06:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73447", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 2.000, "sum" : 250.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4620017453536", "name": "\u0422\u0430\u0440\u0430\u043B\u043B\u0438\u043D\u0438 NF 180\u0433 \u0447\u0435\u0441\u043D\u043E\u043A", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4000417700001", "name": "\u0428\u043E\u043A Ritter SPORT EN \u043C\u043E\u043B \u043B\u0435\u0449\u0438\u043D\u0430,\u0444\u0443\u043D\u0434 100\u0433", "price" : 255.00, "quantity" : 2.000, "sum" : 510.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607035653513", "name": "\u0412\u0430\u0444\u043B\u0438 \u0413\u043E\u043B\u043B\u0430\u043D\u0434\u0441\u043A\u0438\u0435 \u043A\u0430\u0440\u0430\u043C\u0435\u043B 290", "price" : 137.00, "quantity" : 1.000, "sum" : 137.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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 977.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:06:17]execute_script... [20:06:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73447", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 2.000, "sum" : 250.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4620017453536", "name": "\u0422\u0430\u0440\u0430\u043B\u043B\u0438\u043D\u0438 NF 180\u0433 \u0447\u0435\u0441\u043D\u043E\u043A", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4000417700001", "name": "\u0428\u043E\u043A Ritter SPORT EN \u043C\u043E\u043B \u043B\u0435\u0449\u0438\u043D\u0430,\u0444\u0443\u043D\u0434 100\u0433", "price" : 255.00, "quantity" : 2.000, "sum" : 510.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607035653513", "name": "\u0412\u0430\u0444\u043B\u0438 \u0413\u043E\u043B\u043B\u0430\u043D\u0434\u0441\u043A\u0438\u0435 \u043A\u0430\u0440\u0430\u043C\u0435\u043B 290", "price" : 137.00, "quantity" : 1.000, "sum" : 137.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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 977.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:06:17]POST & json_proto [20:06:17]process_json_proto [20:06:17]json parsed OK: [20:06:17]protocol is kg_v1.0 [20:06:17]action value=close_receipt [20:06:17]process_action close_receipt [20:06:17]cmd_close_receipt [20:06:17]MH_GetDate [20:06:17]Write to MH i2c: F0 00 00 24 06 19 [20:06:17]Write i2c OK [20:06:17]MH_I2C_Read... [20:06:17]Read from MH i2c: F0 [20:06:17]MH_I2C_Read... [20:06:17]Read from MH i2c: F0 09 00 [20:06:17]MH_I2C_Read... [20:06:17]Read from MH i2c: F0 09 00 24 06 00 3A 22 5E 66 6A 96 4A 66 F2 [20:06:17]GetLastDocTimeStamp 1717443517 [20:06:17]current date 1717445178 [20:06:17]FM_GetShiftState [20:06:17]SAM_PROTO_GetShiftState [20:06:17]wFMCommunicate request_size=4 [20:06:17]MH_SAM_APDU [20:06:17]CAPDU: 80 13 01 00 [20:06:17]Write to MH i2c: E2 08 00 25 06 80 13 01 00 00 00 00 00 A8 [20:06:17]Write i2c OK [20:06:17]MH_I2C_Read... [20:06:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:06:17]Read from MH i2c: E2 [20:06:17]MH_I2C_Read... [20:06:17]Read from MH i2c: E2 0E 00 [20:06:17]MH_I2C_Read... [20:06:17]Read from MH i2c: E2 0E 00 25 06 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 74 [20:06:17]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [20:06:17]wFMCommunicate OK [20:06:17]SAM_PROTO_GetShiftState done [20:06:17]FM_GetShiftState done [20:06:17]opened in 1717373173 [20:06:17]opened+sec_in_day 1717459573 [20:06:17]quantity*price = 25000 [20:06:17]sum+1 = 25001 [20:06:17]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4620017453536 Тараллини NF 180г чеснок 1.000 * 80.00 = 80.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4000417700001 Шок Ritter SPORT EN мол лещина,фунд 100г 2.000 * 255.00 = 510.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4607035653513 Вафли Голландские карамел 290 1.000 * 137.00 = 137.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 977.00 НСП 1% : 8.64 НДС 12% : 103.76 Наличными: 0.00 Безнал.: 977.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 137 03.06.2024 20:06 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000875074 ФД: 63879 ФПД: 240667171829019 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T200618&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63879&fm=240667171829019&tin=02508201610067®Number=0000000000092737&sum=97700 0 [20:06:18]StoreToDocumentArchive [20:06:18]shift 373 fd 63879 [20:06:18]save to /storage/0373/doc_00063879 [20:06:18]save last doc name /storage/0373/doc_00063879 to /storage/kkm_last_doc_name [20:06:18]save OK [20:06:18]Clear old archive folders... [20:06:18]ProcessDocumentItem done err = 0, tmpTLVsize=647 [20:06:18]tlvbuf is 00ADF970 [20:06:18]SAM_PROTO_ClearQueue [20:06:18]wFMCommunicate request_size=4 [20:06:18]MH_SAM_APDU [20:06:18]CAPDU: 80 09 00 00 [20:06:18]Write to MH i2c: E2 08 00 32 06 80 09 00 00 00 00 00 00 AA [20:06:18]Write i2c OK [20:06:18]MH_I2C_Read... [20:06:18]Read from MH i2c: E2 [20:06:18]MH_I2C_Read... [20:06:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:06:18]Read from MH i2c: E2 03 00 [20:06:18]MH_I2C_Read... [20:06:18]Read from MH i2c: E2 03 00 32 06 00 90 00 AC [20:06:18]RAPDU: 90 00 [20:06:18]wFMCommunicate OK [20:06:18]SAM_PROTO_ClearQueue done [20:06:18]KKMCreateOFDPacket [20:06:18]OFDProtocolAddRootSTLVToBuf [20:06:18]FM_MakeSignedData [20:06:18]FM_MakeSignedData [20:06:18]SAM_PROTO_SignData [20:06:18]wFMCommunicate request_size=4 [20:06:18]MH_SAM_APDU [20:06:18]CAPDU: 80 0D 01 02 [20:06:18]Write to MH i2c: E2 08 00 33 06 80 0D 01 02 00 00 00 00 B2 [20:06:18]Write i2c OK [20:06:18]MH_I2C_Read... [20:06:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:06:18]Read from MH i2c: E2 [20:06:18]MH_I2C_Read... [20:06:18]Read from MH i2c: E2 03 00 [20:06:18]MH_I2C_Read... [20:06:18]Read from MH i2c: E2 03 00 33 06 00 90 00 AD [20:06:18]RAPDU: 90 00 [20:06:18]wFMCommunicate OK [20:06:18]wFMCommunicate request_size=255 [20:06:18]MH_SAM_APDU [20:06:18]CAPDU: 80 0D 02 02 FA 03 00 87 02 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 A8 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 36 32 30 30 31 37 34 35 33 35 33 36 06 04 28 00 D0 A2 D0 B0 D1 80 D0 B0 D0 BB D0 BB D0 B8 D0 BD D0 B8 20 4E 46 20 31 38 30 D0 B3 20 D1 87 D0 B5 D1 81 D0 BD D0 BE D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 30 30 30 34 31 37 37 30 [20:06:18]Write to MH i2c: E2 02 01 34 06 80 0D 02 02 FA 00 03 00 87 02 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 A8 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 36 32 30 30 31 37 34 35 33 35 33 36 06 04 28 00 D0 A2 D0 B0 D1 80 D0 B0 D0 BB D0 BB D0 B8 D0 BD D0 B8 20 4E 46 20 31 38 30 D0 B3 20 D1 87 D0 B5 D1 81 D0 BD D0 BE D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 30 30 30 34 31 37 37 30 00 00 CF [20:06:18]Write i2c OK [20:06:18]MH_I2C_Read... [20:06:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:06:19]Read from MH i2c: E2 [20:06:19]MH_I2C_Read... [20:06:19]Read from MH i2c: E2 03 00 [20:06:19]MH_I2C_Read... [20:06:19]Read from MH i2c: E2 03 00 34 06 00 90 00 AE [20:06:19]RAPDU: 90 00 [20:06:19]wFMCommunicate OK [20:06:19]wFMCommunicate request_size=255 [20:06:19]MH_SAM_APDU [20:06:19]CAPDU: 80 0D 02 02 FA 30 30 30 31 06 04 39 00 D0 A8 D0 BE D0 BA 20 52 69 74 74 65 72 20 53 50 4F 52 54 20 45 4E 20 D0 BC D0 BE D0 BB 20 D0 BB D0 B5 D1 89 D0 B8 D0 BD D0 B0 2C D1 84 D1 83 D0 BD D0 B4 20 31 30 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 9C 63 00 00 00 00 13 04 06 00 38 C7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 37 30 33 35 36 35 33 35 31 33 06 04 34 00 D0 92 D0 B0 D1 84 D0 BB D0 B8 20 D0 93 D0 BE D0 BB D0 BB D0 B0 D0 BD D0 B4 D1 81 D0 BA D0 B8 D0 B5 20 D0 BA D0 B0 D1 80 D0 B0 D0 BC D0 B5 D0 BB 20 32 39 30 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 84 35 00 00 00 00 13 04 06 00 84 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 7D 01 00 00 00 EB 03 26 00 [20:06:19]Write to MH i2c: E2 02 01 35 06 80 0D 02 02 FA 00 30 30 30 31 06 04 39 00 D0 A8 D0 BE D0 BA 20 52 69 74 74 65 72 20 53 50 4F 52 54 20 45 4E 20 D0 BC D0 BE D0 BB 20 D0 BB D0 B5 D1 89 D0 B8 D0 BD D0 B0 2C D1 84 D1 83 D0 BD D0 B4 20 31 30 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 9C 63 00 00 00 00 13 04 06 00 38 C7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 37 30 33 35 36 35 33 35 31 33 06 04 34 00 D0 92 D0 B0 D1 84 D0 BB D0 B8 20 D0 93 D0 BE D0 BB D0 BB D0 B0 D0 BD D0 B4 D1 81 D0 BA D0 B8 D0 B5 20 D0 BA D0 B0 D1 80 D0 B0 D0 BC D0 B5 D0 BB 20 32 39 30 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 84 35 00 00 00 00 13 04 06 00 84 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 7D 01 00 00 00 EB 03 26 00 00 00 41 [20:06:19]Write i2c OK [20:06:19]MH_I2C_Read... [20:06:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:06:19]Read from MH i2c: E2 [20:06:19]MH_I2C_Read... [20:06:19]Read from MH i2c: E2 03 00 [20:06:19]MH_I2C_Read... [20:06:19]Read from MH i2c: E2 03 00 35 06 00 90 00 AF [20:06:19]RAPDU: 90 00 [20:06:19]wFMCommunicate OK [20:06:19]wFMCommunicate request_size=156 [20:06:19]MH_SAM_APDU [20:06:19]CAPDU: 80 0D 02 02 97 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 60 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 28 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A4 7D 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 3A 22 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 87 F9 00 00 35 04 06 00 DA E2 B1 49 35 1B [20:06:19]Write to MH i2c: E2 9F 00 36 06 80 0D 02 02 97 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 60 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 28 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A4 7D 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 3A 22 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 87 F9 00 00 35 04 06 00 DA E2 B1 49 35 1B 00 00 E9 [20:06:19]Write i2c OK [20:06:19]MH_I2C_Read... [20:06:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:06:19]Read from MH i2c: E2 [20:06:19]MH_I2C_Read... [20:06:19]Read from MH i2c: E2 03 00 [20:06:19]MH_I2C_Read... [20:06:19]Read from MH i2c: E2 03 00 36 06 00 90 00 B0 [20:06:19]RAPDU: 90 00 [20:06:19]wFMCommunicate OK [20:06:19]wFMCommunicate request_size=4 [20:06:19]MH_SAM_APDU [20:06:19]CAPDU: 80 0D 03 02 [20:06:19]Write to MH i2c: E2 08 00 37 06 80 0D 03 02 00 00 00 00 B8 [20:06:19]Write i2c OK [20:06:19]MH_I2C_Read... [20:06:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:06:19]Read from MH i2c: E2 [20:06:19]MH_I2C_Read... [20:06:19]Read from MH i2c: E2 0B 00 [20:06:19]MH_I2C_Read... [20:06:19]Read from MH i2c: E2 0B 00 37 06 00 15 1D 32 E9 D9 D9 AF FA 90 00 61 [20:06:19]RAPDU: 15 1D 32 E9 D9 D9 AF FA 90 00 [20:06:19]wFMCommunicate OK [20:06:19]SAM_PROTO_SignData done [20:06:19]FM_MakeSignedData done [20:06:19]CreateOFDProtocolMessage [20:06:19]wFMCommunicate request_size=4 [20:06:19]MH_SAM_APDU [20:06:19]CAPDU: 80 11 00 00 [20:06:19]Write to MH i2c: E2 08 00 38 06 80 11 00 00 00 00 00 00 B8 [20:06:19]Write i2c OK [20:06:19]MH_I2C_Read... [20:06:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:06:19]Read from MH i2c: E2 [20:06:19]MH_I2C_Read... [20:06:19]Read from MH i2c: E2 17 00 [20:06:19]MH_I2C_Read... [20:06:19]Read from MH i2c: E2 17 00 38 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 0A [20:06:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [20:06:19]wFMCommunicate OK [20:06:19]CreateOFDProtocolMessage done [20:06:19]OFDSenderStorePacket 63879 [20:06:19]StoreOFDPacket docnum=63879 [20:06:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 9B 02 00 00 1C 65 93 02 3C E5 5A 03 01 00 03 00 87 02 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 A8 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 36 32 30 30 31 37 34 35 33 35 33 36 06 04 28 00 D0 A2 D0 B0 D1 80 D0 B0 D0 BB D0 BB D0 B8 D0 BD D0 B8 20 4E 46 20 31 38 30 D0 B3 20 D1 87 D0 B5 D1 81 D0 BD D0 BE D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 30 30 30 34 31 37 37 30 30 30 30 31 06 04 39 00 D0 A8 D0 BE D0 BA 20 52 69 74 74 65 72 20 53 50 4F 52 54 20 45 4E 20 D0 BC D0 BE D0 BB 20 D0 BB D0 B5 D1 89 D0 B8 D0 BD D0 B0 2C D1 84 D1 83 D0 BD D0 B4 20 31 30 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 9C 63 00 00 00 00 13 04 06 00 38 C7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 37 30 33 35 36 35 33 35 31 33 06 04 34 00 D0 92 D0 B0 D1 84 D0 BB D0 B8 20 D0 93 D0 BE D0 BB D0 BB D0 B0 D0 BD D0 B4 D1 81 D0 BA D0 B8 D0 B5 20 D0 BA D0 B0 D1 80 D0 B0 D0 BC D0 B5 D0 BB 20 32 39 30 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 84 35 00 00 00 00 13 04 06 00 84 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 7D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 60 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 28 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A4 7D 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 3A 22 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 87 F9 00 00 35 04 06 00 DA E2 B1 49 35 1B 15 1D 32 E9 D9 D9 AF FA [20:06:19]CheckFolder [20:06:19]dirname=/storage/ofd_packets [20:06:19]CheckFolder done [20:06:19]ProducePacketName [20:06:19]name=ofd_packets/00063879 [20:06:19]NVStorageSaveData ofd_packets/00063879 [20:06:19]File name is /storage/ofd_packets/00063879 [20:06:19]Write 697 bytes [20:06:19]NVStorageSaveData done [20:06:19]OFDSenderStorePacket done [20:06:19]KKMCreateOFDPacket done [20:06:19]NVStorageSaveData kkm_last_timestamp [20:06:19]File name is /storage/kkm_last_timestamp [20:06:19]Write 4 bytes [20:06:19]NVStorageSaveData done [20:06:19]ExternCall_PrintAddStr [20:06:19]wPrintStart [20:06:19]Write to MH i2c: 01 00 00 39 06 3F [20:06:19]Write i2c OK [20:06:19]MH_I2C_Read... [20:06:19]Read from MH i2c: 01 [20:06:19]MH_I2C_Read... [20:06:19]Read from MH i2c: 01 07 00 [20:06:19]MH_I2C_Read... [20:06:19]Read from MH i2c: 01 07 00 39 06 00 00 00 00 00 FF 0F 54 [20:06:19]RasterBufferAndPrint [20:06:19]line Счет N : (3)73447 [20:06:19]line ИНН: 02508201610067 [20:06:19]line Контрольно-Кассовый Чек [20:06:19]line ПРОДАЖА [20:06:19]line Товар: 2000036220012 [20:06:19]line Кофе Капучино XL(GABB TRADE) [20:06:19]line 2.000 * 125.00 [20:06:20]line = 250.00 [20:06:20]line НДС 12% НСП 1% [20:06:20]line > о реализуемом товаре [20:06:20]line Товар: 4620017453536 [20:06:20]line Тараллини NF 180г чеснок [20:06:20]line 1.000 * 80.00 [20:06:20]line = 80.00 [20:06:20]line НДС 12% НСП 1% [20:06:20]line > о реализуемом товаре [20:06:20]line Товар: 4000417700001 [20:06:20]line Шок Ritter SPORT EN мол лещина,фунд 100г [20:06:20]line 2.000 * 255.00 [20:06:20]line = 510.00 [20:06:20]line НДС 12% НСП 1% [20:06:20]line > о реализуемом товаре [20:06:20]line Товар: 4607035653513 [20:06:20]line Вафли Голландские карамел 290 [20:06:20]line 1.000 * 137.00 [20:06:20]line = 137.00 [20:06:20]line НДС 12% НСП 1% [20:06:20]line > о реализуемом товаре [20:06:20]line ИТОГО: 977.00 [20:06:20]line НСП 1% : 8.64 [20:06:20]line НДС 12% : 103.76 [20:06:20]line Наличными: 0.00 [20:06:20]line Безнал.: 977.00 [20:06:20]line Место: АЗС № 117 "Партнер Нефть" [20:06:20]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [20:06:20]line СНО: Общий режим [20:06:20]line Чек 137 03.06.2024 20:06 [20:06:20]line Смена: 373 ФФД: 1.0 [20:06:20]line ЗНМ: 0300000031 [20:06:20]line РНМ: 0000000000092737 [20:06:20]line Версия ККМ: 001 [20:06:20]line Платежная система: АКБ Кыргызстан [20:06:20]line ФМ: 0000000000875074 [20:06:20]line ФД: 63879 [20:06:20]line ФПД: 240667171829019 [20:06:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T200618&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63879&fm=240667171829019&tin=02508201610067®Number=0000000000092737&sum=97700 [20:06:20]line 0 [20:06:20]OFD Sender: Processing packet 63879 [packets to send 14, broken 13] [20:06:20]ProducePacketName [20:06:20]name=ofd_packets/00063879 [20:06:20]OFD Sender: To server: pG, [20:06:20]CommunicateWithHost lk.salyk.kg:30040 [20:06:20]ConnectInit lk.salyk.kg [20:06:20]written 0, free lines is 4095 [20:06:20]Connected sock=10 [20:06:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 9B 02 00 00 1C 65 93 02 3C E5 5A 03 01 00 03 00 87 02 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 A8 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 36 32 30 30 31 37 34 35 33 35 33 36 06 04 28 00 D0 A2 D0 B0 D1 80 D0 B0 D0 BB D0 BB D0 B8 D0 BD D0 B8 20 4E 46 20 31 38 30 D0 B3 20 D1 87 D0 B5 D1 81 D0 BD D0 BE D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 30 30 30 34 31 37 37 30 30 30 30 31 06 04 39 00 D0 A8 D0 BE D0 BA 20 52 69 74 74 65 72 20 53 50 4F 52 54 20 45 4E 20 D0 BC D0 BE D0 BB 20 D0 BB D0 B5 D1 89 D0 B8 D0 BD D0 B0 2C D1 84 D1 83 D0 BD D0 B4 20 31 30 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 9C 63 00 00 00 00 13 04 06 00 38 C7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 37 30 33 35 36 35 33 35 31 33 06 04 34 00 D0 92 D0 B0 D1 84 D0 BB D0 B8 20 D0 93 D0 BE D0 BB D0 BB D0 B0 D0 BD D0 B4 D1 81 D0 BA D0 B8 D0 B5 20 D0 BA D0 B0 D1 80 D0 B0 D0 BC D0 B5 D0 BB 20 32 39 30 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 84 35 00 00 00 00 13 04 06 00 84 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 7D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 60 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 28 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A4 7D 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 3A 22 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 87 F9 00 00 35 04 06 00 DA E2 B1 49 35 1B 15 1D 32 E9 D9 D9 AF FA [20:06:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 18 C6 47 00 25 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 35 30 37 34 10 04 04 00 87 F9 00 00 F4 03 04 00 0B CE 5D 66 B6 04 01 00 00 8F 83 B5 97 53 79 39 6F [20:06:20]CommunicateWithHost err = 0 [20:06:20]CheckOFDResponse [20:06:20]1017 (14) - 77093643461234 [20:06:20]1041 (16) - 0000000000875074 [20:06:20]1040 (4) - 63879 [20:06:20]1012 (4) - 03.06.2024 14:07 [20:06:20]1206 (1) - 0 [20:06:20]OFD Sender: Remove packet 63879 [20:06:20]ProducePacketName [20:06:20]name=ofd_packets/00063879 [20:06:20]NVStorageDeleteData [20:06:20]Write to MH i2c: 01 00 00 78 06 7E [20:06:20]Write i2c OK [20:06:20]MH_I2C_Read... [20:06:20]Read from MH i2c: 01 [20:06:20]MH_I2C_Read... [20:06:20]Read from MH i2c: 01 07 00 [20:06:20]MH_I2C_Read... [20:06:20]Read from MH i2c: 01 07 00 78 06 00 00 00 00 00 9E 0B 2E [20:06:20]RasterBufferAndPrint [20:06:20]line [20:06:20]line [20:06:20]line [20:06:20]line [20:06:20]line [20:06:20]written 0, free lines is 2981 [20:06:20]MH_Cut [20:06:20]Write to MH i2c: D1 01 00 7F 06 01 57 [20:06:20]Write i2c OK [20:06:20]MH_I2C_Read... [20:06:20]Read from MH i2c: D1 [20:06:20]MH_I2C_Read... [20:06:20]Read from MH i2c: D1 01 00 [20:06:20]MH_I2C_Read... [20:06:20]Read from MH i2c: D1 01 00 7F 06 00 56 [20:06:20]Write to MH i2c: 01 00 00 80 06 86 [20:06:20]Write i2c OK [20:06:20]MH_I2C_Read... [20:06:20]OFD Sender: No OFD packet to send [20:06:21]*** Cut start [20:06:21]*** Partial cut [20:06:21]*** CUTSNS_PIN = 1 [20:06:21]*** CUTSNS_PIN = 0 [20:06:22]*** Brake cut motor [20:06:22]Read from MH i2c: 01 [20:06:22]MH_I2C_Read... [20:06:22]*** Stop cut motor [20:06:22]*** Cut end [20:06:22]Read from MH i2c: 01 07 00 [20:06:22]MH_I2C_Read... [20:06:22]Read from MH i2c: 01 07 00 80 06 00 00 00 00 00 FF 0F 9B [20:06:22]process_action close_receipt done [20:06:22]requested_data is exist [20:06:22]produce_requested_data [20:06:22]requested_item fm.sn is exist - process it [20:06:22]wFMCommunicate request_size=4 [20:06:22]MH_SAM_APDU [20:06:22]CAPDU: 80 11 00 00 [20:06:22]Write to MH i2c: E2 08 00 81 06 80 11 00 00 00 00 00 00 01 [20:06:22]Write i2c OK [20:06:22]MH_I2C_Read... [20:06:22]Read from MH i2c: E2 [20:06:22]MH_I2C_Read... [20:06:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:06:22]Read from MH i2c: E2 17 00 [20:06:22]MH_I2C_Read... [20:06:22]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 35 30 37 34 90 00 53 [20:06:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [20:06:22]wFMCommunicate OK [20:06:22]requested_item fd.num is exist - process it [20:06:22]SAM_PROTO_GetFieldsCounters [20:06:22]wFMCommunicate request_size=4 [20:06:22]MH_SAM_APDU [20:06:22]CAPDU: 80 13 00 00 [20:06:22]Write to MH i2c: E2 08 00 82 06 80 13 00 00 00 00 00 00 04 [20:06:22]Write i2c OK [20:06:22]MH_I2C_Read... [20:06:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:06:22]Read from MH i2c: E2 [20:06:22]MH_I2C_Read... [20:06:22]Read from MH i2c: E2 62 00 [20:06:22]MH_I2C_Read... [20:06:22]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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 87 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 89 00 00 00 5E 04 04 00 89 00 00 00 57 04 04 00 8A 00 00 00 19 04 04 00 00 00 00 00 90 00 B8 [20:06: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 87 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 89 00 00 00 5E 04 04 00 89 00 00 00 57 04 04 00 8A 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:06:22]wFMCommunicate OK [20:06:22]SAM_PROTO_GetFieldsCounters done [20:06:22]requested_item shift.num is exist - process it [20:06:22]requested_item shift.opened is exist - process it [20:06:22]req_shift_opened [20:06:22]FM_GetShiftState [20:06:22]SAM_PROTO_GetShiftState [20:06:22]wFMCommunicate request_size=4 [20:06:22]MH_SAM_APDU [20:06:22]CAPDU: 80 13 01 00 [20:06:22]Write to MH i2c: E2 08 00 83 06 80 13 01 00 00 00 00 00 06 [20:06:22]Write i2c OK [20:06:22]MH_I2C_Read... [20:06:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:06:22]Read from MH i2c: E2 [20:06:22]MH_I2C_Read... [20:06:22]Read from MH i2c: E2 0E 00 [20:06:22]MH_I2C_Read... [20:06:22]Read from MH i2c: E2 0E 00 83 06 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 D2 [20:06:22]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [20:06:22]wFMCommunicate OK [20:06:22]SAM_PROTO_GetShiftState done [20:06:22]FM_GetShiftState done [20:06:22]req_shift_opened done [20:06:22]requested_item shift.open_date is exist - process it [20:06:22]req_shift_open_date [20:06:22]req_shift_open_date done [20:06:22]produce_requested_data done [20:06:22]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63879,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [20:06:22]process_action_free close_receipt [20:06:22]json_value_free [20:06:22]json_value_free done [20:06:22]process_json_proto returns [20:06:22]Send response to host [20:06:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63879,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [20:06:22]free response buf [20:06:22]execute_script done [20:06:22]execute_script returns [20:06:22]free content buf [20:06:22]Sock 9.Close socket [20:06:22]Sock 9.Thread stoped [20:06:25]OFD Sender: No OFD packet to send [20:06:30]OFD Sender: No OFD packet to send [20:06:35]OFD Sender: No OFD packet to send [20:06:40]OFD Sender: No OFD packet to send [20:06:45]OFD Sender: No OFD packet to send [20:06:50]OFD Sender: No OFD packet to send [20:06:55]OFD Sender: No OFD packet to send [20:07:00]OFD Sender: No OFD packet to send [20:07:05]OFD Sender: No OFD packet to send [20:07:10]OFD Sender: No OFD packet to send [20:07:15]OFD Sender: No OFD packet to send [20:07:20]OFD Sender: No OFD packet to send [20:07:25]OFD Sender: No OFD packet to send [20:07:30]OFD Sender: No OFD packet to send [20:07:35]OFD Sender: No OFD packet to send [20:07:40]OFD Sender: No OFD packet to send [20:07:45]OFD Sender: No OFD packet to send [20:07:50]OFD Sender: No OFD packet to send [20:07:55]OFD Sender: No OFD packet to send [20:08:00]OFD Sender: No OFD packet to send [20:08:05]OFD Sender: No OFD packet to send [20:08:10]OFD Sender: No OFD packet to send [20:08:15]OFD Sender: No OFD packet to send [20:08:20]OFD Sender: No OFD packet to send [20:08:25]OFD Sender: No OFD packet to send [20:08:30]OFD Sender: No OFD packet to send [20:08:35]OFD Sender: No OFD packet to send [20:08:40]OFD Sender: No OFD packet to send [20:08:45]OFD Sender: No OFD packet to send [20:08:50]OFD Sender: No OFD packet to send [20:08:55]OFD Sender: No OFD packet to send [20:09:00]OFD Sender: No OFD packet to send [20:09:05]OFD Sender: No OFD packet to send [20:09:10]OFD Sender: No OFD packet to send [20:09:15]OFD Sender: No OFD packet to send [20:09:20]OFD Sender: No OFD packet to send [20:09:25]OFD Sender: No OFD packet to send [20:09:30]OFD Sender: No OFD packet to send [20:09:35]OFD Sender: No OFD packet to send [20:09:40]OFD Sender: No OFD packet to send [20:09:45]OFD Sender: No OFD packet to send [20:09:50]OFD Sender: No OFD packet to send [20:09:56]OFD Sender: No OFD packet to send [20:10:01]OFD Sender: No OFD packet to send [20:10:06]OFD Sender: No OFD packet to send [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:51]OFD Sender: No OFD packet to send [20:10:56]OFD Sender: No OFD packet to send [20:11:01]OFD Sender: No OFD packet to send [20:11:06]OFD Sender: No OFD packet to send [20:11:11]OFD Sender: No OFD packet to send [20:11:16]OFD Sender: No OFD packet to send [20:11:21]OFD Sender: No OFD packet to send [20:11:26]OFD Sender: No OFD packet to send [20:11:31]OFD Sender: No OFD packet to send [20:11:36]OFD Sender: No OFD packet to send [20:11:41]OFD Sender: No OFD packet to send [20:11:46]OFD Sender: No OFD packet to send [20:11:51]OFD Sender: No OFD packet to send [20:11:56]OFD Sender: No OFD packet to send [20:12:01]OFD Sender: No OFD packet to send [20:12:06]OFD Sender: No OFD packet to send [20:12:11]OFD Sender: No OFD packet to send [20:12:16]OFD Sender: No OFD packet to send [20:12:21]OFD Sender: No OFD packet to send [20:12:26]OFD Sender: No OFD packet to send [20:12:31]OFD Sender: No OFD packet to send [20:12:36]OFD Sender: No OFD packet to send [20:12:41]OFD Sender: No OFD packet to send [20:12:46]OFD Sender: No OFD packet to send [20:12:51]OFD Sender: No OFD packet to send [20:12:56]OFD Sender: No OFD packet to send [20:13:01]OFD Sender: No OFD packet to send [20:13:06]OFD Sender: No OFD packet to send [20:13:11]OFD Sender: No OFD packet to send [20:13:16]OFD Sender: No OFD packet to send [20:13:21]OFD Sender: No OFD packet to send [20:13:26]OFD Sender: No OFD packet to send [20:13:31]OFD Sender: No OFD packet to send [20:13:36]OFD Sender: No OFD packet to send [20:13:41]OFD Sender: No OFD packet to send [20:13:46]OFD Sender: No OFD packet to send [20:13:51]OFD Sender: No OFD packet to send [20:13:56]OFD Sender: No OFD packet to send [20:14:01]OFD Sender: No OFD packet to send [20:14:06]OFD Sender: No OFD packet to send [20:14:11]OFD Sender: No OFD packet to send [20:14:16]OFD Sender: No OFD packet to send [20:14:21]OFD Sender: No OFD packet to send [20:14:26]OFD Sender: No OFD packet to send [20:14:31]OFD Sender: No OFD packet to send [20:14:36]OFD Sender: No OFD packet to send [20:14:41]OFD Sender: No OFD packet to send [20:14:46]OFD Sender: No OFD packet to send [20:14:51]OFD Sender: No OFD packet to send [20:14:56]OFD Sender: No OFD packet to send [20:15:01]OFD Sender: No OFD packet to send [20:15:06]OFD Sender: No OFD packet to send [20:15:11]OFD Sender: No OFD packet to send [20:15:16]OFD Sender: No OFD packet to send [20:15:21]OFD Sender: No OFD packet to send [20:15:26]OFD Sender: No OFD packet to send [20:15:31]OFD Sender: No OFD packet to send [20:15:36]OFD Sender: No OFD packet to send [20:15:41]OFD Sender: No OFD packet to send [20:15:46]OFD Sender: No OFD packet to send [20:15:51]OFD Sender: No OFD packet to send [20:15:56]OFD Sender: No OFD packet to send [20:16:01]OFD Sender: No OFD packet to send [20:16:06]OFD Sender: No OFD packet to send [20:16:11]OFD Sender: No OFD packet to send [20:16:16]OFD Sender: No OFD packet to send [20:16:21]OFD Sender: No OFD packet to send [20:16:26]OFD Sender: No OFD packet to send [20:16:31]OFD Sender: No OFD packet to send [20:16:36]OFD Sender: No OFD packet to send [20:16:41]OFD Sender: No OFD packet to send [20:16:46]OFD Sender: No OFD packet to send [20:16:51]OFD Sender: No OFD packet to send [20:16:56]OFD Sender: No OFD packet to send [20:17:01]OFD Sender: No OFD packet to send [20:17:06]OFD Sender: No OFD packet to send [20:17:11]OFD Sender: No OFD packet to send [20:17:16]OFD Sender: No OFD packet to send [20:17:21]OFD Sender: No OFD packet to send [20:17:26]OFD Sender: No OFD packet to send [20:17:31]OFD Sender: No OFD packet to send [20:17:36]OFD Sender: No OFD packet to send [20:17:41]OFD Sender: No OFD packet to send [20:17:46]OFD Sender: No OFD packet to send [20:17:51]OFD Sender: No OFD packet to send [20:17:56]OFD Sender: No OFD packet to send [20:18:01]OFD Sender: No OFD packet to send [20:18:06]OFD Sender: No OFD packet to send [20:18:11]OFD Sender: No OFD packet to send [20:18:16]OFD Sender: No OFD packet to send [20:18:21]OFD Sender: No OFD packet to send [20:18:26]OFD Sender: No OFD packet to send [20:18:31]OFD Sender: No OFD packet to send [20:18:36]OFD Sender: No OFD packet to send [20:18:41]OFD Sender: No OFD packet to send [20:18:46]OFD Sender: No OFD packet to send [20:18:51]OFD Sender: No OFD packet to send [20:18:56]OFD Sender: No OFD packet to send [20:19:01]OFD Sender: No OFD packet to send [20:19:06]OFD Sender: No OFD packet to send [20:19:11]OFD Sender: No OFD packet to send [20:19:16]OFD Sender: No OFD packet to send [20:19:21]OFD Sender: No OFD packet to send [20:19:26]OFD Sender: No OFD packet to send [20:19:31]OFD Sender: No OFD packet to send [20:19:36]OFD Sender: No OFD packet to send [20:19:41]OFD Sender: No OFD packet to send [20:19:46]OFD Sender: No OFD packet to send [20:19:51]OFD Sender: No OFD packet to send [20:19:56]OFD Sender: No OFD packet to send [20:20:01]OFD Sender: No OFD packet to send [20:20:06]OFD Sender: No OFD packet to send [20:20:11]OFD Sender: No OFD packet to send [20:20:16]OFD Sender: No OFD packet to send [20:20:21]OFD Sender: No OFD packet to send [20:20:26]OFD Sender: No OFD packet to send [20:20:31]OFD Sender: No OFD packet to send [20:20:36]OFD Sender: No OFD packet to send [20:20:41]OFD Sender: No OFD packet to send [20:20:46]OFD Sender: No OFD packet to send [20:20:51]OFD Sender: No OFD packet to send [20:20:56]OFD Sender: No OFD packet to send [20:21:01]OFD Sender: No OFD packet to send [20:21:06]OFD Sender: No OFD packet to send [20:21:11]OFD Sender: No OFD packet to send [20:21:16]OFD Sender: No OFD packet to send [20:21:21]OFD Sender: No OFD packet to send [20:21:26]OFD Sender: No OFD packet to send [20:21:31]OFD Sender: No OFD packet to send [20:21:36]OFD Sender: No OFD packet to send [20:21:41]OFD Sender: No OFD packet to send [20:21:46]OFD Sender: No OFD packet to send [20:21:51]OFD Sender: No OFD packet to send [20:21:56]OFD Sender: No OFD packet to send [20:22:01]OFD Sender: No OFD packet to send [20:22:06]OFD Sender: No OFD packet to send [20:22:11]OFD Sender: No OFD packet to send [20:22:16]OFD Sender: No OFD packet to send [20:22:21]OFD Sender: No OFD packet to send [20:22:26]OFD Sender: No OFD packet to send [20:22:31]OFD Sender: No OFD packet to send [20:22:36]OFD Sender: No OFD packet to send [20:22:41]OFD Sender: No OFD packet to send [20:22:46]OFD Sender: No OFD packet to send [20:22:51]OFD Sender: No OFD packet to send [20:22:56]OFD Sender: No OFD packet to send [20:23:01]OFD Sender: No OFD packet to send [20:23:06]OFD Sender: No OFD packet to send [20:23:11]OFD Sender: No OFD packet to send [20:23:16]OFD Sender: No OFD packet to send [20:23:21]OFD Sender: No OFD packet to send [20:23:26]OFD Sender: No OFD packet to send [20:23:31]OFD Sender: No OFD packet to send [20:23:36]OFD Sender: No OFD packet to send [20:23:41]OFD Sender: No OFD packet to send [20:23:46]OFD Sender: No OFD packet to send [20:23:51]OFD Sender: No OFD packet to send [20:23:56]OFD Sender: No OFD packet to send [20:24:01]OFD Sender: No OFD packet to send [20:24:06]OFD Sender: No OFD packet to send [20:24:11]OFD Sender: No OFD packet to send [20:24:16]OFD Sender: No OFD packet to send [20:24:21]OFD Sender: No OFD packet to send [20:24:26]OFD Sender: No OFD packet to send [20:24:31]OFD Sender: No OFD packet to send [20:24:36]OFD Sender: No OFD packet to send [20:24:41]OFD Sender: No OFD packet to send [20:24:46]OFD Sender: No OFD packet to send [20:24:51]OFD Sender: No OFD packet to send [20:24:56]OFD Sender: No OFD packet to send [20:25:01]OFD Sender: No OFD packet to send [20:25:06]OFD Sender: No OFD packet to send [20:25:11]OFD Sender: No OFD packet to send [20:25:16]OFD Sender: No OFD packet to send [20:25:21]OFD Sender: No OFD packet to send [20:25:26]OFD Sender: No OFD packet to send [20:25:31]OFD Sender: No OFD packet to send [20:25:36]OFD Sender: No OFD packet to send [20:25:41]OFD Sender: No OFD packet to send [20:25:46]OFD Sender: No OFD packet to send [20:25:51]OFD Sender: No OFD packet to send [20:25:56]OFD Sender: No OFD packet to send [20:26:01]OFD Sender: No OFD packet to send [20:26:06]OFD Sender: No OFD packet to send [20:26:11]OFD Sender: No OFD packet to send [20:26:16]OFD Sender: No OFD packet to send [20:26:21]OFD Sender: No OFD packet to send [20:26:26]OFD Sender: No OFD packet to send [20:26:31]OFD Sender: No OFD packet to send [20:26:36]OFD Sender: No OFD packet to send [20:26:41]OFD Sender: No OFD packet to send [20:26:46]OFD Sender: No OFD packet to send [20:26:51]OFD Sender: No OFD packet to send [20:26:56]OFD Sender: No OFD packet to send [20:27:01]OFD Sender: No OFD packet to send [20:27:06]OFD Sender: No OFD packet to send [20:27:11]OFD Sender: No OFD packet to send [20:27:16]OFD Sender: No OFD packet to send [20:27:21]OFD Sender: No OFD packet to send [20:27:26]OFD Sender: No OFD packet to send [20:27:31]OFD Sender: No OFD packet to send [20:27:36]OFD Sender: No OFD packet to send [20:27:41]OFD Sender: No OFD packet to send [20:27:46]OFD Sender: No OFD packet to send [20:27:51]OFD Sender: No OFD packet to send [20:27:56]OFD Sender: No OFD packet to send [20:28:01]OFD Sender: No OFD packet to send [20:28:06]OFD Sender: No OFD packet to send [20:28:11]OFD Sender: No OFD packet to send [20:28:16]OFD Sender: No OFD packet to send [20:28:21]OFD Sender: No OFD packet to send [20:28:26]OFD Sender: No OFD packet to send [20:28:31]OFD Sender: No OFD packet to send [20:28:36]OFD Sender: No OFD packet to send [20:28:41]OFD Sender: No OFD packet to send [20:28:46]OFD Sender: No OFD packet to send [20:28:51]OFD Sender: No OFD packet to send [20:28:56]OFD Sender: No OFD packet to send [20:29:01]OFD Sender: No OFD packet to send [20:29:06]OFD Sender: No OFD packet to send [20:29:11]OFD Sender: No OFD packet to send [20:29:16]OFD Sender: No OFD packet to send [20:29:21]OFD Sender: No OFD packet to send [20:29:26]OFD Sender: No OFD packet to send [20:29:31]OFD Sender: No OFD packet to send [20:29:36]OFD Sender: No OFD packet to send [20:29:41]OFD Sender: No OFD packet to send [20:29:46]OFD Sender: No OFD packet to send [20:29:51]OFD Sender: No OFD packet to send [20:29:56]OFD Sender: No OFD packet to send [20:30:01]OFD Sender: No OFD packet to send [20:30:06]OFD Sender: No OFD packet to send [20:30:11]OFD Sender: No OFD packet to send [20:30:16]OFD Sender: No OFD packet to send [20:30:21]OFD Sender: No OFD packet to send [20:30:26]OFD Sender: No OFD packet to send [20:30:31]OFD Sender: No OFD packet to send [20:30:37]OFD Sender: No OFD packet to send [20:30:42]OFD Sender: No OFD packet to send [20:30:47]OFD Sender: No OFD packet to send [20:30:52]OFD Sender: No OFD packet to send [20:30:57]OFD Sender: No OFD packet to send [20:31:02]OFD Sender: No OFD packet to send [20:31:07]OFD Sender: No OFD packet to send [20:31:12]OFD Sender: No OFD packet to send [20:31:15]accept exits with 7 [20:31:15]New connection [20:31:15]New thread 3066576228 created [20:31:15]Thread 3066719588 joined [20:31:15]Waiting for new connection... [20:31:15] Sock 7.Parse request [20:31:15]Sock 7.Check first char [20:31:15]Sock 7.First char is OK [20:31:15]request: POST /json_proto HTTP/1.0 [20:31:15]Method: POST [20:31:15]URL: /json_proto [20:31:15]Method is POST - this is cgi request [20:31:15]url: /json_proto [20:31:15]query_string will be loaded in cgi processing [20:31:15]execute_cgi json_proto POST (null) [20:31:15]execute_cgi path=json_proto method=POST [20:31:15]POST find Content-Length [20:31:15]Host: 172.17.60.69:8080 [20:31:15]Content-Length: 620 [20:31:15]Content-Type: application/json [20:31:15] [20:31:15]POST finish read [20:31:15]Found Content-Length = 620 [20:31:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73448", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:31:15]execute_script... [20:31:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73448", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:31:15]POST & json_proto [20:31:15]process_json_proto [20:31:15]json parsed OK: [20:31:15]protocol is kg_v1.0 [20:31:15]action value=close_receipt [20:31:15]process_action close_receipt [20:31:15]cmd_close_receipt [20:31:15]MH_GetDate [20:31:15]Write to MH i2c: F0 00 00 84 06 79 [20:31:15]Write i2c OK [20:31:15]MH_I2C_Read... [20:31:15]Read from MH i2c: F0 [20:31:15]MH_I2C_Read... [20:31:15]Read from MH i2c: F0 09 00 [20:31:15]MH_I2C_Read... [20:31:15]Read from MH i2c: F0 09 00 84 06 00 14 28 5E 66 6A 96 4A 66 32 [20:31:15]GetLastDocTimeStamp 1717445178 [20:31:15]current date 1717446676 [20:31:15]FM_GetShiftState [20:31:15]SAM_PROTO_GetShiftState [20:31:15]wFMCommunicate request_size=4 [20:31:15]MH_SAM_APDU [20:31:15]CAPDU: 80 13 01 00 [20:31:15]Write to MH i2c: E2 08 00 85 06 80 13 01 00 00 00 00 00 08 [20:31:15]Write i2c OK [20:31:15]MH_I2C_Read... [20:31:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:31:15]Read from MH i2c: E2 [20:31:15]MH_I2C_Read... [20:31:15]Read from MH i2c: E2 0E 00 [20:31:15]MH_I2C_Read... [20:31:15]Read from MH i2c: E2 0E 00 85 06 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 D4 [20:31:15]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [20:31:15]wFMCommunicate OK [20:31:15]SAM_PROTO_GetShiftState done [20:31:15]FM_GetShiftState done [20:31:15]opened in 1717373173 [20:31:15]opened+sec_in_day 1717459573 [20:31:15]quantity*price = 14000 [20:31:15]sum+1 = 14001 [20:31:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 138 03.06.2024 20:31 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63880 ФПД: 51614977426867 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T203116&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63880&fm=51614977426867&tin=02508201610067®Number=0000000000092737&sum=14000 0 [20:31:16]StoreToDocumentArchive [20:31:16]shift 373 fd 63880 [20:31:16]save to /storage/0373/doc_00063880 [20:31:16]save last doc name /storage/0373/doc_00063880 to /storage/kkm_last_doc_name [20:31:16]save OK [20:31:16]Clear old archive folders... [20:31:16]ProcessDocumentItem done err = 0, tmpTLVsize=273 [20:31:16]tlvbuf is 00AE0D90 [20:31:16]SAM_PROTO_ClearQueue [20:31:16]wFMCommunicate request_size=4 [20:31:16]MH_SAM_APDU [20:31:16]CAPDU: 80 09 00 00 [20:31:16]Write to MH i2c: E2 08 00 92 06 80 09 00 00 00 00 00 00 0A [20:31:16]Write i2c OK [20:31:16]MH_I2C_Read... [20:31:16]Read from MH i2c: E2 [20:31:16]MH_I2C_Read... [20:31:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:31:16]Read from MH i2c: E2 03 00 [20:31:16]MH_I2C_Read... [20:31:16]Read from MH i2c: E2 03 00 92 06 00 90 00 0C [20:31:16]RAPDU: 90 00 [20:31:16]wFMCommunicate OK [20:31:16]SAM_PROTO_ClearQueue done [20:31:16]KKMCreateOFDPacket [20:31:16]OFDProtocolAddRootSTLVToBuf [20:31:16]FM_MakeSignedData [20:31:16]FM_MakeSignedData [20:31:16]SAM_PROTO_SignData [20:31:16]wFMCommunicate request_size=4 [20:31:16]MH_SAM_APDU [20:31:16]CAPDU: 80 0D 01 02 [20:31:16]Write to MH i2c: E2 08 00 93 06 80 0D 01 02 00 00 00 00 12 [20:31:16]Write i2c OK [20:31:16]MH_I2C_Read... [20:31:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:31:16]Read from MH i2c: E2 [20:31:16]MH_I2C_Read... [20:31:16]Read from MH i2c: E2 03 00 [20:31:16]MH_I2C_Read... [20:31:16]Read from MH i2c: E2 03 00 93 06 00 90 00 0D [20:31:16]RAPDU: 90 00 [20:31:16]wFMCommunicate OK [20:31:16]wFMCommunicate request_size=255 [20:31:16]MH_SAM_APDU [20:31:16]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 14 28 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 [20:31:16]Write to MH i2c: E2 02 01 94 06 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 14 28 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 00 00 F6 [20:31:16]Write i2c OK [20:31:16]MH_I2C_Read... [20:31:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:31:17]Read from MH i2c: E2 [20:31:17]MH_I2C_Read... [20:31:17]Read from MH i2c: E2 03 00 [20:31:17]MH_I2C_Read... [20:31:17]Read from MH i2c: E2 03 00 94 06 00 90 00 0E [20:31:17]RAPDU: 90 00 [20:31:17]wFMCommunicate OK [20:31:17]wFMCommunicate request_size=32 [20:31:17]MH_SAM_APDU [20:31:17]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 35 30 37 34 10 04 04 00 88 F9 00 00 35 04 06 00 2E F1 8C 65 05 B3 [20:31:17]Write to MH i2c: E2 23 00 95 06 80 0D 02 02 1B 00 30 30 30 38 37 35 30 37 34 10 04 04 00 88 F9 00 00 35 04 06 00 2E F1 8C 65 05 B3 00 00 BA [20:31:17]OFD Sender: No OFD packet to send [20:31:17]Write i2c OK [20:31:17]MH_I2C_Read... [20:31:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:31:17]Read from MH i2c: E2 [20:31:17]MH_I2C_Read... [20:31:17]Read from MH i2c: E2 03 00 [20:31:17]MH_I2C_Read... [20:31:17]Read from MH i2c: E2 03 00 95 06 00 90 00 0F [20:31:17]RAPDU: 90 00 [20:31:17]wFMCommunicate OK [20:31:17]wFMCommunicate request_size=4 [20:31:17]MH_SAM_APDU [20:31:17]CAPDU: 80 0D 03 02 [20:31:17]Write to MH i2c: E2 08 00 96 06 80 0D 03 02 00 00 00 00 17 [20:31:17]Write i2c OK [20:31:17]MH_I2C_Read... [20:31:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:31:17]Read from MH i2c: E2 [20:31:17]MH_I2C_Read... [20:31:17]Read from MH i2c: E2 0B 00 [20:31:17]MH_I2C_Read... [20:31:17]Read from MH i2c: E2 0B 00 96 06 00 0B A4 19 AC D7 6C 14 E6 90 00 C9 [20:31:17]RAPDU: 0B A4 19 AC D7 6C 14 E6 90 00 [20:31:17]wFMCommunicate OK [20:31:17]SAM_PROTO_SignData done [20:31:17]FM_MakeSignedData done [20:31:17]CreateOFDProtocolMessage [20:31:17]wFMCommunicate request_size=4 [20:31:17]MH_SAM_APDU [20:31:17]CAPDU: 80 11 00 00 [20:31:17]Write to MH i2c: E2 08 00 97 06 80 11 00 00 00 00 00 00 17 [20:31:17]Write i2c OK [20:31:17]MH_I2C_Read... [20:31:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:31:17]Read from MH i2c: E2 [20:31:17]MH_I2C_Read... [20:31:17]Read from MH i2c: E2 17 00 [20:31:17]MH_I2C_Read... [20:31:17]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 35 30 37 34 90 00 69 [20:31:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [20:31:17]wFMCommunicate OK [20:31:17]CreateOFDProtocolMessage done [20:31:17]OFDSenderStorePacket 63880 [20:31:17]StoreOFDPacket docnum=63880 [20:31:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 25 01 00 00 8A 48 1D 01 3D 81 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 14 28 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 88 F9 00 00 35 04 06 00 2E F1 8C 65 05 B3 0B A4 19 AC D7 6C 14 E6 [20:31:17]CheckFolder [20:31:17]dirname=/storage/ofd_packets [20:31:17]CheckFolder done [20:31:17]ProducePacketName [20:31:17]name=ofd_packets/00063880 [20:31:17]NVStorageSaveData ofd_packets/00063880 [20:31:17]File name is /storage/ofd_packets/00063880 [20:31:17]Write 323 bytes [20:31:17]NVStorageSaveData done [20:31:17]OFDSenderStorePacket done [20:31:17]KKMCreateOFDPacket done [20:31:17]NVStorageSaveData kkm_last_timestamp [20:31:17]File name is /storage/kkm_last_timestamp [20:31:17]Write 4 bytes [20:31:17]NVStorageSaveData done [20:31:17]ExternCall_PrintAddStr [20:31:17]wPrintStart [20:31:17]Write to MH i2c: 01 00 00 98 06 9E [20:31:17]Write i2c OK [20:31:17]MH_I2C_Read... [20:31:17]Read from MH i2c: 01 [20:31:17]MH_I2C_Read... [20:31:17]Read from MH i2c: 01 07 00 [20:31:17]MH_I2C_Read... [20:31:17]Read from MH i2c: 01 07 00 98 06 00 00 00 00 00 FF 0F B3 [20:31:17]RasterBufferAndPrint [20:31:17]line Счет N : (3)73448 [20:31:17]line ИНН: 02508201610067 [20:31:17]line Контрольно-Кассовый Чек [20:31:17]line ПРОДАЖА [20:31:17]line Товар: 48747059 [20:31:17]line Сигареты Winston Legend Blue [20:31:17]line 1.000 * 140.00 [20:31:17]line = 140.00 [20:31:17]line НДС 12% НСП 1% [20:31:17]line > о реализуемом товаре [20:31:17]line ИТОГО: 140.00 [20:31:17]line НСП 1% : 1.24 [20:31:17]line НДС 12% : 14.87 [20:31:17]line Наличными: 140.00 [20:31:17]line Безнал.: 0.00 [20:31:17]line Место: АЗС № 117 "Партнер Нефть" [20:31:17]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [20:31:17]line СНО: Общий режим [20:31:17]line Чек 138 03.06.2024 20:31 [20:31:17]line Смена: 373 ФФД: 1.0 [20:31:17]line ЗНМ: 0300000031 [20:31:17]line РНМ: 0000000000092737 [20:31:17]line Версия ККМ: 001 [20:31:17]line ФМ: 0000000000875074 [20:31:17]line ФД: 63880 [20:31:17]line ФПД: 51614977426867 [20:31:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T203116&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63880&fm=51614977426867&tin=02508201610067®Number=0000000000092737&sum=14000 [20:31:17]line 0 [20:31:17]OFD Sender: Processing packet 63880 [packets to send 14, broken 13] [20:31:17]ProducePacketName [20:31:17]name=ofd_packets/00063880 [20:31:17]OFD Sender: To server: pG, [20:31:17]CommunicateWithHost lk.salyk.kg:30040 [20:31:17]ConnectInit lk.salyk.kg [20:31:17]written 0, free lines is 4095 [20:31:17]Connected sock=10 [20:31:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 25 01 00 00 8A 48 1D 01 3D 81 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 14 28 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 88 F9 00 00 35 04 06 00 2E F1 8C 65 05 B3 0B A4 19 AC D7 6C 14 E6 [20:31:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 6D 6E 47 00 F9 F3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 88 F9 00 00 F4 03 04 00 E4 D3 5D 66 B6 04 01 00 00 F1 B8 78 9F 46 2F 3B 1D [20:31:17]CommunicateWithHost err = 0 [20:31:17]CheckOFDResponse [20:31:17]1017 (14) - 77093643461234 [20:31:17]1041 (16) - 0000000000875074 [20:31:17]1040 (4) - 63880 [20:31:17]1012 (4) - 03.06.2024 14:32 [20:31:17]1206 (1) - 0 [20:31:17]OFD Sender: Remove packet 63880 [20:31:17]ProducePacketName [20:31:17]name=ofd_packets/00063880 [20:31:17]NVStorageDeleteData [20:31:18]Write to MH i2c: 01 00 00 C1 06 C7 [20:31:18]Write i2c OK [20:31:18]MH_I2C_Read... [20:31:18]Read from MH i2c: 01 [20:31:18]MH_I2C_Read... [20:31:18]Read from MH i2c: 01 07 00 [20:31:18]MH_I2C_Read... [20:31:18]Read from MH i2c: 01 07 00 C1 06 00 00 00 00 00 CC 0C A6 [20:31:18]RasterBufferAndPrint [20:31:18]line [20:31:18]line [20:31:18]line [20:31:18]line [20:31:18]line [20:31:18]written 0, free lines is 3280 [20:31:18]MH_Cut [20:31:18]Write to MH i2c: D1 01 00 C8 06 01 A0 [20:31:18]Write i2c OK [20:31:18]MH_I2C_Read... [20:31:18]Read from MH i2c: D1 [20:31:18]MH_I2C_Read... [20:31:18]Read from MH i2c: D1 01 00 [20:31:18]MH_I2C_Read... [20:31:18]Read from MH i2c: D1 01 00 C8 06 00 9F [20:31:18]Write to MH i2c: 01 00 00 C9 06 CF [20:31:18]Write i2c OK [20:31:18]MH_I2C_Read... [20:31:18]OFD Sender: No OFD packet to send [20:31:18]*** Cut start [20:31:18]*** Partial cut [20:31:18]*** CUTSNS_PIN = 1 [20:31:18]*** CUTSNS_PIN = 0 [20:31:19]*** Brake cut motor [20:31:19]Read from MH i2c: 01 [20:31:19]MH_I2C_Read... [20:31:19]*** Stop cut motor [20:31:19]*** Cut end [20:31:19]Read from MH i2c: 01 07 00 [20:31:19]MH_I2C_Read... [20:31:19]Read from MH i2c: 01 07 00 C9 06 00 00 00 00 00 FF 0F E4 [20:31:19]process_action close_receipt done [20:31:19]requested_data is exist [20:31:19]produce_requested_data [20:31:19]requested_item fm.sn is exist - process it [20:31:19]wFMCommunicate request_size=4 [20:31:19]MH_SAM_APDU [20:31:19]CAPDU: 80 11 00 00 [20:31:19]Write to MH i2c: E2 08 00 CA 06 80 11 00 00 00 00 00 00 4A [20:31:19]Write i2c OK [20:31:19]MH_I2C_Read... [20:31:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:31:19]Read from MH i2c: E2 [20:31:19]MH_I2C_Read... [20:31:19]Read from MH i2c: E2 17 00 [20:31:19]MH_I2C_Read... [20:31:19]Read from MH i2c: E2 17 00 CA 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 9C [20:31:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [20:31:19]wFMCommunicate OK [20:31:19]requested_item fd.num is exist - process it [20:31:19]SAM_PROTO_GetFieldsCounters [20:31:19]wFMCommunicate request_size=4 [20:31:19]MH_SAM_APDU [20:31:19]CAPDU: 80 13 00 00 [20:31:19]Write to MH i2c: E2 08 00 CB 06 80 13 00 00 00 00 00 00 4D [20:31:19]Write i2c OK [20:31:19]MH_I2C_Read... [20:31:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:31:19]Read from MH i2c: E2 [20:31:19]MH_I2C_Read... [20:31:19]Read from MH i2c: E2 62 00 [20:31:19]MH_I2C_Read... [20:31:19]Read from MH i2c: E2 62 00 CB 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 88 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 8A 00 00 00 5E 04 04 00 8A 00 00 00 57 04 04 00 8B 00 00 00 19 04 04 00 00 00 00 00 90 00 05 [20:31: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 88 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 8A 00 00 00 5E 04 04 00 8A 00 00 00 57 04 04 00 8B 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:31:19]wFMCommunicate OK [20:31:19]SAM_PROTO_GetFieldsCounters done [20:31:19]requested_item shift.num is exist - process it [20:31:19]requested_item shift.opened is exist - process it [20:31:19]req_shift_opened [20:31:19]FM_GetShiftState [20:31:19]SAM_PROTO_GetShiftState [20:31:19]wFMCommunicate request_size=4 [20:31:19]MH_SAM_APDU [20:31:19]CAPDU: 80 13 01 00 [20:31:19]Write to MH i2c: E2 08 00 CC 06 80 13 01 00 00 00 00 00 4F [20:31:19]Write i2c OK [20:31:19]MH_I2C_Read... [20:31:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:31:19]Read from MH i2c: E2 [20:31:19]MH_I2C_Read... [20:31:19]Read from MH i2c: E2 0E 00 [20:31:19]MH_I2C_Read... [20:31:19]Read from MH i2c: E2 0E 00 CC 06 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 1B [20:31:19]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [20:31:19]wFMCommunicate OK [20:31:19]SAM_PROTO_GetShiftState done [20:31:19]FM_GetShiftState done [20:31:19]req_shift_opened done [20:31:19]requested_item shift.open_date is exist - process it [20:31:19]req_shift_open_date [20:31:19]req_shift_open_date done [20:31:19]produce_requested_data done [20:31:19]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63880,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [20:31:19]process_action_free close_receipt [20:31:19]json_value_free [20:31:19]json_value_free done [20:31:19]process_json_proto returns [20:31:19]Send response to host [20:31:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63880,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [20:31:19]free response buf [20:31:19]execute_script done [20:31:19]execute_script returns [20:31:19]free content buf [20:31:19]Sock 7.Close socket [20:31:19]Sock 7.Thread stoped [20:31:23]OFD Sender: No OFD packet to send [20:31:28]OFD Sender: No OFD packet to send [20:31:33]OFD Sender: No OFD packet to send [20:31:38]OFD Sender: No OFD packet to send [20:31:43]OFD Sender: No OFD packet to send [20:31:48]OFD Sender: No OFD packet to send [20:31:53]OFD Sender: No OFD packet to send [20:31:58]OFD Sender: No OFD packet to send [20:32:03]OFD Sender: No OFD packet to send [20:32:08]OFD Sender: No OFD packet to send [20:32:13]OFD Sender: No OFD packet to send [20:32:18]OFD Sender: No OFD packet to send [20:32:23]OFD Sender: No OFD packet to send [20:32:28]OFD Sender: No OFD packet to send [20:32:33]OFD Sender: No OFD packet to send [20:32:38]OFD Sender: No OFD packet to send [20:32:38]accept exits with 9 [20:32:38]New connection [20:32:38]New thread 3066719588 created [20:32:38]Thread 3066576228 joined [20:32:38]Waiting for new connection... [20:32:38] Sock 9.Parse request [20:32:38]Sock 9.Check first char [20:32:38]Sock 9.First char is OK [20:32:38]request: POST /json_proto HTTP/1.0 [20:32:38]Method: POST [20:32:38]URL: /json_proto [20:32:38]Method is POST - this is cgi request [20:32:38]url: /json_proto [20:32:38]query_string will be loaded in cgi processing [20:32:38]execute_cgi json_proto POST (null) [20:32:38]execute_cgi path=json_proto method=POST [20:32:38]POST find Content-Length [20:32:38]Host: 172.17.60.69:8080 [20:32:38]Content-Length: 856 [20:32:38]Content-Type: application/json [20:32:38] [20:32:38]POST finish read [20:32:38]Found Content-Length = 856 [20:32:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73449", "tax_sys" : 0, "items" : [ { "code": "4870216765026", "name": "\u041D\u0430\u0433\u0440.\u0422\u0430\u0431.\u041F\u0430\u043B\u043E\u0447. HEETS Silver Selection", "price" : 141.00, "quantity" : 1.000, "sum" : 141.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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 141.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:32:38]execute_script... [20:32:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73449", "tax_sys" : 0, "items" : [ { "code": "4870216765026", "name": "\u041D\u0430\u0433\u0440.\u0422\u0430\u0431.\u041F\u0430\u043B\u043E\u0447. HEETS Silver Selection", "price" : 141.00, "quantity" : 1.000, "sum" : 141.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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 141.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:32:38]POST & json_proto [20:32:38]process_json_proto [20:32:38]json parsed OK: [20:32:38]protocol is kg_v1.0 [20:32:38]action value=close_receipt [20:32:38]process_action close_receipt [20:32:38]cmd_close_receipt [20:32:38]MH_GetDate [20:32:38]Write to MH i2c: F0 00 00 CD 06 C2 [20:32:38]Write i2c OK [20:32:38]MH_I2C_Read... [20:32:38]Read from MH i2c: F0 [20:32:38]MH_I2C_Read... [20:32:38]Read from MH i2c: F0 09 00 [20:32:38]MH_I2C_Read... [20:32:38]Read from MH i2c: F0 09 00 CD 06 00 67 28 5E 66 6A 96 4A 66 CE [20:32:38]GetLastDocTimeStamp 1717446676 [20:32:38]current date 1717446759 [20:32:38]FM_GetShiftState [20:32:38]SAM_PROTO_GetShiftState [20:32:38]wFMCommunicate request_size=4 [20:32:38]MH_SAM_APDU [20:32:38]CAPDU: 80 13 01 00 [20:32:38]Write to MH i2c: E2 08 00 CE 06 80 13 01 00 00 00 00 00 51 [20:32:38]Write i2c OK [20:32:38]MH_I2C_Read... [20:32:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:32:38]Read from MH i2c: E2 [20:32:38]MH_I2C_Read... [20:32:38]Read from MH i2c: E2 0E 00 [20:32:38]MH_I2C_Read... [20:32:38]Read from MH i2c: E2 0E 00 CE 06 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 1D [20:32:38]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [20:32:38]wFMCommunicate OK [20:32:38]SAM_PROTO_GetShiftState done [20:32:38]FM_GetShiftState done [20:32:38]opened in 1717373173 [20:32:38]opened+sec_in_day 1717459573 [20:32:38]quantity*price = 14100 [20:32:38]sum+1 = 14101 [20:32:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 141.00 НСП 1% : 1.25 НДС 12% : 14.97 Наличными: 0.00 Безнал.: 141.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 139 03.06.2024 20:32 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000875074 ФД: 63881 ФПД: 221196774056118 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T203239&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63881&fm=221196774056118&tin=02508201610067®Number=0000000000092737&sum=14100 0 [20:32:39]StoreToDocumentArchive [20:32:39]shift 373 fd 63881 [20:32:39]save to /storage/0373/doc_00063881 [20:32:39]save last doc name /storage/0373/doc_00063881 to /storage/kkm_last_doc_name [20:32:39]save OK [20:32:39]Clear old archive folders... [20:32:39]ProcessDocumentItem done err = 0, tmpTLVsize=292 [20:32:39]tlvbuf is 00AAD890 [20:32:39]SAM_PROTO_ClearQueue [20:32:39]wFMCommunicate request_size=4 [20:32:39]MH_SAM_APDU [20:32:39]CAPDU: 80 09 00 00 [20:32:39]Write to MH i2c: E2 08 00 DB 06 80 09 00 00 00 00 00 00 53 [20:32:39]Write i2c OK [20:32:39]MH_I2C_Read... [20:32:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:32:39]Read from MH i2c: E2 [20:32:39]MH_I2C_Read... [20:32:39]Read from MH i2c: E2 03 00 [20:32:39]MH_I2C_Read... [20:32:39]Read from MH i2c: E2 03 00 DB 06 00 90 00 55 [20:32:39]RAPDU: 90 00 [20:32:39]wFMCommunicate OK [20:32:39]SAM_PROTO_ClearQueue done [20:32:39]KKMCreateOFDPacket [20:32:39]OFDProtocolAddRootSTLVToBuf [20:32:39]FM_MakeSignedData [20:32:39]FM_MakeSignedData [20:32:39]SAM_PROTO_SignData [20:32:39]wFMCommunicate request_size=4 [20:32:39]MH_SAM_APDU [20:32:39]CAPDU: 80 0D 01 02 [20:32:39]Write to MH i2c: E2 08 00 DC 06 80 0D 01 02 00 00 00 00 5B [20:32:39]Write i2c OK [20:32:39]MH_I2C_Read... [20:32:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:32:39]Read from MH i2c: E2 [20:32:39]MH_I2C_Read... [20:32:39]Read from MH i2c: E2 03 00 [20:32:39]MH_I2C_Read... [20:32:39]Read from MH i2c: E2 03 00 DC 06 00 90 00 56 [20:32:39]RAPDU: 90 00 [20:32:39]wFMCommunicate OK [20:32:39]wFMCommunicate request_size=255 [20:32:39]MH_SAM_APDU [20:32:39]CAPDU: 80 0D 02 02 FA 03 00 24 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 38 37 30 32 31 36 37 36 35 30 32 36 06 04 32 00 D0 9D D0 B0 D0 B3 D1 80 2E D0 A2 D0 B0 D0 B1 2E D0 9F D0 B0 D0 BB D0 BE D1 87 2E 20 48 45 45 54 53 20 53 69 6C 76 65 72 20 53 65 6C 65 63 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 14 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D9 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 14 37 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 67 28 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 [20:32:39]Write to MH i2c: E2 02 01 DD 06 80 0D 02 02 FA 00 03 00 24 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 38 37 30 32 31 36 37 36 35 30 32 36 06 04 32 00 D0 9D D0 B0 D0 B3 D1 80 2E D0 A2 D0 B0 D0 B1 2E D0 9F D0 B0 D0 BB D0 BE D1 87 2E 20 48 45 45 54 53 20 53 69 6C 76 65 72 20 53 65 6C 65 63 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 14 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D9 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 14 37 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 67 28 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 00 00 BC [20:32:39]Write i2c OK [20:32:39]MH_I2C_Read... [20:32:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:32:40]Read from MH i2c: E2 [20:32:40]MH_I2C_Read... [20:32:40]Read from MH i2c: E2 03 00 [20:32:40]MH_I2C_Read... [20:32:40]Read from MH i2c: E2 03 00 DD 06 00 90 00 57 [20:32:40]RAPDU: 90 00 [20:32:40]wFMCommunicate OK [20:32:40]wFMCommunicate request_size=51 [20:32:40]MH_SAM_APDU [20:32:40]CAPDU: 80 0D 02 02 2E 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 89 F9 00 00 35 04 06 00 C9 2D 63 24 A0 B6 [20:32:40]Write to MH i2c: E2 36 00 DE 06 80 0D 02 02 2E 00 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 89 F9 00 00 35 04 06 00 C9 2D 63 24 A0 B6 00 00 46 [20:32:40]Write i2c OK [20:32:40]MH_I2C_Read... [20:32:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:32:40]Read from MH i2c: E2 [20:32:40]MH_I2C_Read... [20:32:40]Read from MH i2c: E2 03 00 [20:32:40]MH_I2C_Read... [20:32:40]Read from MH i2c: E2 03 00 DE 06 00 90 00 58 [20:32:40]RAPDU: 90 00 [20:32:40]wFMCommunicate OK [20:32:40]wFMCommunicate request_size=4 [20:32:40]MH_SAM_APDU [20:32:40]CAPDU: 80 0D 03 02 [20:32:40]Write to MH i2c: E2 08 00 DF 06 80 0D 03 02 00 00 00 00 60 [20:32:40]Write i2c OK [20:32:40]MH_I2C_Read... [20:32:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:32:40]Read from MH i2c: E2 [20:32:40]MH_I2C_Read... [20:32:40]Read from MH i2c: E2 0B 00 [20:32:40]MH_I2C_Read... [20:32:40]Read from MH i2c: E2 0B 00 DF 06 00 A5 B1 59 38 05 C8 3F BA 90 00 0E [20:32:40]RAPDU: A5 B1 59 38 05 C8 3F BA 90 00 [20:32:40]wFMCommunicate OK [20:32:40]SAM_PROTO_SignData done [20:32:40]FM_MakeSignedData done [20:32:40]CreateOFDProtocolMessage [20:32:40]wFMCommunicate request_size=4 [20:32:40]MH_SAM_APDU [20:32:40]CAPDU: 80 11 00 00 [20:32:40]Write to MH i2c: E2 08 00 E0 06 80 11 00 00 00 00 00 00 60 [20:32:40]Write i2c OK [20:32:40]MH_I2C_Read... [20:32:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:32:40]Read from MH i2c: E2 [20:32:40]MH_I2C_Read... [20:32:40]Read from MH i2c: E2 17 00 [20:32:40]MH_I2C_Read... [20:32:40]Read from MH i2c: E2 17 00 E0 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 B2 [20:32:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [20:32:40]wFMCommunicate OK [20:32:40]CreateOFDProtocolMessage done [20:32:40]OFDSenderStorePacket 63881 [20:32:40]StoreOFDPacket docnum=63881 [20:32:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 38 01 00 00 06 64 30 01 02 AE 5A 03 01 00 03 00 24 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 38 37 30 32 31 36 37 36 35 30 32 36 06 04 32 00 D0 9D D0 B0 D0 B3 D1 80 2E D0 A2 D0 B0 D0 B1 2E D0 9F D0 B0 D0 BB D0 BE D1 87 2E 20 48 45 45 54 53 20 53 69 6C 76 65 72 20 53 65 6C 65 63 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 14 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D9 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 14 37 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 67 28 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 89 F9 00 00 35 04 06 00 C9 2D 63 24 A0 B6 A5 B1 59 38 05 C8 3F BA [20:32:40]CheckFolder [20:32:40]dirname=/storage/ofd_packets [20:32:40]CheckFolder done [20:32:40]ProducePacketName [20:32:40]name=ofd_packets/00063881 [20:32:40]NVStorageSaveData ofd_packets/00063881 [20:32:40]File name is /storage/ofd_packets/00063881 [20:32:40]Write 342 bytes [20:32:40]NVStorageSaveData done [20:32:40]OFDSenderStorePacket done [20:32:40]KKMCreateOFDPacket done [20:32:40]NVStorageSaveData kkm_last_timestamp [20:32:40]File name is /storage/kkm_last_timestamp [20:32:40]Write 4 bytes [20:32:40]NVStorageSaveData done [20:32:40]ExternCall_PrintAddStr [20:32:40]wPrintStart [20:32:40]Write to MH i2c: 01 00 00 E1 06 E7 [20:32:40]Write i2c OK [20:32:40]MH_I2C_Read... [20:32:40]Read from MH i2c: 01 [20:32:40]MH_I2C_Read... [20:32:40]Read from MH i2c: 01 07 00 [20:32:40]MH_I2C_Read... [20:32:40]Read from MH i2c: 01 07 00 E1 06 00 00 00 00 00 FF 0F FC [20:32:40]RasterBufferAndPrint [20:32:40]line Счет N : (3)73449 [20:32:40]line ИНН: 02508201610067 [20:32:40]line Контрольно-Кассовый Чек [20:32:40]line ПРОДАЖА [20:32:40]line Товар: 4870216765026 [20:32:40]line Нагр.Таб.Палоч. HEETS Silver Selection [20:32:40]line 1.000 * 141.00 [20:32:40]line = 141.00 [20:32:40]line НДС 12% НСП 1% [20:32:40]line > о реализуемом товаре [20:32:40]line ИТОГО: 141.00 [20:32:40]line НСП 1% : 1.25 [20:32:40]line НДС 12% : 14.97 [20:32:40]line Наличными: 0.00 [20:32:40]line Безнал.: 141.00 [20:32:40]line Место: АЗС № 117 "Партнер Нефть" [20:32:40]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [20:32:40]line СНО: Общий режим [20:32:40]line Чек 139 03.06.2024 20:32 [20:32:40]line Смена: 373 ФФД: 1.0 [20:32:40]line ЗНМ: 0300000031 [20:32:40]line РНМ: 0000000000092737 [20:32:40]line Версия ККМ: 001 [20:32:40]line Платежная система: АКБ Кыргызстан [20:32:40]line ФМ: 0000000000875074 [20:32:40]line ФД: 63881 [20:32:40]line ФПД: 221196774056118 [20:32:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T203239&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63881&fm=221196774056118&tin=02508201610067®Number=0000000000092737&sum=14100 [20:32:40]line 0 [20:32:40]OFD Sender: Processing packet 63881 [packets to send 14, broken 13] [20:32:40]ProducePacketName [20:32:40]name=ofd_packets/00063881 [20:32:40]OFD Sender: To server: pG, [20:32:40]CommunicateWithHost lk.salyk.kg:30040 [20:32:40]ConnectInit lk.salyk.kg [20:32:40]written 0, free lines is 4095 [20:32:40]Connected sock=10 [20:32:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 38 01 00 00 06 64 30 01 02 AE 5A 03 01 00 03 00 24 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 38 37 30 32 31 36 37 36 35 30 32 36 06 04 32 00 D0 9D D0 B0 D0 B3 D1 80 2E D0 A2 D0 B0 D0 B1 2E D0 9F D0 B0 D0 BB D0 BE D1 87 2E 20 48 45 45 54 53 20 53 69 6C 76 65 72 20 53 65 6C 65 63 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 14 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D9 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 14 37 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 67 28 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 89 F9 00 00 35 04 06 00 C9 2D 63 24 A0 B6 A5 B1 59 38 05 C8 3F BA [20:32:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 29 E9 47 00 BF 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 35 30 37 34 10 04 04 00 89 F9 00 00 F4 03 04 00 37 D4 5D 66 B6 04 01 00 00 9B 9C FE D2 0F 1C AC 78 [20:32:40]CommunicateWithHost err = 0 [20:32:40]CheckOFDResponse [20:32:40]1017 (14) - 77093643461234 [20:32:40]1041 (16) - 0000000000875074 [20:32:40]1040 (4) - 63881 [20:32:40]1012 (4) - 03.06.2024 14:33 [20:32:40]1206 (1) - 0 [20:32:40]OFD Sender: Remove packet 63881 [20:32:40]ProducePacketName [20:32:40]name=ofd_packets/00063881 [20:32:40]NVStorageDeleteData [20:32:41]Write to MH i2c: 01 00 00 0C 07 13 [20:32:41]Write i2c OK [20:32:41]MH_I2C_Read... [20:32:41]Read from MH i2c: 01 [20:32:41]MH_I2C_Read... [20:32:41]Read from MH i2c: 01 07 00 [20:32:41]MH_I2C_Read... [20:32:41]Read from MH i2c: 01 07 00 0C 07 00 00 00 00 00 CE 0C F4 [20:32:41]RasterBufferAndPrint [20:32:41]line [20:32:41]line [20:32:41]line [20:32:41]line [20:32:41]line [20:32:41]written 0, free lines is 3284 [20:32:41]MH_Cut [20:32:41]Write to MH i2c: D1 01 00 13 07 01 EC [20:32:41]Write i2c OK [20:32:41]MH_I2C_Read... [20:32:41]Read from MH i2c: D1 [20:32:41]MH_I2C_Read... [20:32:41]Read from MH i2c: D1 01 00 [20:32:41]MH_I2C_Read... [20:32:41]Read from MH i2c: D1 01 00 13 07 00 EB [20:32:41]Write to MH i2c: 01 00 00 14 07 1B [20:32:41]Write i2c OK [20:32:41]MH_I2C_Read... [20:32:41]OFD Sender: No OFD packet to send [20:32:41]*** Cut start [20:32:41]*** Partial cut [20:32:41]*** CUTSNS_PIN = 1 [20:32:41]*** CUTSNS_PIN = 0 [20:32:42]*** Brake cut motor [20:32:42]Read from MH i2c: 01 [20:32:42]MH_I2C_Read... [20:32:42]*** Stop cut motor [20:32:42]*** Cut end [20:32:42]Read from MH i2c: 01 07 00 [20:32:42]MH_I2C_Read... [20:32:42]Read from MH i2c: 01 07 00 14 07 00 00 00 00 00 FF 0F 30 [20:32:42]process_action close_receipt done [20:32:42]requested_data is exist [20:32:42]produce_requested_data [20:32:42]requested_item fm.sn is exist - process it [20:32:42]wFMCommunicate request_size=4 [20:32:42]MH_SAM_APDU [20:32:42]CAPDU: 80 11 00 00 [20:32:42]Write to MH i2c: E2 08 00 15 07 80 11 00 00 00 00 00 00 96 [20:32:42]Write i2c OK [20:32:42]MH_I2C_Read... [20:32:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:32:42]Read from MH i2c: E2 [20:32:42]MH_I2C_Read... [20:32:42]Read from MH i2c: E2 17 00 [20:32:42]MH_I2C_Read... [20:32:42]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 35 30 37 34 90 00 E8 [20:32:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [20:32:42]wFMCommunicate OK [20:32:42]requested_item fd.num is exist - process it [20:32:42]SAM_PROTO_GetFieldsCounters [20:32:42]wFMCommunicate request_size=4 [20:32:42]MH_SAM_APDU [20:32:42]CAPDU: 80 13 00 00 [20:32:42]Write to MH i2c: E2 08 00 16 07 80 13 00 00 00 00 00 00 99 [20:32:42]Write i2c OK [20:32:42]MH_I2C_Read... [20:32:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:32:42]Read from MH i2c: E2 [20:32:42]MH_I2C_Read... [20:32:42]Read from MH i2c: E2 62 00 [20:32:42]MH_I2C_Read... [20:32:42]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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 89 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 8B 00 00 00 5E 04 04 00 8B 00 00 00 57 04 04 00 8C 00 00 00 19 04 04 00 00 00 00 00 90 00 55 [20:32: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 89 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 8B 00 00 00 5E 04 04 00 8B 00 00 00 57 04 04 00 8C 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:32:42]wFMCommunicate OK [20:32:42]SAM_PROTO_GetFieldsCounters done [20:32:42]requested_item shift.num is exist - process it [20:32:42]requested_item shift.opened is exist - process it [20:32:42]req_shift_opened [20:32:42]FM_GetShiftState [20:32:42]SAM_PROTO_GetShiftState [20:32:42]wFMCommunicate request_size=4 [20:32:42]MH_SAM_APDU [20:32:42]CAPDU: 80 13 01 00 [20:32:42]Write to MH i2c: E2 08 00 17 07 80 13 01 00 00 00 00 00 9B [20:32:42]Write i2c OK [20:32:42]MH_I2C_Read... [20:32:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:32:42]Read from MH i2c: E2 [20:32:42]MH_I2C_Read... [20:32:42]Read from MH i2c: E2 0E 00 [20:32:42]MH_I2C_Read... [20:32:42]Read from MH i2c: E2 0E 00 17 07 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 67 [20:32:42]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [20:32:42]wFMCommunicate OK [20:32:42]SAM_PROTO_GetShiftState done [20:32:42]FM_GetShiftState done [20:32:42]req_shift_opened done [20:32:42]requested_item shift.open_date is exist - process it [20:32:42]req_shift_open_date [20:32:42]req_shift_open_date done [20:32:42]produce_requested_data done [20:32:42]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63881,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [20:32:42]process_action_free close_receipt [20:32:42]json_value_free [20:32:42]json_value_free done [20:32:42]process_json_proto returns [20:32:42]Send response to host [20:32:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63881,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [20:32:42]free response buf [20:32:42]execute_script done [20:32:42]execute_script returns [20:32:42]free content buf [20:32:42]Sock 9.Close socket [20:32:42]Sock 9.Thread stoped [20:32:46]OFD Sender: No OFD packet to send [20:32:51]OFD Sender: No OFD packet to send [20:32:56]OFD Sender: No OFD packet to send [20:33:01]OFD Sender: No OFD packet to send [20:33:06]OFD Sender: No OFD packet to send [20:33:11]OFD Sender: No OFD packet to send [20:33:16]OFD Sender: No OFD packet to send [20:33:21]OFD Sender: No OFD packet to send [20:33:26]OFD Sender: No OFD packet to send [20:33:31]OFD Sender: No OFD packet to send [20:33:36]OFD Sender: No OFD packet to send [20:33:41]OFD Sender: No OFD packet to send [20:33:46]OFD Sender: No OFD packet to send [20:33:51]OFD Sender: No OFD packet to send [20:33:56]OFD Sender: No OFD packet to send [20:34:01]OFD Sender: No OFD packet to send [20:34:06]OFD Sender: No OFD packet to send [20:34:11]OFD Sender: No OFD packet to send [20:34:16]OFD Sender: No OFD packet to send [20:34:21]OFD Sender: No OFD packet to send [20:34:26]OFD Sender: No OFD packet to send [20:34:31]OFD Sender: No OFD packet to send [20:34:36]OFD Sender: No OFD packet to send [20:34:41]OFD Sender: No OFD packet to send [20:34:46]OFD Sender: No OFD packet to send [20:34:51]OFD Sender: No OFD packet to send [20:34:56]OFD Sender: No OFD packet to send [20:35:01]OFD Sender: No OFD packet to send [20:35:06]OFD Sender: No OFD packet to send [20:35:11]OFD Sender: No OFD packet to send [20:35:16]OFD Sender: No OFD packet to send [20:35:21]OFD Sender: No OFD packet to send [20:35:26]OFD Sender: No OFD packet to send [20:35:31]OFD Sender: No OFD packet to send [20:35:36]OFD Sender: No OFD packet to send [20:35:41]OFD Sender: No OFD packet to send [20:35:46]OFD Sender: No OFD packet to send [20:35:51]OFD Sender: No OFD packet to send [20:35:56]OFD Sender: No OFD packet to send [20:36:01]OFD Sender: No OFD packet to send [20:36:06]OFD Sender: No OFD packet to send [20:36:07]accept exits with 7 [20:36:07]New connection [20:36:07]New thread 3066576228 created [20:36:07]Thread 3066719588 joined [20:36:07]Waiting for new connection... [20:36:07] Sock 7.Parse request [20:36:07]Sock 7.Check first char [20:36:07]Sock 7.First char is OK [20:36:07]request: POST /json_proto HTTP/1.0 [20:36:07]Method: POST [20:36:07]URL: /json_proto [20:36:07]Method is POST - this is cgi request [20:36:07]url: /json_proto [20:36:07]query_string will be loaded in cgi processing [20:36:07]execute_cgi json_proto POST (null) [20:36:07]execute_cgi path=json_proto method=POST [20:36:07]POST find Content-Length [20:36:07]Host: 172.17.60.69:8080 [20:36:07]Content-Length: 902 [20:36:07]Content-Type: application/json [20:36:07] [20:36:07]POST finish read [20:36:07]Found Content-Length = 902 [20:36:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73450", "tax_sys" : 0, "items" : [ { "code": "42203100", "name": "\u0416\u0435\u0432 Orbit \u0431\u0430\u043D\u0430\u043D-\u043A\u043B\u0443\u0431\u043D\u0438\u043A\u0430", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 80.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:36:07]execute_script... [20:36: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 : (3)73450", "tax_sys" : 0, "items" : [ { "code": "42203100", "name": "\u0416\u0435\u0432 Orbit \u0431\u0430\u043D\u0430\u043D-\u043A\u043B\u0443\u0431\u043D\u0438\u043A\u0430", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 80.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:36:07]POST & json_proto [20:36:07]process_json_proto [20:36:07]json parsed OK: [20:36:07]protocol is kg_v1.0 [20:36:07]action value=close_receipt [20:36:07]process_action close_receipt [20:36:07]cmd_close_receipt [20:36:07]MH_GetDate [20:36:07]Write to MH i2c: F0 00 00 18 07 0E [20:36:07]Write i2c OK [20:36:07]MH_I2C_Read... [20:36:07]Read from MH i2c: F0 [20:36:07]MH_I2C_Read... [20:36:07]Read from MH i2c: F0 09 00 [20:36:07]MH_I2C_Read... [20:36:07]Read from MH i2c: F0 09 00 18 07 00 38 29 5E 66 6A 96 4A 66 EC [20:36:07]GetLastDocTimeStamp 1717446759 [20:36:07]current date 1717446968 [20:36:07]FM_GetShiftState [20:36:07]SAM_PROTO_GetShiftState [20:36:07]wFMCommunicate request_size=4 [20:36:07]MH_SAM_APDU [20:36:07]CAPDU: 80 13 01 00 [20:36:07]Write to MH i2c: E2 08 00 19 07 80 13 01 00 00 00 00 00 9D [20:36:07]Write i2c OK [20:36:07]MH_I2C_Read... [20:36:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:36:07]Read from MH i2c: E2 [20:36:07]MH_I2C_Read... [20:36:07]Read from MH i2c: E2 0E 00 [20:36:07]MH_I2C_Read... [20:36:07]Read from MH i2c: E2 0E 00 19 07 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 69 [20:36:07]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [20:36:07]wFMCommunicate OK [20:36:07]SAM_PROTO_GetShiftState done [20:36:07]FM_GetShiftState done [20:36:07]opened in 1717373173 [20:36:07]opened+sec_in_day 1717459573 [20:36:07]quantity*price = 4000 [20:36:07]sum+1 = 4001 [20:36:07]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160211 Вода Легенда 0,5л 1.000 * 40.00 = 40.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 80.00 НСП 1% : 0.70 НДС 12% : 8.50 Наличными: 80.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 140 03.06.2024 20:36 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63882 ФПД: 262593708279176 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T203608&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63882&fm=262593708279176&tin=02508201610067®Number=0000000000092737&sum=8000 0 [20:36:08]StoreToDocumentArchive [20:36:08]shift 373 fd 63882 [20:36:08]save to /storage/0373/doc_00063882 [20:36:08]save last doc name /storage/0373/doc_00063882 to /storage/kkm_last_doc_name [20:36:08]save OK [20:36:08]Clear old archive folders... [20:36:08]ProcessDocumentItem done err = 0, tmpTLVsize=378 [20:36:08]tlvbuf is 00AEAE40 [20:36:08]SAM_PROTO_ClearQueue [20:36:08]wFMCommunicate request_size=4 [20:36:08]MH_SAM_APDU [20:36:08]CAPDU: 80 09 00 00 [20:36:08]Write to MH i2c: E2 08 00 26 07 80 09 00 00 00 00 00 00 9F [20:36:08]Write i2c OK [20:36:08]MH_I2C_Read... [20:36:08]Read from MH i2c: E2 [20:36:08]MH_I2C_Read... [20:36:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:36:08]Read from MH i2c: E2 03 00 [20:36:08]MH_I2C_Read... [20:36:08]Read from MH i2c: E2 03 00 26 07 00 90 00 A1 [20:36:08]RAPDU: 90 00 [20:36:08]wFMCommunicate OK [20:36:08]SAM_PROTO_ClearQueue done [20:36:08]KKMCreateOFDPacket [20:36:08]OFDProtocolAddRootSTLVToBuf [20:36:08]FM_MakeSignedData [20:36:08]FM_MakeSignedData [20:36:08]SAM_PROTO_SignData [20:36:08]wFMCommunicate request_size=4 [20:36:08]MH_SAM_APDU [20:36:08]CAPDU: 80 0D 01 02 [20:36:08]Write to MH i2c: E2 08 00 27 07 80 0D 01 02 00 00 00 00 A7 [20:36:08]Write i2c OK [20:36:08]MH_I2C_Read... [20:36:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:36:08]Read from MH i2c: E2 [20:36:08]MH_I2C_Read... [20:36:08]Read from MH i2c: E2 03 00 [20:36:08]MH_I2C_Read... [20:36:08]Read from MH i2c: E2 03 00 27 07 00 90 00 A2 [20:36:08]RAPDU: 90 00 [20:36:08]wFMCommunicate OK [20:36:08]wFMCommunicate request_size=255 [20:36:08]MH_SAM_APDU [20:36:08]CAPDU: 80 0D 02 02 FA 03 00 7A 01 1E 04 01 00 01 23 04 67 00 8A 04 08 00 34 32 32 30 33 31 30 30 06 04 28 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B1 D0 B0 D0 BD D0 B0 D0 BD 2D D0 BA D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 00 00 00 00 00 [20:36:08]Write to MH i2c: E2 02 01 28 07 80 0D 02 02 FA 00 03 00 7A 01 1E 04 01 00 01 23 04 67 00 8A 04 08 00 34 32 32 30 33 31 30 30 06 04 28 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B1 D0 B0 D0 BD D0 B0 D0 BD 2D D0 BA D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 00 00 00 00 00 00 00 D3 [20:36:08]Write i2c OK [20:36:08]MH_I2C_Read... [20:36:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:36:09]Read from MH i2c: E2 [20:36:09]MH_I2C_Read... [20:36:09]Read from MH i2c: E2 03 00 [20:36:09]MH_I2C_Read... [20:36:09]Read from MH i2c: E2 03 00 28 07 00 90 00 A3 [20:36:09]RAPDU: 90 00 [20:36:09]wFMCommunicate OK [20:36:09]wFMCommunicate request_size=137 [20:36:09]MH_SAM_APDU [20:36:09]CAPDU: 80 0D 02 02 84 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 38 29 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 8A F9 00 00 35 04 06 00 EE D3 DC B3 C5 88 [20:36:09]Write to MH i2c: E2 8C 00 29 07 80 0D 02 02 84 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 38 29 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 8A F9 00 00 35 04 06 00 EE D3 DC B3 C5 88 00 00 DC [20:36:09]Write i2c OK [20:36:09]MH_I2C_Read... [20:36:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:36:09]Read from MH i2c: E2 [20:36:09]MH_I2C_Read... [20:36:09]Read from MH i2c: E2 03 00 [20:36:09]MH_I2C_Read... [20:36:09]Read from MH i2c: E2 03 00 29 07 00 90 00 A4 [20:36:09]RAPDU: 90 00 [20:36:09]wFMCommunicate OK [20:36:09]wFMCommunicate request_size=4 [20:36:09]MH_SAM_APDU [20:36:09]CAPDU: 80 0D 03 02 [20:36:09]Write to MH i2c: E2 08 00 2A 07 80 0D 03 02 00 00 00 00 AC [20:36:09]Write i2c OK [20:36:09]MH_I2C_Read... [20:36:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:36:09]Read from MH i2c: E2 [20:36:09]MH_I2C_Read... [20:36:09]Read from MH i2c: E2 0B 00 [20:36:09]MH_I2C_Read... [20:36:09]Read from MH i2c: E2 0B 00 2A 07 00 D7 51 01 63 18 08 FC D0 90 00 25 [20:36:09]RAPDU: D7 51 01 63 18 08 FC D0 90 00 [20:36:09]wFMCommunicate OK [20:36:09]SAM_PROTO_SignData done [20:36:09]FM_MakeSignedData done [20:36:09]CreateOFDProtocolMessage [20:36:09]wFMCommunicate request_size=4 [20:36:09]MH_SAM_APDU [20:36:09]CAPDU: 80 11 00 00 [20:36:09]Write to MH i2c: E2 08 00 2B 07 80 11 00 00 00 00 00 00 AC [20:36:09]Write i2c OK [20:36:09]MH_I2C_Read... [20:36:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:36:09]Read from MH i2c: E2 [20:36:09]MH_I2C_Read... [20:36:09]Read from MH i2c: E2 17 00 [20:36:09]MH_I2C_Read... [20:36:09]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 35 30 37 34 90 00 FE [20:36:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [20:36:09]wFMCommunicate OK [20:36:09]CreateOFDProtocolMessage done [20:36:09]OFDSenderStorePacket 63882 [20:36:09]StoreOFDPacket docnum=63882 [20:36:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 8E 01 00 00 74 7D 86 01 47 7B 5A 03 01 00 03 00 7A 01 1E 04 01 00 01 23 04 67 00 8A 04 08 00 34 32 32 30 33 31 30 30 06 04 28 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B1 D0 B0 D0 BD D0 B0 D0 BD 2D D0 BA D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 38 29 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 8A F9 00 00 35 04 06 00 EE D3 DC B3 C5 88 D7 51 01 63 18 08 FC D0 [20:36:09]CheckFolder [20:36:09]dirname=/storage/ofd_packets [20:36:09]CheckFolder done [20:36:09]ProducePacketName [20:36:09]name=ofd_packets/00063882 [20:36:09]NVStorageSaveData ofd_packets/00063882 [20:36:09]File name is /storage/ofd_packets/00063882 [20:36:09]Write 428 bytes [20:36:09]NVStorageSaveData done [20:36:09]OFDSenderStorePacket done [20:36:09]KKMCreateOFDPacket done [20:36:09]NVStorageSaveData kkm_last_timestamp [20:36:09]File name is /storage/kkm_last_timestamp [20:36:09]Write 4 bytes [20:36:09]NVStorageSaveData done [20:36:09]ExternCall_PrintAddStr [20:36:09]wPrintStart [20:36:09]Write to MH i2c: 01 00 00 2C 07 33 [20:36:09]Write i2c OK [20:36:09]MH_I2C_Read... [20:36:09]Read from MH i2c: 01 [20:36:09]MH_I2C_Read... [20:36:09]Read from MH i2c: 01 07 00 [20:36:09]MH_I2C_Read... [20:36:09]Read from MH i2c: 01 07 00 2C 07 00 00 00 00 00 FF 0F 48 [20:36:09]RasterBufferAndPrint [20:36:09]line Счет N : (3)73450 [20:36:09]line ИНН: 02508201610067 [20:36:09]line Контрольно-Кассовый Чек [20:36:09]line ПРОДАЖА [20:36:09]line Товар: 42203100 [20:36:09]line Жев Orbit банан-клубника [20:36:09]line 1.000 * 40.00 [20:36:09]line = 40.00 [20:36:09]line НДС 12% НСП 1% [20:36:09]line > о реализуемом товаре [20:36:09]line Товар: 4700000160211 [20:36:09]line Вода Легенда 0,5л [20:36:09]line 1.000 * 40.00 [20:36:09]line = 40.00 [20:36:09]line НДС 12% НСП 1% [20:36:09]line > о реализуемом товаре [20:36:09]line ИТОГО: 80.00 [20:36:09]line НСП 1% : 0.70 [20:36:09]line НДС 12% : 8.50 [20:36:09]line Наличными: 80.00 [20:36:09]line Безнал.: 0.00 [20:36:09]line Место: АЗС № 117 "Партнер Нефть" [20:36:09]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [20:36:09]line СНО: Общий режим [20:36:09]line Чек 140 03.06.2024 20:36 [20:36:09]line Смена: 373 ФФД: 1.0 [20:36:09]line ЗНМ: 0300000031 [20:36:09]line РНМ: 0000000000092737 [20:36:09]line Версия ККМ: 001 [20:36:09]line ФМ: 0000000000875074 [20:36:09]line ФД: 63882 [20:36:09]line ФПД: 262593708279176 [20:36:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T203608&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63882&fm=262593708279176&tin=02508201610067®Number=0000000000092737&sum=8000 [20:36:09]line 0 [20:36:09]OFD Sender: Processing packet 63882 [packets to send 14, broken 13] [20:36:09]ProducePacketName [20:36:09]name=ofd_packets/00063882 [20:36:09]OFD Sender: To server: pG, [20:36:09]CommunicateWithHost lk.salyk.kg:30040 [20:36:09]ConnectInit lk.salyk.kg [20:36:09]written 0, free lines is 4095 [20:36:09]Connected sock=9 [20:36:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 8E 01 00 00 74 7D 86 01 47 7B 5A 03 01 00 03 00 7A 01 1E 04 01 00 01 23 04 67 00 8A 04 08 00 34 32 32 30 33 31 30 30 06 04 28 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B1 D0 B0 D0 BD D0 B0 D0 BD 2D D0 BA D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 38 29 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 8A F9 00 00 35 04 06 00 EE D3 DC B3 C5 88 D7 51 01 63 18 08 FC D0 [20:36:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 A9 1E 47 00 94 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 35 30 37 34 10 04 04 00 8A F9 00 00 F4 03 04 00 08 D5 5D 66 B6 04 01 00 00 F0 26 20 C0 EA 2B 2A 71 [20:36:10]CommunicateWithHost err = 0 [20:36:10]CheckOFDResponse [20:36:10]1017 (14) - 77093643461234 [20:36:10]1041 (16) - 0000000000875074 [20:36:10]1040 (4) - 63882 [20:36:10]1012 (4) - 03.06.2024 14:36 [20:36:10]1206 (1) - 0 [20:36:10]OFD Sender: Remove packet 63882 [20:36:10]ProducePacketName [20:36:10]name=ofd_packets/00063882 [20:36:10]NVStorageDeleteData [20:36:10]Write to MH i2c: 01 00 00 5A 07 61 [20:36:10]Write i2c OK [20:36:10]MH_I2C_Read... [20:36:10]Read from MH i2c: 01 [20:36:10]MH_I2C_Read... [20:36:10]Read from MH i2c: 01 07 00 [20:36:10]MH_I2C_Read... [20:36:10]Read from MH i2c: 01 07 00 5A 07 00 00 00 00 00 96 0C 0A [20:36:10]RasterBufferAndPrint [20:36:10]line [20:36:10]line [20:36:10]line [20:36:10]line [20:36:10]line [20:36:10]written 0, free lines is 3230 [20:36:10]MH_Cut [20:36:10]Write to MH i2c: D1 01 00 61 07 01 3A [20:36:10]Write i2c OK [20:36:10]MH_I2C_Read... [20:36:10]Read from MH i2c: D1 [20:36:10]MH_I2C_Read... [20:36:10]Read from MH i2c: D1 01 00 [20:36:10]MH_I2C_Read... [20:36:10]Read from MH i2c: D1 01 00 61 07 00 39 [20:36:10]Write to MH i2c: 01 00 00 62 07 69 [20:36:10]Write i2c OK [20:36:10]MH_I2C_Read... [20:36:10]OFD Sender: No OFD packet to send [20:36:11]*** Cut start [20:36:11]*** Partial cut [20:36:11]*** CUTSNS_PIN = 1 [20:36:11]*** CUTSNS_PIN = 0 [20:36:11]*** Brake cut motor [20:36:11]Read from MH i2c: 01 [20:36:11]MH_I2C_Read... [20:36:11]*** Stop cut motor [20:36:11]*** Cut end [20:36:11]Read from MH i2c: 01 07 00 [20:36:11]MH_I2C_Read... [20:36:11]Read from MH i2c: 01 07 00 62 07 00 00 00 00 00 FF 0F 7E [20:36:11]process_action close_receipt done [20:36:11]requested_data is exist [20:36:11]produce_requested_data [20:36:11]requested_item fm.sn is exist - process it [20:36:11]wFMCommunicate request_size=4 [20:36:11]MH_SAM_APDU [20:36:11]CAPDU: 80 11 00 00 [20:36:11]Write to MH i2c: E2 08 00 63 07 80 11 00 00 00 00 00 00 E4 [20:36:11]Write i2c OK [20:36:11]MH_I2C_Read... [20:36:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:36:11]Read from MH i2c: E2 [20:36:11]MH_I2C_Read... [20:36:11]Read from MH i2c: E2 17 00 [20:36:11]MH_I2C_Read... [20:36:11]Read from MH i2c: E2 17 00 63 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 36 [20:36:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [20:36:11]wFMCommunicate OK [20:36:11]requested_item fd.num is exist - process it [20:36:11]SAM_PROTO_GetFieldsCounters [20:36:11]wFMCommunicate request_size=4 [20:36:11]MH_SAM_APDU [20:36:11]CAPDU: 80 13 00 00 [20:36:11]Write to MH i2c: E2 08 00 64 07 80 13 00 00 00 00 00 00 E7 [20:36:11]Write i2c OK [20:36:11]MH_I2C_Read... [20:36:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:36:11]Read from MH i2c: E2 [20:36:11]MH_I2C_Read... [20:36:11]Read from MH i2c: E2 62 00 [20:36:11]MH_I2C_Read... [20:36:11]Read from MH i2c: E2 62 00 64 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 8A F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 8C 00 00 00 5E 04 04 00 8C 00 00 00 57 04 04 00 8D 00 00 00 19 04 04 00 00 00 00 00 90 00 A7 [20:36: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 8A F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 8C 00 00 00 5E 04 04 00 8C 00 00 00 57 04 04 00 8D 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:36:11]wFMCommunicate OK [20:36:11]SAM_PROTO_GetFieldsCounters done [20:36:11]requested_item shift.num is exist - process it [20:36:11]requested_item shift.opened is exist - process it [20:36:11]req_shift_opened [20:36:11]FM_GetShiftState [20:36:11]SAM_PROTO_GetShiftState [20:36:11]wFMCommunicate request_size=4 [20:36:11]MH_SAM_APDU [20:36:11]CAPDU: 80 13 01 00 [20:36:11]Write to MH i2c: E2 08 00 65 07 80 13 01 00 00 00 00 00 E9 [20:36:11]Write i2c OK [20:36:11]MH_I2C_Read... [20:36:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:36:12]Read from MH i2c: E2 [20:36:12]MH_I2C_Read... [20:36:12]Read from MH i2c: E2 0E 00 [20:36:12]MH_I2C_Read... [20:36:12]Read from MH i2c: E2 0E 00 65 07 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 B5 [20:36:12]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [20:36:12]wFMCommunicate OK [20:36:12]SAM_PROTO_GetShiftState done [20:36:12]FM_GetShiftState done [20:36:12]req_shift_opened done [20:36:12]requested_item shift.open_date is exist - process it [20:36:12]req_shift_open_date [20:36:12]req_shift_open_date done [20:36:12]produce_requested_data done [20:36:12]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63882,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [20:36:12]process_action_free close_receipt [20:36:12]json_value_free [20:36:12]json_value_free done [20:36:12]process_json_proto returns [20:36:12]Send response to host [20:36:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63882,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [20:36:12]free response buf [20:36:12]execute_script done [20:36:12]execute_script returns [20:36:12]free content buf [20:36:12]Sock 7.Close socket [20:36:12]Sock 7.Thread stoped [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:40]OFD Sender: No OFD packet to send [20:36:45]OFD Sender: No OFD packet to send [20:36:50]OFD Sender: No OFD packet to send [20:36:55]OFD Sender: No OFD packet to send [20:37:00]OFD Sender: No OFD packet to send [20:37:05]OFD Sender: No OFD packet to send [20:37:10]OFD Sender: No OFD packet to send [20:37:15]OFD Sender: No OFD packet to send [20:37:20]OFD Sender: No OFD packet to send [20:37:25]OFD Sender: No OFD packet to send [20:37:30]OFD Sender: No OFD packet to send [20:37:35]OFD Sender: No OFD packet to send [20:37:40]OFD Sender: No OFD packet to send [20:37:45]OFD Sender: No OFD packet to send [20:37:50]OFD Sender: No OFD packet to send [20:37:55]OFD Sender: No OFD packet to send [20:38:00]OFD Sender: No OFD packet to send [20:38:05]OFD Sender: No OFD packet to send [20:38:10]OFD Sender: No OFD packet to send [20:38:15]OFD Sender: No OFD packet to send [20:38:20]OFD Sender: No OFD packet to send [20:38:25]OFD Sender: No OFD packet to send [20:38:30]OFD Sender: No OFD packet to send [20:38:35]OFD Sender: No OFD packet to send [20:38:36]accept exits with 10 [20:38:36]New connection [20:38:36]New thread 3066719588 created [20:38:36]Thread 3066576228 joined [20:38:36]Waiting for new connection... [20:38:36] Sock 10.Parse request [20:38:36]Sock 10.Check first char [20:38:36]Sock 10.First char is OK [20:38:36]request: POST /json_proto HTTP/1.0 [20:38:36]Method: POST [20:38:36]URL: /json_proto [20:38:36]Method is POST - this is cgi request [20:38:36]url: /json_proto [20:38:36]query_string will be loaded in cgi processing [20:38:36]execute_cgi json_proto POST (null) [20:38:36]execute_cgi path=json_proto method=POST [20:38:36]POST find Content-Length [20:38:36]Host: 172.17.60.69:8080 [20:38:36]Content-Length: 821 [20:38:36]Content-Type: application/json [20:38:36] [20:38:36]POST finish read [20:38:36]Found Content-Length = 821 [20:38:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73451", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:38:36]execute_script... [20:38:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73451", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:38:36]POST & json_proto [20:38:36]process_json_proto [20:38:36]json parsed OK: [20:38:36]protocol is kg_v1.0 [20:38:36]action value=close_receipt [20:38:36]process_action close_receipt [20:38:36]cmd_close_receipt [20:38:36]MH_GetDate [20:38:36]Write to MH i2c: F0 00 00 66 07 5C [20:38:36]Write i2c OK [20:38:36]MH_I2C_Read... [20:38:36]Read from MH i2c: F0 [20:38:36]MH_I2C_Read... [20:38:36]Read from MH i2c: F0 09 00 [20:38:36]MH_I2C_Read... [20:38:36]Read from MH i2c: F0 09 00 66 07 00 CD 29 5E 66 6A 96 4A 66 CF [20:38:36]GetLastDocTimeStamp 1717446968 [20:38:36]current date 1717447117 [20:38:36]FM_GetShiftState [20:38:36]SAM_PROTO_GetShiftState [20:38:36]wFMCommunicate request_size=4 [20:38:36]MH_SAM_APDU [20:38:36]CAPDU: 80 13 01 00 [20:38:36]Write to MH i2c: E2 08 00 67 07 80 13 01 00 00 00 00 00 EB [20:38:36]Write i2c OK [20:38:36]MH_I2C_Read... [20:38:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:38:36]Read from MH i2c: E2 [20:38:36]MH_I2C_Read... [20:38:36]Read from MH i2c: E2 0E 00 [20:38:36]MH_I2C_Read... [20:38:36]Read from MH i2c: E2 0E 00 67 07 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 B7 [20:38:36]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [20:38:36]wFMCommunicate OK [20:38:36]SAM_PROTO_GetShiftState done [20:38:36]FM_GetShiftState done [20:38:36]opened in 1717373173 [20:38:36]opened+sec_in_day 1717459573 [20:38:36]quantity*price = 14000 [20:38:36]sum+1 = 14001 [20:38:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 0.00 Безнал.: 140.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 141 03.06.2024 20:38 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000875074 ФД: 63883 ФПД: 46782117498942 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T203837&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63883&fm=46782117498942&tin=02508201610067®Number=0000000000092737&sum=14000 0 [20:38:37]StoreToDocumentArchive [20:38:37]shift 373 fd 63883 [20:38:37]save to /storage/0373/doc_00063883 [20:38:37]save last doc name /storage/0373/doc_00063883 to /storage/kkm_last_doc_name [20:38:37]save OK [20:38:37]Clear old archive folders... [20:38:37]ProcessDocumentItem done err = 0, tmpTLVsize=273 [20:38:37]tlvbuf is 00A9F1C0 [20:38:37]SAM_PROTO_ClearQueue [20:38:37]wFMCommunicate request_size=4 [20:38:37]MH_SAM_APDU [20:38:37]CAPDU: 80 09 00 00 [20:38:37]Write to MH i2c: E2 08 00 74 07 80 09 00 00 00 00 00 00 ED [20:38:37]Write i2c OK [20:38:37]MH_I2C_Read... [20:38:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:38:37]Read from MH i2c: E2 [20:38:37]MH_I2C_Read... [20:38:37]Read from MH i2c: E2 03 00 [20:38:37]MH_I2C_Read... [20:38:37]Read from MH i2c: E2 03 00 74 07 00 90 00 EF [20:38:37]RAPDU: 90 00 [20:38:37]wFMCommunicate OK [20:38:37]SAM_PROTO_ClearQueue done [20:38:37]KKMCreateOFDPacket [20:38:37]OFDProtocolAddRootSTLVToBuf [20:38:37]FM_MakeSignedData [20:38:37]FM_MakeSignedData [20:38:37]SAM_PROTO_SignData [20:38:37]wFMCommunicate request_size=4 [20:38:37]MH_SAM_APDU [20:38:37]CAPDU: 80 0D 01 02 [20:38:37]Write to MH i2c: E2 08 00 75 07 80 0D 01 02 00 00 00 00 F5 [20:38:37]Write i2c OK [20:38:37]MH_I2C_Read... [20:38:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:38:37]Read from MH i2c: E2 [20:38:37]MH_I2C_Read... [20:38:37]Read from MH i2c: E2 03 00 [20:38:37]MH_I2C_Read... [20:38:37]Read from MH i2c: E2 03 00 75 07 00 90 00 F0 [20:38:37]RAPDU: 90 00 [20:38:37]wFMCommunicate OK [20:38:37]wFMCommunicate request_size=255 [20:38:37]MH_SAM_APDU [20:38:37]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 CD 29 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 [20:38:37]Write to MH i2c: E2 02 01 76 07 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 CD 29 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 00 00 96 [20:38:37]Write i2c OK [20:38:37]MH_I2C_Read... [20:38:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:38:38]Read from MH i2c: E2 [20:38:38]MH_I2C_Read... [20:38:38]Read from MH i2c: E2 03 00 [20:38:38]MH_I2C_Read... [20:38:38]Read from MH i2c: E2 03 00 76 07 00 90 00 F1 [20:38:38]RAPDU: 90 00 [20:38:38]wFMCommunicate OK [20:38:38]wFMCommunicate request_size=32 [20:38:38]MH_SAM_APDU [20:38:38]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 35 30 37 34 10 04 04 00 8B F9 00 00 35 04 06 00 2A 8C 4F 7E D0 3E [20:38:38]Write to MH i2c: E2 23 00 77 07 80 0D 02 02 1B 00 30 30 30 38 37 35 30 37 34 10 04 04 00 8B F9 00 00 35 04 06 00 2A 8C 4F 7E D0 3E 00 00 69 [20:38:38]Write i2c OK [20:38:38]MH_I2C_Read... [20:38:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:38:38]Read from MH i2c: E2 [20:38:38]MH_I2C_Read... [20:38:38]Read from MH i2c: E2 03 00 [20:38:38]MH_I2C_Read... [20:38:38]Read from MH i2c: E2 03 00 77 07 00 90 00 F2 [20:38:38]RAPDU: 90 00 [20:38:38]wFMCommunicate OK [20:38:38]wFMCommunicate request_size=4 [20:38:38]MH_SAM_APDU [20:38:38]CAPDU: 80 0D 03 02 [20:38:38]Write to MH i2c: E2 08 00 78 07 80 0D 03 02 00 00 00 00 FA [20:38:38]Write i2c OK [20:38:38]MH_I2C_Read... [20:38:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:38:38]Read from MH i2c: E2 [20:38:38]MH_I2C_Read... [20:38:38]Read from MH i2c: E2 0B 00 [20:38:38]MH_I2C_Read... [20:38:38]Read from MH i2c: E2 0B 00 78 07 00 78 F5 39 97 CC D6 49 2A 90 00 4D [20:38:38]RAPDU: 78 F5 39 97 CC D6 49 2A 90 00 [20:38:38]wFMCommunicate OK [20:38:38]SAM_PROTO_SignData done [20:38:38]FM_MakeSignedData done [20:38:38]CreateOFDProtocolMessage [20:38:38]wFMCommunicate request_size=4 [20:38:38]MH_SAM_APDU [20:38:38]CAPDU: 80 11 00 00 [20:38:38]Write to MH i2c: E2 08 00 79 07 80 11 00 00 00 00 00 00 FA [20:38:38]Write i2c OK [20:38:38]MH_I2C_Read... [20:38:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:38:38]Read from MH i2c: E2 [20:38:38]MH_I2C_Read... [20:38:38]Read from MH i2c: E2 17 00 [20:38:38]MH_I2C_Read... [20:38:38]Read from MH i2c: E2 17 00 79 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 4C [20:38:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [20:38:38]wFMCommunicate OK [20:38:38]CreateOFDProtocolMessage done [20:38:38]OFDSenderStorePacket 63883 [20:38:38]StoreOFDPacket docnum=63883 [20:38:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 25 01 00 00 5D 6A 1D 01 5E 9B 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 CD 29 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 8B F9 00 00 35 04 06 00 2A 8C 4F 7E D0 3E 78 F5 39 97 CC D6 49 2A [20:38:38]CheckFolder [20:38:38]dirname=/storage/ofd_packets [20:38:38]CheckFolder done [20:38:38]ProducePacketName [20:38:38]name=ofd_packets/00063883 [20:38:38]NVStorageSaveData ofd_packets/00063883 [20:38:38]File name is /storage/ofd_packets/00063883 [20:38:38]Write 323 bytes [20:38:38]NVStorageSaveData done [20:38:38]OFDSenderStorePacket done [20:38:38]KKMCreateOFDPacket done [20:38:38]NVStorageSaveData kkm_last_timestamp [20:38:38]File name is /storage/kkm_last_timestamp [20:38:38]Write 4 bytes [20:38:38]NVStorageSaveData done [20:38:38]ExternCall_PrintAddStr [20:38:38]wPrintStart [20:38:38]Write to MH i2c: 01 00 00 7A 07 81 [20:38:38]Write i2c OK [20:38:38]MH_I2C_Read... [20:38:38]Read from MH i2c: 01 [20:38:38]MH_I2C_Read... [20:38:38]Read from MH i2c: 01 07 00 [20:38:38]MH_I2C_Read... [20:38:38]Read from MH i2c: 01 07 00 7A 07 00 00 00 00 00 FF 0F 96 [20:38:38]RasterBufferAndPrint [20:38:38]line Счет N : (3)73451 [20:38:38]line ИНН: 02508201610067 [20:38:38]line Контрольно-Кассовый Чек [20:38:38]line ПРОДАЖА [20:38:38]line Товар: 48747059 [20:38:38]line Сигареты Winston Legend Blue [20:38:38]line 1.000 * 140.00 [20:38:38]line = 140.00 [20:38:38]line НДС 12% НСП 1% [20:38:38]line > о реализуемом товаре [20:38:38]line ИТОГО: 140.00 [20:38:38]line НСП 1% : 1.24 [20:38:38]line НДС 12% : 14.87 [20:38:38]line Наличными: 0.00 [20:38:38]line Безнал.: 140.00 [20:38:38]line Место: АЗС № 117 "Партнер Нефть" [20:38:38]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [20:38:38]line СНО: Общий режим [20:38:38]line Чек 141 03.06.2024 20:38 [20:38:38]line Смена: 373 ФФД: 1.0 [20:38:38]line ЗНМ: 0300000031 [20:38:38]line РНМ: 0000000000092737 [20:38:38]line Версия ККМ: 001 [20:38:38]line Платежная система: АКБ Кыргызстан [20:38:38]line ФМ: 0000000000875074 [20:38:38]line ФД: 63883 [20:38:38]line ФПД: 46782117498942 [20:38:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T203837&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63883&fm=46782117498942&tin=02508201610067®Number=0000000000092737&sum=14000 [20:38:38]OFD Sender: Processing packet 63883 [packets to send 14, broken 13] [20:38:38]ProducePacketName [20:38:38]name=ofd_packets/00063883 [20:38:38]OFD Sender: To server: pG, [20:38:38]CommunicateWithHost lk.salyk.kg:30040 [20:38:38]ConnectInit lk.salyk.kg [20:38:38]line 0 [20:38:38]written 0, free lines is 4095 [20:38:38]Connected sock=9 [20:38:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 25 01 00 00 5D 6A 1D 01 5E 9B 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 CD 29 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 8B F9 00 00 35 04 06 00 2A 8C 4F 7E D0 3E 78 F5 39 97 CC D6 49 2A [20:38:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 E7 50 47 00 FA 2A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 8B F9 00 00 F4 03 04 00 9D D5 5D 66 B6 04 01 00 00 4E C6 37 9B 14 D4 12 EE [20:38:38]CommunicateWithHost err = 0 [20:38:38]CheckOFDResponse [20:38:38]1017 (14) - 77093643461234 [20:38:38]1041 (16) - 0000000000875074 [20:38:38]1040 (4) - 63883 [20:38:38]1012 (4) - 03.06.2024 14:39 [20:38:38]1206 (1) - 0 [20:38:38]OFD Sender: Remove packet 63883 [20:38:38]ProducePacketName [20:38:38]name=ofd_packets/00063883 [20:38:38]NVStorageDeleteData [20:38:39]Write to MH i2c: 01 00 00 A5 07 AC [20:38:39]Write i2c OK [20:38:39]MH_I2C_Read... [20:38:39]Read from MH i2c: 01 [20:38:39]MH_I2C_Read... [20:38:39]Read from MH i2c: 01 07 00 [20:38:39]MH_I2C_Read... [20:38:39]Read from MH i2c: 01 07 00 A5 07 00 00 00 00 00 B9 0C 78 [20:38:39]RasterBufferAndPrint [20:38:39]line [20:38:39]line [20:38:39]line [20:38:39]line [20:38:39]line [20:38:39]written 0, free lines is 3268 [20:38:39]MH_Cut [20:38:39]Write to MH i2c: D1 01 00 AC 07 01 85 [20:38:39]Write i2c OK [20:38:39]MH_I2C_Read... [20:38:39]Read from MH i2c: D1 [20:38:39]MH_I2C_Read... [20:38:39]Read from MH i2c: D1 01 00 [20:38:39]MH_I2C_Read... [20:38:39]Read from MH i2c: D1 01 00 AC 07 00 84 [20:38:39]Write to MH i2c: 01 00 00 AD 07 B4 [20:38:39]Write i2c OK [20:38:39]MH_I2C_Read... [20:38:39]OFD Sender: No OFD packet to send [20:38:39]*** Cut start [20:38:39]*** Partial cut [20:38:39]*** CUTSNS_PIN = 1 [20:38:40]*** CUTSNS_PIN = 0 [20:38:40]*** Brake cut motor [20:38:40]Read from MH i2c: 01 [20:38:40]MH_I2C_Read... [20:38:40]*** Stop cut motor [20:38:40]*** Cut end [20:38:40]Read from MH i2c: 01 07 00 [20:38:40]MH_I2C_Read... [20:38:40]Read from MH i2c: 01 07 00 AD 07 00 00 00 00 00 FF 0F C9 [20:38:40]process_action close_receipt done [20:38:40]requested_data is exist [20:38:40]produce_requested_data [20:38:40]requested_item fm.sn is exist - process it [20:38:40]wFMCommunicate request_size=4 [20:38:40]MH_SAM_APDU [20:38:40]CAPDU: 80 11 00 00 [20:38:40]Write to MH i2c: E2 08 00 AE 07 80 11 00 00 00 00 00 00 2F [20:38:40]Write i2c OK [20:38:40]MH_I2C_Read... [20:38:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:38:40]Read from MH i2c: E2 [20:38:40]MH_I2C_Read... [20:38:40]Read from MH i2c: E2 17 00 [20:38:40]MH_I2C_Read... [20:38:40]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 35 30 37 34 90 00 81 [20:38:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [20:38:40]wFMCommunicate OK [20:38:40]requested_item fd.num is exist - process it [20:38:40]SAM_PROTO_GetFieldsCounters [20:38:40]wFMCommunicate request_size=4 [20:38:40]MH_SAM_APDU [20:38:40]CAPDU: 80 13 00 00 [20:38:40]Write to MH i2c: E2 08 00 AF 07 80 13 00 00 00 00 00 00 32 [20:38:40]Write i2c OK [20:38:40]MH_I2C_Read... [20:38:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:38:40]Read from MH i2c: E2 [20:38:40]MH_I2C_Read... [20:38:40]Read from MH i2c: E2 62 00 [20:38:40]MH_I2C_Read... [20:38:40]Read from MH i2c: E2 62 00 AF 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 8B F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 8D 00 00 00 5E 04 04 00 8D 00 00 00 57 04 04 00 8E 00 00 00 19 04 04 00 00 00 00 00 90 00 F6 [20:38: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 8B F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 8D 00 00 00 5E 04 04 00 8D 00 00 00 57 04 04 00 8E 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:38:40]wFMCommunicate OK [20:38:40]SAM_PROTO_GetFieldsCounters done [20:38:40]requested_item shift.num is exist - process it [20:38:40]requested_item shift.opened is exist - process it [20:38:40]req_shift_opened [20:38:40]FM_GetShiftState [20:38:40]SAM_PROTO_GetShiftState [20:38:40]wFMCommunicate request_size=4 [20:38:40]MH_SAM_APDU [20:38:40]CAPDU: 80 13 01 00 [20:38:40]Write to MH i2c: E2 08 00 B0 07 80 13 01 00 00 00 00 00 34 [20:38:40]Write i2c OK [20:38:40]MH_I2C_Read... [20:38:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:38:40]Read from MH i2c: E2 [20:38:40]MH_I2C_Read... [20:38:40]Read from MH i2c: E2 0E 00 [20:38:40]MH_I2C_Read... [20:38:40]Read from MH i2c: E2 0E 00 B0 07 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 00 [20:38:40]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [20:38:40]wFMCommunicate OK [20:38:40]SAM_PROTO_GetShiftState done [20:38:40]FM_GetShiftState done [20:38:40]req_shift_opened done [20:38:40]requested_item shift.open_date is exist - process it [20:38:40]req_shift_open_date [20:38:40]req_shift_open_date done [20:38:40]produce_requested_data done [20:38:40]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63883,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [20:38:40]process_action_free close_receipt [20:38:40]json_value_free [20:38:40]json_value_free done [20:38:40]process_json_proto returns [20:38:40]Send response to host [20:38:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63883,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [20:38:40]free response buf [20:38:40]execute_script done [20:38:40]execute_script returns [20:38:40]free content buf [20:38:40]Sock 10.Close socket [20:38:40]Sock 10.Thread stoped [20:38:44]OFD Sender: No OFD packet to send [20:38:49]OFD Sender: No OFD packet to send [20:38:54]OFD Sender: No OFD packet to send [20:38:58]accept exits with 7 [20:38:58]New connection [20:38:58]New thread 3066576228 created [20:38:58]Thread 3066719588 joined [20:38:58]Waiting for new connection... [20:38:58] Sock 7.Parse request [20:38:58]Sock 7.Check first char [20:38:58]Sock 7.First char is OK [20:38:58]request: POST /json_proto HTTP/1.0 [20:38:58]Method: POST [20:38:58]URL: /json_proto [20:38:58]Method is POST - this is cgi request [20:38:58]url: /json_proto [20:38:58]query_string will be loaded in cgi processing [20:38:58]execute_cgi json_proto POST (null) [20:38:58]execute_cgi path=json_proto method=POST [20:38:58]POST find Content-Length [20:38:58]Host: 172.17.60.69:8080 [20:38:58]Content-Length: 645 [20:38:58]Content-Type: application/json [20:38:58] [20:38:58]POST finish read [20:38:58]Found Content-Length = 645 [20:38:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73452", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:38:58]execute_script... [20: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 : (3)73452", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:38:58]POST & json_proto [20:38:58]process_json_proto [20:38:58]json parsed OK: [20:38:58]protocol is kg_v1.0 [20:38:58]action value=close_receipt [20:38:58]process_action close_receipt [20:38:58]cmd_close_receipt [20:38:58]MH_GetDate [20:38:58]Write to MH i2c: F0 00 00 B1 07 A7 [20:38:58]Write i2c OK [20:38:58]MH_I2C_Read... [20:38:58]Read from MH i2c: F0 [20:38:58]MH_I2C_Read... [20:38:58]Read from MH i2c: F0 09 00 [20:38:58]MH_I2C_Read... [20:38:58]Read from MH i2c: F0 09 00 B1 07 00 E3 29 5E 66 6A 96 4A 66 30 [20:38:58]GetLastDocTimeStamp 1717447117 [20:38:58]current date 1717447139 [20:38:58]FM_GetShiftState [20:38:58]SAM_PROTO_GetShiftState [20:38:58]wFMCommunicate request_size=4 [20:38:58]MH_SAM_APDU [20:38:58]CAPDU: 80 13 01 00 [20:38:58]Write to MH i2c: E2 08 00 B2 07 80 13 01 00 00 00 00 00 36 [20:38:58]Write i2c OK [20:38:58]MH_I2C_Read... [20:38:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:38:58]Read from MH i2c: E2 [20:38:58]MH_I2C_Read... [20:38:58]Read from MH i2c: E2 0E 00 [20:38:58]MH_I2C_Read... [20:38:58]Read from MH i2c: E2 0E 00 B2 07 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 02 [20:38:58]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [20:38:58]wFMCommunicate OK [20:38:58]SAM_PROTO_GetShiftState done [20:38:58]FM_GetShiftState done [20:38:58]opened in 1717373173 [20:38:58]opened+sec_in_day 1717459573 [20:38:58]quantity*price = 12500 [20:38:58]sum+1 = 12501 [20:38:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 125.00 НСП 1% : 1.11 НДС 12% : 13.27 Наличными: 125.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 142 03.06.2024 20:38 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63884 ФПД: 95014706800124 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T203859&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63884&fm=95014706800124&tin=02508201610067®Number=0000000000092737&sum=12500 0 [20:38:59]StoreToDocumentArchive [20:38:59]shift 373 fd 63884 [20:38:59]save to /storage/0373/doc_00063884 [20:38:59]save last doc name /storage/0373/doc_00063884 to /storage/kkm_last_doc_name [20:38:59]save OK [20:38:59]Clear old archive folders... [20:38:59]ProcessDocumentItem done err = 0, tmpTLVsize=282 [20:38:59]tlvbuf is 00AEBB80 [20:38:59]SAM_PROTO_ClearQueue [20:38:59]wFMCommunicate request_size=4 [20:38:59]MH_SAM_APDU [20:38:59]CAPDU: 80 09 00 00 [20:38:59]Write to MH i2c: E2 08 00 BF 07 80 09 00 00 00 00 00 00 38 [20:38:59]Write i2c OK [20:38:59]MH_I2C_Read... [20:38:59]Read from MH i2c: E2 [20:38:59]MH_I2C_Read... [20:38:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:38:59]Read from MH i2c: E2 03 00 [20:38:59]MH_I2C_Read... [20:38:59]Read from MH i2c: E2 03 00 BF 07 00 90 00 3A [20:38:59]RAPDU: 90 00 [20:38:59]wFMCommunicate OK [20:38:59]SAM_PROTO_ClearQueue done [20:38:59]KKMCreateOFDPacket [20:38:59]OFDProtocolAddRootSTLVToBuf [20:38:59]FM_MakeSignedData [20:38:59]FM_MakeSignedData [20:38:59]SAM_PROTO_SignData [20:38:59]wFMCommunicate request_size=4 [20:38:59]MH_SAM_APDU [20:38:59]CAPDU: 80 0D 01 02 [20:38:59]Write to MH i2c: E2 08 00 C0 07 80 0D 01 02 00 00 00 00 40 [20:38:59]Write i2c OK [20:38:59]MH_I2C_Read... [20:38:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:38:59]Read from MH i2c: E2 [20:38:59]MH_I2C_Read... [20:38:59]Read from MH i2c: E2 03 00 [20:38:59]MH_I2C_Read... [20:38:59]Read from MH i2c: E2 03 00 C0 07 00 90 00 3B [20:38:59]RAPDU: 90 00 [20:38:59]wFMCommunicate OK [20:38:59]wFMCommunicate request_size=255 [20:38:59]MH_SAM_APDU [20:38:59]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 E3 29 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 [20:38:59]Write to MH i2c: E2 02 01 C1 07 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 E3 29 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 00 00 15 [20:38:59]Write i2c OK [20:38:59]MH_I2C_Read... [20:39:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:39:00]Read from MH i2c: E2 [20:39:00]MH_I2C_Read... [20:39:00]Read from MH i2c: E2 03 00 [20:39:00]MH_I2C_Read... [20:39:00]Read from MH i2c: E2 03 00 C1 07 00 90 00 3C [20:39:00]RAPDU: 90 00 [20:39:00]wFMCommunicate OK [20:39:00]wFMCommunicate request_size=41 [20:39:00]MH_SAM_APDU [20:39:00]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 8C F9 00 00 35 04 06 00 56 6A 55 D8 E5 FC [20:39:00]Write to MH i2c: E2 2C 00 C2 07 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 8C F9 00 00 35 04 06 00 56 6A 55 D8 E5 FC 00 00 64 [20:39:00]Write i2c OK [20:39:00]MH_I2C_Read... [20:39:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:39:00]Read from MH i2c: E2 [20:39:00]MH_I2C_Read... [20:39:00]Read from MH i2c: E2 03 00 [20:39:00]MH_I2C_Read... [20:39:00]Read from MH i2c: E2 03 00 C2 07 00 90 00 3D [20:39:00]RAPDU: 90 00 [20:39:00]wFMCommunicate OK [20:39:00]wFMCommunicate request_size=4 [20:39:00]MH_SAM_APDU [20:39:00]CAPDU: 80 0D 03 02 [20:39:00]Write to MH i2c: E2 08 00 C3 07 80 0D 03 02 00 00 00 00 45 [20:39:00]Write i2c OK [20:39:00]MH_I2C_Read... [20:39:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:39:00]Read from MH i2c: E2 [20:39:00]MH_I2C_Read... [20:39:00]Read from MH i2c: E2 0B 00 [20:39:00]MH_I2C_Read... [20:39:00]Read from MH i2c: E2 0B 00 C3 07 00 67 33 EB 02 E7 45 2E CA 90 00 F1 [20:39:00]RAPDU: 67 33 EB 02 E7 45 2E CA 90 00 [20:39:00]wFMCommunicate OK [20:39:00]SAM_PROTO_SignData done [20:39:00]FM_MakeSignedData done [20:39:00]CreateOFDProtocolMessage [20:39:00]wFMCommunicate request_size=4 [20:39:00]MH_SAM_APDU [20:39:00]CAPDU: 80 11 00 00 [20:39:00]Write to MH i2c: E2 08 00 C4 07 80 11 00 00 00 00 00 00 45 [20:39:00]Write i2c OK [20:39:00]MH_I2C_Read... [20:39:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:39:00]Read from MH i2c: E2 [20:39:00]MH_I2C_Read... [20:39:00]Read from MH i2c: E2 17 00 [20:39:00]MH_I2C_Read... [20:39:00]Read from MH i2c: E2 17 00 C4 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 97 [20:39:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [20:39:00]wFMCommunicate OK [20:39:00]CreateOFDProtocolMessage done [20:39:00]OFDSenderStorePacket 63884 [20:39:00]StoreOFDPacket docnum=63884 [20:39:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 2E 01 00 00 49 61 26 01 C3 42 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 E3 29 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 8C F9 00 00 35 04 06 00 56 6A 55 D8 E5 FC 67 33 EB 02 E7 45 2E CA [20:39:00]CheckFolder [20:39:00]dirname=/storage/ofd_packets [20:39:00]CheckFolder done [20:39:00]ProducePacketName [20:39:00]name=ofd_packets/00063884 [20:39:00]NVStorageSaveData ofd_packets/00063884 [20:39:00]File name is /storage/ofd_packets/00063884 [20:39:00]Write 332 bytes [20:39:00]NVStorageSaveData done [20:39:00]OFDSenderStorePacket done [20:39:00]KKMCreateOFDPacket done [20:39:00]NVStorageSaveData kkm_last_timestamp [20:39:00]File name is /storage/kkm_last_timestamp [20:39:00]Write 4 bytes [20:39:00]NVStorageSaveData done [20:39:00]ExternCall_PrintAddStr [20:39:00]wPrintStart [20:39:00]Write to MH i2c: 01 00 00 C5 07 CC [20:39:00]Write i2c OK [20:39:00]MH_I2C_Read... [20:39:00]Read from MH i2c: 01 [20:39:00]MH_I2C_Read... [20:39:00]Read from MH i2c: 01 07 00 [20:39:00]MH_I2C_Read... [20:39:00]Read from MH i2c: 01 07 00 C5 07 00 00 00 00 00 FF 0F E1 [20:39:00]RasterBufferAndPrint [20:39:00]line Счет N : (3)73452 [20:39:00]line ИНН: 02508201610067 [20:39:00]line Контрольно-Кассовый Чек [20:39:00]line ПРОДАЖА [20:39:00]line Товар: 2000036220012 [20:39:00]line Кофе Капучино XL(GABB TRADE) [20:39:00]line 1.000 * 125.00 [20:39:00]line = 125.00 [20:39:00]line НДС 12% НСП 1% [20:39:00]line > о реализуемом товаре [20:39:00]line ИТОГО: 125.00 [20:39:00]line НСП 1% : 1.11 [20:39:00]line НДС 12% : 13.27 [20:39:00]line Наличными: 125.00 [20:39:00]line Безнал.: 0.00 [20:39:00]line Место: АЗС № 117 "Партнер Нефть" [20:39:00]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [20:39:00]line СНО: Общий режим [20:39:00]line Чек 142 03.06.2024 20:38 [20:39:00]line Смена: 373 ФФД: 1.0 [20:39:00]line ЗНМ: 0300000031 [20:39:00]line РНМ: 0000000000092737 [20:39:00]line Версия ККМ: 001 [20:39:00]line ФМ: 0000000000875074 [20:39:00]line ФД: 63884 [20:39:00]line ФПД: 95014706800124 [20:39:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T203859&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63884&fm=95014706800124&tin=02508201610067®Number=0000000000092737&sum=12500 [20:39:00]line 0 [20:39:00]OFD Sender: Processing packet 63884 [packets to send 14, broken 13] [20:39:00]ProducePacketName [20:39:00]name=ofd_packets/00063884 [20:39:00]OFD Sender: To server: pG, [20:39:00]CommunicateWithHost lk.salyk.kg:30040 [20:39:00]ConnectInit lk.salyk.kg [20:39:00]written 0, free lines is 4095 [20:39:00]Connected sock=10 [20: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 35 30 37 34 2E 01 00 00 49 61 26 01 C3 42 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 E3 29 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 8C F9 00 00 35 04 06 00 56 6A 55 D8 E5 FC 67 33 EB 02 E7 45 2E CA [20:39:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 C0 F6 47 00 BE 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 35 30 37 34 10 04 04 00 8C F9 00 00 F4 03 04 00 B3 D5 5D 66 B6 04 01 00 00 02 43 85 C9 EE 39 60 C2 [20:39:00]CommunicateWithHost err = 0 [20:39:00]CheckOFDResponse [20:39:00]1017 (14) - 77093643461234 [20:39:00]1041 (16) - 0000000000875074 [20:39:00]1040 (4) - 63884 [20:39:00]1012 (4) - 03.06.2024 14:39 [20:39:00]1206 (1) - 0 [20:39:00]OFD Sender: Remove packet 63884 [20:39:00]ProducePacketName [20:39:00]name=ofd_packets/00063884 [20:39:00]NVStorageDeleteData [20:39:01]Write to MH i2c: 01 00 00 EE 07 F5 [20:39:01]Write i2c OK [20:39:01]MH_I2C_Read... [20:39:01]Read from MH i2c: 01 [20:39:01]MH_I2C_Read... [20:39:01]Read from MH i2c: 01 07 00 [20:39:01]MH_I2C_Read... [20:39:01]Read from MH i2c: 01 07 00 EE 07 00 00 00 00 00 FA 0C 02 [20:39:01]RasterBufferAndPrint [20:39:01]line [20:39:01]line [20:39:01]line [20:39:01]line [20:39:01]line [20:39:01]written 0, free lines is 3329 [20:39:01]MH_Cut [20:39:01]Write to MH i2c: D1 01 00 F5 07 01 CE [20:39:01]Write i2c OK [20:39:01]MH_I2C_Read... [20:39:01]Read from MH i2c: D1 [20:39:01]MH_I2C_Read... [20:39:01]Read from MH i2c: D1 01 00 [20:39:01]MH_I2C_Read... [20:39:01]Read from MH i2c: D1 01 00 F5 07 00 CD [20:39:01]Write to MH i2c: 01 00 00 F6 07 FD [20:39:01]Write i2c OK [20:39:01]MH_I2C_Read... [20:39:01]OFD Sender: No OFD packet to send [20:39:01]*** Cut start [20:39:01]*** Partial cut [20:39:01]*** CUTSNS_PIN = 1 [20:39:01]*** CUTSNS_PIN = 0 [20:39:02]*** Brake cut motor [20:39:02]Read from MH i2c: 01 [20:39:02]MH_I2C_Read... [20:39:02]*** Stop cut motor [20:39:02]*** Cut end [20:39:02]Read from MH i2c: 01 07 00 [20:39:02]MH_I2C_Read... [20:39:02]Read from MH i2c: 01 07 00 F6 07 00 00 00 00 00 FF 0F 12 [20:39:02]process_action close_receipt done [20:39:02]requested_data is exist [20:39:02]produce_requested_data [20:39:02]requested_item fm.sn is exist - process it [20:39:02]wFMCommunicate request_size=4 [20:39:02]MH_SAM_APDU [20:39:02]CAPDU: 80 11 00 00 [20:39:02]Write to MH i2c: E2 08 00 F7 07 80 11 00 00 00 00 00 00 78 [20:39:02]Write i2c OK [20:39:02]MH_I2C_Read... [20:39:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:39:02]Read from MH i2c: E2 [20:39:02]MH_I2C_Read... [20:39:02]Read from MH i2c: E2 17 00 [20:39:02]MH_I2C_Read... [20:39:02]Read from MH i2c: E2 17 00 F7 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 CA [20:39:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [20:39:02]wFMCommunicate OK [20:39:02]requested_item fd.num is exist - process it [20:39:02]SAM_PROTO_GetFieldsCounters [20:39:02]wFMCommunicate request_size=4 [20:39:02]MH_SAM_APDU [20:39:02]CAPDU: 80 13 00 00 [20:39:02]Write to MH i2c: E2 08 00 F8 07 80 13 00 00 00 00 00 00 7B [20:39:02]Write i2c OK [20:39:02]MH_I2C_Read... [20:39:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:39:02]Read from MH i2c: E2 [20:39:02]MH_I2C_Read... [20:39:02]Read from MH i2c: E2 62 00 [20:39:02]MH_I2C_Read... [20:39:02]Read from MH i2c: E2 62 00 F8 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 8C F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 8E 00 00 00 5E 04 04 00 8E 00 00 00 57 04 04 00 8F 00 00 00 19 04 04 00 00 00 00 00 90 00 43 [20: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 8C F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 8E 00 00 00 5E 04 04 00 8E 00 00 00 57 04 04 00 8F 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:39:02]wFMCommunicate OK [20:39:02]SAM_PROTO_GetFieldsCounters done [20:39:02]requested_item shift.num is exist - process it [20:39:02]requested_item shift.opened is exist - process it [20:39:02]req_shift_opened [20:39:02]FM_GetShiftState [20:39:02]SAM_PROTO_GetShiftState [20:39:02]wFMCommunicate request_size=4 [20:39:02]MH_SAM_APDU [20:39:02]CAPDU: 80 13 01 00 [20:39:02]Write to MH i2c: E2 08 00 F9 07 80 13 01 00 00 00 00 00 7D [20:39:02]Write i2c OK [20:39:02]MH_I2C_Read... [20:39:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:39:02]Read from MH i2c: E2 [20:39:02]MH_I2C_Read... [20:39:02]Read from MH i2c: E2 0E 00 [20:39:02]MH_I2C_Read... [20:39:02]Read from MH i2c: E2 0E 00 F9 07 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 49 [20:39:02]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [20:39:02]wFMCommunicate OK [20:39:02]SAM_PROTO_GetShiftState done [20:39:02]FM_GetShiftState done [20:39:02]req_shift_opened done [20:39:02]requested_item shift.open_date is exist - process it [20:39:02]req_shift_open_date [20:39:02]req_shift_open_date done [20:39:02]produce_requested_data done [20:39:02]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63884,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [20:39:02]process_action_free close_receipt [20:39:02]json_value_free [20:39:02]json_value_free done [20:39:02]process_json_proto returns [20:39:02]Send response to host [20:39:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63884,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [20:39:02]free response buf [20:39:02]execute_script done [20:39:02]execute_script returns [20:39:02]free content buf [20:39:02]Sock 7.Close socket [20:39:02]Sock 7.Thread stoped [20:39:06]OFD Sender: No OFD packet to send [20:39:11]OFD Sender: No OFD packet to send [20:39:16]OFD Sender: No OFD packet to send [20:39:21]OFD Sender: No OFD packet to send [20:39:26]OFD Sender: No OFD packet to send [20:39:31]OFD Sender: No OFD packet to send [20:39:36]OFD Sender: No OFD packet to send [20:39:41]OFD Sender: No OFD packet to send [20:39:46]OFD Sender: No OFD packet to send [20:39:51]OFD Sender: No OFD packet to send [20:39:56]OFD Sender: No OFD packet to send [20:40:01]OFD Sender: No OFD packet to send [20:40:06]OFD Sender: No OFD packet to send [20:40:11]OFD Sender: No OFD packet to send [20:40:16]OFD Sender: No OFD packet to send [20:40:21]OFD Sender: No OFD packet to send [20:40:26]OFD Sender: No OFD packet to send [20:40:31]OFD Sender: No OFD packet to send [20:40:36]OFD Sender: No OFD packet to send [20:40:41]OFD Sender: No OFD packet to send [20:40:46]OFD Sender: No OFD packet to send [20:40:51]OFD Sender: No OFD packet to send [20:40:56]OFD Sender: No OFD packet to send [20:41:01]OFD Sender: No OFD packet to send [20:41:06]OFD Sender: No OFD packet to send [20:41:11]OFD Sender: No OFD packet to send [20:41:16]OFD Sender: No OFD packet to send [20:41:21]OFD Sender: No OFD packet to send [20:41:26]OFD Sender: No OFD packet to send [20:41:31]OFD Sender: No OFD packet to send [20:41:36]OFD Sender: No OFD packet to send [20:41:41]OFD Sender: No OFD packet to send [20:41:46]OFD Sender: No OFD packet to send [20:41:51]OFD Sender: No OFD packet to send [20:41:56]OFD Sender: No OFD packet to send [20:42:01]OFD Sender: No OFD packet to send [20:42:06]OFD Sender: No OFD packet to send [20:42:11]OFD Sender: No OFD packet to send [20:42:16]OFD Sender: No OFD packet to send [20:42:21]OFD Sender: No OFD packet to send [20:42:26]OFD Sender: No OFD packet to send [20:42:31]OFD Sender: No OFD packet to send [20:42:36]OFD Sender: No OFD packet to send [20:42:41]OFD Sender: No OFD packet to send [20:42:46]OFD Sender: No OFD packet to send [20:42:51]OFD Sender: No OFD packet to send [20:42:56]OFD Sender: No OFD packet to send [20:43:01]OFD Sender: No OFD packet to send [20:43:06]OFD Sender: No OFD packet to send [20:43:11]OFD Sender: No OFD packet to send [20:43:16]OFD Sender: No OFD packet to send [20:43:16]accept exits with 9 [20:43:16]New connection [20:43:16]New thread 3066719588 created [20:43:16]Thread 3066576228 joined [20:43:16]Waiting for new connection... [20:43:16] Sock 9.Parse request [20:43:16]Sock 9.Check first char [20:43:16]Sock 9.First char is OK [20:43:16]request: POST /json_proto HTTP/1.0 [20:43:16]Method: POST [20:43:16]URL: /json_proto [20:43:16]Method is POST - this is cgi request [20:43:16]url: /json_proto [20:43:16]query_string will be loaded in cgi processing [20:43:16]execute_cgi json_proto POST (null) [20:43:16]execute_cgi path=json_proto method=POST [20:43:16]POST find Content-Length [20:43:16]Host: 172.17.60.69:8080 [20:43:16]Content-Length: 984 [20:43:16]Content-Type: application/json [20:43:16] [20:43:16]POST finish read [20:43:16]Found Content-Length = 984 [20:43:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73453", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870202521285", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0421\u043E\u043A \u0431\u0435\u0440\u0435\u0437\u043E\u0432\u044B\u0439 \u043D\u0435\u0433\u0430\u0437 0,45\u043B", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 165.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:43:16]execute_script... [20:43:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73453", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870202521285", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0421\u043E\u043A \u0431\u0435\u0440\u0435\u0437\u043E\u0432\u044B\u0439 \u043D\u0435\u0433\u0430\u0437 0,45\u043B", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 165.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:43:16]POST & json_proto [20:43:16]process_json_proto [20:43:16]json parsed OK: [20:43:16]protocol is kg_v1.0 [20:43:16]action value=close_receipt [20:43:16]process_action close_receipt [20:43:16]cmd_close_receipt [20:43:16]MH_GetDate [20:43:16]Write to MH i2c: F0 00 00 FA 07 F0 [20:43:16]Write i2c OK [20:43:16]MH_I2C_Read... [20:43:16]Read from MH i2c: F0 [20:43:16]MH_I2C_Read... [20:43:16]Read from MH i2c: F0 09 00 [20:43:16]MH_I2C_Read... [20:43:16]Read from MH i2c: F0 09 00 FA 07 00 E5 2A 5E 66 6A 96 4A 66 7C [20:43:16]GetLastDocTimeStamp 1717447139 [20:43:16]current date 1717447397 [20:43:16]FM_GetShiftState [20:43:16]SAM_PROTO_GetShiftState [20:43:16]wFMCommunicate request_size=4 [20:43:16]MH_SAM_APDU [20:43:16]CAPDU: 80 13 01 00 [20:43:16]Write to MH i2c: E2 08 00 FB 07 80 13 01 00 00 00 00 00 7F [20:43:16]Write i2c OK [20:43:16]MH_I2C_Read... [20:43:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:43:16]Read from MH i2c: E2 [20:43:16]MH_I2C_Read... [20:43:16]Read from MH i2c: E2 0E 00 [20:43:16]MH_I2C_Read... [20:43:16]Read from MH i2c: E2 0E 00 FB 07 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 4B [20:43:16]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [20:43:16]wFMCommunicate OK [20:43:16]SAM_PROTO_GetShiftState done [20:43:16]FM_GetShiftState done [20:43:16]opened in 1717373173 [20:43:16]opened+sec_in_day 1717459573 [20:43:16]quantity*price = 9500 [20:43:16]sum+1 = 9501 [20:43:16]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870202521285 Напиток Сок березовый негаз 0,45л 1.000 * 70.00 = 70.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 165.00 НСП 1% : 1.46 НДС 12% : 17.52 Наличными: 165.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 143 03.06.2024 20:43 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63885 ФПД: 247502079818051 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T204317&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63885&fm=247502079818051&tin=02508201610067®Number=0000000000092737&sum=16500 0 [20:43:17]StoreToDocumentArchive [20:43:17]shift 373 fd 63885 [20:43:17]save to /storage/0373/doc_00063885 [20:43:17]save last doc name /storage/0373/doc_00063885 to /storage/kkm_last_doc_name [20:43:17]save OK [20:43:17]Clear old archive folders... [20:43:17]ProcessDocumentItem done err = 0, tmpTLVsize=423 [20:43:17]tlvbuf is 00A80820 [20:43:17]SAM_PROTO_ClearQueue [20:43:17]wFMCommunicate request_size=4 [20:43:17]MH_SAM_APDU [20:43:17]CAPDU: 80 09 00 00 [20:43:17]Write to MH i2c: E2 08 00 08 08 80 09 00 00 00 00 00 00 82 [20:43:17]Write i2c OK [20:43:17]MH_I2C_Read... [20:43:17]Read from MH i2c: E2 [20:43:17]MH_I2C_Read... [20:43:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:43:17]Read from MH i2c: E2 03 00 [20:43:17]MH_I2C_Read... [20:43:17]Read from MH i2c: E2 03 00 08 08 00 90 00 84 [20:43:17]RAPDU: 90 00 [20:43:17]wFMCommunicate OK [20:43:17]SAM_PROTO_ClearQueue done [20:43:17]KKMCreateOFDPacket [20:43:17]OFDProtocolAddRootSTLVToBuf [20:43:17]FM_MakeSignedData [20:43:17]FM_MakeSignedData [20:43:17]SAM_PROTO_SignData [20:43:17]wFMCommunicate request_size=4 [20:43:17]MH_SAM_APDU [20:43:17]CAPDU: 80 0D 01 02 [20:43:17]Write to MH i2c: E2 08 00 09 08 80 0D 01 02 00 00 00 00 8A [20:43:17]Write i2c OK [20:43:17]MH_I2C_Read... [20:43:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:43:17]Read from MH i2c: E2 [20:43:17]MH_I2C_Read... [20:43:17]Read from MH i2c: E2 03 00 [20:43:17]MH_I2C_Read... [20:43:17]Read from MH i2c: E2 03 00 09 08 00 90 00 85 [20:43:17]RAPDU: 90 00 [20:43:17]wFMCommunicate OK [20:43:17]wFMCommunicate request_size=255 [20:43:17]MH_SAM_APDU [20:43:17]CAPDU: 80 0D 02 02 FA 03 00 A7 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 38 35 06 04 3A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A1 D0 BE D0 BA 20 D0 B1 D0 B5 D1 80 D0 B5 D0 B7 D0 BE D0 B2 D1 8B D0 B9 20 D0 BD D0 B5 D0 B3 D0 B0 D0 B7 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 [20:43:17]Write to MH i2c: E2 02 01 0A 08 80 0D 02 02 FA 00 03 00 A7 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 38 35 06 04 3A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A1 D0 BE D0 BA 20 D0 B1 D0 B5 D1 80 D0 B5 D0 B7 D0 BE D0 B2 D1 8B D0 B9 20 D0 BD D0 B5 D0 B3 D0 B0 D0 B7 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 00 15 [20:43:18]Write i2c OK [20:43:18]MH_I2C_Read... [20:43:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:43:18]Read from MH i2c: E2 [20:43:18]MH_I2C_Read... [20:43:18]Read from MH i2c: E2 03 00 [20:43:18]MH_I2C_Read... [20:43:18]Read from MH i2c: E2 03 00 0A 08 00 90 00 86 [20:43:18]RAPDU: 90 00 [20:43:18]wFMCommunicate OK [20:43:18]wFMCommunicate request_size=182 [20:43:18]MH_SAM_APDU [20:43:18]CAPDU: 80 0D 02 02 B1 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 40 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 06 00 00 00 00 07 04 06 00 74 40 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 E5 2A 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 8D F9 00 00 35 04 06 00 E1 1A 11 8C 79 43 [20:43:18]Write to MH i2c: E2 B9 00 0B 08 80 0D 02 02 B1 00 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 40 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 06 00 00 00 00 07 04 06 00 74 40 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 E5 2A 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 8D F9 00 00 35 04 06 00 E1 1A 11 8C 79 43 00 00 7B [20:43:18]Write i2c OK [20:43:18]MH_I2C_Read... [20:43:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:43:18]Read from MH i2c: E2 [20:43:18]MH_I2C_Read... [20:43:18]Read from MH i2c: E2 03 00 [20:43:18]MH_I2C_Read... [20:43:18]Read from MH i2c: E2 03 00 0B 08 00 90 00 87 [20:43:18]RAPDU: 90 00 [20:43:18]wFMCommunicate OK [20:43:18]wFMCommunicate request_size=4 [20:43:18]MH_SAM_APDU [20:43:18]CAPDU: 80 0D 03 02 [20:43:18]Write to MH i2c: E2 08 00 0C 08 80 0D 03 02 00 00 00 00 8F [20:43:18]Write i2c OK [20:43:18]MH_I2C_Read... [20:43:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:43:18]Read from MH i2c: E2 [20:43:18]MH_I2C_Read... [20:43:18]Read from MH i2c: E2 0B 00 [20:43:18]MH_I2C_Read... [20:43:18]Read from MH i2c: E2 0B 00 0C 08 00 FE 57 D4 4D 17 C6 0D 26 90 00 16 [20:43:18]RAPDU: FE 57 D4 4D 17 C6 0D 26 90 00 [20:43:18]wFMCommunicate OK [20:43:18]SAM_PROTO_SignData done [20:43:18]FM_MakeSignedData done [20:43:18]CreateOFDProtocolMessage [20:43:18]wFMCommunicate request_size=4 [20:43:18]MH_SAM_APDU [20:43:18]CAPDU: 80 11 00 00 [20:43:18]Write to MH i2c: E2 08 00 0D 08 80 11 00 00 00 00 00 00 8F [20:43:18]Write i2c OK [20:43:18]MH_I2C_Read... [20:43:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:43:18]Read from MH i2c: E2 [20:43:18]MH_I2C_Read... [20:43:18]Read from MH i2c: E2 17 00 [20:43:18]MH_I2C_Read... [20:43:18]Read from MH i2c: E2 17 00 0D 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 E1 [20:43:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [20:43:18]wFMCommunicate OK [20:43:18]CreateOFDProtocolMessage done [20:43:18]OFDSenderStorePacket 63885 [20:43:18]StoreOFDPacket docnum=63885 [20:43:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 BB 01 00 00 7F 5E B3 01 06 D5 5A 03 01 00 03 00 A7 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 38 35 06 04 3A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A1 D0 BE D0 BA 20 D0 B1 D0 B5 D1 80 D0 B5 D0 B7 D0 BE D0 B2 D1 8B D0 B9 20 D0 BD D0 B5 D0 B3 D0 B0 D0 B7 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 40 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 06 00 00 00 00 07 04 06 00 74 40 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 E5 2A 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 8D F9 00 00 35 04 06 00 E1 1A 11 8C 79 43 FE 57 D4 4D 17 C6 0D 26 [20:43:18]CheckFolder [20:43:18]dirname=/storage/ofd_packets [20:43:18]CheckFolder done [20:43:18]ProducePacketName [20:43:18]name=ofd_packets/00063885 [20:43:18]NVStorageSaveData ofd_packets/00063885 [20:43:18]File name is /storage/ofd_packets/00063885 [20:43:18]Write 473 bytes [20:43:18]NVStorageSaveData done [20:43:18]OFDSenderStorePacket done [20:43:18]KKMCreateOFDPacket done [20:43:18]NVStorageSaveData kkm_last_timestamp [20:43:18]File name is /storage/kkm_last_timestamp [20:43:18]Write 4 bytes [20:43:18]NVStorageSaveData done [20:43:18]ExternCall_PrintAddStr [20:43:18]wPrintStart [20:43:18]Write to MH i2c: 01 00 00 0E 08 16 [20:43:18]Write i2c OK [20:43:18]MH_I2C_Read... [20:43:18]Read from MH i2c: 01 [20:43:18]MH_I2C_Read... [20:43:18]Read from MH i2c: 01 07 00 [20:43:18]MH_I2C_Read... [20:43:18]OFD Sender: Processing packet 63885 [packets to send 14, broken 13] [20:43:18]ProducePacketName [20:43:18]name=ofd_packets/00063885 [20:43:18]OFD Sender: To server: pG, [20:43:18]CommunicateWithHost lk.salyk.kg:30040 [20:43:18]ConnectInit lk.salyk.kg [20:43:18]Read from MH i2c: 01 07 00 0E 08 00 00 00 00 00 FF 0F 2B [20:43:18]RasterBufferAndPrint [20:43:18]line Счет N : (3)73453 [20:43:18]line ИНН: 02508201610067 [20:43:18]line Контрольно-Кассовый Чек [20:43:18]line ПРОДАЖА [20:43:18]line Товар: 4700000480050 [20:43:18]line Напиток Nitro Energy эн green ж/б 0,45л [20:43:18]line 1.000 * 95.00 [20:43:18]line = 95.00 [20:43:18]line НДС 12% НСП 1% [20:43:18]line > о реализуемом товаре [20:43:18]line Товар: 4870202521285 [20:43:18]line Напиток Сок березовый негаз 0,45л [20:43:18]line 1.000 * 70.00 [20:43:18]line = 70.00 [20:43:18]line НДС 12% НСП 1% [20:43:18]line > о реализуемом товаре [20:43:18]line ИТОГО: 165.00 [20:43:18]line НСП 1% : 1.46 [20:43:18]line НДС 12% : 17.52 [20:43:18]line Наличными: 165.00 [20:43:18]line Безнал.: 0.00 [20:43:18]line Место: АЗС № 117 "Партнер Нефть" [20:43:18]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [20:43:18]line СНО: Общий режим [20:43:18]line Чек 143 03.06.2024 20:43 [20:43:18]line Смена: 373 ФФД: 1.0 [20:43:18]line ЗНМ: 0300000031 [20:43:18]line РНМ: 0000000000092737 [20:43:18]line Версия ККМ: 001 [20:43:18]line ФМ: 0000000000875074 [20:43:18]line ФД: 63885 [20:43:18]line ФПД: 247502079818051 [20:43:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T204317&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63885&fm=247502079818051&tin=02508201610067®Number=0000000000092737&sum=16500 [20:43:18]line 0 [20:43:18]written 0, free lines is 4095 [20:43:19]Connected sock=10 [20:43:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 BB 01 00 00 7F 5E B3 01 06 D5 5A 03 01 00 03 00 A7 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 38 35 06 04 3A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A1 D0 BE D0 BA 20 D0 B1 D0 B5 D1 80 D0 B5 D0 B7 D0 BE D0 B2 D1 8B D0 B9 20 D0 BD D0 B5 D0 B3 D0 B0 D0 B7 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 40 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 06 00 00 00 00 07 04 06 00 74 40 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 E5 2A 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 8D F9 00 00 35 04 06 00 E1 1A 11 8C 79 43 FE 57 D4 4D 17 C6 0D 26 [20:43:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 CD 86 47 00 D5 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 35 30 37 34 10 04 04 00 8D F9 00 00 F4 03 04 00 B6 D6 5D 66 B6 04 01 00 00 B5 3C AB 9E CD 0F BA A7 [20:43:19]CommunicateWithHost err = 0 [20:43:19]CheckOFDResponse [20:43:19]1017 (14) - 77093643461234 [20:43:19]1041 (16) - 0000000000875074 [20:43:19]1040 (4) - 63885 [20:43:19]1012 (4) - 03.06.2024 14:44 [20:43:19]1206 (1) - 0 [20:43:19]OFD Sender: Remove packet 63885 [20:43:19]ProducePacketName [20:43:19]name=ofd_packets/00063885 [20:43:19]NVStorageDeleteData [20:43:19]Write to MH i2c: 01 00 00 3E 08 46 [20:43:19]Write i2c OK [20:43:19]MH_I2C_Read... [20:43:19]Read from MH i2c: 01 [20:43:19]MH_I2C_Read... [20:43:19]Read from MH i2c: 01 07 00 [20:43:19]MH_I2C_Read... [20:43:19]Read from MH i2c: 01 07 00 3E 08 00 00 00 00 00 72 0C CB [20:43:19]RasterBufferAndPrint [20:43:19]line [20:43:19]line [20:43:19]line [20:43:19]line [20:43:19]line [20:43:19]written 0, free lines is 3195 [20:43:19]MH_Cut [20:43:19]Write to MH i2c: D1 01 00 45 08 01 1F [20:43:19]Write i2c OK [20:43:19]MH_I2C_Read... [20:43:19]Read from MH i2c: D1 [20:43:19]MH_I2C_Read... [20:43:19]Read from MH i2c: D1 01 00 [20:43:19]MH_I2C_Read... [20:43:19]Read from MH i2c: D1 01 00 45 08 00 1E [20:43:19]Write to MH i2c: 01 00 00 46 08 4E [20:43:19]Write i2c OK [20:43:19]MH_I2C_Read... [20:43:19]OFD Sender: No OFD packet to send [20:43:20]*** Cut start [20:43:20]*** Partial cut [20:43:20]*** CUTSNS_PIN = 1 [20:43:20]*** CUTSNS_PIN = 0 [20:43:20]*** Brake cut motor [20:43:20]Read from MH i2c: 01 [20:43:20]MH_I2C_Read... [20:43:20]*** Stop cut motor [20:43:20]*** Cut end [20:43:20]Read from MH i2c: 01 07 00 [20:43:20]MH_I2C_Read... [20:43:20]Read from MH i2c: 01 07 00 46 08 00 00 00 00 00 FF 0F 63 [20:43:20]process_action close_receipt done [20:43:20]requested_data is exist [20:43:20]produce_requested_data [20:43:20]requested_item fm.sn is exist - process it [20:43:20]wFMCommunicate request_size=4 [20:43:20]MH_SAM_APDU [20:43:20]CAPDU: 80 11 00 00 [20:43:20]Write to MH i2c: E2 08 00 47 08 80 11 00 00 00 00 00 00 C9 [20:43:20]Write i2c OK [20:43:20]MH_I2C_Read... [20:43:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:43:21]Read from MH i2c: E2 [20:43:21]MH_I2C_Read... [20:43:21]Read from MH i2c: E2 17 00 [20:43:21]MH_I2C_Read... [20:43:21]Read from MH i2c: E2 17 00 47 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 1B [20:43:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [20:43:21]wFMCommunicate OK [20:43:21]requested_item fd.num is exist - process it [20:43:21]SAM_PROTO_GetFieldsCounters [20:43:21]wFMCommunicate request_size=4 [20:43:21]MH_SAM_APDU [20:43:21]CAPDU: 80 13 00 00 [20:43:21]Write to MH i2c: E2 08 00 48 08 80 13 00 00 00 00 00 00 CC [20:43:21]Write i2c OK [20:43:21]MH_I2C_Read... [20:43:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:43:21]Read from MH i2c: E2 [20:43:21]MH_I2C_Read... [20:43:21]Read from MH i2c: E2 62 00 [20:43:21]MH_I2C_Read... [20:43:21]Read from MH i2c: E2 62 00 48 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 8D F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 90 00 00 00 19 04 04 00 00 00 00 00 90 00 98 [20:43: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 8D F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 90 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:43:21]wFMCommunicate OK [20:43:21]SAM_PROTO_GetFieldsCounters done [20:43:21]requested_item shift.num is exist - process it [20:43:21]requested_item shift.opened is exist - process it [20:43:21]req_shift_opened [20:43:21]FM_GetShiftState [20:43:21]SAM_PROTO_GetShiftState [20:43:21]wFMCommunicate request_size=4 [20:43:21]MH_SAM_APDU [20:43:21]CAPDU: 80 13 01 00 [20:43:21]Write to MH i2c: E2 08 00 49 08 80 13 01 00 00 00 00 00 CE [20:43:21]Write i2c OK [20:43:21]MH_I2C_Read... [20:43:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:43:21]Read from MH i2c: E2 [20:43:21]MH_I2C_Read... [20:43:21]Read from MH i2c: E2 0E 00 [20:43:21]MH_I2C_Read... [20:43:21]Read from MH i2c: E2 0E 00 49 08 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 9A [20:43:21]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [20:43:21]wFMCommunicate OK [20:43:21]SAM_PROTO_GetShiftState done [20:43:21]FM_GetShiftState done [20:43:21]req_shift_opened done [20:43:21]requested_item shift.open_date is exist - process it [20:43:21]req_shift_open_date [20:43:21]req_shift_open_date done [20:43:21]produce_requested_data done [20:43:21]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63885,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [20:43:21]process_action_free close_receipt [20:43:21]json_value_free [20:43:21]json_value_free done [20:43:21]process_json_proto returns [20:43:21]Send response to host [20:43:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63885,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [20:43:21]free response buf [20:43:21]execute_script done [20:43:21]execute_script returns [20:43:21]free content buf [20:43:21]Sock 9.Close socket [20:43:21]Sock 9.Thread stoped [20:43:24]OFD Sender: No OFD packet to send [20:43:29]OFD Sender: No OFD packet to send [20:43:34]OFD Sender: No OFD packet to send [20:43:39]OFD Sender: No OFD packet to send [20:43:44]OFD Sender: No OFD packet to send [20:43:49]OFD Sender: No OFD packet to send [20:43:54]OFD Sender: No OFD packet to send [20:43:59]OFD Sender: No OFD packet to send [20:44:04]OFD Sender: No OFD packet to send [20:44:09]OFD Sender: No OFD packet to send [20:44:14]OFD Sender: No OFD packet to send [20:44:19]OFD Sender: No OFD packet to send [20:44:24]OFD Sender: No OFD packet to send [20:44:26]accept exits with 7 [20:44:26]New connection [20:44:26]New thread 3066576228 created [20:44:26]Thread 3066719588 joined [20:44:26]Waiting for new connection... [20:44:26] Sock 7.Parse request [20:44:26]Sock 7.Check first char [20:44:26]Sock 7.First char is OK [20:44:26]request: POST /json_proto HTTP/1.0 [20:44:26]Method: POST [20:44:26]URL: /json_proto [20:44:26]Method is POST - this is cgi request [20:44:26]url: /json_proto [20:44:26]query_string will be loaded in cgi processing [20:44:26]execute_cgi json_proto POST (null) [20:44:26]execute_cgi path=json_proto method=POST [20:44:26]POST find Content-Length [20:44:26]Host: 172.17.60.69:8080 [20:44:26]Content-Length: 695 [20:44:26]Content-Type: application/json [20:44:26] [20:44:26]POST finish read [20:44:26]Found Content-Length = 695 [20:44:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73454", "tax_sys" : 0, "items" : [ { "code": "4700000480364", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u044D\u043A\u0437\u043E\u0442\u0438\u043A 0.45 \u0436/\u0431", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 85.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:44:26]execute_script... [20: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 : (3)73454", "tax_sys" : 0, "items" : [ { "code": "4700000480364", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u044D\u043A\u0437\u043E\u0442\u0438\u043A 0.45 \u0436/\u0431", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 85.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:44:26]POST & json_proto [20:44:26]process_json_proto [20:44:26]json parsed OK: [20:44:26]protocol is kg_v1.0 [20:44:26]action value=close_receipt [20:44:26]process_action close_receipt [20:44:26]cmd_close_receipt [20:44:26]MH_GetDate [20:44:26]Write to MH i2c: F0 00 00 4A 08 41 [20:44:26]Write i2c OK [20:44:26]MH_I2C_Read... [20:44:26]Read from MH i2c: F0 [20:44:26]MH_I2C_Read... [20:44:26]Read from MH i2c: F0 09 00 [20:44:26]MH_I2C_Read... [20:44:26]Read from MH i2c: F0 09 00 4A 08 00 2B 2B 5E 66 6A 96 4A 66 14 [20:44:26]GetLastDocTimeStamp 1717447397 [20:44:26]current date 1717447467 [20:44:26]FM_GetShiftState [20:44:26]SAM_PROTO_GetShiftState [20:44:26]wFMCommunicate request_size=4 [20:44:26]MH_SAM_APDU [20:44:26]CAPDU: 80 13 01 00 [20:44:26]Write to MH i2c: E2 08 00 4B 08 80 13 01 00 00 00 00 00 D0 [20:44:26]Write i2c OK [20:44:26]MH_I2C_Read... [20:44:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:44:26]Read from MH i2c: E2 [20:44:26]MH_I2C_Read... [20:44:26]Read from MH i2c: E2 0E 00 [20:44:26]MH_I2C_Read... [20:44:26]Read from MH i2c: E2 0E 00 4B 08 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 9C [20:44:26]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [20:44:26]wFMCommunicate OK [20:44:26]SAM_PROTO_GetShiftState done [20:44:26]FM_GetShiftState done [20:44:26]opened in 1717373173 [20:44:26]opened+sec_in_day 1717459573 [20:44:26]quantity*price = 8500 [20:44:26]sum+1 = 8501 [20:44:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 85.00 НСП 1% : 0.75 НДС 12% : 9.03 Наличными: 85.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 144 03.06.2024 20:44 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63886 ФПД: 199058622728950 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T204427&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63886&fm=199058622728950&tin=02508201610067®Number=0000000000092737&sum=8500 0 [20:44:27]StoreToDocumentArchive [20:44:27]shift 373 fd 63886 [20:44:27]save to /storage/0373/doc_00063886 [20:44:27]save last doc name /storage/0373/doc_00063886 to /storage/kkm_last_doc_name [20:44:27]save OK [20:44:27]Clear old archive folders... [20:44:27]ProcessDocumentItem done err = 0, tmpTLVsize=299 [20:44:27]tlvbuf is 00AEC190 [20:44:27]SAM_PROTO_ClearQueue [20:44:27]wFMCommunicate request_size=4 [20:44:27]MH_SAM_APDU [20:44:27]CAPDU: 80 09 00 00 [20:44:27]Write to MH i2c: E2 08 00 58 08 80 09 00 00 00 00 00 00 D2 [20:44:27]Write i2c OK [20:44:27]MH_I2C_Read... [20:44:27]Read from MH i2c: E2 [20:44:27]MH_I2C_Read... [20:44:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:44:27]Read from MH i2c: E2 03 00 [20:44:27]MH_I2C_Read... [20:44:27]Read from MH i2c: E2 03 00 58 08 00 90 00 D4 [20:44:27]RAPDU: 90 00 [20:44:27]wFMCommunicate OK [20:44:27]SAM_PROTO_ClearQueue done [20:44:27]KKMCreateOFDPacket [20:44:27]OFDProtocolAddRootSTLVToBuf [20:44:27]FM_MakeSignedData [20:44:27]FM_MakeSignedData [20:44:27]SAM_PROTO_SignData [20:44:27]wFMCommunicate request_size=4 [20:44:27]MH_SAM_APDU [20:44:27]CAPDU: 80 0D 01 02 [20:44:27]Write to MH i2c: E2 08 00 59 08 80 0D 01 02 00 00 00 00 DA [20:44:27]Write i2c OK [20:44:27]MH_I2C_Read... [20:44:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:44:27]Read from MH i2c: E2 [20:44:27]MH_I2C_Read... [20:44:27]Read from MH i2c: E2 03 00 [20:44:27]MH_I2C_Read... [20:44:27]Read from MH i2c: E2 03 00 59 08 00 90 00 D5 [20:44:27]RAPDU: 90 00 [20:44:27]wFMCommunicate OK [20:44:27]wFMCommunicate request_size=255 [20:44:27]MH_SAM_APDU [20:44:27]CAPDU: 80 0D 02 02 FA 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 2B 2B 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 [20:44:27]Write to MH i2c: E2 02 01 5A 08 80 0D 02 02 FA 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 2B 2B 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 00 00 08 [20:44:27]Write i2c OK [20:44:27]MH_I2C_Read... [20:44:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:44:27]Read from MH i2c: E2 [20:44:27]MH_I2C_Read... [20:44:27]Read from MH i2c: E2 03 00 [20:44:27]MH_I2C_Read... [20:44:27]Read from MH i2c: E2 03 00 5A 08 00 90 00 D6 [20:44:27]RAPDU: 90 00 [20:44:27]wFMCommunicate OK [20:44:27]wFMCommunicate request_size=58 [20:44:27]MH_SAM_APDU [20:44:27]CAPDU: 80 0D 02 02 35 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 8E F9 00 00 35 04 06 00 B5 0A F2 7F 4A F6 [20:44:27]Write to MH i2c: E2 3D 00 5B 08 80 0D 02 02 35 00 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 8E F9 00 00 35 04 06 00 B5 0A F2 7F 4A F6 00 00 C5 [20:44:27]Write i2c OK [20:44:27]MH_I2C_Read... [20:44:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:44:28]Read from MH i2c: E2 [20:44:28]MH_I2C_Read... [20:44:28]Read from MH i2c: E2 03 00 [20:44:28]MH_I2C_Read... [20:44:28]Read from MH i2c: E2 03 00 5B 08 00 90 00 D7 [20:44:28]RAPDU: 90 00 [20:44:28]wFMCommunicate OK [20:44:28]wFMCommunicate request_size=4 [20:44:28]MH_SAM_APDU [20:44:28]CAPDU: 80 0D 03 02 [20:44:28]Write to MH i2c: E2 08 00 5C 08 80 0D 03 02 00 00 00 00 DF [20:44:28]Write i2c OK [20:44:28]MH_I2C_Read... [20:44:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:44:28]Read from MH i2c: E2 [20:44:28]MH_I2C_Read... [20:44:28]Read from MH i2c: E2 0B 00 [20:44:28]MH_I2C_Read... [20:44:28]Read from MH i2c: E2 0B 00 5C 08 00 D3 E9 76 44 BF 13 0A 9C 90 00 CE [20:44:28]RAPDU: D3 E9 76 44 BF 13 0A 9C 90 00 [20:44:28]wFMCommunicate OK [20:44:28]SAM_PROTO_SignData done [20:44:28]FM_MakeSignedData done [20:44:28]CreateOFDProtocolMessage [20:44:28]wFMCommunicate request_size=4 [20:44:28]MH_SAM_APDU [20:44:28]CAPDU: 80 11 00 00 [20:44:28]Write to MH i2c: E2 08 00 5D 08 80 11 00 00 00 00 00 00 DF [20:44:28]Write i2c OK [20:44:28]MH_I2C_Read... [20:44:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:44:28]Read from MH i2c: E2 [20:44:28]MH_I2C_Read... [20:44:28]Read from MH i2c: E2 17 00 [20:44:28]MH_I2C_Read... [20:44:28]Read from MH i2c: E2 17 00 5D 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 31 [20:44:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [20:44:28]wFMCommunicate OK [20:44:28]CreateOFDProtocolMessage done [20:44:28]OFDSenderStorePacket 63886 [20:44:28]StoreOFDPacket docnum=63886 [20:44:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 3F 01 00 00 61 75 37 01 76 36 5A 03 01 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 2B 2B 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 8E F9 00 00 35 04 06 00 B5 0A F2 7F 4A F6 D3 E9 76 44 BF 13 0A 9C [20:44:28]CheckFolder [20:44:28]dirname=/storage/ofd_packets [20:44:28]CheckFolder done [20:44:28]ProducePacketName [20:44:28]name=ofd_packets/00063886 [20:44:28]NVStorageSaveData ofd_packets/00063886 [20:44:28]File name is /storage/ofd_packets/00063886 [20:44:28]Write 349 bytes [20:44:28]NVStorageSaveData done [20:44:28]OFDSenderStorePacket done [20:44:28]KKMCreateOFDPacket done [20:44:28]NVStorageSaveData kkm_last_timestamp [20:44:28]File name is /storage/kkm_last_timestamp [20:44:28]Write 4 bytes [20:44:28]NVStorageSaveData done [20:44:28]ExternCall_PrintAddStr [20:44:28]wPrintStart [20:44:28]Write to MH i2c: 01 00 00 5E 08 66 [20:44:28]Write i2c OK [20:44:28]MH_I2C_Read... [20:44:28]Read from MH i2c: 01 [20:44:28]MH_I2C_Read... [20:44:28]Read from MH i2c: 01 07 00 [20:44:28]MH_I2C_Read... [20:44:28]Read from MH i2c: 01 07 00 5E 08 00 00 00 00 00 FF 0F 7B [20:44:28]RasterBufferAndPrint [20:44:28]line Счет N : (3)73454 [20:44:28]line ИНН: 02508201610067 [20:44:28]line Контрольно-Кассовый Чек [20:44:28]line ПРОДАЖА [20:44:28]line Товар: 4700000480364 [20:44:28]line Напиток энерг Nitro экзотик 0.45 ж/б [20:44:28]line 1.000 * 85.00 [20:44:28]line = 85.00 [20:44:28]line НДС 12% НСП 1% [20:44:28]line > о реализуемом товаре [20:44:28]line ИТОГО: 85.00 [20:44:28]line НСП 1% : 0.75 [20:44:28]line НДС 12% : 9.03 [20:44:28]line Наличными: 85.00 [20:44:28]line Безнал.: 0.00 [20:44:28]line Место: АЗС № 117 "Партнер Нефть" [20:44:28]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [20:44:28]line СНО: Общий режим [20:44:28]line Чек 144 03.06.2024 20:44 [20:44:28]line Смена: 373 ФФД: 1.0 [20:44:28]line ЗНМ: 0300000031 [20:44:28]line РНМ: 0000000000092737 [20:44:28]line Версия ККМ: 001 [20:44:28]line ФМ: 0000000000875074 [20:44:28]line ФД: 63886 [20:44:28]line ФПД: 199058622728950 [20:44:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T204427&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63886&fm=199058622728950&tin=02508201610067®Number=0000000000092737&sum=8500 [20:44:28]line 0 [20:44:28]OFD Sender: Processing packet 63886 [packets to send 14, broken 13] [20:44:28]ProducePacketName [20:44:28]name=ofd_packets/00063886 [20:44:28]OFD Sender: To server: pG, [20:44:28]CommunicateWithHost lk.salyk.kg:30040 [20:44:28]ConnectInit lk.salyk.kg [20:44:28]written 0, free lines is 4095 [20:44:28]Connected sock=11 [20: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 35 30 37 34 3F 01 00 00 61 75 37 01 76 36 5A 03 01 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 2B 2B 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 8E F9 00 00 35 04 06 00 B5 0A F2 7F 4A F6 D3 E9 76 44 BF 13 0A 9C [20:44:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 51 46 47 00 2A 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 35 30 37 34 10 04 04 00 8E F9 00 00 F4 03 04 00 FB D6 5D 66 B6 04 01 00 00 0C E1 56 F9 49 C5 EB 24 [20:44:28]CommunicateWithHost err = 0 [20:44:28]CheckOFDResponse [20:44:28]1017 (14) - 77093643461234 [20:44:28]1041 (16) - 0000000000875074 [20:44:28]1040 (4) - 63886 [20:44:28]1012 (4) - 03.06.2024 14:45 [20:44:28]1206 (1) - 0 [20:44:28]OFD Sender: Remove packet 63886 [20:44:28]ProducePacketName [20:44:28]name=ofd_packets/00063886 [20:44:28]NVStorageDeleteData [20:44:28]Write to MH i2c: 01 00 00 87 08 8F [20:44:28]Write i2c OK [20:44:28]MH_I2C_Read... [20:44:28]Read from MH i2c: 01 [20:44:28]MH_I2C_Read... [20:44:28]Read from MH i2c: 01 07 00 [20:44:28]MH_I2C_Read... [20:44:28]Read from MH i2c: 01 07 00 87 08 00 00 00 00 00 E6 0C 88 [20:44:28]RasterBufferAndPrint [20:44:28]line [20:44:28]line [20:44:28]line [20:44:28]line [20:44:28]line [20:44:28]written 0, free lines is 3310 [20:44:28]MH_Cut [20:44:28]Write to MH i2c: D1 01 00 8E 08 01 68 [20:44:28]Write i2c OK [20:44:28]MH_I2C_Read... [20:44:28]Read from MH i2c: D1 [20:44:28]MH_I2C_Read... [20:44:28]Read from MH i2c: D1 01 00 [20:44:28]MH_I2C_Read... [20:44:28]Read from MH i2c: D1 01 00 8E 08 00 67 [20:44:28]Write to MH i2c: 01 00 00 8F 08 97 [20:44:28]Write i2c OK [20:44:28]MH_I2C_Read... [20:44:29]OFD Sender: No OFD packet to send [20:44:29]*** Cut start [20:44:29]*** Partial cut [20:44:29]*** CUTSNS_PIN = 1 [20:44:29]*** CUTSNS_PIN = 0 [20:44:30]*** Brake cut motor [20:44:30]Read from MH i2c: 01 [20:44:30]MH_I2C_Read... [20:44:30]*** Stop cut motor [20:44:30]*** Cut end [20:44:30]Read from MH i2c: 01 07 00 [20:44:30]MH_I2C_Read... [20:44:30]Read from MH i2c: 01 07 00 8F 08 00 00 00 00 00 FF 0F AC [20:44:30]process_action close_receipt done [20:44:30]requested_data is exist [20:44:30]produce_requested_data [20:44:30]requested_item fm.sn is exist - process it [20:44:30]wFMCommunicate request_size=4 [20:44:30]MH_SAM_APDU [20:44:30]CAPDU: 80 11 00 00 [20:44:30]Write to MH i2c: E2 08 00 90 08 80 11 00 00 00 00 00 00 12 [20:44:30]Write i2c OK [20:44:30]MH_I2C_Read... [20:44:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:44:30]Read from MH i2c: E2 [20:44:30]MH_I2C_Read... [20:44:30]Read from MH i2c: E2 17 00 [20:44:30]MH_I2C_Read... [20:44:30]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 35 30 37 34 90 00 64 [20:44:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [20:44:30]wFMCommunicate OK [20:44:30]requested_item fd.num is exist - process it [20:44:30]SAM_PROTO_GetFieldsCounters [20:44:30]wFMCommunicate request_size=4 [20:44:30]MH_SAM_APDU [20:44:30]CAPDU: 80 13 00 00 [20:44:30]Write to MH i2c: E2 08 00 91 08 80 13 00 00 00 00 00 00 15 [20:44:30]Write i2c OK [20:44:30]MH_I2C_Read... [20:44:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:44:30]Read from MH i2c: E2 [20:44:30]MH_I2C_Read... [20:44:30]Read from MH i2c: E2 62 00 [20:44:30]MH_I2C_Read... [20:44:30]Read from MH i2c: E2 62 00 91 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 8E F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 90 00 00 00 5E 04 04 00 90 00 00 00 57 04 04 00 91 00 00 00 19 04 04 00 00 00 00 00 90 00 E5 [20: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 8E F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 90 00 00 00 5E 04 04 00 90 00 00 00 57 04 04 00 91 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:44:30]wFMCommunicate OK [20:44:30]SAM_PROTO_GetFieldsCounters done [20:44:30]requested_item shift.num is exist - process it [20:44:30]requested_item shift.opened is exist - process it [20:44:30]req_shift_opened [20:44:30]FM_GetShiftState [20:44:30]SAM_PROTO_GetShiftState [20:44:30]wFMCommunicate request_size=4 [20:44:30]MH_SAM_APDU [20:44:30]CAPDU: 80 13 01 00 [20:44:30]Write to MH i2c: E2 08 00 92 08 80 13 01 00 00 00 00 00 17 [20:44:30]Write i2c OK [20:44:30]MH_I2C_Read... [20:44:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:44:30]Read from MH i2c: E2 [20:44:30]MH_I2C_Read... [20:44:30]Read from MH i2c: E2 0E 00 [20:44:30]MH_I2C_Read... [20:44:30]Read from MH i2c: E2 0E 00 92 08 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 E3 [20:44:30]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [20:44:30]wFMCommunicate OK [20:44:30]SAM_PROTO_GetShiftState done [20:44:30]FM_GetShiftState done [20:44:30]req_shift_opened done [20:44:30]requested_item shift.open_date is exist - process it [20:44:30]req_shift_open_date [20:44:30]req_shift_open_date done [20:44:30]produce_requested_data done [20:44:30]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63886,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [20:44:30]process_action_free close_receipt [20:44:30]json_value_free [20:44:30]json_value_free done [20:44:30]process_json_proto returns [20:44:30]Send response to host [20:44:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63886,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [20:44:30]free response buf [20:44:30]execute_script done [20:44:30]execute_script returns [20:44:30]free content buf [20:44:30]Sock 7.Close socket [20:44:30]Sock 7.Thread stoped [20:44:34]OFD Sender: No OFD packet to send [20:44:39]OFD Sender: No OFD packet to send [20:44:44]OFD Sender: No OFD packet to send [20:44:49]OFD Sender: No OFD packet to send [20:44:54]OFD Sender: No OFD packet to send [20:44:59]OFD Sender: No OFD packet to send [20:45:04]OFD Sender: No OFD packet to send [20:45:09]OFD Sender: No OFD packet to send [20:45:14]OFD Sender: No OFD packet to send [20:45:19]OFD Sender: No OFD packet to send [20:45:24]OFD Sender: No OFD packet to send [20:45:29]OFD Sender: No OFD packet to send [20:45:34]OFD Sender: No OFD packet to send [20:45:39]OFD Sender: No OFD packet to send [20:45:44]OFD Sender: No OFD packet to send [20:45:49]OFD Sender: No OFD packet to send [20:45:54]OFD Sender: No OFD packet to send [20:45:59]OFD Sender: No OFD packet to send [20:46:04]OFD Sender: No OFD packet to send [20:46:09]OFD Sender: No OFD packet to send [20:46:14]OFD Sender: No OFD packet to send [20:46:19]OFD Sender: No OFD packet to send [20:46:24]OFD Sender: No OFD packet to send [20:46:29]OFD Sender: No OFD packet to send [20:46:34]OFD Sender: No OFD packet to send [20:46:39]OFD Sender: No OFD packet to send [20:46:44]OFD Sender: No OFD packet to send [20:46:49]OFD Sender: No OFD packet to send [20:46:54]OFD Sender: No OFD packet to send [20:46:59]OFD Sender: No OFD packet to send [20:47:04]OFD Sender: No OFD packet to send [20:47:09]OFD Sender: No OFD packet to send [20:47:14]OFD Sender: No OFD packet to send [20:47:19]OFD Sender: No OFD packet to send [20:47:24]OFD Sender: No OFD packet to send [20:47:29]OFD Sender: No OFD packet to send [20:47:34]OFD Sender: No OFD packet to send [20:47:39]OFD Sender: No OFD packet to send [20:47:44]OFD Sender: No OFD packet to send [20:47:49]OFD Sender: No OFD packet to send [20:47:54]OFD Sender: No OFD packet to send [20:47:59]OFD Sender: No OFD packet to send [20:48:04]OFD Sender: No OFD packet to send [20:48:09]OFD Sender: No OFD packet to send [20:48:14]OFD Sender: No OFD packet to send [20:48:19]OFD Sender: No OFD packet to send [20:48:24]OFD Sender: No OFD packet to send [20:48:29]OFD Sender: No OFD packet to send [20:48:34]OFD Sender: No OFD packet to send [20:48:39]OFD Sender: No OFD packet to send [20:48:44]OFD Sender: No OFD packet to send [20:48:49]OFD Sender: No OFD packet to send [20:48:54]OFD Sender: No OFD packet to send [20:48:59]OFD Sender: No OFD packet to send [20:49:04]OFD Sender: No OFD packet to send [20:49:09]OFD Sender: No OFD packet to send [20:49:14]OFD Sender: No OFD packet to send [20:49:19]OFD Sender: No OFD packet to send [20:49:24]OFD Sender: No OFD packet to send [20:49:29]OFD Sender: No OFD packet to send [20:49:34]OFD Sender: No OFD packet to send [20:49:39]OFD Sender: No OFD packet to send [20:49:43]accept exits with 9 [20:49:43]New connection [20:49:43]New thread 3066719588 created [20:49:43]Thread 3066576228 joined [20:49:43]Waiting for new connection... [20:49:43] Sock 9.Parse request [20:49:43]Sock 9.Check first char [20:49:43]Sock 9.First char is OK [20:49:43]request: POST /json_proto HTTP/1.0 [20:49:43]Method: POST [20:49:43]URL: /json_proto [20:49:43]Method is POST - this is cgi request [20:49:43]url: /json_proto [20:49:43]query_string will be loaded in cgi processing [20:49:43]execute_cgi json_proto POST (null) [20:49:43]execute_cgi path=json_proto method=POST [20:49:43]POST find Content-Length [20:49:43]Host: 172.17.60.69:8080 [20:49:43]Content-Length: 1136 [20:49:43]Content-Type: application/json [20:49:43] [20:49:43]POST finish read [20:49:43]Found Content-Length = 1136 [20:49:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73455", "tax_sys" : 0, "items" : [ { "code": "48741200", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001571528", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043F\u0435\u0440\u0441\u0438\u043A \u041F\u042D\u0422 1,0 \u043B", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "42113164", "name": "\u0416\u0435\u0432 Orbit White Spearmint", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 285.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:49:43]execute_script... [20:49:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73455", "tax_sys" : 0, "items" : [ { "code": "48741200", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001571528", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043F\u0435\u0440\u0441\u0438\u043A \u041F\u042D\u0422 1,0 \u043B", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "42113164", "name": "\u0416\u0435\u0432 Orbit White Spearmint", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 285.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:49:43]POST & json_proto [20:49:43]process_json_proto [20:49:43]json parsed OK: [20:49:43]protocol is kg_v1.0 [20:49:43]action value=close_receipt [20:49:43]process_action close_receipt [20:49:43]cmd_close_receipt [20:49:43]MH_GetDate [20:49:43]Write to MH i2c: F0 00 00 93 08 8A [20:49:43]Write i2c OK [20:49:43]MH_I2C_Read... [20:49:43]Read from MH i2c: F0 [20:49:43]MH_I2C_Read... [20:49:43]Read from MH i2c: F0 09 00 [20:49:43]MH_I2C_Read... [20:49:43]Read from MH i2c: F0 09 00 93 08 00 68 2C 5E 66 6A 96 4A 66 9B [20:49:43]GetLastDocTimeStamp 1717447467 [20:49:43]current date 1717447784 [20:49:43]FM_GetShiftState [20:49:43]SAM_PROTO_GetShiftState [20:49:43]wFMCommunicate request_size=4 [20:49:43]MH_SAM_APDU [20:49:43]CAPDU: 80 13 01 00 [20:49:43]Write to MH i2c: E2 08 00 94 08 80 13 01 00 00 00 00 00 19 [20:49:43]Write i2c OK [20:49:43]MH_I2C_Read... [20:49:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:49:44]Read from MH i2c: E2 [20:49:44]MH_I2C_Read... [20:49:44]Read from MH i2c: E2 0E 00 [20:49:44]MH_I2C_Read... [20:49:44]Read from MH i2c: E2 0E 00 94 08 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 E5 [20:49:44]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [20:49:44]wFMCommunicate OK [20:49:44]SAM_PROTO_GetShiftState done [20:49:44]FM_GetShiftState done [20:49:44]opened in 1717373173 [20:49:44]opened+sec_in_day 1717459573 [20:49:44]quantity*price = 14000 [20:49:44]sum+1 = 14001 [20:49:44]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870001571528 Вода ASU пит н.газ персик ПЭТ 1,0 л 1.000 * 100.00 = 100.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 42113164 Жев Orbit White Spearmint 1.000 * 45.00 = 45.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 285.00 НСП 1% : 2.52 НДС 12% : 30.27 Наличными: 285.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 145 03.06.2024 20:49 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63887 ФПД: 265301597600176 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T204944&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63887&fm=265301597600176&tin=02508201610067®Number=0000000000092737&sum=28500 0 [20:49:45]StoreToDocumentArchive [20:49:45]shift 373 fd 63887 [20:49:45]save to /storage/0373/doc_00063887 [20:49:45]save last doc name /storage/0373/doc_00063887 to /storage/kkm_last_doc_name [20:49:45]save OK [20:49:45]Clear old archive folders... [20:49:45]ProcessDocumentItem done err = 0, tmpTLVsize=491 [20:49:45]tlvbuf is 00AEACA0 [20:49:45]SAM_PROTO_ClearQueue [20:49:45]wFMCommunicate request_size=4 [20:49:45]MH_SAM_APDU [20:49:45]CAPDU: 80 09 00 00 [20:49:45]Write to MH i2c: E2 08 00 A1 08 80 09 00 00 00 00 00 00 1B [20:49:45]Write i2c OK [20:49:45]MH_I2C_Read... [20:49:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:49:45]Read from MH i2c: E2 [20:49:45]MH_I2C_Read... [20:49:45]Read from MH i2c: E2 03 00 [20:49:45]MH_I2C_Read... [20:49:45]Read from MH i2c: E2 03 00 A1 08 00 90 00 1D [20:49:45]RAPDU: 90 00 [20:49:45]wFMCommunicate OK [20:49:45]SAM_PROTO_ClearQueue done [20:49:45]KKMCreateOFDPacket [20:49:45]OFDProtocolAddRootSTLVToBuf [20:49:45]FM_MakeSignedData [20:49:45]FM_MakeSignedData [20:49:45]SAM_PROTO_SignData [20:49:45]wFMCommunicate request_size=4 [20:49:45]MH_SAM_APDU [20:49:45]CAPDU: 80 0D 01 02 [20:49:45]Write to MH i2c: E2 08 00 A2 08 80 0D 01 02 00 00 00 00 23 [20:49:45]Write i2c OK [20:49:45]MH_I2C_Read... [20:49:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:49:45]Read from MH i2c: E2 [20:49:45]MH_I2C_Read... [20:49:45]Read from MH i2c: E2 03 00 [20:49:45]MH_I2C_Read... [20:49:45]Read from MH i2c: E2 03 00 A2 08 00 90 00 1E [20:49:45]RAPDU: 90 00 [20:49:45]wFMCommunicate OK [20:49:45]wFMCommunicate request_size=255 [20:49:45]MH_SAM_APDU [20:49:45]CAPDU: 80 0D 02 02 FA 03 00 EB 01 1E 04 01 00 01 23 04 5E 00 8A 04 08 00 34 38 37 34 31 32 30 30 06 04 1F 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 32 38 06 04 38 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 30 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5B 00 8A 04 08 00 34 32 31 31 33 31 36 [20:49:45]Write to MH i2c: E2 02 01 A3 08 80 0D 02 02 FA 00 03 00 EB 01 1E 04 01 00 01 23 04 5E 00 8A 04 08 00 34 38 37 34 31 32 30 30 06 04 1F 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 32 38 06 04 38 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 30 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5B 00 8A 04 08 00 34 32 31 31 33 31 36 00 00 C6 [20:49:45]Write i2c OK [20:49:45]MH_I2C_Read... [20:49:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:49:45]Read from MH i2c: E2 [20:49:45]MH_I2C_Read... [20:49:45]Read from MH i2c: E2 03 00 [20:49:45]MH_I2C_Read... [20:49:45]Read from MH i2c: E2 03 00 A3 08 00 90 00 1F [20:49:45]RAPDU: 90 00 [20:49:45]wFMCommunicate OK [20:49:45]wFMCommunicate request_size=250 [20:49:45]MH_SAM_APDU [20:49:45]CAPDU: 80 0D 02 02 F5 34 06 04 1C 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 53 70 65 61 72 6D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 6F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 0B 00 00 00 00 07 04 06 00 54 6F 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 68 2C 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 8F F9 00 00 35 04 06 00 F1 4A 57 7B B9 B0 [20:49:45]Write to MH i2c: E2 FD 00 A4 08 80 0D 02 02 F5 00 34 06 04 1C 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 53 70 65 61 72 6D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 6F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 0B 00 00 00 00 07 04 06 00 54 6F 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 68 2C 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 8F F9 00 00 35 04 06 00 F1 4A 57 7B B9 B0 00 00 40 [20:49:45]Write i2c OK [20:49:45]MH_I2C_Read... [20:49:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:49:46]Read from MH i2c: E2 [20:49:46]MH_I2C_Read... [20:49:46]Read from MH i2c: E2 03 00 [20:49:46]MH_I2C_Read... [20:49:46]Read from MH i2c: E2 03 00 A4 08 00 90 00 20 [20:49:46]RAPDU: 90 00 [20:49:46]wFMCommunicate OK [20:49:46]wFMCommunicate request_size=4 [20:49:46]MH_SAM_APDU [20:49:46]CAPDU: 80 0D 03 02 [20:49:46]Write to MH i2c: E2 08 00 A5 08 80 0D 03 02 00 00 00 00 28 [20:49:46]Write i2c OK [20:49:46]MH_I2C_Read... [20:49:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:49:46]Read from MH i2c: E2 [20:49:46]MH_I2C_Read... [20:49:46]Read from MH i2c: E2 0B 00 [20:49:46]MH_I2C_Read... [20:49:46]Read from MH i2c: E2 0B 00 A5 08 00 3D 97 CA BE 2A B2 AA CD 90 00 D8 [20:49:46]RAPDU: 3D 97 CA BE 2A B2 AA CD 90 00 [20:49:46]wFMCommunicate OK [20:49:46]SAM_PROTO_SignData done [20:49:46]FM_MakeSignedData done [20:49:46]CreateOFDProtocolMessage [20:49:46]wFMCommunicate request_size=4 [20:49:46]MH_SAM_APDU [20:49:46]CAPDU: 80 11 00 00 [20:49:46]Write to MH i2c: E2 08 00 A6 08 80 11 00 00 00 00 00 00 28 [20:49:46]Write i2c OK [20:49:46]MH_I2C_Read... [20:49:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:49:46]Read from MH i2c: E2 [20:49:46]MH_I2C_Read... [20:49:46]Read from MH i2c: E2 17 00 [20:49:46]MH_I2C_Read... [20:49:46]Read from MH i2c: E2 17 00 A6 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 7A [20:49:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [20:49:46]wFMCommunicate OK [20:49:46]CreateOFDProtocolMessage done [20:49:46]OFDSenderStorePacket 63887 [20:49:46]StoreOFDPacket docnum=63887 [20:49:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 FF 01 00 00 73 31 F7 01 29 F6 5A 03 01 00 03 00 EB 01 1E 04 01 00 01 23 04 5E 00 8A 04 08 00 34 38 37 34 31 32 30 30 06 04 1F 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 32 38 06 04 38 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 30 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5B 00 8A 04 08 00 34 32 31 31 33 31 36 34 06 04 1C 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 53 70 65 61 72 6D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 6F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 0B 00 00 00 00 07 04 06 00 54 6F 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 68 2C 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 8F F9 00 00 35 04 06 00 F1 4A 57 7B B9 B0 3D 97 CA BE 2A B2 AA CD [20:49:46]CheckFolder [20:49:46]dirname=/storage/ofd_packets [20:49:46]CheckFolder done [20:49:46]ProducePacketName [20:49:46]name=ofd_packets/00063887 [20:49:46]NVStorageSaveData ofd_packets/00063887 [20:49:46]File name is /storage/ofd_packets/00063887 [20:49:46]Write 541 bytes [20:49:46]NVStorageSaveData done [20:49:46]OFDSenderStorePacket done [20:49:46]KKMCreateOFDPacket done [20:49:46]NVStorageSaveData kkm_last_timestamp [20:49:46]File name is /storage/kkm_last_timestamp [20:49:46]Write 4 bytes [20:49:46]NVStorageSaveData done [20:49:46]ExternCall_PrintAddStr [20:49:46]wPrintStart [20:49:46]Write to MH i2c: 01 00 00 A7 08 AF [20:49:46]Write i2c OK [20:49:46]MH_I2C_Read... [20:49:46]Read from MH i2c: 01 [20:49:46]MH_I2C_Read... [20:49:46]Read from MH i2c: 01 07 00 [20:49:46]MH_I2C_Read... [20:49:46]Read from MH i2c: 01 07 00 A7 08 00 00 00 00 00 FF 0F C4 [20:49:46]RasterBufferAndPrint [20:49:46]line Счет N : (3)73455 [20:49:46]line ИНН: 02508201610067 [20:49:46]line Контрольно-Кассовый Чек [20:49:46]line ПРОДАЖА [20:49:46]line Товар: 48741200 [20:49:46]line Сигареты Winston Silver [20:49:46]line 1.000 * 140.00 [20:49:46]line = 140.00 [20:49:46]line НДС 12% НСП 1% [20:49:46]line > о реализуемом товаре [20:49:46]line Товар: 4870001571528 [20:49:46]line Вода ASU пит н.газ персик ПЭТ 1,0 л [20:49:46]line 1.000 * 100.00 [20:49:46]line = 100.00 [20:49:46]line НДС 12% НСП 1% [20:49:46]line > о реализуемом товаре [20:49:46]line Товар: 42113164 [20:49:46]line Жев Orbit White Spearmint [20:49:46]line 1.000 * 45.00 [20:49:46]line = 45.00 [20:49:46]line НДС 12% НСП 1% [20:49:46]line > о реализуемом товаре [20:49:46]line ИТОГО: 285.00 [20:49:46]line НСП 1% : 2.52 [20:49:46]line НДС 12% : 30.27 [20:49:46]line Наличными: 285.00 [20:49:46]line Безнал.: 0.00 [20:49:46]line Место: АЗС № 117 "Партнер Нефть" [20:49:46]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [20:49:46]line СНО: Общий режим [20:49:46]line Чек 145 03.06.2024 20:49 [20:49:46]line Смена: 373 ФФД: 1.0 [20:49:46]line ЗНМ: 0300000031 [20:49:46]line РНМ: 0000000000092737 [20:49:46]line Версия ККМ: 001 [20:49:46]line ФМ: 0000000000875074 [20:49:46]line ФД: 63887 [20:49:46]line ФПД: 265301597600176 [20:49:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T204944&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63887&fm=265301597600176&tin=02508201610067®Number=0000000000092737&sum=28500 [20:49:46]line 0 [20:49:46]written 0, free lines is 4095 [20:49:46]OFD Sender: Processing packet 63887 [packets to send 14, broken 13] [20:49:46]ProducePacketName [20:49:46]name=ofd_packets/00063887 [20:49:46]OFD Sender: To server: pG, [20:49:46]CommunicateWithHost lk.salyk.kg:30040 [20:49:46]ConnectInit lk.salyk.kg [20:49:46]Connected sock=10 [20:49:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 FF 01 00 00 73 31 F7 01 29 F6 5A 03 01 00 03 00 EB 01 1E 04 01 00 01 23 04 5E 00 8A 04 08 00 34 38 37 34 31 32 30 30 06 04 1F 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 32 38 06 04 38 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 30 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5B 00 8A 04 08 00 34 32 31 31 33 31 36 34 06 04 1C 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 53 70 65 61 72 6D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 6F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 0B 00 00 00 00 07 04 06 00 54 6F 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 68 2C 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 8F F9 00 00 35 04 06 00 F1 4A 57 7B B9 B0 3D 97 CA BE 2A B2 AA CD [20:49:46]Write to MH i2c: 01 00 00 DC 08 E4 [20:49:46]Write i2c OK [20:49:46]MH_I2C_Read... [20:49:46]Read from MH i2c: 01 [20:49:46]MH_I2C_Read... [20:49:46]Read from MH i2c: 01 07 00 [20:49:46]MH_I2C_Read... [20:49:46]Read from MH i2c: 01 07 00 DC 08 00 00 00 00 00 38 0C 2F [20:49:46]RasterBufferAndPrint [20:49:46]line [20:49:46]line [20:49:46]line [20:49:46]line [20:49:46]line [20:49:46]written 0, free lines is 3134 [20:49:46]MH_Cut [20:49:46]Write to MH i2c: D1 01 00 E3 08 01 BD [20:49:46]Write i2c OK [20:49:46]MH_I2C_Read... [20:49:46]Read from MH i2c: D1 [20:49:46]MH_I2C_Read... [20:49:46]Read from MH i2c: D1 01 00 [20:49:46]MH_I2C_Read... [20:49:46]Read from MH i2c: D1 01 00 E3 08 00 BC [20:49:46]Write to MH i2c: 01 00 00 E4 08 EC [20:49:46]Write i2c OK [20:49:46]MH_I2C_Read... [20:49:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 CF 42 47 00 ED 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 35 30 37 34 10 04 04 00 8F F9 00 00 F4 03 04 00 39 D8 5D 66 B6 04 01 00 00 0B 3C 0A BE A2 9E 00 9F [20:49:46]CommunicateWithHost err = 0 [20:49:46]CheckOFDResponse [20:49:46]1017 (14) - 77093643461234 [20:49:46]1041 (16) - 0000000000875074 [20:49:46]1040 (4) - 63887 [20:49:46]1012 (4) - 03.06.2024 14:50 [20:49:46]1206 (1) - 0 [20:49:46]OFD Sender: Remove packet 63887 [20:49:46]ProducePacketName [20:49:46]name=ofd_packets/00063887 [20:49:46]NVStorageDeleteData [20:49:47]OFD Sender: No OFD packet to send [20:49:47]*** Cut start [20:49:47]*** Partial cut [20:49:47]*** CUTSNS_PIN = 1 [20:49:47]*** CUTSNS_PIN = 0 [20:49:48]*** Brake cut motor [20:49:48]Read from MH i2c: 01 [20:49:48]MH_I2C_Read... [20:49:48]*** Stop cut motor [20:49:48]*** Cut end [20:49:48]Read from MH i2c: 01 07 00 [20:49:48]MH_I2C_Read... [20:49:48]Read from MH i2c: 01 07 00 E4 08 00 00 00 00 00 FF 0F 01 [20:49:48]process_action close_receipt done [20:49:48]requested_data is exist [20:49:48]produce_requested_data [20:49:48]requested_item fm.sn is exist - process it [20:49:48]wFMCommunicate request_size=4 [20:49:48]MH_SAM_APDU [20:49:48]CAPDU: 80 11 00 00 [20:49:48]Write to MH i2c: E2 08 00 E5 08 80 11 00 00 00 00 00 00 67 [20:49:48]Write i2c OK [20:49:48]MH_I2C_Read... [20:49:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:49:48]Read from MH i2c: E2 [20:49:48]MH_I2C_Read... [20:49:48]Read from MH i2c: E2 17 00 [20:49:48]MH_I2C_Read... [20:49:48]Read from MH i2c: E2 17 00 E5 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 B9 [20:49:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [20:49:48]wFMCommunicate OK [20:49:48]requested_item fd.num is exist - process it [20:49:48]SAM_PROTO_GetFieldsCounters [20:49:48]wFMCommunicate request_size=4 [20:49:48]MH_SAM_APDU [20:49:48]CAPDU: 80 13 00 00 [20:49:48]Write to MH i2c: E2 08 00 E6 08 80 13 00 00 00 00 00 00 6A [20:49:48]Write i2c OK [20:49:48]MH_I2C_Read... [20:49:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:49:48]Read from MH i2c: E2 [20:49:48]MH_I2C_Read... [20:49:48]Read from MH i2c: E2 62 00 [20:49:48]MH_I2C_Read... [20:49:48]Read from MH i2c: E2 62 00 E6 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 8F F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 91 00 00 00 5E 04 04 00 91 00 00 00 57 04 04 00 92 00 00 00 19 04 04 00 00 00 00 00 90 00 3E [20:49: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 8F F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 91 00 00 00 5E 04 04 00 91 00 00 00 57 04 04 00 92 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:49:48]wFMCommunicate OK [20:49:48]SAM_PROTO_GetFieldsCounters done [20:49:48]requested_item shift.num is exist - process it [20:49:48]requested_item shift.opened is exist - process it [20:49:48]req_shift_opened [20:49:48]FM_GetShiftState [20:49:48]SAM_PROTO_GetShiftState [20:49:48]wFMCommunicate request_size=4 [20:49:48]MH_SAM_APDU [20:49:48]CAPDU: 80 13 01 00 [20:49:48]Write to MH i2c: E2 08 00 E7 08 80 13 01 00 00 00 00 00 6C [20:49:48]Write i2c OK [20:49:48]MH_I2C_Read... [20:49:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:49:48]Read from MH i2c: E2 [20:49:48]MH_I2C_Read... [20:49:48]Read from MH i2c: E2 0E 00 [20:49:48]MH_I2C_Read... [20:49:48]Read from MH i2c: E2 0E 00 E7 08 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 38 [20:49:48]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [20:49:48]wFMCommunicate OK [20:49:48]SAM_PROTO_GetShiftState done [20:49:48]FM_GetShiftState done [20:49:48]req_shift_opened done [20:49:48]requested_item shift.open_date is exist - process it [20:49:48]req_shift_open_date [20:49:48]req_shift_open_date done [20:49:48]produce_requested_data done [20:49:48]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63887,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [20:49:48]process_action_free close_receipt [20:49:48]json_value_free [20:49:48]json_value_free done [20:49:48]process_json_proto returns [20:49:48]Send response to host [20:49:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63887,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [20:49:48]free response buf [20:49:48]execute_script done [20:49:48]execute_script returns [20:49:48]free content buf [20:49:48]Sock 9.Close socket [20:49:48]Sock 9.Thread stoped [20:49:52]OFD Sender: No OFD packet to send [20:49:57]OFD Sender: No OFD packet to send [20:50:02]OFD Sender: No OFD packet to send [20:50:07]OFD Sender: No OFD packet to send [20:50:12]OFD Sender: No OFD packet to send [20:50:17]OFD Sender: No OFD packet to send [20:50:22]OFD Sender: No OFD packet to send [20:50:27]OFD Sender: No OFD packet to send [20:50:32]OFD Sender: No OFD packet to send [20:50:37]OFD Sender: No OFD packet to send [20:50:42]OFD Sender: No OFD packet to send [20:50:47]OFD Sender: No OFD packet to send [20:50:52]OFD Sender: No OFD packet to send [20:50:57]OFD Sender: No OFD packet to send [20:51:02]OFD Sender: No OFD packet to send [20:51:07]OFD Sender: No OFD packet to send [20:51:12]OFD Sender: No OFD packet to send [20:51:17]OFD Sender: No OFD packet to send [20:51:22]OFD Sender: No OFD packet to send [20:51:27]OFD Sender: No OFD packet to send [20:51:32]OFD Sender: No OFD packet to send [20:51:37]OFD Sender: No OFD packet to send [20:51:42]OFD Sender: No OFD packet to send [20:51:47]OFD Sender: No OFD packet to send [20:51:52]OFD Sender: No OFD packet to send [20:51:57]OFD Sender: No OFD packet to send [20:52:02]OFD Sender: No OFD packet to send [20:52:07]OFD Sender: No OFD packet to send [20:52:12]OFD Sender: No OFD packet to send [20:52:17]OFD Sender: No OFD packet to send [20:52:22]OFD Sender: No OFD packet to send [20:52:27]OFD Sender: No OFD packet to send [20:52:32]OFD Sender: No OFD packet to send [20:52:37]OFD Sender: No OFD packet to send [20:52:42]OFD Sender: No OFD packet to send [20:52:47]OFD Sender: No OFD packet to send [20:52:52]OFD Sender: No OFD packet to send [20:52:57]OFD Sender: No OFD packet to send [20:53:02]OFD Sender: No OFD packet to send [20:53:07]OFD Sender: No OFD packet to send [20:53:12]OFD Sender: No OFD packet to send [20:53:17]OFD Sender: No OFD packet to send [20:53:22]OFD Sender: No OFD packet to send [20:53:27]OFD Sender: No OFD packet to send [20:53:32]OFD Sender: No OFD packet to send [20:53:37]OFD Sender: No OFD packet to send [20:53:42]OFD Sender: No OFD packet to send [20:53:47]OFD Sender: No OFD packet to send [20:53:52]OFD Sender: No OFD packet to send [20:53:57]OFD Sender: No OFD packet to send [20:54:02]OFD Sender: No OFD packet to send [20:54:07]OFD Sender: No OFD packet to send [20:54:12]OFD Sender: No OFD packet to send [20:54:17]OFD Sender: No OFD packet to send [20:54:22]OFD Sender: No OFD packet to send [20:54:27]OFD Sender: No OFD packet to send [20:54:32]OFD Sender: No OFD packet to send [20:54:37]OFD Sender: No OFD packet to send [20:54:39]accept exits with 7 [20:54:39]New connection [20:54:39]New thread 3066576228 created [20:54:39]Thread 3066719588 joined [20:54:39]Waiting for new connection... [20:54:39] Sock 7.Parse request [20:54:39]Sock 7.Check first char [20:54:39]Sock 7.First char is OK [20:54:39]request: POST /json_proto HTTP/1.0 [20:54:39]Method: POST [20:54:39]URL: /json_proto [20:54:39]Method is POST - this is cgi request [20:54:39]url: /json_proto [20:54:39]query_string will be loaded in cgi processing [20:54:39]execute_cgi json_proto POST (null) [20:54:39]execute_cgi path=json_proto method=POST [20:54:39]POST find Content-Length [20:54:39]Host: 172.17.60.69:8080 [20:54:39]Content-Length: 909 [20:54:39]Content-Type: application/json [20:54:39] [20:54:39]POST finish read [20:54:39]Found Content-Length = 909 [20:54:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73456", "tax_sys" : 0, "items" : [ { "code": "5053990107384", "name": "\u0427\u0438\u043F\u0441\u044B \u041F\u0440\u0438\u043D\u0433\u043B\u0441 \u0441\u043C\u0435\u0442\u0430\u043D\u0430 \u0438 \u043B\u0443\u043A 40\u0433", "price" : 170.00, "quantity" : 2.000, "sum" : 340.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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 340.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:54:39]execute_script... [20:54:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73456", "tax_sys" : 0, "items" : [ { "code": "5053990107384", "name": "\u0427\u0438\u043F\u0441\u044B \u041F\u0440\u0438\u043D\u0433\u043B\u0441 \u0441\u043C\u0435\u0442\u0430\u043D\u0430 \u0438 \u043B\u0443\u043A 40\u0433", "price" : 170.00, "quantity" : 2.000, "sum" : 340.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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 340.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:54:39]POST & json_proto [20:54:39]process_json_proto [20:54:39]json parsed OK: [20:54:39]protocol is kg_v1.0 [20:54:39]action value=close_receipt [20:54:39]process_action close_receipt [20:54:39]cmd_close_receipt [20:54:39]MH_GetDate [20:54:39]Write to MH i2c: F0 00 00 E8 08 DF [20:54:39]Write i2c OK [20:54:39]MH_I2C_Read... [20:54:39]Read from MH i2c: F0 [20:54:39]MH_I2C_Read... [20:54:39]Read from MH i2c: F0 09 00 [20:54:39]MH_I2C_Read... [20:54:39]Read from MH i2c: F0 09 00 E8 08 00 90 2D 5E 66 6A 96 4A 66 19 [20:54:39]GetLastDocTimeStamp 1717447784 [20:54:39]current date 1717448080 [20:54:39]FM_GetShiftState [20:54:39]SAM_PROTO_GetShiftState [20:54:39]wFMCommunicate request_size=4 [20:54:39]MH_SAM_APDU [20:54:39]CAPDU: 80 13 01 00 [20:54:39]Write to MH i2c: E2 08 00 E9 08 80 13 01 00 00 00 00 00 6E [20:54:39]Write i2c OK [20:54:39]MH_I2C_Read... [20:54:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:54:39]Read from MH i2c: E2 [20:54:39]MH_I2C_Read... [20:54:39]Read from MH i2c: E2 0E 00 [20:54:39]MH_I2C_Read... [20:54:39]Read from MH i2c: E2 0E 00 E9 08 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 3A [20:54:39]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [20:54:39]wFMCommunicate OK [20:54:39]SAM_PROTO_GetShiftState done [20:54:39]FM_GetShiftState done [20:54:39]opened in 1717373173 [20:54:39]opened+sec_in_day 1717459573 [20:54:39]quantity*price = 34000 [20:54:39]sum+1 = 34001 [20:54:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 340.00 НСП 1% : 3.01 НДС 12% : 36.11 Наличными: 0.00 Безнал.: 340.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 146 03.06.2024 20:54 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000875074 ФД: 63888 ФПД: 212703632955751 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T205440&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63888&fm=212703632955751&tin=02508201610067®Number=0000000000092737&sum=34000 0 [20:54:40]StoreToDocumentArchive [20:54:40]shift 373 fd 63888 [20:54:40]save to /storage/0373/doc_00063888 [20:54:40]save last doc name /storage/0373/doc_00063888 to /storage/kkm_last_doc_name [20:54:40]save OK [20:54:40]Clear old archive folders... [20:54:40]ProcessDocumentItem done err = 0, tmpTLVsize=297 [20:54:40]tlvbuf is 00AEE490 [20:54:40]SAM_PROTO_ClearQueue [20:54:40]wFMCommunicate request_size=4 [20:54:40]MH_SAM_APDU [20:54:40]CAPDU: 80 09 00 00 [20:54:40]Write to MH i2c: E2 08 00 F6 08 80 09 00 00 00 00 00 00 70 [20:54:40]Write i2c OK [20:54:40]MH_I2C_Read... [20:54:40]Read from MH i2c: E2 [20:54:40]MH_I2C_Read... [20:54:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:54:40]Read from MH i2c: E2 03 00 [20:54:40]MH_I2C_Read... [20:54:40]Read from MH i2c: E2 03 00 F6 08 00 90 00 72 [20:54:40]RAPDU: 90 00 [20:54:40]wFMCommunicate OK [20:54:40]SAM_PROTO_ClearQueue done [20:54:40]KKMCreateOFDPacket [20:54:40]OFDProtocolAddRootSTLVToBuf [20:54:40]FM_MakeSignedData [20:54:40]FM_MakeSignedData [20:54:40]SAM_PROTO_SignData [20:54:40]wFMCommunicate request_size=4 [20:54:40]MH_SAM_APDU [20:54:40]CAPDU: 80 0D 01 02 [20:54:40]Write to MH i2c: E2 08 00 F7 08 80 0D 01 02 00 00 00 00 78 [20:54:40]Write i2c OK [20:54:40]MH_I2C_Read... [20:54:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:54:40]Read from MH i2c: E2 [20:54:40]MH_I2C_Read... [20:54:40]Read from MH i2c: E2 03 00 [20:54:40]MH_I2C_Read... [20:54:40]Read from MH i2c: E2 03 00 F7 08 00 90 00 73 [20:54:40]RAPDU: 90 00 [20:54:40]wFMCommunicate OK [20:54:40]wFMCommunicate request_size=255 [20:54:40]MH_SAM_APDU [20:54:40]CAPDU: 80 0D 02 02 FA 03 00 29 01 1E 04 01 00 01 23 04 7B 00 8A 04 0D 00 35 30 35 33 39 39 30 31 30 37 33 38 34 06 04 37 00 D0 A7 D0 B8 D0 BF D1 81 D1 8B 20 D0 9F D1 80 D0 B8 D0 BD D0 B3 D0 BB D1 81 20 D1 81 D0 BC D0 B5 D1 82 D0 B0 D0 BD D0 B0 20 D0 B8 20 D0 BB D1 83 D0 BA 20 34 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 D0 84 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D0 84 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 90 2D 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 [20:54:40]Write to MH i2c: E2 02 01 F8 08 80 0D 02 02 FA 00 03 00 29 01 1E 04 01 00 01 23 04 7B 00 8A 04 0D 00 35 30 35 33 39 39 30 31 30 37 33 38 34 06 04 37 00 D0 A7 D0 B8 D0 BF D1 81 D1 8B 20 D0 9F D1 80 D0 B8 D0 BD D0 B3 D0 BB D1 81 20 D1 81 D0 BC D0 B5 D1 82 D0 B0 D0 BD D0 B0 20 D0 B8 20 D0 BB D1 83 D0 BA 20 34 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 D0 84 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D0 84 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 90 2D 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 00 00 A9 [20:54:40]Write i2c OK [20:54:40]MH_I2C_Read... [20:54:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:54:40]Read from MH i2c: E2 [20:54:40]MH_I2C_Read... [20:54:40]Read from MH i2c: E2 03 00 [20:54:40]MH_I2C_Read... [20:54:40]Read from MH i2c: E2 03 00 F8 08 00 90 00 74 [20:54:40]RAPDU: 90 00 [20:54:40]wFMCommunicate OK [20:54:40]wFMCommunicate request_size=56 [20:54:40]MH_SAM_APDU [20:54:40]CAPDU: 80 0D 02 02 33 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 90 F9 00 00 35 04 06 00 C1 73 EC 7C 19 67 [20:54:40]Write to MH i2c: E2 3B 00 F9 08 80 0D 02 02 33 00 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 90 F9 00 00 35 04 06 00 C1 73 EC 7C 19 67 00 00 AD [20:54:40]Write i2c OK [20:54:40]MH_I2C_Read... [20:54:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:54:41]Read from MH i2c: E2 [20:54:41]MH_I2C_Read... [20:54:41]Read from MH i2c: E2 03 00 [20:54:41]MH_I2C_Read... [20:54:41]Read from MH i2c: E2 03 00 F9 08 00 90 00 75 [20:54:41]RAPDU: 90 00 [20:54:41]wFMCommunicate OK [20:54:41]wFMCommunicate request_size=4 [20:54:41]MH_SAM_APDU [20:54:41]CAPDU: 80 0D 03 02 [20:54:41]Write to MH i2c: E2 08 00 FA 08 80 0D 03 02 00 00 00 00 7D [20:54:41]Write i2c OK [20:54:41]MH_I2C_Read... [20:54:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:54:41]Read from MH i2c: E2 [20:54:41]MH_I2C_Read... [20:54:41]Read from MH i2c: E2 0B 00 [20:54:41]MH_I2C_Read... [20:54:41]Read from MH i2c: E2 0B 00 FA 08 00 76 39 65 48 B2 72 A4 4B 90 00 ED [20:54:41]RAPDU: 76 39 65 48 B2 72 A4 4B 90 00 [20:54:41]wFMCommunicate OK [20:54:41]SAM_PROTO_SignData done [20:54:41]FM_MakeSignedData done [20:54:41]CreateOFDProtocolMessage [20:54:41]wFMCommunicate request_size=4 [20:54:41]MH_SAM_APDU [20:54:41]CAPDU: 80 11 00 00 [20:54:41]Write to MH i2c: E2 08 00 FB 08 80 11 00 00 00 00 00 00 7D [20:54:41]Write i2c OK [20:54:41]MH_I2C_Read... [20:54:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:54:41]Read from MH i2c: E2 [20:54:41]MH_I2C_Read... [20:54:41]Read from MH i2c: E2 17 00 [20:54:41]MH_I2C_Read... [20:54:41]Read from MH i2c: E2 17 00 FB 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 CF [20:54:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [20:54:41]wFMCommunicate OK [20:54:41]CreateOFDProtocolMessage done [20:54:41]OFDSenderStorePacket 63888 [20:54:41]StoreOFDPacket docnum=63888 [20:54:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 3D 01 00 00 BB 10 35 01 A8 F7 5A 03 01 00 03 00 29 01 1E 04 01 00 01 23 04 7B 00 8A 04 0D 00 35 30 35 33 39 39 30 31 30 37 33 38 34 06 04 37 00 D0 A7 D0 B8 D0 BF D1 81 D1 8B 20 D0 9F D1 80 D0 B8 D0 BD D0 B3 D0 BB D1 81 20 D1 81 D0 BC D0 B5 D1 82 D0 B0 D0 BD D0 B0 20 D0 B8 20 D0 BB D1 83 D0 BA 20 34 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 D0 84 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D0 84 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 90 2D 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 90 F9 00 00 35 04 06 00 C1 73 EC 7C 19 67 76 39 65 48 B2 72 A4 4B [20:54:41]CheckFolder [20:54:41]dirname=/storage/ofd_packets [20:54:41]CheckFolder done [20:54:41]ProducePacketName [20:54:41]name=ofd_packets/00063888 [20:54:41]NVStorageSaveData ofd_packets/00063888 [20:54:41]File name is /storage/ofd_packets/00063888 [20:54:41]Write 347 bytes [20:54:41]NVStorageSaveData done [20:54:41]OFDSenderStorePacket done [20:54:41]KKMCreateOFDPacket done [20:54:41]NVStorageSaveData kkm_last_timestamp [20:54:41]File name is /storage/kkm_last_timestamp [20:54:41]Write 4 bytes [20:54:41]NVStorageSaveData done [20:54:41]ExternCall_PrintAddStr [20:54:41]wPrintStart [20:54:41]Write to MH i2c: 01 00 00 FC 08 04 [20:54:41]OFD Sender: Processing packet 63888 [packets to send 14, broken 13] [20:54:41]ProducePacketName [20:54:41]name=ofd_packets/00063888 [20:54:41]OFD Sender: To server: pG, [20:54:41]CommunicateWithHost lk.salyk.kg:30040 [20:54:41]ConnectInit lk.salyk.kg [20:54:41]Write i2c OK [20:54:41]MH_I2C_Read... [20:54:41]Read from MH i2c: 01 [20:54:41]MH_I2C_Read... [20:54:41]Read from MH i2c: 01 07 00 [20:54:41]MH_I2C_Read... [20:54:41]Read from MH i2c: 01 07 00 FC 08 00 00 00 00 00 FF 0F 19 [20:54:41]RasterBufferAndPrint [20:54:41]line Счет N : (3)73456 [20:54:41]line ИНН: 02508201610067 [20:54:41]line Контрольно-Кассовый Чек [20:54:41]line ПРОДАЖА [20:54:41]line Товар: 5053990107384 [20:54:41]line Чипсы Принглс сметана и лук 40г [20:54:41]line 2.000 * 170.00 [20:54:41]line = 340.00 [20:54:41]line НДС 12% НСП 1% [20:54:41]line > о реализуемом товаре [20:54:41]line ИТОГО: 340.00 [20:54:41]line НСП 1% : 3.01 [20:54:41]line НДС 12% : 36.11 [20:54:41]line Наличными: 0.00 [20:54:41]line Безнал.: 340.00 [20:54:41]line Место: АЗС № 117 "Партнер Нефть" [20:54:41]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [20:54:41]line СНО: Общий режим [20:54:41]line Чек 146 03.06.2024 20:54 [20:54:41]line Смена: 373 ФФД: 1.0 [20:54:41]line ЗНМ: 0300000031 [20:54:41]line РНМ: 0000000000092737 [20:54:41]line Версия ККМ: 001 [20:54:41]line Платежная система: АКБ Кыргызстан [20:54:41]line ФМ: 0000000000875074 [20:54:41]line ФД: 63888 [20:54:41]line ФПД: 212703632955751 [20:54:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T205440&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63888&fm=212703632955751&tin=02508201610067®Number=0000000000092737&sum=34000 [20:54:41]line 0 [20:54:41]Connected sock=10 [20:54:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 3D 01 00 00 BB 10 35 01 A8 F7 5A 03 01 00 03 00 29 01 1E 04 01 00 01 23 04 7B 00 8A 04 0D 00 35 30 35 33 39 39 30 31 30 37 33 38 34 06 04 37 00 D0 A7 D0 B8 D0 BF D1 81 D1 8B 20 D0 9F D1 80 D0 B8 D0 BD D0 B3 D0 BB D1 81 20 D1 81 D0 BC D0 B5 D1 82 D0 B0 D0 BD D0 B0 20 D0 B8 20 D0 BB D1 83 D0 BA 20 34 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 D0 84 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D0 84 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 90 2D 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 90 F9 00 00 35 04 06 00 C1 73 EC 7C 19 67 76 39 65 48 B2 72 A4 4B [20:54:41]written 0, free lines is 4095 [20:54:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 A0 12 47 00 F2 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 35 30 37 34 10 04 04 00 90 F9 00 00 F4 03 04 00 60 D9 5D 66 B6 04 01 00 00 2E 5F 2B 74 6A 6E 50 83 [20:54:41]CommunicateWithHost err = 0 [20:54:41]CheckOFDResponse [20:54:41]1017 (14) - 77093643461234 [20:54:41]1041 (16) - 0000000000875074 [20:54:41]1040 (4) - 63888 [20:54:41]1012 (4) - 03.06.2024 14:55 [20:54:41]1206 (1) - 0 [20:54:41]OFD Sender: Remove packet 63888 [20:54:41]ProducePacketName [20:54:41]name=ofd_packets/00063888 [20:54:41]NVStorageDeleteData [20:54:42]Write to MH i2c: 01 00 00 27 09 30 [20:54:42]Write i2c OK [20:54:42]MH_I2C_Read... [20:54:42]Read from MH i2c: 01 [20:54:42]MH_I2C_Read... [20:54:42]Read from MH i2c: 01 07 00 [20:54:42]MH_I2C_Read... [20:54:42]Read from MH i2c: 01 07 00 27 09 00 00 00 00 00 C4 0C 07 [20:54:42]RasterBufferAndPrint [20:54:42]line [20:54:42]line [20:54:42]line [20:54:42]line [20:54:42]line [20:54:42]written 0, free lines is 3274 [20:54:42]MH_Cut [20:54:42]Write to MH i2c: D1 01 00 2E 09 01 09 [20:54:42]Write i2c OK [20:54:42]MH_I2C_Read... [20:54:42]Read from MH i2c: D1 [20:54:42]MH_I2C_Read... [20:54:42]Read from MH i2c: D1 01 00 [20:54:42]MH_I2C_Read... [20:54:42]Read from MH i2c: D1 01 00 2E 09 00 08 [20:54:42]Write to MH i2c: 01 00 00 2F 09 38 [20:54:42]Write i2c OK [20:54:42]MH_I2C_Read... [20:54:42]OFD Sender: No OFD packet to send [20:54:42]*** Cut start [20:54:42]*** Partial cut [20:54:42]*** CUTSNS_PIN = 1 [20:54:42]*** CUTSNS_PIN = 0 [20:54:43]*** Brake cut motor [20:54:43]Read from MH i2c: 01 [20:54:43]MH_I2C_Read... [20:54:43]*** Stop cut motor [20:54:43]*** Cut end [20:54:43]Read from MH i2c: 01 07 00 [20:54:43]MH_I2C_Read... [20:54:43]Read from MH i2c: 01 07 00 2F 09 00 00 00 00 00 FF 0F 4D [20:54:43]process_action close_receipt done [20:54:43]requested_data is exist [20:54:43]produce_requested_data [20:54:43]requested_item fm.sn is exist - process it [20:54:43]wFMCommunicate request_size=4 [20:54:43]MH_SAM_APDU [20:54:43]CAPDU: 80 11 00 00 [20:54:43]Write to MH i2c: E2 08 00 30 09 80 11 00 00 00 00 00 00 B3 [20:54:43]Write i2c OK [20:54:43]MH_I2C_Read... [20:54:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:54:43]Read from MH i2c: E2 [20:54:43]MH_I2C_Read... [20:54:43]Read from MH i2c: E2 17 00 [20:54:43]MH_I2C_Read... [20:54:43]Read from MH i2c: E2 17 00 30 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 05 [20:54:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [20:54:43]wFMCommunicate OK [20:54:43]requested_item fd.num is exist - process it [20:54:43]SAM_PROTO_GetFieldsCounters [20:54:43]wFMCommunicate request_size=4 [20:54:43]MH_SAM_APDU [20:54:43]CAPDU: 80 13 00 00 [20:54:43]Write to MH i2c: E2 08 00 31 09 80 13 00 00 00 00 00 00 B6 [20:54:43]Write i2c OK [20:54:43]MH_I2C_Read... [20:54:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:54:43]Read from MH i2c: E2 [20:54:43]MH_I2C_Read... [20:54:43]Read from MH i2c: E2 62 00 [20:54:43]MH_I2C_Read... [20:54:43]Read from MH i2c: E2 62 00 31 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 90 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 92 00 00 00 5E 04 04 00 92 00 00 00 57 04 04 00 93 00 00 00 19 04 04 00 00 00 00 00 90 00 8E [20:54: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 90 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 92 00 00 00 5E 04 04 00 92 00 00 00 57 04 04 00 93 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:54:43]wFMCommunicate OK [20:54:43]SAM_PROTO_GetFieldsCounters done [20:54:43]requested_item shift.num is exist - process it [20:54:43]requested_item shift.opened is exist - process it [20:54:43]req_shift_opened [20:54:43]FM_GetShiftState [20:54:43]SAM_PROTO_GetShiftState [20:54:43]wFMCommunicate request_size=4 [20:54:43]MH_SAM_APDU [20:54:43]CAPDU: 80 13 01 00 [20:54:43]Write to MH i2c: E2 08 00 32 09 80 13 01 00 00 00 00 00 B8 [20:54:43]Write i2c OK [20:54:43]MH_I2C_Read... [20:54:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:54:43]Read from MH i2c: E2 [20:54:43]MH_I2C_Read... [20:54:43]Read from MH i2c: E2 0E 00 [20:54:43]MH_I2C_Read... [20:54:43]Read from MH i2c: E2 0E 00 32 09 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 84 [20:54:43]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [20:54:43]wFMCommunicate OK [20:54:43]SAM_PROTO_GetShiftState done [20:54:43]FM_GetShiftState done [20:54:43]req_shift_opened done [20:54:43]requested_item shift.open_date is exist - process it [20:54:43]req_shift_open_date [20:54:43]req_shift_open_date done [20:54:43]produce_requested_data done [20:54:43]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63888,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [20:54:43]process_action_free close_receipt [20:54:43]json_value_free [20:54:43]json_value_free done [20:54:43]process_json_proto returns [20:54:43]Send response to host [20:54:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63888,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [20:54:43]free response buf [20:54:43]execute_script done [20:54:43]execute_script returns [20:54:43]free content buf [20:54:43]Sock 7.Close socket [20:54:43]Sock 7.Thread stoped [20:54:47]OFD Sender: No OFD packet to send [20:54:52]OFD Sender: No OFD packet to send [20:54:57]OFD Sender: No OFD packet to send [20:55:02]OFD Sender: No OFD packet to send [20:55:07]OFD Sender: No OFD packet to send [20:55:12]OFD Sender: No OFD packet to send [20:55:17]OFD Sender: No OFD packet to send [20:55:22]OFD Sender: No OFD packet to send [20:55:27]OFD Sender: No OFD packet to send [20:55:32]OFD Sender: No OFD packet to send [20:55:37]OFD Sender: No OFD packet to send [20:55:42]OFD Sender: No OFD packet to send [20:55:47]OFD Sender: No OFD packet to send [20:55:52]OFD Sender: No OFD packet to send [20:55:57]OFD Sender: No OFD packet to send [20:56:02]OFD Sender: No OFD packet to send [20:56:07]OFD Sender: No OFD packet to send [20:56:12]OFD Sender: No OFD packet to send [20:56:17]OFD Sender: No OFD packet to send [20:56:22]OFD Sender: No OFD packet to send [20:56:27]OFD Sender: No OFD packet to send [20:56:32]OFD Sender: No OFD packet to send [20:56:37]OFD Sender: No OFD packet to send [20:56:42]OFD Sender: No OFD packet to send [20:56:47]OFD Sender: No OFD packet to send [20:56:52]OFD Sender: No OFD packet to send [20:56:57]OFD Sender: No OFD packet to send [20:57:02]OFD Sender: No OFD packet to send [20:57:07]OFD Sender: No OFD packet to send [20:57:12]OFD Sender: No OFD packet to send [20:57:17]OFD Sender: No OFD packet to send [20:57:22]OFD Sender: No OFD packet to send [20:57:27]OFD Sender: No OFD packet to send [20:57:32]OFD Sender: No OFD packet to send [20:57:34]accept exits with 9 [20:57:34]New connection [20:57:34]New thread 3066719588 created [20:57:34]Thread 3066576228 joined [20:57:34]Waiting for new connection... [20:57:34] Sock 9.Parse request [20:57:34]Sock 9.Check first char [20:57:34]Sock 9.First char is OK [20:57:34]request: POST /json_proto HTTP/1.0 [20:57:34]Method: POST [20:57:34]URL: /json_proto [20:57:34]Method is POST - this is cgi request [20:57:34]url: /json_proto [20:57:34]query_string will be loaded in cgi processing [20:57:34]execute_cgi json_proto POST (null) [20:57:34]execute_cgi path=json_proto method=POST [20:57:34]POST find Content-Length [20:57:34]Host: 172.17.60.69:8080 [20:57:34]Content-Length: 822 [20:57:34]Content-Type: application/json [20:57:34] [20:57:34]POST finish read [20:57:34]Found Content-Length = 822 [20:57:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73457", "tax_sys" : 0, "items" : [ { "code": "48744997", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Compact Blue", "price" : 135.00, "quantity" : 1.000, "sum" : 135.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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 135.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:57:34]execute_script... [20:57:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73457", "tax_sys" : 0, "items" : [ { "code": "48744997", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Compact Blue", "price" : 135.00, "quantity" : 1.000, "sum" : 135.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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 135.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:57:34]POST & json_proto [20:57:34]process_json_proto [20:57:34]json parsed OK: [20:57:34]protocol is kg_v1.0 [20:57:34]action value=close_receipt [20:57:34]process_action close_receipt [20:57:34]cmd_close_receipt [20:57:34]MH_GetDate [20:57:34]Write to MH i2c: F0 00 00 33 09 2B [20:57:34]Write i2c OK [20:57:34]MH_I2C_Read... [20:57:34]Read from MH i2c: F0 [20:57:34]MH_I2C_Read... [20:57:34]Read from MH i2c: F0 09 00 [20:57:34]MH_I2C_Read... [20:57:34]Read from MH i2c: F0 09 00 33 09 00 3F 2E 5E 66 6A 96 4A 66 15 [20:57:34]GetLastDocTimeStamp 1717448080 [20:57:34]current date 1717448255 [20:57:34]FM_GetShiftState [20:57:34]SAM_PROTO_GetShiftState [20:57:34]wFMCommunicate request_size=4 [20:57:34]MH_SAM_APDU [20:57:34]CAPDU: 80 13 01 00 [20:57:34]Write to MH i2c: E2 08 00 34 09 80 13 01 00 00 00 00 00 BA [20:57:34]Write i2c OK [20:57:34]MH_I2C_Read... [20:57:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:57:34]Read from MH i2c: E2 [20:57:34]MH_I2C_Read... [20:57:34]Read from MH i2c: E2 0E 00 [20:57:34]MH_I2C_Read... [20:57:34]Read from MH i2c: E2 0E 00 34 09 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 86 [20:57:34]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [20:57:34]wFMCommunicate OK [20:57:34]SAM_PROTO_GetShiftState done [20:57:34]FM_GetShiftState done [20:57:34]opened in 1717373173 [20:57:34]opened+sec_in_day 1717459573 [20:57:34]quantity*price = 13500 [20:57:34]sum+1 = 13501 [20:57:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 135.00 НСП 1% : 1.19 НДС 12% : 14.34 Наличными: 0.00 Безнал.: 135.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 147 03.06.2024 20:57 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000875074 ФД: 63889 ФПД: 218910383468651 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T205735&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63889&fm=218910383468651&tin=02508201610067®Number=0000000000092737&sum=13500 0 [20:57:35]StoreToDocumentArchive [20:57:35]shift 373 fd 63889 [20:57:35]save to /storage/0373/doc_00063889 [20:57:35]save last doc name /storage/0373/doc_00063889 to /storage/kkm_last_doc_name [20:57:35]save OK [20:57:35]Clear old archive folders... [20:57:35]ProcessDocumentItem done err = 0, tmpTLVsize=274 [20:57:35]tlvbuf is 00AC9AA0 [20:57:35]SAM_PROTO_ClearQueue [20:57:35]wFMCommunicate request_size=4 [20:57:35]MH_SAM_APDU [20:57:35]CAPDU: 80 09 00 00 [20:57:35]Write to MH i2c: E2 08 00 41 09 80 09 00 00 00 00 00 00 BC [20:57:35]Write i2c OK [20:57:35]MH_I2C_Read... [20:57:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:57:35]Read from MH i2c: E2 [20:57:35]MH_I2C_Read... [20:57:35]Read from MH i2c: E2 03 00 [20:57:35]MH_I2C_Read... [20:57:35]Read from MH i2c: E2 03 00 41 09 00 90 00 BE [20:57:35]RAPDU: 90 00 [20:57:35]wFMCommunicate OK [20:57:35]SAM_PROTO_ClearQueue done [20:57:35]KKMCreateOFDPacket [20:57:35]OFDProtocolAddRootSTLVToBuf [20:57:35]FM_MakeSignedData [20:57:35]FM_MakeSignedData [20:57:35]SAM_PROTO_SignData [20:57:35]wFMCommunicate request_size=4 [20:57:35]MH_SAM_APDU [20:57:35]CAPDU: 80 0D 01 02 [20:57:35]Write to MH i2c: E2 08 00 42 09 80 0D 01 02 00 00 00 00 C4 [20:57:35]Write i2c OK [20:57:35]MH_I2C_Read... [20:57:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:57:35]Read from MH i2c: E2 [20:57:35]MH_I2C_Read... [20:57:35]Read from MH i2c: E2 03 00 [20:57:35]MH_I2C_Read... [20:57:35]Read from MH i2c: E2 03 00 42 09 00 90 00 BF [20:57:35]RAPDU: 90 00 [20:57:35]wFMCommunicate OK [20:57:35]wFMCommunicate request_size=255 [20:57:35]MH_SAM_APDU [20:57:35]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 34 39 39 37 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 43 6F 6D 70 61 63 74 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BC 34 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 3F 2E 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 [20:57:35]Write to MH i2c: E2 02 01 43 09 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 34 39 39 37 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 43 6F 6D 70 61 63 74 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BC 34 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 3F 2E 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 00 00 23 [20:57:35]Write i2c OK [20:57:35]MH_I2C_Read... [20:57:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:57:36]Read from MH i2c: E2 [20:57:36]MH_I2C_Read... [20:57:36]Read from MH i2c: E2 03 00 [20:57:36]MH_I2C_Read... [20:57:36]Read from MH i2c: E2 03 00 43 09 00 90 00 C0 [20:57:36]RAPDU: 90 00 [20:57:36]wFMCommunicate OK [20:57:36]wFMCommunicate request_size=33 [20:57:36]MH_SAM_APDU [20:57:36]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 35 30 37 34 10 04 04 00 91 F9 00 00 35 04 06 00 C7 19 0B A4 F0 6B [20:57:36]Write to MH i2c: E2 24 00 44 09 80 0D 02 02 1C 00 30 30 30 30 38 37 35 30 37 34 10 04 04 00 91 F9 00 00 35 04 06 00 C7 19 0B A4 F0 6B 00 00 C9 [20:57:36]Write i2c OK [20:57:36]MH_I2C_Read... [20:57:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:57:36]Read from MH i2c: E2 [20:57:36]MH_I2C_Read... [20:57:36]Read from MH i2c: E2 03 00 [20:57:36]MH_I2C_Read... [20:57:36]Read from MH i2c: E2 03 00 44 09 00 90 00 C1 [20:57:36]RAPDU: 90 00 [20:57:36]wFMCommunicate OK [20:57:36]wFMCommunicate request_size=4 [20:57:36]MH_SAM_APDU [20:57:36]CAPDU: 80 0D 03 02 [20:57:36]Write to MH i2c: E2 08 00 45 09 80 0D 03 02 00 00 00 00 C9 [20:57:36]Write i2c OK [20:57:36]MH_I2C_Read... [20:57:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:57:36]Read from MH i2c: E2 [20:57:36]MH_I2C_Read... [20:57:36]Read from MH i2c: E2 0B 00 [20:57:36]MH_I2C_Read... [20:57:36]Read from MH i2c: E2 0B 00 45 09 00 60 37 FF B1 69 F0 F4 F1 90 00 4F [20:57:36]RAPDU: 60 37 FF B1 69 F0 F4 F1 90 00 [20:57:36]wFMCommunicate OK [20:57:36]SAM_PROTO_SignData done [20:57:36]FM_MakeSignedData done [20:57:36]CreateOFDProtocolMessage [20:57:36]wFMCommunicate request_size=4 [20:57:36]MH_SAM_APDU [20:57:36]CAPDU: 80 11 00 00 [20:57:36]Write to MH i2c: E2 08 00 46 09 80 11 00 00 00 00 00 00 C9 [20:57:36]Write i2c OK [20:57:36]MH_I2C_Read... [20:57:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:57:36]Read from MH i2c: E2 [20:57:36]MH_I2C_Read... [20:57:36]Read from MH i2c: E2 17 00 [20:57:36]MH_I2C_Read... [20:57:36]Read from MH i2c: E2 17 00 46 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 1B [20:57:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [20:57:36]wFMCommunicate OK [20:57:36]CreateOFDProtocolMessage done [20:57:36]OFDSenderStorePacket 63889 [20:57:36]StoreOFDPacket docnum=63889 [20:57:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 26 01 00 00 E1 A1 1E 01 EB 66 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 34 39 39 37 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 43 6F 6D 70 61 63 74 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BC 34 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 3F 2E 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 91 F9 00 00 35 04 06 00 C7 19 0B A4 F0 6B 60 37 FF B1 69 F0 F4 F1 [20:57:36]CheckFolder [20:57:36]dirname=/storage/ofd_packets [20:57:36]CheckFolder done [20:57:36]ProducePacketName [20:57:36]name=ofd_packets/00063889 [20:57:36]NVStorageSaveData ofd_packets/00063889 [20:57:36]File name is /storage/ofd_packets/00063889 [20:57:36]Write 324 bytes [20:57:36]NVStorageSaveData done [20:57:36]OFDSenderStorePacket done [20:57:36]KKMCreateOFDPacket done [20:57:36]NVStorageSaveData kkm_last_timestamp [20:57:36]File name is /storage/kkm_last_timestamp [20:57:36]Write 4 bytes [20:57:36]NVStorageSaveData done [20:57:36]ExternCall_PrintAddStr [20:57:36]wPrintStart [20:57:36]Write to MH i2c: 01 00 00 47 09 50 [20:57:36]Write i2c OK [20:57:36]MH_I2C_Read... [20:57:36]Read from MH i2c: 01 [20:57:36]MH_I2C_Read... [20:57:36]Read from MH i2c: 01 07 00 [20:57:36]MH_I2C_Read... [20:57:36]Read from MH i2c: 01 07 00 47 09 00 00 00 00 00 FF 0F 65 [20:57:36]RasterBufferAndPrint [20:57:36]line Счет N : (3)73457 [20:57:36]line ИНН: 02508201610067 [20:57:36]line Контрольно-Кассовый Чек [20:57:36]line ПРОДАЖА [20:57:36]line Товар: 48744997 [20:57:36]line Сигареты Winston Compact Blue [20:57:36]line 1.000 * 135.00 [20:57:36]line = 135.00 [20:57:36]line НДС 12% НСП 1% [20:57:36]line > о реализуемом товаре [20:57:36]line ИТОГО: 135.00 [20:57:36]line НСП 1% : 1.19 [20:57:36]line НДС 12% : 14.34 [20:57:36]line Наличными: 0.00 [20:57:36]line Безнал.: 135.00 [20:57:36]line Место: АЗС № 117 "Партнер Нефть" [20:57:36]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [20:57:36]line СНО: Общий режим [20:57:36]line Чек 147 03.06.2024 20:57 [20:57:36]line Смена: 373 ФФД: 1.0 [20:57:36]line ЗНМ: 0300000031 [20:57:36]line РНМ: 0000000000092737 [20:57:36]line Версия ККМ: 001 [20:57:36]line Платежная система: АКБ Кыргызстан [20:57:36]line ФМ: 0000000000875074 [20:57:36]line ФД: 63889 [20:57:36]line ФПД: 218910383468651 [20:57:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T205735&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63889&fm=218910383468651&tin=02508201610067®Number=0000000000092737&sum=13500 [20:57:36]OFD Sender: Processing packet 63889 [packets to send 14, broken 13] [20:57:36]ProducePacketName [20:57:36]name=ofd_packets/00063889 [20:57:36]OFD Sender: To server: pG, [20:57:36]CommunicateWithHost lk.salyk.kg:30040 [20:57:36]ConnectInit lk.salyk.kg [20:57:36]line 0 [20:57:36]written 0, free lines is 4095 [20:57:36]Connected sock=10 [20:57:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 26 01 00 00 E1 A1 1E 01 EB 66 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 34 39 39 37 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 43 6F 6D 70 61 63 74 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BC 34 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 3F 2E 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 91 F9 00 00 35 04 06 00 C7 19 0B A4 F0 6B 60 37 FF B1 69 F0 F4 F1 [20:57:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 21 55 47 00 93 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 35 30 37 34 10 04 04 00 91 F9 00 00 F4 03 04 00 0F DA 5D 66 B6 04 01 00 00 B2 4E 5D 7C 47 97 7A 8D [20:57:36]CommunicateWithHost err = 0 [20:57:36]CheckOFDResponse [20:57:36]1017 (14) - 77093643461234 [20:57:36]1041 (16) - 0000000000875074 [20:57:36]1040 (4) - 63889 [20:57:36]1012 (4) - 03.06.2024 14:58 [20:57:36]1206 (1) - 0 [20:57:36]OFD Sender: Remove packet 63889 [20:57:36]ProducePacketName [20:57:36]name=ofd_packets/00063889 [20:57:36]NVStorageDeleteData [20:57:37]Write to MH i2c: 01 00 00 72 09 7B [20:57:37]Write i2c OK [20:57:37]MH_I2C_Read... [20:57:37]Read from MH i2c: 01 [20:57:37]MH_I2C_Read... [20:57:37]Read from MH i2c: 01 07 00 [20:57:37]MH_I2C_Read... [20:57:37]Read from MH i2c: 01 07 00 72 09 00 00 00 00 00 BC 0C 4A [20:57:37]RasterBufferAndPrint [20:57:37]line [20:57:37]line [20:57:37]line [20:57:37]line [20:57:37]line [20:57:37]written 0, free lines is 3267 [20:57:37]MH_Cut [20:57:37]Write to MH i2c: D1 01 00 79 09 01 54 [20:57:37]Write i2c OK [20:57:37]MH_I2C_Read... [20:57:37]Read from MH i2c: D1 [20:57:37]MH_I2C_Read... [20:57:37]Read from MH i2c: D1 01 00 [20:57:37]MH_I2C_Read... [20:57:37]Read from MH i2c: D1 01 00 79 09 00 53 [20:57:37]Write to MH i2c: 01 00 00 7A 09 83 [20:57:37]Write i2c OK [20:57:37]MH_I2C_Read... [20:57:37]OFD Sender: No OFD packet to send [20:57:37]*** Cut start [20:57:37]*** Partial cut [20:57:37]*** CUTSNS_PIN = 1 [20:57:37]*** CUTSNS_PIN = 0 [20:57:38]*** Brake cut motor [20:57:38]Read from MH i2c: 01 [20:57:38]MH_I2C_Read... [20:57:38]*** Stop cut motor [20:57:38]*** Cut end [20:57:38]Read from MH i2c: 01 07 00 [20:57:38]MH_I2C_Read... [20:57:38]Read from MH i2c: 01 07 00 7A 09 00 00 00 00 00 FF 0F 98 [20:57:38]process_action close_receipt done [20:57:38]requested_data is exist [20:57:38]produce_requested_data [20:57:38]requested_item fm.sn is exist - process it [20:57:38]wFMCommunicate request_size=4 [20:57:38]MH_SAM_APDU [20:57:38]CAPDU: 80 11 00 00 [20:57:38]Write to MH i2c: E2 08 00 7B 09 80 11 00 00 00 00 00 00 FE [20:57:38]Write i2c OK [20:57:38]MH_I2C_Read... [20:57:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:57:38]Read from MH i2c: E2 [20:57:38]MH_I2C_Read... [20:57:38]Read from MH i2c: E2 17 00 [20:57:38]MH_I2C_Read... [20:57:38]Read from MH i2c: E2 17 00 7B 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 50 [20:57:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [20:57:38]wFMCommunicate OK [20:57:38]requested_item fd.num is exist - process it [20:57:38]SAM_PROTO_GetFieldsCounters [20:57:38]wFMCommunicate request_size=4 [20:57:38]MH_SAM_APDU [20:57:38]CAPDU: 80 13 00 00 [20:57:38]Write to MH i2c: E2 08 00 7C 09 80 13 00 00 00 00 00 00 01 [20:57:38]Write i2c OK [20:57:38]MH_I2C_Read... [20:57:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:57:38]Read from MH i2c: E2 [20:57:38]MH_I2C_Read... [20:57:38]Read from MH i2c: E2 62 00 [20:57:38]MH_I2C_Read... [20:57:38]Read from MH i2c: E2 62 00 7C 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 91 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 93 00 00 00 5E 04 04 00 93 00 00 00 57 04 04 00 94 00 00 00 19 04 04 00 00 00 00 00 90 00 DD [20:57: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 91 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 93 00 00 00 5E 04 04 00 93 00 00 00 57 04 04 00 94 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:57:38]wFMCommunicate OK [20:57:38]SAM_PROTO_GetFieldsCounters done [20:57:38]requested_item shift.num is exist - process it [20:57:38]requested_item shift.opened is exist - process it [20:57:38]req_shift_opened [20:57:38]FM_GetShiftState [20:57:38]SAM_PROTO_GetShiftState [20:57:38]wFMCommunicate request_size=4 [20:57:38]MH_SAM_APDU [20:57:38]CAPDU: 80 13 01 00 [20:57:38]Write to MH i2c: E2 08 00 7D 09 80 13 01 00 00 00 00 00 03 [20:57:38]Write i2c OK [20:57:38]MH_I2C_Read... [20:57:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:57:38]Read from MH i2c: E2 [20:57:38]MH_I2C_Read... [20:57:38]Read from MH i2c: E2 0E 00 [20:57:38]MH_I2C_Read... [20:57:38]Read from MH i2c: E2 0E 00 7D 09 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 CF [20:57:38]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [20:57:38]wFMCommunicate OK [20:57:38]SAM_PROTO_GetShiftState done [20:57:38]FM_GetShiftState done [20:57:38]req_shift_opened done [20:57:38]requested_item shift.open_date is exist - process it [20:57:38]req_shift_open_date [20:57:38]req_shift_open_date done [20:57:38]produce_requested_data done [20:57:38]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63889,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [20:57:38]process_action_free close_receipt [20:57:38]json_value_free [20:57:38]json_value_free done [20:57:38]process_json_proto returns [20:57:38]Send response to host [20:57:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63889,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [20:57:38]free response buf [20:57:38]execute_script done [20:57:38]execute_script returns [20:57:38]free content buf [20:57:38]Sock 9.Close socket [20:57:38]Sock 9.Thread stoped [20:57:42]OFD Sender: No OFD packet to send [20:57:47]OFD Sender: No OFD packet to send [20:57:52]OFD Sender: No OFD packet to send [20:57:57]OFD Sender: No OFD packet to send [20:58:02]OFD Sender: No OFD packet to send [20:58:07]OFD Sender: No OFD packet to send [20:58:12]OFD Sender: No OFD packet to send [20:58:17]OFD Sender: No OFD packet to send [20:58:22]OFD Sender: No OFD packet to send [20:58:27]OFD Sender: No OFD packet to send [20:58:32]OFD Sender: No OFD packet to send [20:58:37]OFD Sender: No OFD packet to send [20:58:42]OFD Sender: No OFD packet to send [20:58:47]OFD Sender: No OFD packet to send [20:58:52]OFD Sender: No OFD packet to send [20:58:57]OFD Sender: No OFD packet to send [20:59:02]OFD Sender: No OFD packet to send [20:59:07]OFD Sender: No OFD packet to send [20:59:12]OFD Sender: No OFD packet to send [20:59:17]OFD Sender: No OFD packet to send [20:59:22]OFD Sender: No OFD packet to send [20:59:27]OFD Sender: No OFD packet to send [20:59:32]OFD Sender: No OFD packet to send [20:59:37]OFD Sender: No OFD packet to send [20:59:42]OFD Sender: No OFD packet to send [20:59:47]OFD Sender: No OFD packet to send [20:59:52]OFD Sender: No OFD packet to send [20:59:57]OFD Sender: No OFD packet to send [21:00:02]OFD Sender: No OFD packet to send [21:00:07]OFD Sender: No OFD packet to send [21:00:12]OFD Sender: No OFD packet to send [21:00:17]OFD Sender: No OFD packet to send [21:00:22]OFD Sender: No OFD packet to send [21:00:27]OFD Sender: No OFD packet to send [21:00:32]OFD Sender: No OFD packet to send [21:00:37]OFD Sender: No OFD packet to send [21:00:42]OFD Sender: No OFD packet to send [21:00:47]OFD Sender: No OFD packet to send [21:00:52]OFD Sender: No OFD packet to send [21:00:57]OFD Sender: No OFD packet to send [21:01:02]OFD Sender: No OFD packet to send [21:01:07]OFD Sender: No OFD packet to send [21:01:12]OFD Sender: No OFD packet to send [21:01:17]OFD Sender: No OFD packet to send [21:01:22]OFD Sender: No OFD packet to send [21:01:27]OFD Sender: No OFD packet to send [21:01:32]OFD Sender: No OFD packet to send [21:01:37]OFD Sender: No OFD packet to send [21:01:42]OFD Sender: No OFD packet to send [21:01:47]OFD Sender: No OFD packet to send [21:01:52]OFD Sender: No OFD packet to send [21:01:57]OFD Sender: No OFD packet to send [21:02:02]OFD Sender: No OFD packet to send [21:02:07]OFD Sender: No OFD packet to send [21:02:12]OFD Sender: No OFD packet to send [21:02:17]OFD Sender: No OFD packet to send [21:02:22]OFD Sender: No OFD packet to send [21:02:27]OFD Sender: No OFD packet to send [21:02:32]OFD Sender: No OFD packet to send [21:02:37]OFD Sender: No OFD packet to send [21:02:42]OFD Sender: No OFD packet to send [21:02:47]OFD Sender: No OFD packet to send [21:02:52]OFD Sender: No OFD packet to send [21:02:57]OFD Sender: No OFD packet to send [21:03:02]OFD Sender: No OFD packet to send [21:03:07]OFD Sender: No OFD packet to send [21:03:12]OFD Sender: No OFD packet to send [21:03:17]OFD Sender: No OFD packet to send [21:03:22]OFD Sender: No OFD packet to send [21:03:27]OFD Sender: No OFD packet to send [21:03:32]OFD Sender: No OFD packet to send [21:03:37]OFD Sender: No OFD packet to send [21:03:42]OFD Sender: No OFD packet to send [21:03:47]OFD Sender: No OFD packet to send [21:03:52]OFD Sender: No OFD packet to send [21:03:57]OFD Sender: No OFD packet to send [21:04:02]OFD Sender: No OFD packet to send [21:04:07]OFD Sender: No OFD packet to send [21:04:12]OFD Sender: No OFD packet to send [21:04:17]OFD Sender: No OFD packet to send [21:04:22]OFD Sender: No OFD packet to send [21:04:27]OFD Sender: No OFD packet to send [21:04:32]OFD Sender: No OFD packet to send [21:04:37]OFD Sender: No OFD packet to send [21:04:42]OFD Sender: No OFD packet to send [21:04:47]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]accept exits with 7 [21:08:27]New connection [21:08:27]New thread 3066576228 created [21:08:27]Thread 3066719588 joined [21:08:27]Waiting for new connection... [21:08:27] Sock 7.Parse request [21:08:27]Sock 7.Check first char [21:08:27]Sock 7.First char is OK [21:08:27]request: POST /json_proto HTTP/1.0 [21:08:27]Method: POST [21:08:27]URL: /json_proto [21:08:27]Method is POST - this is cgi request [21:08:27]url: /json_proto [21:08:27]query_string will be loaded in cgi processing [21:08:27]execute_cgi json_proto POST (null) [21:08:27]execute_cgi path=json_proto method=POST [21:08:27]POST find Content-Length [21:08:27]Host: 172.17.60.69:8080 [21:08:27]Content-Length: 699 [21:08:27]Content-Type: application/json [21:08:27] [21:08:27]POST finish read [21:08:27]Found Content-Length = 699 [21:08:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73458", "tax_sys" : 0, "items" : [ { "code": "4870002325113", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A PEPSI \u0433\u0430\u0437\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0439 \u0441\u0442 0,25\u043B", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 90.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:08:27]execute_script... [21:08:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73458", "tax_sys" : 0, "items" : [ { "code": "4870002325113", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A PEPSI \u0433\u0430\u0437\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0439 \u0441\u0442 0,25\u043B", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 90.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:08:27]POST & json_proto [21:08:27]process_json_proto [21:08:27]json parsed OK: [21:08:27]protocol is kg_v1.0 [21:08:27]action value=close_receipt [21:08:27]process_action close_receipt [21:08:27]cmd_close_receipt [21:08:27]MH_GetDate [21:08:27]Write to MH i2c: F0 00 00 7E 09 76 [21:08:27]Write i2c OK [21:08:27]MH_I2C_Read... [21:08:27]Read from MH i2c: F0 [21:08:27]MH_I2C_Read... [21:08:27]Read from MH i2c: F0 09 00 [21:08:27]MH_I2C_Read... [21:08:27]Read from MH i2c: F0 09 00 7E 09 00 CC 30 5E 66 6A 96 4A 66 EF [21:08:27]GetLastDocTimeStamp 1717448255 [21:08:27]current date 1717448908 [21:08:27]FM_GetShiftState [21:08:27]SAM_PROTO_GetShiftState [21:08:27]wFMCommunicate request_size=4 [21:08:27]MH_SAM_APDU [21:08:27]CAPDU: 80 13 01 00 [21:08:27]Write to MH i2c: E2 08 00 7F 09 80 13 01 00 00 00 00 00 05 [21:08:27]Write i2c OK [21:08:27]MH_I2C_Read... [21:08:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:08:27]Read from MH i2c: E2 [21:08:27]MH_I2C_Read... [21:08:27]Read from MH i2c: E2 0E 00 [21:08:27]MH_I2C_Read... [21:08:27]Read from MH i2c: E2 0E 00 7F 09 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 D1 [21:08:27]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [21:08:27]wFMCommunicate OK [21:08:27]SAM_PROTO_GetShiftState done [21:08:27]FM_GetShiftState done [21:08:27]opened in 1717373173 [21:08:27]opened+sec_in_day 1717459573 [21:08:27]quantity*price = 9000 [21:08:27]sum+1 = 9001 [21:08:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 90.00 НСП 1% : 0.80 НДС 12% : 9.56 Наличными: 90.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 148 03.06.2024 21:08 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63890 ФПД: 151859355034394 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T210828&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63890&fm=151859355034394&tin=02508201610067®Number=0000000000092737&sum=9000 0 [21:08:28]StoreToDocumentArchive [21:08:28]shift 373 fd 63890 [21:08:28]save to /storage/0373/doc_00063890 [21:08:28]save last doc name /storage/0373/doc_00063890 to /storage/kkm_last_doc_name [21:08:28]save OK [21:08:28]Clear old archive folders... [21:08:28]ProcessDocumentItem done err = 0, tmpTLVsize=299 [21:08:28]tlvbuf is 00AAD9B0 [21:08:28]SAM_PROTO_ClearQueue [21:08:28]wFMCommunicate request_size=4 [21:08:28]MH_SAM_APDU [21:08:28]CAPDU: 80 09 00 00 [21:08:28]Write to MH i2c: E2 08 00 8C 09 80 09 00 00 00 00 00 00 07 [21:08:28]Write i2c OK [21:08:28]MH_I2C_Read... [21:08:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:08:28]Read from MH i2c: E2 [21:08:28]MH_I2C_Read... [21:08:28]Read from MH i2c: E2 03 00 [21:08:28]MH_I2C_Read... [21:08:28]Read from MH i2c: E2 03 00 8C 09 00 90 00 09 [21:08:28]RAPDU: 90 00 [21:08:28]wFMCommunicate OK [21:08:28]SAM_PROTO_ClearQueue done [21:08:28]KKMCreateOFDPacket [21:08:28]OFDProtocolAddRootSTLVToBuf [21:08:28]FM_MakeSignedData [21:08:28]FM_MakeSignedData [21:08:28]SAM_PROTO_SignData [21:08:28]wFMCommunicate request_size=4 [21:08:28]MH_SAM_APDU [21:08:28]CAPDU: 80 0D 01 02 [21:08:28]Write to MH i2c: E2 08 00 8D 09 80 0D 01 02 00 00 00 00 0F [21:08:28]Write i2c OK [21:08:28]MH_I2C_Read... [21:08:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:08:28]Read from MH i2c: E2 [21:08:28]MH_I2C_Read... [21:08:28]Read from MH i2c: E2 03 00 [21:08:28]MH_I2C_Read... [21:08:28]Read from MH i2c: E2 03 00 8D 09 00 90 00 0A [21:08:28]RAPDU: 90 00 [21:08:28]wFMCommunicate OK [21:08:28]wFMCommunicate request_size=255 [21:08:28]MH_SAM_APDU [21:08:28]CAPDU: 80 0D 02 02 FA 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 35 31 31 33 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 45 50 53 49 20 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 D0 BE D0 B2 D0 B0 D0 BD D0 BD D1 8B D0 B9 20 D1 81 D1 82 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 CC 30 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 [21:08:28]Write to MH i2c: E2 02 01 8E 09 80 0D 02 02 FA 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 35 31 31 33 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 45 50 53 49 20 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 D0 BE D0 B2 D0 B0 D0 BD D0 BD D1 8B D0 B9 20 D1 81 D1 82 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 CC 30 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 00 00 90 [21:08:28]Write i2c OK [21:08:28]MH_I2C_Read... [21:08:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:08:29]Read from MH i2c: E2 [21:08:29]MH_I2C_Read... [21:08:29]Read from MH i2c: E2 03 00 [21:08:29]MH_I2C_Read... [21:08:29]Read from MH i2c: E2 03 00 8E 09 00 90 00 0B [21:08:29]RAPDU: 90 00 [21:08:29]wFMCommunicate OK [21:08:29]wFMCommunicate request_size=58 [21:08:29]MH_SAM_APDU [21:08:29]CAPDU: 80 0D 02 02 35 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 92 F9 00 00 35 04 06 00 8A 1D 82 E9 A3 1A [21:08:29]Write to MH i2c: E2 3D 00 8F 09 80 0D 02 02 35 00 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 92 F9 00 00 35 04 06 00 8A 1D 82 E9 A3 1A 00 00 5D [21:08:29]Write i2c OK [21:08:29]MH_I2C_Read... [21:08:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:08:29]Read from MH i2c: E2 [21:08:29]MH_I2C_Read... [21:08:29]Read from MH i2c: E2 03 00 [21:08:29]MH_I2C_Read... [21:08:29]Read from MH i2c: E2 03 00 8F 09 00 90 00 0C [21:08:29]RAPDU: 90 00 [21:08:29]wFMCommunicate OK [21:08:29]wFMCommunicate request_size=4 [21:08:29]MH_SAM_APDU [21:08:29]CAPDU: 80 0D 03 02 [21:08:29]Write to MH i2c: E2 08 00 90 09 80 0D 03 02 00 00 00 00 14 [21:08:29]Write i2c OK [21:08:29]MH_I2C_Read... [21:08:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:08:29]Read from MH i2c: E2 [21:08:29]MH_I2C_Read... [21:08:29]Read from MH i2c: E2 0B 00 [21:08:29]MH_I2C_Read... [21:08:29]Read from MH i2c: E2 0B 00 90 09 00 70 BD 3D 5E A3 4A 53 35 90 00 52 [21:08:29]RAPDU: 70 BD 3D 5E A3 4A 53 35 90 00 [21:08:29]wFMCommunicate OK [21:08:29]SAM_PROTO_SignData done [21:08:29]FM_MakeSignedData done [21:08:29]CreateOFDProtocolMessage [21:08:29]wFMCommunicate request_size=4 [21:08:29]MH_SAM_APDU [21:08:29]CAPDU: 80 11 00 00 [21:08:29]Write to MH i2c: E2 08 00 91 09 80 11 00 00 00 00 00 00 14 [21:08:29]Write i2c OK [21:08:29]MH_I2C_Read... [21:08:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:08:29]Read from MH i2c: E2 [21:08:29]MH_I2C_Read... [21:08:29]Read from MH i2c: E2 17 00 [21:08:29]MH_I2C_Read... [21:08:29]Read from MH i2c: E2 17 00 91 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 66 [21:08:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [21:08:29]wFMCommunicate OK [21:08:29]CreateOFDProtocolMessage done [21:08:29]OFDSenderStorePacket 63890 [21:08:29]StoreOFDPacket docnum=63890 [21:08:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 3F 01 00 00 B0 40 37 01 1B 89 5A 03 01 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 35 31 31 33 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 45 50 53 49 20 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 D0 BE D0 B2 D0 B0 D0 BD D0 BD D1 8B D0 B9 20 D1 81 D1 82 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 CC 30 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 92 F9 00 00 35 04 06 00 8A 1D 82 E9 A3 1A 70 BD 3D 5E A3 4A 53 35 [21:08:29]CheckFolder [21:08:29]dirname=/storage/ofd_packets [21:08:29]CheckFolder done [21:08:29]ProducePacketName [21:08:29]name=ofd_packets/00063890 [21:08:29]NVStorageSaveData ofd_packets/00063890 [21:08:29]File name is /storage/ofd_packets/00063890 [21:08:29]Write 349 bytes [21:08:29]NVStorageSaveData done [21:08:29]OFDSenderStorePacket done [21:08:29]KKMCreateOFDPacket done [21:08:29]NVStorageSaveData kkm_last_timestamp [21:08:29]File name is /storage/kkm_last_timestamp [21:08:29]Write 4 bytes [21:08:29]NVStorageSaveData done [21:08:29]ExternCall_PrintAddStr [21:08:29]wPrintStart [21:08:29]Write to MH i2c: 01 00 00 92 09 9B [21:08:29]Write i2c OK [21:08:29]MH_I2C_Read... [21:08:29]Read from MH i2c: 01 [21:08:29]MH_I2C_Read... [21:08:29]Read from MH i2c: 01 07 00 [21:08:29]MH_I2C_Read... [21:08:29]Read from MH i2c: 01 07 00 92 09 00 00 00 00 00 FF 0F B0 [21:08:29]RasterBufferAndPrint [21:08:29]line Счет N : (3)73458 [21:08:29]line ИНН: 02508201610067 [21:08:29]line Контрольно-Кассовый Чек [21:08:29]line ПРОДАЖА [21:08:29]line Товар: 4870002325113 [21:08:29]line Напиток PEPSI газированный ст 0,25л [21:08:29]line 1.000 * 90.00 [21:08:29]line = 90.00 [21:08:29]line НДС 12% НСП 1% [21:08:29]line > о реализуемом товаре [21:08:29]line ИТОГО: 90.00 [21:08:29]line НСП 1% : 0.80 [21:08:29]line НДС 12% : 9.56 [21:08:29]line Наличными: 90.00 [21:08:29]line Безнал.: 0.00 [21:08:29]line Место: АЗС № 117 "Партнер Нефть" [21:08:29]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [21:08:29]line СНО: Общий режим [21:08:29]line Чек 148 03.06.2024 21:08 [21:08:29]line Смена: 373 ФФД: 1.0 [21:08:29]line ЗНМ: 0300000031 [21:08:29]line РНМ: 0000000000092737 [21:08:29]line Версия ККМ: 001 [21:08:29]line ФМ: 0000000000875074 [21:08:29]line ФД: 63890 [21:08:29]line ФПД: 151859355034394 [21:08:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T210828&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63890&fm=151859355034394&tin=02508201610067®Number=0000000000092737&sum=9000 [21:08:29]line 0 [21:08:29]OFD Sender: Processing packet 63890 [packets to send 14, broken 13] [21:08:29]ProducePacketName [21:08:29]name=ofd_packets/00063890 [21:08:29]OFD Sender: To server: pG, [21:08:29]CommunicateWithHost lk.salyk.kg:30040 [21:08:29]ConnectInit lk.salyk.kg [21:08:29]written 0, free lines is 4095 [21:08:29]Connected sock=10 [21:08:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 3F 01 00 00 B0 40 37 01 1B 89 5A 03 01 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 35 31 31 33 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 45 50 53 49 20 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 D0 BE D0 B2 D0 B0 D0 BD D0 BD D1 8B D0 B9 20 D1 81 D1 82 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 CC 30 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 92 F9 00 00 35 04 06 00 8A 1D 82 E9 A3 1A 70 BD 3D 5E A3 4A 53 35 [21:08:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 35 C6 47 00 1B F2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 92 F9 00 00 F4 03 04 00 9C DC 5D 66 B6 04 01 00 00 0B B2 70 AF D1 E3 88 D9 [21:08:29]CommunicateWithHost err = 0 [21:08:29]CheckOFDResponse [21:08:29]1017 (14) - 77093643461234 [21:08:29]1041 (16) - 0000000000875074 [21:08:29]1040 (4) - 63890 [21:08:29]1012 (4) - 03.06.2024 15:09 [21:08:29]1206 (1) - 0 [21:08:29]OFD Sender: Remove packet 63890 [21:08:29]ProducePacketName [21:08:29]name=ofd_packets/00063890 [21:08:29]NVStorageDeleteData [21:08:30]Write to MH i2c: 01 00 00 BB 09 C4 [21:08:30]Write i2c OK [21:08:30]MH_I2C_Read... [21:08:30]Read from MH i2c: 01 [21:08:30]MH_I2C_Read... [21:08:30]Read from MH i2c: 01 07 00 [21:08:30]MH_I2C_Read... [21:08:30]Read from MH i2c: 01 07 00 BB 09 00 00 00 00 00 DD 0C B4 [21:08:30]RasterBufferAndPrint [21:08:30]line [21:08:30]line [21:08:30]line [21:08:30]line [21:08:30]line [21:08:30]written 0, free lines is 3299 [21:08:30]MH_Cut [21:08:30]Write to MH i2c: D1 01 00 C2 09 01 9D [21:08:30]Write i2c OK [21:08:30]MH_I2C_Read... [21:08:30]Read from MH i2c: D1 [21:08:30]MH_I2C_Read... [21:08:30]Read from MH i2c: D1 01 00 [21:08:30]MH_I2C_Read... [21:08:30]Read from MH i2c: D1 01 00 C2 09 00 9C [21:08:30]Write to MH i2c: 01 00 00 C3 09 CC [21:08:30]Write i2c OK [21:08:30]MH_I2C_Read... [21:08:30]OFD Sender: No OFD packet to send [21:08:30]*** Cut start [21:08:30]*** Partial cut [21:08:30]*** CUTSNS_PIN = 1 [21:08:30]*** CUTSNS_PIN = 0 [21:08:31]*** Brake cut motor [21:08:31]Read from MH i2c: 01 [21:08:31]MH_I2C_Read... [21:08:31]*** Stop cut motor [21:08:31]*** Cut end [21:08:31]Read from MH i2c: 01 07 00 [21:08:31]MH_I2C_Read... [21:08:31]Read from MH i2c: 01 07 00 C3 09 00 00 00 00 00 FF 0F E1 [21:08:31]process_action close_receipt done [21:08:31]requested_data is exist [21:08:31]produce_requested_data [21:08:31]requested_item fm.sn is exist - process it [21:08:31]wFMCommunicate request_size=4 [21:08:31]MH_SAM_APDU [21:08:31]CAPDU: 80 11 00 00 [21:08:31]Write to MH i2c: E2 08 00 C4 09 80 11 00 00 00 00 00 00 47 [21:08:31]Write i2c OK [21:08:31]MH_I2C_Read... [21:08:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:08:31]Read from MH i2c: E2 [21:08:31]MH_I2C_Read... [21:08:31]Read from MH i2c: E2 17 00 [21:08:31]MH_I2C_Read... [21:08:31]Read from MH i2c: E2 17 00 C4 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 99 [21:08:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [21:08:31]wFMCommunicate OK [21:08:31]requested_item fd.num is exist - process it [21:08:31]SAM_PROTO_GetFieldsCounters [21:08:31]wFMCommunicate request_size=4 [21:08:31]MH_SAM_APDU [21:08:31]CAPDU: 80 13 00 00 [21:08:31]Write to MH i2c: E2 08 00 C5 09 80 13 00 00 00 00 00 00 4A [21:08:31]Write i2c OK [21:08:31]MH_I2C_Read... [21:08:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:08:31]Read from MH i2c: E2 [21:08:31]MH_I2C_Read... [21:08:31]Read from MH i2c: E2 62 00 [21:08:31]MH_I2C_Read... [21:08:31]Read from MH i2c: E2 62 00 C5 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 92 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 94 00 00 00 5E 04 04 00 94 00 00 00 57 04 04 00 95 00 00 00 19 04 04 00 00 00 00 00 90 00 2A [21:08: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 92 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 94 00 00 00 5E 04 04 00 94 00 00 00 57 04 04 00 95 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:08:31]wFMCommunicate OK [21:08:31]SAM_PROTO_GetFieldsCounters done [21:08:31]requested_item shift.num is exist - process it [21:08:31]requested_item shift.opened is exist - process it [21:08:31]req_shift_opened [21:08:31]FM_GetShiftState [21:08:31]SAM_PROTO_GetShiftState [21:08:31]wFMCommunicate request_size=4 [21:08:31]MH_SAM_APDU [21:08:31]CAPDU: 80 13 01 00 [21:08:31]Write to MH i2c: E2 08 00 C6 09 80 13 01 00 00 00 00 00 4C [21:08:31]Write i2c OK [21:08:31]MH_I2C_Read... [21:08:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:08:31]Read from MH i2c: E2 [21:08:31]MH_I2C_Read... [21:08:31]Read from MH i2c: E2 0E 00 [21:08:31]MH_I2C_Read... [21:08:31]Read from MH i2c: E2 0E 00 C6 09 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 18 [21:08:31]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [21:08:31]wFMCommunicate OK [21:08:31]SAM_PROTO_GetShiftState done [21:08:31]FM_GetShiftState done [21:08:31]req_shift_opened done [21:08:31]requested_item shift.open_date is exist - process it [21:08:31]req_shift_open_date [21:08:31]req_shift_open_date done [21:08:31]produce_requested_data done [21:08:31]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63890,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [21:08:31]process_action_free close_receipt [21:08:31]json_value_free [21:08:31]json_value_free done [21:08:31]process_json_proto returns [21:08:31]Send response to host [21:08:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63890,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [21:08:31]free response buf [21:08:31]execute_script done [21:08:31]execute_script returns [21:08:31]free content buf [21:08:31]Sock 7.Close socket [21:08:31]Sock 7.Thread stoped [21:08:35]OFD Sender: No OFD packet to send [21:08:40]OFD Sender: No OFD packet to send [21:08:45]OFD Sender: No OFD packet to send [21:08:50]OFD Sender: No OFD packet to send [21:08:55]OFD Sender: No OFD packet to send [21:09:00]OFD Sender: No OFD packet to send [21:09:05]OFD Sender: No OFD packet to send [21:09:10]OFD Sender: No OFD packet to send [21:09:15]OFD Sender: No OFD packet to send [21:09:20]OFD Sender: No OFD packet to send [21:09:25]OFD Sender: No OFD packet to send [21:09:30]OFD Sender: No OFD packet to send [21:09:35]OFD Sender: No OFD packet to send [21:09:40]OFD Sender: No OFD packet to send [21:09:45]OFD Sender: No OFD packet to send [21:09:50]OFD Sender: No OFD packet to send [21:09:55]OFD Sender: No OFD packet to send [21:10:00]OFD Sender: No OFD packet to send [21:10:05]OFD Sender: No OFD packet to send [21:10:10]OFD Sender: No OFD packet to send [21:10:15]OFD Sender: No OFD packet to send [21:10:20]OFD Sender: No OFD packet to send [21:10:25]OFD Sender: No OFD packet to send [21:10:30]OFD Sender: No OFD packet to send [21:10:35]OFD Sender: No OFD packet to send [21:10:40]OFD Sender: No OFD packet to send [21:10:45]OFD Sender: No OFD packet to send [21:10:50]OFD Sender: No OFD packet to send [21:10:55]OFD Sender: No OFD packet to send [21:11:00]OFD Sender: No OFD packet to send [21:11:05]OFD Sender: No OFD packet to send [21:11:10]OFD Sender: No OFD packet to send [21:11:15]OFD Sender: No OFD packet to send [21:11:20]OFD Sender: No OFD packet to send [21:11:25]OFD Sender: No OFD packet to send [21:11:30]OFD Sender: No OFD packet to send [21:11:35]OFD Sender: No OFD packet to send [21:11:40]OFD Sender: No OFD packet to send [21:11:45]OFD Sender: No OFD packet to send [21:11:50]OFD Sender: No OFD packet to send [21:11:55]OFD Sender: No OFD packet to send [21:12:00]OFD Sender: No OFD packet to send [21:12:05]OFD Sender: No OFD packet to send [21:12:10]OFD Sender: No OFD packet to send [21:12:15]OFD Sender: No OFD packet to send [21:12:20]OFD Sender: No OFD packet to send [21:12:25]OFD Sender: No OFD packet to send [21:12:30]accept exits with 9 [21:12:30]New connection [21:12:30]New thread 3066719588 created [21:12:30]Thread 3066576228 joined [21:12:30]Waiting for new connection... [21:12:30] Sock 9.Parse request [21:12:30]Sock 9.Check first char [21:12:30]Sock 9.First char is OK [21:12:30]request: POST /json_proto HTTP/1.0 [21:12:30]Method: POST [21:12:30]URL: /json_proto [21:12:30]Method is POST - this is cgi request [21:12:30]url: /json_proto [21:12:30]query_string will be loaded in cgi processing [21:12:30]execute_cgi json_proto POST (null) [21:12:30]execute_cgi path=json_proto method=POST [21:12:30]POST find Content-Length [21:12:30]Host: 172.17.60.69:8080 [21:12:30]Content-Length: 643 [21:12:30]Content-Type: application/json [21:12:30] [21:12:30]POST finish read [21:12:30]Found Content-Length = 643 [21:12:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73459", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 115.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:12:30]execute_script... [21:12:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73459", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 115.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:12:30]POST & json_proto [21:12:30]process_json_proto [21:12:30]json parsed OK: [21:12:30]protocol is kg_v1.0 [21:12:30]action value=close_receipt [21:12:30]process_action close_receipt [21:12:30]cmd_close_receipt [21:12:30]MH_GetDate [21:12:30]Write to MH i2c: F0 00 00 C7 09 BF [21:12:30]Write i2c OK [21:12:30]MH_I2C_Read... [21:12:30]Read from MH i2c: F0 [21:12:30]MH_I2C_Read... [21:12:30]Read from MH i2c: F0 09 00 [21:12:30]MH_I2C_Read... [21:12:30]Read from MH i2c: F0 09 00 C7 09 00 BF 31 5E 66 6A 96 4A 66 2C [21:12:30]GetLastDocTimeStamp 1717448908 [21:12:30]current date 1717449151 [21:12:30]FM_GetShiftState [21:12:30]SAM_PROTO_GetShiftState [21:12:30]wFMCommunicate request_size=4 [21:12:30]MH_SAM_APDU [21:12:30]CAPDU: 80 13 01 00 [21:12:30]Write to MH i2c: E2 08 00 C8 09 80 13 01 00 00 00 00 00 4E [21:12:30]Write i2c OK [21:12:30]MH_I2C_Read... [21:12:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:12:30]Read from MH i2c: E2 [21:12:30]MH_I2C_Read... [21:12:30]Read from MH i2c: E2 0E 00 [21:12:30]MH_I2C_Read... [21:12:30]Read from MH i2c: E2 0E 00 C8 09 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 1A [21:12:30]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [21:12:30]wFMCommunicate OK [21:12:30]SAM_PROTO_GetShiftState done [21:12:30]FM_GetShiftState done [21:12:30]opened in 1717373173 [21:12:30]opened+sec_in_day 1717459573 [21:12:30]quantity*price = 11500 [21:12:30]sum+1 = 11501 [21:12:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 115.00 НСП 1% : 1.02 НДС 12% : 12.21 Наличными: 115.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 149 03.06.2024 21:12 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63891 ФПД: 584974307524 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T211231&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63891&fm=584974307524&tin=02508201610067®Number=0000000000092737&sum=11500 0 [21:12:31]StoreToDocumentArchive [21:12:31]shift 373 fd 63891 [21:12:31]save to /storage/0373/doc_00063891 [21:12:31]save last doc name /storage/0373/doc_00063891 to /storage/kkm_last_doc_name [21:12:31]save OK [21:12:31]Clear old archive folders... [21:12:31]ProcessDocumentItem done err = 0, tmpTLVsize=280 [21:12:31]tlvbuf is 00A7F8B0 [21:12:31]SAM_PROTO_ClearQueue [21:12:31]wFMCommunicate request_size=4 [21:12:31]MH_SAM_APDU [21:12:31]CAPDU: 80 09 00 00 [21:12:31]Write to MH i2c: E2 08 00 D5 09 80 09 00 00 00 00 00 00 50 [21:12:31]Write i2c OK [21:12:31]MH_I2C_Read... [21:12:31]Read from MH i2c: E2 [21:12:31]MH_I2C_Read... [21:12:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:12:31]Read from MH i2c: E2 03 00 [21:12:31]MH_I2C_Read... [21:12:31]Read from MH i2c: E2 03 00 D5 09 00 90 00 52 [21:12:31]RAPDU: 90 00 [21:12:31]wFMCommunicate OK [21:12:31]SAM_PROTO_ClearQueue done [21:12:31]KKMCreateOFDPacket [21:12:31]OFDProtocolAddRootSTLVToBuf [21:12:31]FM_MakeSignedData [21:12:31]FM_MakeSignedData [21:12:31]SAM_PROTO_SignData [21:12:31]wFMCommunicate request_size=4 [21:12:31]MH_SAM_APDU [21:12:31]CAPDU: 80 0D 01 02 [21:12:31]Write to MH i2c: E2 08 00 D6 09 80 0D 01 02 00 00 00 00 58 [21:12:31]Write i2c OK [21:12:31]MH_I2C_Read... [21:12:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:12:31]Read from MH i2c: E2 [21:12:31]MH_I2C_Read... [21:12:31]Read from MH i2c: E2 03 00 [21:12:31]MH_I2C_Read... [21:12:31]Read from MH i2c: E2 03 00 D6 09 00 90 00 53 [21:12:31]RAPDU: 90 00 [21:12:31]wFMCommunicate OK [21:12:31]wFMCommunicate request_size=255 [21:12:31]MH_SAM_APDU [21:12:31]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 BF 31 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 [21:12:31]Write to MH i2c: E2 02 01 D7 09 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 BF 31 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 00 00 5A [21:12:31]Write i2c OK [21:12:31]MH_I2C_Read... [21:12:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:12:32]Read from MH i2c: E2 [21:12:32]MH_I2C_Read... [21:12:32]Read from MH i2c: E2 03 00 [21:12:32]MH_I2C_Read... [21:12:32]Read from MH i2c: E2 03 00 D7 09 00 90 00 54 [21:12:32]RAPDU: 90 00 [21:12:32]wFMCommunicate OK [21:12:32]wFMCommunicate request_size=39 [21:12:32]MH_SAM_APDU [21:12:32]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 93 F9 00 00 35 04 06 00 00 88 33 2F 90 C4 [21:12:32]Write to MH i2c: E2 2A 00 D8 09 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 93 F9 00 00 35 04 06 00 00 88 33 2F 90 C4 00 00 DF [21:12:32]Write i2c OK [21:12:32]MH_I2C_Read... [21:12:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:12:32]Read from MH i2c: E2 [21:12:32]MH_I2C_Read... [21:12:32]Read from MH i2c: E2 03 00 [21:12:32]MH_I2C_Read... [21:12:32]Read from MH i2c: E2 03 00 D8 09 00 90 00 55 [21:12:32]RAPDU: 90 00 [21:12:32]wFMCommunicate OK [21:12:32]wFMCommunicate request_size=4 [21:12:32]MH_SAM_APDU [21:12:32]CAPDU: 80 0D 03 02 [21:12:32]Write to MH i2c: E2 08 00 D9 09 80 0D 03 02 00 00 00 00 5D [21:12:32]Write i2c OK [21:12:32]MH_I2C_Read... [21:12:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:12:32]Read from MH i2c: E2 [21:12:32]MH_I2C_Read... [21:12:32]Read from MH i2c: E2 0B 00 [21:12:32]MH_I2C_Read... [21:12:32]Read from MH i2c: E2 0B 00 D9 09 00 FE 27 13 0F B7 CF 1F 94 90 00 DE [21:12:32]RAPDU: FE 27 13 0F B7 CF 1F 94 90 00 [21:12:32]wFMCommunicate OK [21:12:32]SAM_PROTO_SignData done [21:12:32]FM_MakeSignedData done [21:12:32]CreateOFDProtocolMessage [21:12:32]wFMCommunicate request_size=4 [21:12:32]MH_SAM_APDU [21:12:32]CAPDU: 80 11 00 00 [21:12:32]Write to MH i2c: E2 08 00 DA 09 80 11 00 00 00 00 00 00 5D [21:12:32]Write i2c OK [21:12:32]MH_I2C_Read... [21:12:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:12:32]Read from MH i2c: E2 [21:12:32]MH_I2C_Read... [21:12:32]Read from MH i2c: E2 17 00 [21:12:32]MH_I2C_Read... [21:12:32]Read from MH i2c: E2 17 00 DA 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 AF [21:12:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [21:12:32]wFMCommunicate OK [21:12:32]CreateOFDProtocolMessage done [21:12:32]OFDSenderStorePacket 63891 [21:12:32]StoreOFDPacket docnum=63891 [21:12:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 2C 01 00 00 8A AC 24 01 50 07 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 BF 31 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 93 F9 00 00 35 04 06 00 00 88 33 2F 90 C4 FE 27 13 0F B7 CF 1F 94 [21:12:32]CheckFolder [21:12:32]dirname=/storage/ofd_packets [21:12:32]CheckFolder done [21:12:32]ProducePacketName [21:12:32]name=ofd_packets/00063891 [21:12:32]NVStorageSaveData ofd_packets/00063891 [21:12:32]File name is /storage/ofd_packets/00063891 [21:12:32]Write 330 bytes [21:12:32]NVStorageSaveData done [21:12:32]OFDSenderStorePacket done [21:12:32]KKMCreateOFDPacket done [21:12:32]NVStorageSaveData kkm_last_timestamp [21:12:32]File name is /storage/kkm_last_timestamp [21:12:32]Write 4 bytes [21:12:32]NVStorageSaveData done [21:12:32]ExternCall_PrintAddStr [21:12:32]wPrintStart [21:12:32]Write to MH i2c: 01 00 00 DB 09 E4 [21:12:32]Write i2c OK [21:12:32]MH_I2C_Read... [21:12:32]Read from MH i2c: 01 [21:12:32]MH_I2C_Read... [21:12:32]Read from MH i2c: 01 07 00 [21:12:32]MH_I2C_Read... [21:12:32]Read from MH i2c: 01 07 00 DB 09 00 00 00 00 00 FF 0F F9 [21:12:32]RasterBufferAndPrint [21:12:32]line Счет N : (3)73459 [21:12:32]line ИНН: 02508201610067 [21:12:32]line Контрольно-Кассовый Чек [21:12:32]line ПРОДАЖА [21:12:32]line Товар: 2000036210013 [21:12:32]line Кофе Капучино (GABB TRADE) [21:12:32]line 1.000 * 115.00 [21:12:32]line = 115.00 [21:12:32]line НДС 12% НСП 1% [21:12:32]line > о реализуемом товаре [21:12:32]line ИТОГО: 115.00 [21:12:32]line НСП 1% : 1.02 [21:12:32]line НДС 12% : 12.21 [21:12:32]line Наличными: 115.00 [21:12:32]line Безнал.: 0.00 [21:12:32]line Место: АЗС № 117 "Партнер Нефть" [21:12:32]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [21:12:32]line СНО: Общий режим [21:12:32]line Чек 149 03.06.2024 21:12 [21:12:32]line Смена: 373 ФФД: 1.0 [21:12:32]line ЗНМ: 0300000031 [21:12:32]line РНМ: 0000000000092737 [21:12:32]line Версия ККМ: 001 [21:12:32]line ФМ: 0000000000875074 [21:12:32]line ФД: 63891 [21:12:32]line ФПД: 584974307524 [21:12:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T211231&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63891&fm=584974307524&tin=02508201610067®Number=0000000000092737&sum=11500 [21:12:32]line 0 [21:12:32]OFD Sender: Processing packet 63891 [packets to send 14, broken 13] [21:12:32]ProducePacketName [21:12:32]name=ofd_packets/00063891 [21:12:32]OFD Sender: To server: pG, [21:12:32]CommunicateWithHost lk.salyk.kg:30040 [21:12:32]ConnectInit lk.salyk.kg [21:12:32]written 0, free lines is 4095 [21:12:32]Connected sock=10 [21:12:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 2C 01 00 00 8A AC 24 01 50 07 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 BF 31 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 93 F9 00 00 35 04 06 00 00 88 33 2F 90 C4 FE 27 13 0F B7 CF 1F 94 [21:12:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 33 11 47 00 5F 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 35 30 37 34 10 04 04 00 93 F9 00 00 F4 03 04 00 8F DD 5D 66 B6 04 01 00 00 A6 56 0A 3A 51 6C FC CE [21:12:32]CommunicateWithHost err = 0 [21:12:32]CheckOFDResponse [21:12:32]1017 (14) - 77093643461234 [21:12:32]1041 (16) - 0000000000875074 [21:12:32]1040 (4) - 63891 [21:12:32]1012 (4) - 03.06.2024 15:13 [21:12:32]1206 (1) - 0 [21:12:32]OFD Sender: Remove packet 63891 [21:12:32]ProducePacketName [21:12:32]name=ofd_packets/00063891 [21:12:32]NVStorageDeleteData [21:12:32]Write to MH i2c: 01 00 00 03 0A 0D [21:12:32]Write i2c OK [21:12:32]MH_I2C_Read... [21:12:32]Read from MH i2c: 01 [21:12:32]MH_I2C_Read... [21:12:32]Read from MH i2c: 01 07 00 [21:12:32]MH_I2C_Read... [21:12:32]Read from MH i2c: 01 07 00 03 0A 00 00 00 00 00 EE 0C 0E [21:12:32]RasterBufferAndPrint [21:12:32]line [21:12:32]line [21:12:32]line [21:12:32]line [21:12:32]line [21:12:32]written 0, free lines is 3320 [21:12:32]MH_Cut [21:12:32]Write to MH i2c: D1 01 00 0A 0A 01 E6 [21:12:32]Write i2c OK [21:12:32]MH_I2C_Read... [21:12:32]Read from MH i2c: D1 [21:12:32]MH_I2C_Read... [21:12:32]Read from MH i2c: D1 01 00 [21:12:32]MH_I2C_Read... [21:12:32]Read from MH i2c: D1 01 00 0A 0A 00 E5 [21:12:32]Write to MH i2c: 01 00 00 0B 0A 15 [21:12:32]Write i2c OK [21:12:32]MH_I2C_Read... [21:12:33]OFD Sender: No OFD packet to send [21:12:33]*** Cut start [21:12:33]*** Partial cut [21:12:33]*** CUTSNS_PIN = 1 [21:12:33]*** CUTSNS_PIN = 0 [21:12:34]*** Brake cut motor [21:12:34]Read from MH i2c: 01 [21:12:34]MH_I2C_Read... [21:12:34]*** Stop cut motor [21:12:34]*** Cut end [21:12:34]Read from MH i2c: 01 07 00 [21:12:34]MH_I2C_Read... [21:12:34]Read from MH i2c: 01 07 00 0B 0A 00 00 00 00 00 FF 0F 2A [21:12:34]process_action close_receipt done [21:12:34]requested_data is exist [21:12:34]produce_requested_data [21:12:34]requested_item fm.sn is exist - process it [21:12:34]wFMCommunicate request_size=4 [21:12:34]MH_SAM_APDU [21:12:34]CAPDU: 80 11 00 00 [21:12:34]Write to MH i2c: E2 08 00 0C 0A 80 11 00 00 00 00 00 00 90 [21:12:34]Write i2c OK [21:12:34]MH_I2C_Read... [21:12:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:12:34]Read from MH i2c: E2 [21:12:34]MH_I2C_Read... [21:12:34]Read from MH i2c: E2 17 00 [21:12:34]MH_I2C_Read... [21:12:34]Read from MH i2c: E2 17 00 0C 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 E2 [21:12:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [21:12:34]wFMCommunicate OK [21:12:34]requested_item fd.num is exist - process it [21:12:34]SAM_PROTO_GetFieldsCounters [21:12:34]wFMCommunicate request_size=4 [21:12:34]MH_SAM_APDU [21:12:34]CAPDU: 80 13 00 00 [21:12:34]Write to MH i2c: E2 08 00 0D 0A 80 13 00 00 00 00 00 00 93 [21:12:34]Write i2c OK [21:12:34]MH_I2C_Read... [21:12:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:12:34]Read from MH i2c: E2 [21:12:34]MH_I2C_Read... [21:12:34]Read from MH i2c: E2 62 00 [21:12:34]MH_I2C_Read... [21:12:34]Read from MH i2c: E2 62 00 0D 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 93 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 95 00 00 00 5E 04 04 00 95 00 00 00 57 04 04 00 96 00 00 00 19 04 04 00 00 00 00 00 90 00 77 [21:12: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 93 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 95 00 00 00 5E 04 04 00 95 00 00 00 57 04 04 00 96 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:12:34]wFMCommunicate OK [21:12:34]SAM_PROTO_GetFieldsCounters done [21:12:34]requested_item shift.num is exist - process it [21:12:34]requested_item shift.opened is exist - process it [21:12:34]req_shift_opened [21:12:34]FM_GetShiftState [21:12:34]SAM_PROTO_GetShiftState [21:12:34]wFMCommunicate request_size=4 [21:12:34]MH_SAM_APDU [21:12:34]CAPDU: 80 13 01 00 [21:12:34]Write to MH i2c: E2 08 00 0E 0A 80 13 01 00 00 00 00 00 95 [21:12:34]Write i2c OK [21:12:34]MH_I2C_Read... [21:12:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:12:34]Read from MH i2c: E2 [21:12:34]MH_I2C_Read... [21:12:34]Read from MH i2c: E2 0E 00 [21:12:34]MH_I2C_Read... [21:12:34]Read from MH i2c: E2 0E 00 0E 0A 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 61 [21:12:34]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [21:12:34]wFMCommunicate OK [21:12:34]SAM_PROTO_GetShiftState done [21:12:34]FM_GetShiftState done [21:12:34]req_shift_opened done [21:12:34]requested_item shift.open_date is exist - process it [21:12:34]req_shift_open_date [21:12:34]req_shift_open_date done [21:12:34]produce_requested_data done [21:12:34]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63891,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [21:12:34]process_action_free close_receipt [21:12:34]json_value_free [21:12:34]json_value_free done [21:12:34]process_json_proto returns [21:12:34]Send response to host [21:12:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63891,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [21:12:34]free response buf [21:12:34]execute_script done [21:12:34]execute_script returns [21:12:34]free content buf [21:12:34]Sock 9.Close socket [21:12:34]Sock 9.Thread stoped [21:12:38]OFD Sender: No OFD packet to send [21:12:43]OFD Sender: No OFD packet to send [21:12:48]OFD Sender: No OFD packet to send [21:12:53]OFD Sender: No OFD packet to send [21:12:58]OFD Sender: No OFD packet to send [21:13:03]OFD Sender: No OFD packet to send [21:13:08]OFD Sender: No OFD packet to send [21:13:13]OFD Sender: No OFD packet to send [21:13:18]OFD Sender: No OFD packet to send [21:13:23]OFD Sender: No OFD packet to send [21:13:28]OFD Sender: No OFD packet to send [21:13:33]OFD Sender: No OFD packet to send [21:13:38]OFD Sender: No OFD packet to send [21:13:43]OFD Sender: No OFD packet to send [21:13:48]OFD Sender: No OFD packet to send [21:13:53]OFD Sender: No OFD packet to send [21:13:58]OFD Sender: No OFD packet to send [21:14:03]OFD Sender: No OFD packet to send [21:14:08]OFD Sender: No OFD packet to send [21:14:13]OFD Sender: No OFD packet to send [21:14:18]OFD Sender: No OFD packet to send [21:14:23]OFD Sender: No OFD packet to send [21:14:28]OFD Sender: No OFD packet to send [21:14:33]OFD Sender: No OFD packet to send [21:14:38]OFD Sender: No OFD packet to send [21:14:43]OFD Sender: No OFD packet to send [21:14:48]OFD Sender: No OFD packet to send [21:14:53]OFD Sender: No OFD packet to send [21:14:58]OFD Sender: No OFD packet to send [21:15:03]OFD Sender: No OFD packet to send [21:15:08]OFD Sender: No OFD packet to send [21:15:13]OFD Sender: No OFD packet to send [21:15:18]OFD Sender: No OFD packet to send [21:15:23]OFD Sender: No OFD packet to send [21:15:28]OFD Sender: No OFD packet to send [21:15:33]OFD Sender: No OFD packet to send [21:15:38]OFD Sender: No OFD packet to send [21:15:43]OFD Sender: No OFD packet to send [21:15:48]OFD Sender: No OFD packet to send [21:15:53]OFD Sender: No OFD packet to send [21:15:58]OFD Sender: No OFD packet to send [21:16:03]OFD Sender: No OFD packet to send [21:16:08]OFD Sender: No OFD packet to send [21:16:13]OFD Sender: No OFD packet to send [21:16:18]OFD Sender: No OFD packet to send [21:16:23]OFD Sender: No OFD packet to send [21:16:28]OFD Sender: No OFD packet to send [21:16:33]OFD Sender: No OFD packet to send [21:16:38]OFD Sender: No OFD packet to send [21:16:43]OFD Sender: No OFD packet to send [21:16:48]OFD Sender: No OFD packet to send [21:16:53]OFD Sender: No OFD packet to send [21:16:58]OFD Sender: No OFD packet to send [21:16:58]accept exits with 7 [21:16:58]New connection [21:16:58]New thread 3066576228 created [21:16:58]Thread 3066719588 joined [21:16:58]Waiting for new connection... [21:16:58] Sock 7.Parse request [21:16:58]Sock 7.Check first char [21:16:58]Sock 7.First char is OK [21:16:58]request: POST /json_proto HTTP/1.0 [21:16:58]Method: POST [21:16:58]URL: /json_proto [21:16:58]Method is POST - this is cgi request [21:16:58]url: /json_proto [21:16:58]query_string will be loaded in cgi processing [21:16:58]execute_cgi json_proto POST (null) [21:16:58]execute_cgi path=json_proto method=POST [21:16:58]POST find Content-Length [21:16:58]Host: 172.17.60.69:8080 [21:16:58]Content-Length: 890 [21:16:58]Content-Type: application/json [21:16:58] [21:16:58]POST finish read [21:16:58]Found Content-Length = 890 [21:16:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73460", "tax_sys" : 0, "items" : [ { "code": "54491472", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46230614", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Red Edition", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 225.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:16:58]execute_script... [21:16:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73460", "tax_sys" : 0, "items" : [ { "code": "54491472", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46230614", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Red Edition", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 225.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:16:58]POST & json_proto [21:16:58]process_json_proto [21:16:58]json parsed OK: [21:16:58]protocol is kg_v1.0 [21:16:58]action value=close_receipt [21:16:58]process_action close_receipt [21:16:58]cmd_close_receipt [21:16:58]MH_GetDate [21:16:58]Write to MH i2c: F0 00 00 0F 0A 08 [21:16:58]Write i2c OK [21:16:58]MH_I2C_Read... [21:16:58]Read from MH i2c: F0 [21:16:58]MH_I2C_Read... [21:16:58]Read from MH i2c: F0 09 00 [21:16:58]MH_I2C_Read... [21:16:58]Read from MH i2c: F0 09 00 0F 0A 00 CB 32 5E 66 6A 96 4A 66 82 [21:16:58]GetLastDocTimeStamp 1717449151 [21:16:58]current date 1717449419 [21:16:58]FM_GetShiftState [21:16:58]SAM_PROTO_GetShiftState [21:16:58]wFMCommunicate request_size=4 [21:16:58]MH_SAM_APDU [21:16:58]CAPDU: 80 13 01 00 [21:16:58]Write to MH i2c: E2 08 00 10 0A 80 13 01 00 00 00 00 00 97 [21:16:58]Write i2c OK [21:16:58]MH_I2C_Read... [21:16:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:16:58]Read from MH i2c: E2 [21:16:58]MH_I2C_Read... [21:16:58]Read from MH i2c: E2 0E 00 [21:16:58]MH_I2C_Read... [21:16:58]Read from MH i2c: E2 0E 00 10 0A 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 63 [21:16:58]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [21:16:58]wFMCommunicate OK [21:16:58]SAM_PROTO_GetShiftState done [21:16:58]FM_GetShiftState done [21:16:58]opened in 1717373173 [21:16:58]opened+sec_in_day 1717459573 [21:16:58]quantity*price = 7500 [21:16:58]sum+1 = 7501 [21:16:58]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 46230614 Сигареты Richmond Red Edition 1.000 * 150.00 = 150.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 225.00 НСП 1% : 1.99 НДС 12% : 23.89 Наличными: 225.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 150 03.06.2024 21:16 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63892 ФПД: 200929501010486 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T211659&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63892&fm=200929501010486&tin=02508201610067®Number=0000000000092737&sum=22500 0 [21:17:00]StoreToDocumentArchive [21:17:00]shift 373 fd 63892 [21:17:00]save to /storage/0373/doc_00063892 [21:17:00]save last doc name /storage/0373/doc_00063892 to /storage/kkm_last_doc_name [21:17:00]save OK [21:17:00]Clear old archive folders... [21:17:00]ProcessDocumentItem done err = 0, tmpTLVsize=379 [21:17:00]tlvbuf is 00AC9950 [21:17:00]SAM_PROTO_ClearQueue [21:17:00]wFMCommunicate request_size=4 [21:17:00]MH_SAM_APDU [21:17:00]CAPDU: 80 09 00 00 [21:17:00]Write to MH i2c: E2 08 00 1D 0A 80 09 00 00 00 00 00 00 99 [21:17:00]Write i2c OK [21:17:00]MH_I2C_Read... [21:17:00]Read from MH i2c: E2 [21:17:00]MH_I2C_Read... [21:17:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:17:00]Read from MH i2c: E2 03 00 [21:17:00]MH_I2C_Read... [21:17:00]Read from MH i2c: E2 03 00 1D 0A 00 90 00 9B [21:17:00]RAPDU: 90 00 [21:17:00]wFMCommunicate OK [21:17:00]SAM_PROTO_ClearQueue done [21:17:00]KKMCreateOFDPacket [21:17:00]OFDProtocolAddRootSTLVToBuf [21:17:00]FM_MakeSignedData [21:17:00]FM_MakeSignedData [21:17:00]SAM_PROTO_SignData [21:17:00]wFMCommunicate request_size=4 [21:17:00]MH_SAM_APDU [21:17:00]CAPDU: 80 0D 01 02 [21:17:00]Write to MH i2c: E2 08 00 1E 0A 80 0D 01 02 00 00 00 00 A1 [21:17:00]Write i2c OK [21:17:00]MH_I2C_Read... [21:17:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:17:00]Read from MH i2c: E2 [21:17:00]MH_I2C_Read... [21:17:00]Read from MH i2c: E2 03 00 [21:17:00]MH_I2C_Read... [21:17:00]Read from MH i2c: E2 03 00 1E 0A 00 90 00 9C [21:17:00]RAPDU: 90 00 [21:17:00]wFMCommunicate OK [21:17:00]wFMCommunicate request_size=255 [21:17:00]MH_SAM_APDU [21:17:00]CAPDU: 80 0D 02 02 FA 03 00 7B 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 08 00 34 36 32 33 30 36 31 34 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 65 64 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 [21:17:00]Write to MH i2c: E2 02 01 1F 0A 80 0D 02 02 FA 00 03 00 7B 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 08 00 34 36 32 33 30 36 31 34 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 65 64 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 00 B5 [21:17:00]Write i2c OK [21:17:00]MH_I2C_Read... [21:17:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:17:00]Read from MH i2c: E2 [21:17:00]MH_I2C_Read... [21:17:00]Read from MH i2c: E2 03 00 [21:17:00]MH_I2C_Read... [21:17:00]Read from MH i2c: E2 03 00 1F 0A 00 90 00 9D [21:17:00]RAPDU: 90 00 [21:17:00]wFMCommunicate OK [21:17:00]wFMCommunicate request_size=138 [21:17:00]MH_SAM_APDU [21:17:00]CAPDU: 80 0D 02 02 85 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 09 00 00 00 00 07 04 06 00 E4 57 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 CB 32 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 94 F9 00 00 35 04 06 00 B6 BE 8B 88 5A 36 [21:17:00]Write to MH i2c: E2 8D 00 20 0A 80 0D 02 02 85 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 09 00 00 00 00 07 04 06 00 E4 57 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 CB 32 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 94 F9 00 00 35 04 06 00 B6 BE 8B 88 5A 36 00 00 E7 [21:17:00]Write i2c OK [21:17:00]MH_I2C_Read... [21:17:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:17:00]Read from MH i2c: E2 [21:17:00]MH_I2C_Read... [21:17:00]Read from MH i2c: E2 03 00 [21:17:00]MH_I2C_Read... [21:17:00]Read from MH i2c: E2 03 00 20 0A 00 90 00 9E [21:17:00]RAPDU: 90 00 [21:17:00]wFMCommunicate OK [21:17:00]wFMCommunicate request_size=4 [21:17:00]MH_SAM_APDU [21:17:00]CAPDU: 80 0D 03 02 [21:17:00]Write to MH i2c: E2 08 00 21 0A 80 0D 03 02 00 00 00 00 A6 [21:17:00]Write i2c OK [21:17:00]MH_I2C_Read... [21:17:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:17:00]Read from MH i2c: E2 [21:17:00]MH_I2C_Read... [21:17:00]Read from MH i2c: E2 0B 00 [21:17:00]MH_I2C_Read... [21:17:00]Read from MH i2c: E2 0B 00 21 0A 00 11 F7 04 16 13 8D 12 A9 90 00 24 [21:17:00]RAPDU: 11 F7 04 16 13 8D 12 A9 90 00 [21:17:00]wFMCommunicate OK [21:17:00]SAM_PROTO_SignData done [21:17:00]FM_MakeSignedData done [21:17:00]CreateOFDProtocolMessage [21:17:00]wFMCommunicate request_size=4 [21:17:00]MH_SAM_APDU [21:17:00]CAPDU: 80 11 00 00 [21:17:00]Write to MH i2c: E2 08 00 22 0A 80 11 00 00 00 00 00 00 A6 [21:17:00]Write i2c OK [21:17:00]MH_I2C_Read... [21:17:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:17:00]Read from MH i2c: E2 [21:17:00]MH_I2C_Read... [21:17:00]Read from MH i2c: E2 17 00 [21:17:00]MH_I2C_Read... [21:17:00]Read from MH i2c: E2 17 00 22 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 F8 [21:17:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [21:17:00]wFMCommunicate OK [21:17:00]CreateOFDProtocolMessage done [21:17:00]OFDSenderStorePacket 63892 [21:17:00]StoreOFDPacket docnum=63892 [21:17:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 8F 01 00 00 4A 12 87 01 24 61 5A 03 01 00 03 00 7B 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 08 00 34 36 32 33 30 36 31 34 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 65 64 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 09 00 00 00 00 07 04 06 00 E4 57 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 CB 32 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 94 F9 00 00 35 04 06 00 B6 BE 8B 88 5A 36 11 F7 04 16 13 8D 12 A9 [21:17:00]CheckFolder [21:17:00]dirname=/storage/ofd_packets [21:17:00]CheckFolder done [21:17:00]ProducePacketName [21:17:00]name=ofd_packets/00063892 [21:17:00]NVStorageSaveData ofd_packets/00063892 [21:17:00]File name is /storage/ofd_packets/00063892 [21:17:00]Write 429 bytes [21:17:00]NVStorageSaveData done [21:17:00]OFDSenderStorePacket done [21:17:00]KKMCreateOFDPacket done [21:17:00]NVStorageSaveData kkm_last_timestamp [21:17:00]File name is /storage/kkm_last_timestamp [21:17:00]Write 4 bytes [21:17:00]NVStorageSaveData done [21:17:00]ExternCall_PrintAddStr [21:17:00]wPrintStart [21:17:00]Write to MH i2c: 01 00 00 23 0A 2D [21:17:00]Write i2c OK [21:17:00]MH_I2C_Read... [21:17:00]Read from MH i2c: 01 [21:17:00]MH_I2C_Read... [21:17:00]Read from MH i2c: 01 07 00 [21:17:00]MH_I2C_Read... [21:17:00]Read from MH i2c: 01 07 00 23 0A 00 00 00 00 00 FF 0F 42 [21:17:00]RasterBufferAndPrint [21:17:00]line Счет N : (3)73460 [21:17:00]line ИНН: 02508201610067 [21:17:00]line Контрольно-Кассовый Чек [21:17:00]line ПРОДАЖА [21:17:00]line Товар: 54491472 [21:17:00]line Напиток Кока-Кола 0,5л [21:17:00]line 1.000 * 75.00 [21:17:00]line = 75.00 [21:17:00]line НДС 12% НСП 1% [21:17:00]line > о реализуемом товаре [21:17:00]line Товар: 46230614 [21:17:00]line Сигареты Richmond Red Edition [21:17:00]line 1.000 * 150.00 [21:17:00]line = 150.00 [21:17:00]line НДС 12% НСП 1% [21:17:00]line > о реализуемом товаре [21:17:00]line ИТОГО: 225.00 [21:17:00]line НСП 1% : 1.99 [21:17:00]line НДС 12% : 23.89 [21:17:00]line Наличными: 225.00 [21:17:00]line Безнал.: 0.00 [21:17:00]line Место: АЗС № 117 "Партнер Нефть" [21:17:00]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [21:17:00]line СНО: Общий режим [21:17:00]line Чек 150 03.06.2024 21:16 [21:17:00]line Смена: 373 ФФД: 1.0 [21:17:00]line ЗНМ: 0300000031 [21:17:00]line РНМ: 0000000000092737 [21:17:00]line Версия ККМ: 001 [21:17:00]line ФМ: 0000000000875074 [21:17:00]line ФД: 63892 [21:17:00]line ФПД: 200929501010486 [21:17:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T211659&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63892&fm=200929501010486&tin=02508201610067®Number=0000000000092737&sum=22500 [21:17:00]OFD Sender: Processing packet 63892 [packets to send 14, broken 13] [21:17:00]ProducePacketName [21:17:00]name=ofd_packets/00063892 [21:17:00]OFD Sender: To server: pG, [21:17:00]CommunicateWithHost lk.salyk.kg:30040 [21:17:00]ConnectInit lk.salyk.kg [21:17:00]line 0 [21:17:00]written 0, free lines is 4095 [21:17:01]Connected sock=10 [21:17:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 8F 01 00 00 4A 12 87 01 24 61 5A 03 01 00 03 00 7B 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 08 00 34 36 32 33 30 36 31 34 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 65 64 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 09 00 00 00 00 07 04 06 00 E4 57 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 CB 32 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 94 F9 00 00 35 04 06 00 B6 BE 8B 88 5A 36 11 F7 04 16 13 8D 12 A9 [21:17:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 AB 6B 47 00 B3 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 35 30 37 34 10 04 04 00 94 F9 00 00 F4 03 04 00 9C DE 5D 66 B6 04 01 00 00 AF DC 70 D9 32 2C BA D3 [21:17:01]CommunicateWithHost err = 0 [21:17:01]CheckOFDResponse [21:17:01]1017 (14) - 77093643461234 [21:17:01]1041 (16) - 0000000000875074 [21:17:01]1040 (4) - 63892 [21:17:01]1012 (4) - 03.06.2024 15:17 [21:17:01]1206 (1) - 0 [21:17:01]OFD Sender: Remove packet 63892 [21:17:01]ProducePacketName [21:17:01]name=ofd_packets/00063892 [21:17:01]NVStorageDeleteData [21:17:01]Write to MH i2c: 01 00 00 52 0A 5C [21:17:01]Write i2c OK [21:17:01]MH_I2C_Read... [21:17:01]Read from MH i2c: 01 [21:17:01]MH_I2C_Read... [21:17:01]Read from MH i2c: 01 07 00 [21:17:01]MH_I2C_Read... [21:17:01]Read from MH i2c: 01 07 00 52 0A 00 00 00 00 00 7B 0C EA [21:17:01]RasterBufferAndPrint [21:17:01]line [21:17:01]line [21:17:01]line [21:17:01]line [21:17:01]line [21:17:01]written 0, free lines is 3204 [21:17:01]MH_Cut [21:17:01]Write to MH i2c: D1 01 00 59 0A 01 35 [21:17:01]Write i2c OK [21:17:01]MH_I2C_Read... [21:17:01]Read from MH i2c: D1 [21:17:01]MH_I2C_Read... [21:17:01]Read from MH i2c: D1 01 00 [21:17:01]MH_I2C_Read... [21:17:01]Read from MH i2c: D1 01 00 59 0A 00 34 [21:17:01]Write to MH i2c: 01 00 00 5A 0A 64 [21:17:01]Write i2c OK [21:17:01]MH_I2C_Read... [21:17:01]OFD Sender: No OFD packet to send [21:17:02]*** Cut start [21:17:02]*** Partial cut [21:17:02]*** CUTSNS_PIN = 1 [21:17:02]*** CUTSNS_PIN = 0 [21:17:02]*** Brake cut motor [21:17:02]Read from MH i2c: 01 [21:17:03]MH_I2C_Read... [21:17:03]*** Stop cut motor [21:17:03]*** Cut end [21:17:03]Read from MH i2c: 01 07 00 [21:17:03]MH_I2C_Read... [21:17:03]Read from MH i2c: 01 07 00 5A 0A 00 00 00 00 00 FF 0F 79 [21:17:03]process_action close_receipt done [21:17:03]requested_data is exist [21:17:03]produce_requested_data [21:17:03]requested_item fm.sn is exist - process it [21:17:03]wFMCommunicate request_size=4 [21:17:03]MH_SAM_APDU [21:17:03]CAPDU: 80 11 00 00 [21:17:03]Write to MH i2c: E2 08 00 5B 0A 80 11 00 00 00 00 00 00 DF [21:17:03]Write i2c OK [21:17:03]MH_I2C_Read... [21:17:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:17:03]Read from MH i2c: E2 [21:17:03]MH_I2C_Read... [21:17:03]Read from MH i2c: E2 17 00 [21:17:03]MH_I2C_Read... [21:17:03]Read from MH i2c: E2 17 00 5B 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 31 [21:17:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [21:17:03]wFMCommunicate OK [21:17:03]requested_item fd.num is exist - process it [21:17:03]SAM_PROTO_GetFieldsCounters [21:17:03]wFMCommunicate request_size=4 [21:17:03]MH_SAM_APDU [21:17:03]CAPDU: 80 13 00 00 [21:17:03]Write to MH i2c: E2 08 00 5C 0A 80 13 00 00 00 00 00 00 E2 [21:17:03]Write i2c OK [21:17:03]MH_I2C_Read... [21:17:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:17:03]Read from MH i2c: E2 [21:17:03]MH_I2C_Read... [21:17:03]Read from MH i2c: E2 62 00 [21:17:03]MH_I2C_Read... [21:17:03]Read from MH i2c: E2 62 00 5C 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 94 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 96 00 00 00 5E 04 04 00 96 00 00 00 57 04 04 00 97 00 00 00 19 04 04 00 00 00 00 00 90 00 CA [21:17:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 94 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 96 00 00 00 5E 04 04 00 96 00 00 00 57 04 04 00 97 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:17:03]wFMCommunicate OK [21:17:03]SAM_PROTO_GetFieldsCounters done [21:17:03]requested_item shift.num is exist - process it [21:17:03]requested_item shift.opened is exist - process it [21:17:03]req_shift_opened [21:17:03]FM_GetShiftState [21:17:03]SAM_PROTO_GetShiftState [21:17:03]wFMCommunicate request_size=4 [21:17:03]MH_SAM_APDU [21:17:03]CAPDU: 80 13 01 00 [21:17:03]Write to MH i2c: E2 08 00 5D 0A 80 13 01 00 00 00 00 00 E4 [21:17:03]Write i2c OK [21:17:03]MH_I2C_Read... [21:17:03]Read from MH i2c: E2 [21:17:03]MH_I2C_Read... [21:17:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:17:03]Read from MH i2c: E2 0E 00 [21:17:03]MH_I2C_Read... [21:17:03]Read from MH i2c: E2 0E 00 5D 0A 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 B0 [21:17:03]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [21:17:03]wFMCommunicate OK [21:17:03]SAM_PROTO_GetShiftState done [21:17:03]FM_GetShiftState done [21:17:03]req_shift_opened done [21:17:03]requested_item shift.open_date is exist - process it [21:17:03]req_shift_open_date [21:17:03]req_shift_open_date done [21:17:03]produce_requested_data done [21:17:03]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63892,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [21:17:03]process_action_free close_receipt [21:17:03]json_value_free [21:17:03]json_value_free done [21:17:03]process_json_proto returns [21:17:03]Send response to host [21:17:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63892,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [21:17:03]free response buf [21:17:03]execute_script done [21:17:03]execute_script returns [21:17:03]free content buf [21:17:03]Sock 7.Close socket [21:17:03]Sock 7.Thread stoped [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:26]OFD Sender: No OFD packet to send [21:17:31]OFD Sender: No OFD packet to send [21:17:36]OFD Sender: No OFD packet to send [21:17:41]OFD Sender: No OFD packet to send [21:17:46]OFD Sender: No OFD packet to send [21:17:51]OFD Sender: No OFD packet to send [21:17:56]OFD Sender: No OFD packet to send [21:18:01]OFD Sender: No OFD packet to send [21:18:06]OFD Sender: No OFD packet to send [21:18:11]OFD Sender: No OFD packet to send [21:18:16]OFD Sender: No OFD packet to send [21:18:21]OFD Sender: No OFD packet to send [21:18:26]OFD Sender: No OFD packet to send [21:18:31]OFD Sender: No OFD packet to send [21:18:36]OFD Sender: No OFD packet to send [21:18:41]OFD Sender: No OFD packet to send [21:18:46]OFD Sender: No OFD packet to send [21:18:51]OFD Sender: No OFD packet to send [21:18:56]OFD Sender: No OFD packet to send [21:19:01]OFD Sender: No OFD packet to send [21:19:06]OFD Sender: No OFD packet to send [21:19:11]OFD Sender: No OFD packet to send [21:19:16]OFD Sender: No OFD packet to send [21:19:21]OFD Sender: No OFD packet to send [21:19:26]OFD Sender: No OFD packet to send [21:19:31]OFD Sender: No OFD packet to send [21:19:36]OFD Sender: No OFD packet to send [21:19:41]OFD Sender: No OFD packet to send [21:19:46]OFD Sender: No OFD packet to send [21:19:51]OFD Sender: No OFD packet to send [21:19:56]OFD Sender: No OFD packet to send [21:20:01]OFD Sender: No OFD packet to send [21:20:06]OFD Sender: No OFD packet to send [21:20:11]OFD Sender: No OFD packet to send [21:20:16]OFD Sender: No OFD packet to send [21:20:21]OFD Sender: No OFD packet to send [21:20:26]OFD Sender: No OFD packet to send [21:20:31]OFD Sender: No OFD packet to send [21:20:36]OFD Sender: No OFD packet to send [21:20:41]OFD Sender: No OFD packet to send [21:20:46]OFD Sender: No OFD packet to send [21:20:51]OFD Sender: No OFD packet to send [21:20:56]OFD Sender: No OFD packet to send [21:21:01]OFD Sender: No OFD packet to send [21:21:06]OFD Sender: No OFD packet to send [21:21:11]OFD Sender: No OFD packet to send [21:21:17]OFD Sender: No OFD packet to send [21:21:22]OFD Sender: No OFD packet to send [21:21:27]OFD Sender: No OFD packet to send [21:21:32]OFD Sender: No OFD packet to send [21:21:37]OFD Sender: No OFD packet to send [21:21:42]OFD Sender: No OFD packet to send [21:21:47]OFD Sender: No OFD packet to send [21:21:52]OFD Sender: No OFD packet to send [21:21:57]OFD Sender: No OFD packet to send [21:22:02]OFD Sender: No OFD packet to send [21:22:07]OFD Sender: No OFD packet to send [21:22:12]OFD Sender: No OFD packet to send [21:22:17]OFD Sender: No OFD packet to send [21:22:22]OFD Sender: No OFD packet to send [21:22:27]OFD Sender: No OFD packet to send [21:22:32]OFD Sender: No OFD packet to send [21:22:37]OFD Sender: No OFD packet to send [21:22:42]OFD Sender: No OFD packet to send [21:22:47]OFD Sender: No OFD packet to send [21:22:52]OFD Sender: No OFD packet to send [21:22:57]OFD Sender: No OFD packet to send [21:23:02]OFD Sender: No OFD packet to send [21:23:07]OFD Sender: No OFD packet to send [21:23:12]OFD Sender: No OFD packet to send [21:23:17]OFD Sender: No OFD packet to send [21:23:22]OFD Sender: No OFD packet to send [21:23:27]OFD Sender: No OFD packet to send [21:23:32]OFD Sender: No OFD packet to send [21:23:37]OFD Sender: No OFD packet to send [21:23:42]OFD Sender: No OFD packet to send [21:23:47]OFD Sender: No OFD packet to send [21:23:52]OFD Sender: No OFD packet to send [21:23:57]OFD Sender: No OFD packet to send [21:24:02]OFD Sender: No OFD packet to send [21:24:07]OFD Sender: No OFD packet to send [21:24:12]OFD Sender: No OFD packet to send [21:24:17]OFD Sender: No OFD packet to send [21:24:22]OFD Sender: No OFD packet to send [21:24:27]OFD Sender: No OFD packet to send [21:24:32]OFD Sender: No OFD packet to send [21:24:37]OFD Sender: No OFD packet to send [21:24:42]OFD Sender: No OFD packet to send [21:24:47]OFD Sender: No OFD packet to send [21:24:52]OFD Sender: No OFD packet to send [21:24:57]OFD Sender: No OFD packet to send [21:25:02]OFD Sender: No OFD packet to send [21:25:07]OFD Sender: No OFD packet to send [21:25:12]OFD Sender: No OFD packet to send [21:25:17]OFD Sender: No OFD packet to send [21:25:22]OFD Sender: No OFD packet to send [21:25:27]OFD Sender: No OFD packet to send [21:25:32]OFD Sender: No OFD packet to send [21:25:37]OFD Sender: No OFD packet to send [21:25:42]OFD Sender: No OFD packet to send [21:25:47]OFD Sender: No OFD packet to send [21:25:52]OFD Sender: No OFD packet to send [21:25:57]OFD Sender: No OFD packet to send [21:26:02]OFD Sender: No OFD packet to send [21:26:07]OFD Sender: No OFD packet to send [21:26:12]OFD Sender: No OFD packet to send [21:26:17]OFD Sender: No OFD packet to send [21:26:22]OFD Sender: No OFD packet to send [21:26:27]OFD Sender: No OFD packet to send [21:26:32]OFD Sender: No OFD packet to send [21:26:37]OFD Sender: No OFD packet to send [21:26:42]OFD Sender: No OFD packet to send [21:26:47]OFD Sender: No OFD packet to send [21:26:52]OFD Sender: No OFD packet to send [21:26:57]OFD Sender: No OFD packet to send [21:27:02]OFD Sender: No OFD packet to send [21:27:07]OFD Sender: No OFD packet to send [21:27:12]OFD Sender: No OFD packet to send [21:27:17]OFD Sender: No OFD packet to send [21:27:22]OFD Sender: No OFD packet to send [21:27:27]OFD Sender: No OFD packet to send [21:27:32]OFD Sender: No OFD packet to send [21:27:37]OFD Sender: No OFD packet to send [21:27:42]OFD Sender: No OFD packet to send [21:27:47]OFD Sender: No OFD packet to send [21:27:52]OFD Sender: No OFD packet to send [21:27:57]OFD Sender: No OFD packet to send [21:28:02]OFD Sender: No OFD packet to send [21:28:07]OFD Sender: No OFD packet to send [21:28:12]OFD Sender: No OFD packet to send [21:28:17]OFD Sender: No OFD packet to send [21:28:22]OFD Sender: No OFD packet to send [21:28:27]OFD Sender: No OFD packet to send [21:28:32]OFD Sender: No OFD packet to send [21:28:37]OFD Sender: No OFD packet to send [21:28:42]OFD Sender: No OFD packet to send [21:28:47]OFD Sender: No OFD packet to send [21:28:52]OFD Sender: No OFD packet to send [21:28:57]OFD Sender: No OFD packet to send [21:29:02]OFD Sender: No OFD packet to send [21:29:07]OFD Sender: No OFD packet to send [21:29:12]OFD Sender: No OFD packet to send [21:29:17]OFD Sender: No OFD packet to send [21:29:22]OFD Sender: No OFD packet to send [21:29:27]OFD Sender: No OFD packet to send [21:29:32]OFD Sender: No OFD packet to send [21:29:37]OFD Sender: No OFD packet to send [21:29:42]OFD Sender: No OFD packet to send [21:29:47]OFD Sender: No OFD packet to send [21:29:52]OFD Sender: No OFD packet to send [21:29:57]OFD Sender: No OFD packet to send [21:30:02]OFD Sender: No OFD packet to send [21:30:07]OFD Sender: No OFD packet to send [21:30:12]OFD Sender: No OFD packet to send [21:30:17]OFD Sender: No OFD packet to send [21:30:22]OFD Sender: No OFD packet to send [21:30:27]OFD Sender: No OFD packet to send [21:30:32]OFD Sender: No OFD packet to send [21:30:37]OFD Sender: No OFD packet to send [21:30:42]OFD Sender: No OFD packet to send [21:30:47]OFD Sender: No OFD packet to send [21:30:52]OFD Sender: No OFD packet to send [21:30:57]OFD Sender: No OFD packet to send [21:31:02]OFD Sender: No OFD packet to send [21:31:07]OFD Sender: No OFD packet to send [21:31:12]OFD Sender: No OFD packet to send [21:31:17]OFD Sender: No OFD packet to send [21:31:22]OFD Sender: No OFD packet to send [21:31:27]OFD Sender: No OFD packet to send [21:31:32]OFD Sender: No OFD packet to send [21:31:37]OFD Sender: No OFD packet to send [21:31:42]OFD Sender: No OFD packet to send [21:31:47]OFD Sender: No OFD packet to send [21:31:52]OFD Sender: No OFD packet to send [21:31:57]OFD Sender: No OFD packet to send [21:32:02]OFD Sender: No OFD packet to send [21:32:07]OFD Sender: No OFD packet to send [21:32:12]OFD Sender: No OFD packet to send [21:32:17]OFD Sender: No OFD packet to send [21:32:22]OFD Sender: No OFD packet to send [21:32:27]OFD Sender: No OFD packet to send [21:32:32]OFD Sender: No OFD packet to send [21:32:37]OFD Sender: No OFD packet to send [21:32:42]OFD Sender: No OFD packet to send [21:32:47]OFD Sender: No OFD packet to send [21:32:52]OFD Sender: No OFD packet to send [21:32:57]OFD Sender: No OFD packet to send [21:33:02]OFD Sender: No OFD packet to send [21:33:07]OFD Sender: No OFD packet to send [21:33:12]OFD Sender: No OFD packet to send [21:33:17]OFD Sender: No OFD packet to send [21:33:22]OFD Sender: No OFD packet to send [21:33:27]OFD Sender: No OFD packet to send [21:33:32]OFD Sender: No OFD packet to send [21:33:37]OFD Sender: No OFD packet to send [21:33:42]OFD Sender: No OFD packet to send [21:33:47]OFD Sender: No OFD packet to send [21:33:52]OFD Sender: No OFD packet to send [21:33:57]OFD Sender: No OFD packet to send [21:34:02]OFD Sender: No OFD packet to send [21:34:07]OFD Sender: No OFD packet to send [21:34:12]OFD Sender: No OFD packet to send [21:34:17]OFD Sender: No OFD packet to send [21:34:22]OFD Sender: No OFD packet to send [21:34:27]OFD Sender: No OFD packet to send [21:34:32]OFD Sender: No OFD packet to send [21:34:37]OFD Sender: No OFD packet to send [21:34:42]OFD Sender: No OFD packet to send [21:34:47]OFD Sender: No OFD packet to send [21:34:52]OFD Sender: No OFD packet to send [21:34:57]OFD Sender: No OFD packet to send [21:35:02]OFD Sender: No OFD packet to send [21:35:07]OFD Sender: No OFD packet to send [21:35:12]OFD Sender: No OFD packet to send [21:35:17]OFD Sender: No OFD packet to send [21:35:22]OFD Sender: No OFD packet to send [21:35:27]OFD Sender: No OFD packet to send [21:35:32]OFD Sender: No OFD packet to send [21:35:37]OFD Sender: No OFD packet to send [21:35:42]OFD Sender: No OFD packet to send [21:35:47]OFD Sender: No OFD packet to send [21:35:52]OFD Sender: No OFD packet to send [21:35:57]OFD Sender: No OFD packet to send [21:36:02]OFD Sender: No OFD packet to send [21:36:07]OFD Sender: No OFD packet to send [21:36:12]OFD Sender: No OFD packet to send [21:36:17]OFD Sender: No OFD packet to send [21:36:22]OFD Sender: No OFD packet to send [21:36:27]OFD Sender: No OFD packet to send [21:36:32]OFD Sender: No OFD packet to send [21:36:37]OFD Sender: No OFD packet to send [21:36:42]OFD Sender: No OFD packet to send [21:36:47]OFD Sender: No OFD packet to send [21:36:52]OFD Sender: No OFD packet to send [21:36:57]OFD Sender: No OFD packet to send [21:37:02]OFD Sender: No OFD packet to send [21:37:07]OFD Sender: No OFD packet to send [21:37:12]OFD Sender: No OFD packet to send [21:37:17]OFD Sender: No OFD packet to send [21:37:22]OFD Sender: No OFD packet to send [21:37:27]OFD Sender: No OFD packet to send [21:37:32]OFD Sender: No OFD packet to send [21:37:37]OFD Sender: No OFD packet to send [21:37:42]OFD Sender: No OFD packet to send [21:37:47]OFD Sender: No OFD packet to send [21:37:52]OFD Sender: No OFD packet to send [21:37:57]OFD Sender: No OFD packet to send [21:38:02]OFD Sender: No OFD packet to send [21:38:07]OFD Sender: No OFD packet to send [21:38:07]accept exits with 9 [21:38:07]New connection [21:38:07]New thread 3066719588 created [21:38:07]Thread 3066576228 joined [21:38:07]Waiting for new connection... [21:38:07] Sock 9.Parse request [21:38:07]Sock 9.Check first char [21:38:07]Sock 9.First char is OK [21:38:07]request: POST /json_proto HTTP/1.0 [21:38:07]Method: POST [21:38:07]URL: /json_proto [21:38:07]Method is POST - this is cgi request [21:38:07]url: /json_proto [21:38:07]query_string will be loaded in cgi processing [21:38:07]execute_cgi json_proto POST (null) [21:38:07]execute_cgi path=json_proto method=POST [21:38:07]POST find Content-Length [21:38:07]Host: 172.17.60.69:8080 [21:38:07]Content-Length: 1406 [21:38:07]Content-Type: application/json [21:38:07] [21:38:07]POST finish read [21:38:07]Found Content-Length = 1406 [21:38:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73461", "tax_sys" : 0, "items" : [ { "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870112003956", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A ALBENI SUPER \u0410\u043B\u044C\u0431\u0435\u043D\u0438 \u0421\u0443\u043F\u0435\u0440", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "8690504034500", "name": "\u041A\u041E\u041C\u0411\u041E \u041A\u043E\u043D\u0434 ULKER-Albeni 40gr (6*24)", "price" : 40.00, "quantity" : 1.000, "sum" : 40.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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 375.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:38:07]execute_script... [21:38: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 : (3)73461", "tax_sys" : 0, "items" : [ { "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870112003956", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A ALBENI SUPER \u0410\u043B\u044C\u0431\u0435\u043D\u0438 \u0421\u0443\u043F\u0435\u0440", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "8690504034500", "name": "\u041A\u041E\u041C\u0411\u041E \u041A\u043E\u043D\u0434 ULKER-Albeni 40gr (6*24)", "price" : 40.00, "quantity" : 1.000, "sum" : 40.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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 375.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:38:07]POST & json_proto [21:38:07]process_json_proto [21:38:07]json parsed OK: [21:38:07]protocol is kg_v1.0 [21:38:07]action value=close_receipt [21:38:07]process_action close_receipt [21:38:07]cmd_close_receipt [21:38:07]MH_GetDate [21:38:07]Write to MH i2c: F0 00 00 5E 0A 57 [21:38:07]Write i2c OK [21:38:07]MH_I2C_Read... [21:38:07]Read from MH i2c: F0 [21:38:07]MH_I2C_Read... [21:38:07]Read from MH i2c: F0 09 00 [21:38:07]MH_I2C_Read... [21:38:07]Read from MH i2c: F0 09 00 5E 0A 00 C0 37 5E 66 6A 96 4A 66 CB [21:38:07]GetLastDocTimeStamp 1717449419 [21:38:07]current date 1717450688 [21:38:07]FM_GetShiftState [21:38:07]SAM_PROTO_GetShiftState [21:38:07]wFMCommunicate request_size=4 [21:38:07]MH_SAM_APDU [21:38:07]CAPDU: 80 13 01 00 [21:38:07]Write to MH i2c: E2 08 00 5F 0A 80 13 01 00 00 00 00 00 E6 [21:38:07]Write i2c OK [21:38:08]MH_I2C_Read... [21:38:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:38:08]Read from MH i2c: E2 [21:38:08]MH_I2C_Read... [21:38:08]Read from MH i2c: E2 0E 00 [21:38:08]MH_I2C_Read... [21:38:08]Read from MH i2c: E2 0E 00 5F 0A 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 B2 [21:38:08]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [21:38:08]wFMCommunicate OK [21:38:08]SAM_PROTO_GetShiftState done [21:38:08]FM_GetShiftState done [21:38:08]opened in 1717373173 [21:38:08]opened+sec_in_day 1717459573 [21:38:08]quantity*price = 26000 [21:38:08]sum+1 = 26001 [21:38:08]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870112003956 Шок батончик ALBENI SUPER Альбени Супер 1.000 * 75.00 = 75.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 8690504034500 КОМБО Конд ULKER-Albeni 40gr (6*24) 1.000 * 40.00 = 40.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 375.00 НСП 1% : 3.31 НДС 12% : 39.82 Наличными: 0.00 Безнал.: 375.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 151 03.06.2024 21:38 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000875074 ФД: 63893 ФПД: 233002698731529 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T213809&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63893&fm=233002698731529&tin=02508201610067®Number=0000000000092737&sum=37500 0 [21:38:09]StoreToDocumentArchive [21:38:09]shift 373 fd 63893 [21:38:09]save to /storage/0373/doc_00063893 [21:38:09]save last doc name /storage/0373/doc_00063893 to /storage/kkm_last_doc_name [21:38:09]save OK [21:38:09]Clear old archive folders... [21:38:09]ProcessDocumentItem done err = 0, tmpTLVsize=526 [21:38:09]tlvbuf is 00A80540 [21:38:09]SAM_PROTO_ClearQueue [21:38:09]wFMCommunicate request_size=4 [21:38:09]MH_SAM_APDU [21:38:09]CAPDU: 80 09 00 00 [21:38:09]Write to MH i2c: E2 08 00 6C 0A 80 09 00 00 00 00 00 00 E8 [21:38:09]Write i2c OK [21:38:09]MH_I2C_Read... [21:38:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:38:09]Read from MH i2c: E2 [21:38:09]MH_I2C_Read... [21:38:09]Read from MH i2c: E2 03 00 [21:38:09]MH_I2C_Read... [21:38:09]Read from MH i2c: E2 03 00 6C 0A 00 90 00 EA [21:38:09]RAPDU: 90 00 [21:38:09]wFMCommunicate OK [21:38:09]SAM_PROTO_ClearQueue done [21:38:09]KKMCreateOFDPacket [21:38:09]OFDProtocolAddRootSTLVToBuf [21:38:09]FM_MakeSignedData [21:38:09]FM_MakeSignedData [21:38:09]SAM_PROTO_SignData [21:38:09]wFMCommunicate request_size=4 [21:38:09]MH_SAM_APDU [21:38:09]CAPDU: 80 0D 01 02 [21:38:09]Write to MH i2c: E2 08 00 6D 0A 80 0D 01 02 00 00 00 00 F0 [21:38:09]Write i2c OK [21:38:09]MH_I2C_Read... [21:38:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:38:09]Read from MH i2c: E2 [21:38:09]MH_I2C_Read... [21:38:09]Read from MH i2c: E2 03 00 [21:38:09]MH_I2C_Read... [21:38:09]Read from MH i2c: E2 03 00 6D 0A 00 90 00 EB [21:38:09]RAPDU: 90 00 [21:38:09]wFMCommunicate OK [21:38:09]wFMCommunicate request_size=255 [21:38:09]MH_SAM_APDU [21:38:09]CAPDU: 80 0D 02 02 FA 03 00 0E 02 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 82 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 35 36 06 04 3E 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 41 4C 42 45 4E 49 20 53 55 50 45 52 20 D0 90 D0 BB D1 8C D0 B1 D0 B5 D0 BD D0 B8 20 D0 A1 D1 83 D0 BF D0 B5 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 [21:38:09]Write to MH i2c: E2 02 01 6E 0A 80 0D 02 02 FA 00 03 00 0E 02 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 82 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 35 36 06 04 3E 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 41 4C 42 45 4E 49 20 53 55 50 45 52 20 D0 90 D0 BB D1 8C D0 B1 D0 B5 D0 BD D0 B8 20 D0 A1 D1 83 D0 BF D0 B5 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 00 00 8B [21:38:09]Write i2c OK [21:38:09]MH_I2C_Read... [21:38:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:38:09]Read from MH i2c: E2 [21:38:09]MH_I2C_Read... [21:38:09]Read from MH i2c: E2 03 00 [21:38:09]MH_I2C_Read... [21:38:09]Read from MH i2c: E2 03 00 6E 0A 00 90 00 EC [21:38:09]RAPDU: 90 00 [21:38:09]wFMCommunicate OK [21:38:09]wFMCommunicate request_size=255 [21:38:09]MH_SAM_APDU [21:38:09]CAPDU: 80 0D 02 02 FA 04 70 00 8A 04 0D 00 38 36 39 30 35 30 34 30 33 34 35 30 30 06 04 2C 00 D0 9A D0 9E D0 9C D0 91 D0 9E 20 D0 9A D0 BE D0 BD D0 B4 20 55 4C 4B 45 52 2D 41 6C 62 65 6E 69 20 34 30 67 72 20 28 36 2A 32 34 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 92 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8E 0F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7C 92 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 C1 37 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 [21:38:09]Write to MH i2c: E2 02 01 6F 0A 80 0D 02 02 FA 00 04 70 00 8A 04 0D 00 38 36 39 30 35 30 34 30 33 34 35 30 30 06 04 2C 00 D0 9A D0 9E D0 9C D0 91 D0 9E 20 D0 9A D0 BE D0 BD D0 B4 20 55 4C 4B 45 52 2D 41 6C 62 65 6E 69 20 34 30 67 72 20 28 36 2A 32 34 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 92 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8E 0F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7C 92 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 C1 37 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 00 00 78 [21:38:09]Write i2c OK [21:38:09]MH_I2C_Read... [21:38:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:38:10]Read from MH i2c: E2 [21:38:10]MH_I2C_Read... [21:38:10]Read from MH i2c: E2 03 00 [21:38:10]MH_I2C_Read... [21:38:10]Read from MH i2c: E2 03 00 6F 0A 00 90 00 ED [21:38:10]RAPDU: 90 00 [21:38:10]wFMCommunicate OK [21:38:10]wFMCommunicate request_size=35 [21:38:10]MH_SAM_APDU [21:38:10]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 95 F9 00 00 35 04 06 00 D3 EA 2B 16 F0 09 [21:38:10]Write to MH i2c: E2 26 00 70 0A 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 95 F9 00 00 35 04 06 00 D3 EA 2B 16 F0 09 00 00 6B [21:38:10]Write i2c OK [21:38:10]MH_I2C_Read... [21:38:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:38:10]Read from MH i2c: E2 [21:38:10]MH_I2C_Read... [21:38:10]Read from MH i2c: E2 03 00 [21:38:10]MH_I2C_Read... [21:38:10]Read from MH i2c: E2 03 00 70 0A 00 90 00 EE [21:38:10]RAPDU: 90 00 [21:38:10]wFMCommunicate OK [21:38:10]wFMCommunicate request_size=4 [21:38:10]MH_SAM_APDU [21:38:10]CAPDU: 80 0D 03 02 [21:38:10]Write to MH i2c: E2 08 00 71 0A 80 0D 03 02 00 00 00 00 F6 [21:38:10]Write i2c OK [21:38:10]MH_I2C_Read... [21:38:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:38:10]Read from MH i2c: E2 [21:38:10]MH_I2C_Read... [21:38:10]Read from MH i2c: E2 0B 00 [21:38:10]MH_I2C_Read... [21:38:10]Read from MH i2c: E2 0B 00 71 0A 00 AE 17 63 5A 49 BE 19 D3 90 00 6C [21:38:10]RAPDU: AE 17 63 5A 49 BE 19 D3 90 00 [21:38:10]wFMCommunicate OK [21:38:10]SAM_PROTO_SignData done [21:38:10]FM_MakeSignedData done [21:38:10]CreateOFDProtocolMessage [21:38:10]wFMCommunicate request_size=4 [21:38:10]MH_SAM_APDU [21:38:10]CAPDU: 80 11 00 00 [21:38:10]Write to MH i2c: E2 08 00 72 0A 80 11 00 00 00 00 00 00 F6 [21:38:10]Write i2c OK [21:38:10]MH_I2C_Read... [21:38:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:38:10]Read from MH i2c: E2 [21:38:10]MH_I2C_Read... [21:38:10]Read from MH i2c: E2 17 00 [21:38:10]MH_I2C_Read... [21:38:10]Read from MH i2c: E2 17 00 72 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 48 [21:38:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [21:38:10]wFMCommunicate OK [21:38:10]CreateOFDProtocolMessage done [21:38:10]OFDSenderStorePacket 63893 [21:38:10]StoreOFDPacket docnum=63893 [21:38:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 22 02 00 00 A0 42 1A 02 31 36 5A 03 01 00 03 00 0E 02 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 82 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 35 36 06 04 3E 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 41 4C 42 45 4E 49 20 53 55 50 45 52 20 D0 90 D0 BB D1 8C D0 B1 D0 B5 D0 BD D0 B8 20 D0 A1 D1 83 D0 BF D0 B5 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 70 00 8A 04 0D 00 38 36 39 30 35 30 34 30 33 34 35 30 30 06 04 2C 00 D0 9A D0 9E D0 9C D0 91 D0 9E 20 D0 9A D0 BE D0 BD D0 B4 20 55 4C 4B 45 52 2D 41 6C 62 65 6E 69 20 34 30 67 72 20 28 36 2A 32 34 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 92 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8E 0F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7C 92 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 C1 37 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 95 F9 00 00 35 04 06 00 D3 EA 2B 16 F0 09 AE 17 63 5A 49 BE 19 D3 [21:38:10]CheckFolder [21:38:10]dirname=/storage/ofd_packets [21:38:10]CheckFolder done [21:38:10]ProducePacketName [21:38:10]name=ofd_packets/00063893 [21:38:10]NVStorageSaveData ofd_packets/00063893 [21:38:10]File name is /storage/ofd_packets/00063893 [21:38:10]Write 576 bytes [21:38:10]NVStorageSaveData done [21:38:10]OFDSenderStorePacket done [21:38:10]KKMCreateOFDPacket done [21:38:10]NVStorageSaveData kkm_last_timestamp [21:38:10]File name is /storage/kkm_last_timestamp [21:38:10]Write 4 bytes [21:38:10]NVStorageSaveData done [21:38:10]ExternCall_PrintAddStr [21:38:10]wPrintStart [21:38:10]Write to MH i2c: 01 00 00 73 0A 7D [21:38:10]Write i2c OK [21:38:10]MH_I2C_Read... [21:38:10]Read from MH i2c: 01 [21:38:10]MH_I2C_Read... [21:38:10]Read from MH i2c: 01 07 00 [21:38:10]MH_I2C_Read... [21:38:10]Read from MH i2c: 01 07 00 73 0A 00 00 00 00 00 FF 0F 92 [21:38:10]RasterBufferAndPrint [21:38:10]line Счет N : (3)73461 [21:38:10]line ИНН: 02508201610067 [21:38:10]line Контрольно-Кассовый Чек [21:38:10]line ПРОДАЖА [21:38:10]line Товар: 2000036230011 [21:38:10]line Кофе Латте XL(GABB TRADE) [21:38:10]line 2.000 * 130.00 [21:38:10]line = 260.00 [21:38:10]line НДС 12% НСП 1% [21:38:10]line > о реализуемом товаре [21:38:10]line Товар: 4870112003956 [21:38:10]line Шок батончик ALBENI SUPER Альбени Супер [21:38:10]line 1.000 * 75.00 [21:38:10]line = 75.00 [21:38:10]line НДС 12% НСП 1% [21:38:10]line > о реализуемом товаре [21:38:10]line Товар: 8690504034500 [21:38:10]line КОМБО Конд ULKER-Albeni 40gr (6*24) [21:38:10]line 1.000 * 40.00 [21:38:10]line = 40.00 [21:38:10]line НДС 12% НСП 1% [21:38:10]line > о реализуемом товаре [21:38:10]line ИТОГО: 375.00 [21:38:10]line НСП 1% : 3.31 [21:38:10]line НДС 12% : 39.82 [21:38:10]line Наличными: 0.00 [21:38:10]line Безнал.: 375.00 [21:38:10]line Место: АЗС № 117 "Партнер Нефть" [21:38:10]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [21:38:10]line СНО: Общий режим [21:38:10]line Чек 151 03.06.2024 21:38 [21:38:10]line Смена: 373 ФФД: 1.0 [21:38:10]line ЗНМ: 0300000031 [21:38:10]line РНМ: 0000000000092737 [21:38:10]line Версия ККМ: 001 [21:38:10]line Платежная система: АКБ Кыргызстан [21:38:10]line ФМ: 0000000000875074 [21:38:10]line ФД: 63893 [21:38:10]line ФПД: 233002698731529 [21:38:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T213809&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63893&fm=233002698731529&tin=02508201610067®Number=0000000000092737&sum=37500 [21:38:10]line 0 [21:38:10]OFD Sender: Processing packet 63893 [packets to send 14, broken 13] [21:38:10]ProducePacketName [21:38:10]name=ofd_packets/00063893 [21:38:10]OFD Sender: To server: pG, [21:38:10]CommunicateWithHost lk.salyk.kg:30040 [21:38:10]ConnectInit lk.salyk.kg [21:38:10]written 0, free lines is 4095 [21:38:11]Write to MH i2c: 01 00 00 AB 0A B5 [21:38:11]Write i2c OK [21:38:11]MH_I2C_Read... [21:38:11]Read from MH i2c: 01 [21:38:11]MH_I2C_Read... [21:38:11]Read from MH i2c: 01 07 00 [21:38:11]MH_I2C_Read... [21:38:11]Read from MH i2c: 01 07 00 AB 0A 00 00 00 00 00 F9 0B C0 [21:38:11]RasterBufferAndPrint [21:38:11]line [21:38:11]line [21:38:11]line [21:38:11]line [21:38:11]line [21:38:11]written 0, free lines is 3069 [21:38:11]MH_Cut [21:38:11]Write to MH i2c: D1 01 00 B2 0A 01 8E [21:38:11]Write i2c OK [21:38:11]MH_I2C_Read... [21:38:11]Read from MH i2c: D1 [21:38:11]MH_I2C_Read... [21:38:11]Read from MH i2c: D1 01 00 [21:38:11]MH_I2C_Read... [21:38:11]Read from MH i2c: D1 01 00 B2 0A 00 8D [21:38:11]Write to MH i2c: 01 00 00 B3 0A BD [21:38:11]Write i2c OK [21:38:11]MH_I2C_Read... [21:38:12]*** Cut start [21:38:12]*** Partial cut [21:38:12]*** CUTSNS_PIN = 1 [21:38:12]*** CUTSNS_PIN = 0 [21:38:12]*** Brake cut motor [21:38:12]Read from MH i2c: 01 [21:38:12]MH_I2C_Read... [21:38:12]*** Stop cut motor [21:38:12]*** Cut end [21:38:12]Read from MH i2c: 01 07 00 [21:38:12]MH_I2C_Read... [21:38:12]Read from MH i2c: 01 07 00 B3 0A 00 00 00 00 00 FF 0F D2 [21:38:12]process_action close_receipt done [21:38:12]requested_data is exist [21:38:12]produce_requested_data [21:38:12]requested_item fm.sn is exist - process it [21:38:12]wFMCommunicate request_size=4 [21:38:12]MH_SAM_APDU [21:38:12]CAPDU: 80 11 00 00 [21:38:12]Write to MH i2c: E2 08 00 B4 0A 80 11 00 00 00 00 00 00 38 [21:38:12]Write i2c OK [21:38:12]MH_I2C_Read... [21:38:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:38:12]Read from MH i2c: E2 [21:38:12]MH_I2C_Read... [21:38:12]Read from MH i2c: E2 17 00 [21:38:12]MH_I2C_Read... [21:38:12]Read from MH i2c: E2 17 00 B4 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 8A [21:38:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [21:38:12]wFMCommunicate OK [21:38:12]requested_item fd.num is exist - process it [21:38:12]SAM_PROTO_GetFieldsCounters [21:38:12]wFMCommunicate request_size=4 [21:38:12]MH_SAM_APDU [21:38:12]CAPDU: 80 13 00 00 [21:38:12]Write to MH i2c: E2 08 00 B5 0A 80 13 00 00 00 00 00 00 3B [21:38:12]Write i2c OK [21:38:12]MH_I2C_Read... [21:38:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:38:12]Read from MH i2c: E2 [21:38:12]MH_I2C_Read... [21:38:12]Read from MH i2c: E2 62 00 [21:38:12]MH_I2C_Read... [21:38:13]Read from MH i2c: E2 62 00 B5 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 95 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 97 00 00 00 5E 04 04 00 97 00 00 00 57 04 04 00 98 00 00 00 19 04 04 00 00 00 00 00 90 00 27 [21:38: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 95 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 97 00 00 00 5E 04 04 00 97 00 00 00 57 04 04 00 98 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:38:13]wFMCommunicate OK [21:38:13]SAM_PROTO_GetFieldsCounters done [21:38:13]requested_item shift.num is exist - process it [21:38:13]requested_item shift.opened is exist - process it [21:38:13]req_shift_opened [21:38:13]FM_GetShiftState [21:38:13]SAM_PROTO_GetShiftState [21:38:13]wFMCommunicate request_size=4 [21:38:13]MH_SAM_APDU [21:38:13]CAPDU: 80 13 01 00 [21:38:13]Write to MH i2c: E2 08 00 B6 0A 80 13 01 00 00 00 00 00 3D [21:38:13]Write i2c OK [21:38:13]MH_I2C_Read... [21:38:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:38:13]Read from MH i2c: E2 [21:38:13]MH_I2C_Read... [21:38:13]Read from MH i2c: E2 0E 00 [21:38:13]MH_I2C_Read... [21:38:13]Read from MH i2c: E2 0E 00 B6 0A 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 09 [21:38:13]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [21:38:13]wFMCommunicate OK [21:38:13]SAM_PROTO_GetShiftState done [21:38:13]FM_GetShiftState done [21:38:13]req_shift_opened done [21:38:13]requested_item shift.open_date is exist - process it [21:38:13]req_shift_open_date [21:38:13]req_shift_open_date done [21:38:13]produce_requested_data done [21:38:13]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63893,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [21:38:13]process_action_free close_receipt [21:38:13]json_value_free [21:38:13]json_value_free done [21:38:13]process_json_proto returns [21:38:13]Send response to host [21:38:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63893,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [21:38:13]free response buf [21:38:13]execute_script done [21:38:13]execute_script returns [21:38:13]free content buf [21:38:13]Sock 9.Close socket [21:38:13]Sock 9.Thread stoped [21:40:23]ConnectInit Can't connect to host [21:40:23]CommunicateWithHost connect error [21:40:23]CommunicateWithHost err = -1 [21:40:23]OFD Sender: Server communicate error [21:40:28]OFD Sender: Processing packet 63893 [packets to send 14, broken 13] [21:40:28]ProducePacketName [21:40:28]name=ofd_packets/00063893 [21:40:28]OFD Sender: To server: pG, [21:40:28]CommunicateWithHost lk.salyk.kg:30040 [21:40:28]ConnectInit lk.salyk.kg [21:40:29]Connected sock=9 [21:40:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 22 02 00 00 A0 42 1A 02 31 36 5A 03 01 00 03 00 0E 02 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 82 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 35 36 06 04 3E 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 41 4C 42 45 4E 49 20 53 55 50 45 52 20 D0 90 D0 BB D1 8C D0 B1 D0 B5 D0 BD D0 B8 20 D0 A1 D1 83 D0 BF D0 B5 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 70 00 8A 04 0D 00 38 36 39 30 35 30 34 30 33 34 35 30 30 06 04 2C 00 D0 9A D0 9E D0 9C D0 91 D0 9E 20 D0 9A D0 BE D0 BD D0 B4 20 55 4C 4B 45 52 2D 41 6C 62 65 6E 69 20 34 30 67 72 20 28 36 2A 32 34 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 92 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8E 0F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7C 92 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 C1 37 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 95 F9 00 00 35 04 06 00 D3 EA 2B 16 F0 09 AE 17 63 5A 49 BE 19 D3 [21:40:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 44 8B 47 00 EA 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 35 30 37 34 10 04 04 00 95 F9 00 00 F4 03 04 00 1C E4 5D 66 B6 04 01 00 00 35 DB 31 17 CF C9 8D 2E [21:40:29]CommunicateWithHost err = 0 [21:40:29]CheckOFDResponse [21:40:29]1017 (14) - 77093643461234 [21:40:29]1041 (16) - 0000000000875074 [21:40:29]1040 (4) - 63893 [21:40:29]1012 (4) - 03.06.2024 15:41 [21:40:29]1206 (1) - 0 [21:40:29]OFD Sender: Remove packet 63893 [21:40:29]ProducePacketName [21:40:29]name=ofd_packets/00063893 [21:40:29]NVStorageDeleteData [21:40:29]OFD Sender: No OFD packet to send [21:40:34]OFD Sender: No OFD packet to send [21:40:39]OFD Sender: No OFD packet to send [21:40:44]OFD Sender: No OFD packet to send [21:40:49]OFD Sender: No OFD packet to send [21:40:54]OFD Sender: No OFD packet to send [21:40:59]OFD Sender: No OFD packet to send [21:41:04]OFD Sender: No OFD packet to send [21:41:09]OFD Sender: No OFD packet to send [21:41:14]OFD Sender: No OFD packet to send [21:41:19]OFD Sender: No OFD packet to send [21:41:24]OFD Sender: No OFD packet to send [21:41:29]OFD Sender: No OFD packet to send [21:41:34]OFD Sender: No OFD packet to send [21:41:39]OFD Sender: No OFD packet to send [21:41:44]OFD Sender: No OFD packet to send [21:41:49]OFD Sender: No OFD packet to send [21:41:54]OFD Sender: No OFD packet to send [21:41:59]OFD Sender: No OFD packet to send [21:42:04]OFD Sender: No OFD packet to send [21:42:09]OFD Sender: No OFD packet to send [21:42:12]accept exits with 7 [21:42:12]New connection [21:42:12]New thread 3066576228 created [21:42:12]Thread 3066719588 joined [21:42:12]Waiting for new connection... [21:42:12] Sock 7.Parse request [21:42:12]Sock 7.Check first char [21:42:12]Sock 7.First char is OK [21:42:12]request: POST /json_proto HTTP/1.0 [21:42:12]Method: POST [21:42:12]URL: /json_proto [21:42:12]Method is POST - this is cgi request [21:42:12]url: /json_proto [21:42:12]query_string will be loaded in cgi processing [21:42:12]execute_cgi json_proto POST (null) [21:42:12]execute_cgi path=json_proto method=POST [21:42:12]POST find Content-Length [21:42:12]Host: 172.17.60.69:8080 [21:42:12]Content-Length: 1121 [21:42:12]Content-Type: application/json [21:42:12] [21:42:12]POST finish read [21:42:12]Found Content-Length = 1121 [21:42:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73462", "tax_sys" : 0, "items" : [ { "code": "2000036240010", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 (GABB TRADE)", "price" : 115.00, "quantity" : 2.000, "sum" : 230.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4602606003728", "name": "\u041C\u0430\u0440-\u0434 Fruit-tella \u0437\u043C\u0435\u0438 XXL 30*70\u0433", "price" : 103.00, "quantity" : 2.000, "sum" : 206.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 566.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:42:12]execute_script... [21:42:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73462", "tax_sys" : 0, "items" : [ { "code": "2000036240010", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 (GABB TRADE)", "price" : 115.00, "quantity" : 2.000, "sum" : 230.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4602606003728", "name": "\u041C\u0430\u0440-\u0434 Fruit-tella \u0437\u043C\u0435\u0438 XXL 30*70\u0433", "price" : 103.00, "quantity" : 2.000, "sum" : 206.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 566.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:42:12]POST & json_proto [21:42:12]process_json_proto [21:42:12]json parsed OK: [21:42:12]protocol is kg_v1.0 [21:42:12]action value=close_receipt [21:42:12]process_action close_receipt [21:42:12]cmd_close_receipt [21:42:12]MH_GetDate [21:42:12]Write to MH i2c: F0 00 00 B7 0A B0 [21:42:12]Write i2c OK [21:42:12]MH_I2C_Read... [21:42:12]Read from MH i2c: F0 [21:42:12]MH_I2C_Read... [21:42:12]Read from MH i2c: F0 09 00 [21:42:12]MH_I2C_Read... [21:42:12]Read from MH i2c: F0 09 00 B7 0A 00 B5 38 5E 66 6A 96 4A 66 1A [21:42:12]GetLastDocTimeStamp 1717450689 [21:42:12]current date 1717450933 [21:42:12]FM_GetShiftState [21:42:12]SAM_PROTO_GetShiftState [21:42:12]wFMCommunicate request_size=4 [21:42:12]MH_SAM_APDU [21:42:12]CAPDU: 80 13 01 00 [21:42:12]Write to MH i2c: E2 08 00 B8 0A 80 13 01 00 00 00 00 00 3F [21:42:12]Write i2c OK [21:42:12]MH_I2C_Read... [21:42:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:42:12]Read from MH i2c: E2 [21:42:12]MH_I2C_Read... [21:42:12]Read from MH i2c: E2 0E 00 [21:42:12]MH_I2C_Read... [21:42:12]Read from MH i2c: E2 0E 00 B8 0A 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 0B [21:42:12]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [21:42:12]wFMCommunicate OK [21:42:12]SAM_PROTO_GetShiftState done [21:42:12]FM_GetShiftState done [21:42:12]opened in 1717373173 [21:42:12]opened+sec_in_day 1717459573 [21:42:12]quantity*price = 23000 [21:42:12]sum+1 = 23001 [21:42:12]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036230011 Кофе Латте XL(GABB TRADE) 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4602606003728 Мар-д Fruit-tella змеи XXL 30*70г 2.000 * 103.00 = 206.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 566.00 НСП 1% : 5.00 НДС 12% : 60.10 Наличными: 566.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 152 03.06.2024 21:42 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63894 ФПД: 46889243096184 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T214213&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63894&fm=46889243096184&tin=02508201610067®Number=0000000000092737&sum=56600 0 [21:42:13]StoreToDocumentArchive [21:42:13]shift 373 fd 63894 [21:42:13]save to /storage/0373/doc_00063894 [21:42:13]save last doc name /storage/0373/doc_00063894 to /storage/kkm_last_doc_name [21:42:13]save OK [21:42:13]Clear old archive folders... [21:42:13]ProcessDocumentItem done err = 0, tmpTLVsize=494 [21:42:13]tlvbuf is 00AC61B0 [21:42:13]SAM_PROTO_ClearQueue [21:42:13]wFMCommunicate request_size=4 [21:42:13]MH_SAM_APDU [21:42:13]CAPDU: 80 09 00 00 [21:42:13]Write to MH i2c: E2 08 00 C5 0A 80 09 00 00 00 00 00 00 41 [21:42:13]Write i2c OK [21:42:13]MH_I2C_Read... [21:42:13]Read from MH i2c: E2 [21:42:13]MH_I2C_Read... [21:42:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:42:13]Read from MH i2c: E2 03 00 [21:42:13]MH_I2C_Read... [21:42:13]Read from MH i2c: E2 03 00 C5 0A 00 90 00 43 [21:42:13]RAPDU: 90 00 [21:42:13]wFMCommunicate OK [21:42:13]SAM_PROTO_ClearQueue done [21:42:13]KKMCreateOFDPacket [21:42:13]OFDProtocolAddRootSTLVToBuf [21:42:13]FM_MakeSignedData [21:42:13]FM_MakeSignedData [21:42:13]SAM_PROTO_SignData [21:42:13]wFMCommunicate request_size=4 [21:42:13]MH_SAM_APDU [21:42:13]CAPDU: 80 0D 01 02 [21:42:13]Write to MH i2c: E2 08 00 C6 0A 80 0D 01 02 00 00 00 00 49 [21:42:13]Write i2c OK [21:42:13]MH_I2C_Read... [21:42:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:42:13]Read from MH i2c: E2 [21:42:13]MH_I2C_Read... [21:42:13]Read from MH i2c: E2 03 00 [21:42:13]MH_I2C_Read... [21:42:13]Read from MH i2c: E2 03 00 C6 0A 00 90 00 44 [21:42:13]RAPDU: 90 00 [21:42:13]wFMCommunicate OK [21:42:13]wFMCommunicate request_size=255 [21:42:13]MH_SAM_APDU [21:42:13]CAPDU: 80 0D 02 02 FA 03 00 EE 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 36 30 32 36 30 36 30 30 33 37 32 38 06 04 2A 00 D0 9C D0 B0 D1 80 [21:42:13]Write to MH i2c: E2 02 01 C7 0A 80 0D 02 02 FA 00 03 00 EE 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 36 30 32 36 30 36 30 30 33 37 32 38 06 04 2A 00 D0 9C D0 B0 D1 80 00 00 46 [21:42:13]Write i2c OK [21:42:13]MH_I2C_Read... [21:42:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:42:13]Read from MH i2c: E2 [21:42:13]MH_I2C_Read... [21:42:13]Read from MH i2c: E2 03 00 [21:42:13]MH_I2C_Read... [21:42:13]Read from MH i2c: E2 03 00 C7 0A 00 90 00 45 [21:42:13]RAPDU: 90 00 [21:42:13]wFMCommunicate OK [21:42:13]wFMCommunicate request_size=253 [21:42:13]MH_SAM_APDU [21:42:13]CAPDU: 80 0D 02 02 F8 2D D0 B4 20 46 72 75 69 74 2D 74 65 6C 6C 61 20 D0 B7 D0 BC D0 B5 D0 B8 20 58 58 4C 20 33 30 2A 37 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 3C 28 00 00 00 00 13 04 06 00 78 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 DD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F4 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 17 00 00 00 00 07 04 06 00 18 DD 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 B5 38 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 96 F9 00 00 35 04 06 00 2A A5 40 AD B4 78 [21:42:13]Write to MH i2c: E2 00 01 C8 0A 80 0D 02 02 F8 00 2D D0 B4 20 46 72 75 69 74 2D 74 65 6C 6C 61 20 D0 B7 D0 BC D0 B5 D0 B8 20 58 58 4C 20 33 30 2A 37 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 3C 28 00 00 00 00 13 04 06 00 78 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 DD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F4 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 17 00 00 00 00 07 04 06 00 18 DD 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 B5 38 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 96 F9 00 00 35 04 06 00 2A A5 40 AD B4 78 00 00 56 [21:42:13]Write i2c OK [21:42:13]MH_I2C_Read... [21:42:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:42:14]Read from MH i2c: E2 [21:42:14]MH_I2C_Read... [21:42:14]Read from MH i2c: E2 03 00 [21:42:14]MH_I2C_Read... [21:42:14]Read from MH i2c: E2 03 00 C8 0A 00 90 00 46 [21:42:14]RAPDU: 90 00 [21:42:14]wFMCommunicate OK [21:42:14]wFMCommunicate request_size=4 [21:42:14]MH_SAM_APDU [21:42:14]CAPDU: 80 0D 03 02 [21:42:14]Write to MH i2c: E2 08 00 C9 0A 80 0D 03 02 00 00 00 00 4E [21:42:14]Write i2c OK [21:42:14]MH_I2C_Read... [21:42:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:42:14]Read from MH i2c: E2 [21:42:14]MH_I2C_Read... [21:42:14]Read from MH i2c: E2 0B 00 [21:42:14]MH_I2C_Read... [21:42:14]Read from MH i2c: E2 0B 00 C9 0A 00 FB 2F 64 0A 81 59 32 F1 90 00 E4 [21:42:14]RAPDU: FB 2F 64 0A 81 59 32 F1 90 00 [21:42:14]wFMCommunicate OK [21:42:14]SAM_PROTO_SignData done [21:42:14]FM_MakeSignedData done [21:42:14]CreateOFDProtocolMessage [21:42:14]wFMCommunicate request_size=4 [21:42:14]MH_SAM_APDU [21:42:14]CAPDU: 80 11 00 00 [21:42:14]Write to MH i2c: E2 08 00 CA 0A 80 11 00 00 00 00 00 00 4E [21:42:14]Write i2c OK [21:42:14]MH_I2C_Read... [21:42:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:42:14]Read from MH i2c: E2 [21:42:14]MH_I2C_Read... [21:42:14]Read from MH i2c: E2 17 00 [21:42:14]MH_I2C_Read... [21:42:14]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 35 30 37 34 90 00 A0 [21:42:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [21:42:14]wFMCommunicate OK [21:42:14]CreateOFDProtocolMessage done [21:42:14]OFDSenderStorePacket 63894 [21:42:14]StoreOFDPacket docnum=63894 [21:42:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 02 02 00 00 8D E6 FA 01 17 A1 5A 03 01 00 03 00 EE 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 36 30 32 36 30 36 30 30 33 37 32 38 06 04 2A 00 D0 9C D0 B0 D1 80 2D D0 B4 20 46 72 75 69 74 2D 74 65 6C 6C 61 20 D0 B7 D0 BC D0 B5 D0 B8 20 58 58 4C 20 33 30 2A 37 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 3C 28 00 00 00 00 13 04 06 00 78 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 DD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F4 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 17 00 00 00 00 07 04 06 00 18 DD 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 B5 38 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 96 F9 00 00 35 04 06 00 2A A5 40 AD B4 78 FB 2F 64 0A 81 59 32 F1 [21:42:14]CheckFolder [21:42:14]dirname=/storage/ofd_packets [21:42:14]CheckFolder done [21:42:14]ProducePacketName [21:42:14]name=ofd_packets/00063894 [21:42:14]NVStorageSaveData ofd_packets/00063894 [21:42:14]File name is /storage/ofd_packets/00063894 [21:42:14]Write 544 bytes [21:42:14]NVStorageSaveData done [21:42:14]OFDSenderStorePacket done [21:42:14]KKMCreateOFDPacket done [21:42:14]NVStorageSaveData kkm_last_timestamp [21:42:14]File name is /storage/kkm_last_timestamp [21:42:14]Write 4 bytes [21:42:14]NVStorageSaveData done [21:42:14]ExternCall_PrintAddStr [21:42:14]wPrintStart [21:42:14]Write to MH i2c: 01 00 00 CB 0A D5 [21:42:14]Write i2c OK [21:42:14]MH_I2C_Read... [21:42:14]Read from MH i2c: 01 [21:42:14]MH_I2C_Read... [21:42:14]Read from MH i2c: 01 07 00 [21:42:14]MH_I2C_Read... [21:42:14]Read from MH i2c: 01 07 00 CB 0A 00 00 00 00 00 FF 0F EA [21:42:14]RasterBufferAndPrint [21:42:14]line Счет N : (3)73462 [21:42:14]line ИНН: 02508201610067 [21:42:14]line Контрольно-Кассовый Чек [21:42:14]line ПРОДАЖА [21:42:14]line Товар: 2000036240010 [21:42:14]line Кофе Латте (GABB TRADE) [21:42:14]line 2.000 * 115.00 [21:42:14]line = 230.00 [21:42:14]line НДС 12% НСП 1% [21:42:14]line > о реализуемом товаре [21:42:14]line Товар: 2000036230011 [21:42:14]line Кофе Латте XL(GABB TRADE) [21:42:14]line 1.000 * 130.00 [21:42:14]line = 130.00 [21:42:14]line НДС 12% НСП 1% [21:42:14]line > о реализуемом товаре [21:42:14]line Товар: 4602606003728 [21:42:14]line Мар-д Fruit-tella змеи XXL 30*70г [21:42:14]line 2.000 * 103.00 [21:42:14]line = 206.00 [21:42:14]line НДС 12% НСП 1% [21:42:14]line > о реализуемом товаре [21:42:14]line ИТОГО: 566.00 [21:42:14]line НСП 1% : 5.00 [21:42:14]line НДС 12% : 60.10 [21:42:14]line Наличными: 566.00 [21:42:14]line Безнал.: 0.00 [21:42:14]line Место: АЗС № 117 "Партнер Нефть" [21:42:14]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [21:42:14]line СНО: Общий режим [21:42:14]line Чек 152 03.06.2024 21:42 [21:42:14]line Смена: 373 ФФД: 1.0 [21:42:14]line ЗНМ: 0300000031 [21:42:14]line РНМ: 0000000000092737 [21:42:14]line Версия ККМ: 001 [21:42:14]line ФМ: 0000000000875074 [21:42:14]line ФД: 63894 [21:42:14]line ФПД: 46889243096184 [21:42:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T214213&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63894&fm=46889243096184&tin=02508201610067®Number=0000000000092737&sum=56600 [21:42:14]line 0 [21:42:14]written 0, free lines is 4095 [21:42:14]OFD Sender: Processing packet 63894 [packets to send 14, broken 13] [21:42:14]ProducePacketName [21:42:14]name=ofd_packets/00063894 [21:42:14]OFD Sender: To server: pG, [21:42:14]CommunicateWithHost lk.salyk.kg:30040 [21:42:14]ConnectInit lk.salyk.kg [21:42:14]Connected sock=10 [21: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 35 30 37 34 02 02 00 00 8D E6 FA 01 17 A1 5A 03 01 00 03 00 EE 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 36 30 32 36 30 36 30 30 33 37 32 38 06 04 2A 00 D0 9C D0 B0 D1 80 2D D0 B4 20 46 72 75 69 74 2D 74 65 6C 6C 61 20 D0 B7 D0 BC D0 B5 D0 B8 20 58 58 4C 20 33 30 2A 37 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 3C 28 00 00 00 00 13 04 06 00 78 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 DD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F4 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 17 00 00 00 00 07 04 06 00 18 DD 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 B5 38 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 96 F9 00 00 35 04 06 00 2A A5 40 AD B4 78 FB 2F 64 0A 81 59 32 F1 [21:42:14]Write to MH i2c: 01 00 00 00 0B 0B [21:42:14]Write i2c OK [21:42:14]MH_I2C_Read... [21:42:14]Read from MH i2c: 01 [21:42:14]MH_I2C_Read... [21:42:14]Read from MH i2c: 01 07 00 [21:42:14]MH_I2C_Read... [21:42:14]Read from MH i2c: 01 07 00 00 0B 00 00 00 00 00 33 0C 51 [21:42:14]RasterBufferAndPrint [21:42:14]line [21:42:14]line [21:42:14]line [21:42:14]line [21:42:14]line [21:42:14]written 0, free lines is 3129 [21:42:14]MH_Cut [21:42:14]Write to MH i2c: D1 01 00 07 0B 01 E4 [21:42:14]Write i2c OK [21:42:14]MH_I2C_Read... [21:42:14]Read from MH i2c: D1 [21:42:14]MH_I2C_Read... [21:42:14]Read from MH i2c: D1 01 00 [21:42:14]MH_I2C_Read... [21:42:14]Read from MH i2c: D1 01 00 07 0B 00 E3 [21:42:14]Write to MH i2c: 01 00 00 08 0B 13 [21:42:14]Write i2c OK [21:42:14]MH_I2C_Read... [21:42:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 EF 8F 47 00 FA 81 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 96 F9 00 00 F4 03 04 00 85 E4 5D 66 B6 04 01 00 00 1C CC 64 64 3C 72 93 07 [21:42:14]CommunicateWithHost err = 0 [21:42:14]CheckOFDResponse [21:42:14]1017 (14) - 77093643461234 [21:42:14]1041 (16) - 0000000000875074 [21:42:14]1040 (4) - 63894 [21:42:14]1012 (4) - 03.06.2024 15:43 [21:42:14]1206 (1) - 0 [21:42:14]OFD Sender: Remove packet 63894 [21:42:14]ProducePacketName [21:42:14]name=ofd_packets/00063894 [21:42:14]NVStorageDeleteData [21:42:15]OFD Sender: No OFD packet to send [21:42:15]*** Cut start [21:42:15]*** Partial cut [21:42:15]*** CUTSNS_PIN = 1 [21:42:15]*** CUTSNS_PIN = 0 [21:42:16]*** Brake cut motor [21:42:16]Read from MH i2c: 01 [21:42:16]MH_I2C_Read... [21:42:16]*** Stop cut motor [21:42:16]*** Cut end [21:42:16]Read from MH i2c: 01 07 00 [21:42:16]MH_I2C_Read... [21:42:16]Read from MH i2c: 01 07 00 08 0B 00 00 00 00 00 FF 0F 28 [21:42:16]process_action close_receipt done [21:42:16]requested_data is exist [21:42:16]produce_requested_data [21:42:16]requested_item fm.sn is exist - process it [21:42:16]wFMCommunicate request_size=4 [21:42:16]MH_SAM_APDU [21:42:16]CAPDU: 80 11 00 00 [21:42:16]Write to MH i2c: E2 08 00 09 0B 80 11 00 00 00 00 00 00 8E [21:42:16]Write i2c OK [21:42:16]MH_I2C_Read... [21:42:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:42:16]Read from MH i2c: E2 [21:42:16]MH_I2C_Read... [21:42:16]Read from MH i2c: E2 17 00 [21:42:16]MH_I2C_Read... [21:42:16]Read from MH i2c: E2 17 00 09 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 E0 [21:42:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [21:42:16]wFMCommunicate OK [21:42:16]requested_item fd.num is exist - process it [21:42:16]SAM_PROTO_GetFieldsCounters [21:42:16]wFMCommunicate request_size=4 [21:42:16]MH_SAM_APDU [21:42:16]CAPDU: 80 13 00 00 [21:42:16]Write to MH i2c: E2 08 00 0A 0B 80 13 00 00 00 00 00 00 91 [21:42:16]Write i2c OK [21:42:16]MH_I2C_Read... [21:42:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:42:16]Read from MH i2c: E2 [21:42:16]MH_I2C_Read... [21:42:16]Read from MH i2c: E2 62 00 [21:42:16]MH_I2C_Read... [21:42:16]Read from MH i2c: E2 62 00 0A 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 96 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 98 00 00 00 5E 04 04 00 98 00 00 00 57 04 04 00 99 00 00 00 19 04 04 00 00 00 00 00 90 00 81 [21:42:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 96 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 98 00 00 00 5E 04 04 00 98 00 00 00 57 04 04 00 99 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:42:16]wFMCommunicate OK [21:42:16]SAM_PROTO_GetFieldsCounters done [21:42:16]requested_item shift.num is exist - process it [21:42:16]requested_item shift.opened is exist - process it [21:42:16]req_shift_opened [21:42:16]FM_GetShiftState [21:42:16]SAM_PROTO_GetShiftState [21:42:16]wFMCommunicate request_size=4 [21:42:16]MH_SAM_APDU [21:42:16]CAPDU: 80 13 01 00 [21:42:16]Write to MH i2c: E2 08 00 0B 0B 80 13 01 00 00 00 00 00 93 [21:42:16]Write i2c OK [21:42:16]MH_I2C_Read... [21:42:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:42:16]Read from MH i2c: E2 [21:42:16]MH_I2C_Read... [21:42:16]Read from MH i2c: E2 0E 00 [21:42:16]MH_I2C_Read... [21:42:16]Read from MH i2c: E2 0E 00 0B 0B 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 5F [21:42:16]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [21:42:16]wFMCommunicate OK [21:42:16]SAM_PROTO_GetShiftState done [21:42:16]FM_GetShiftState done [21:42:16]req_shift_opened done [21:42:16]requested_item shift.open_date is exist - process it [21:42:16]req_shift_open_date [21:42:16]req_shift_open_date done [21:42:16]produce_requested_data done [21:42:16]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63894,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [21:42:16]process_action_free close_receipt [21:42:16]json_value_free [21:42:16]json_value_free done [21:42:16]process_json_proto returns [21:42:16]Send response to host [21:42:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63894,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [21:42:16]free response buf [21:42:16]execute_script done [21:42:16]execute_script returns [21:42:16]free content buf [21:42:16]Sock 7.Close socket [21:42:16]Sock 7.Thread stoped [21:42:20]OFD Sender: No OFD packet to send [21:42:25]OFD Sender: No OFD packet to send [21:42:25]accept exits with 9 [21:42:25]New connection [21:42:25]New thread 3066719588 created [21:42:25]Thread 3066576228 joined [21:42:25]Waiting for new connection... [21:42:25] Sock 9.Parse request [21:42:25]Sock 9.Check first char [21:42:25]Sock 9.First char is OK [21:42:25]request: POST /json_proto HTTP/1.0 [21:42:25]Method: POST [21:42:25]URL: /json_proto [21:42:25]Method is POST - this is cgi request [21:42:25]url: /json_proto [21:42:25]query_string will be loaded in cgi processing [21:42:25]execute_cgi json_proto POST (null) [21:42:25]execute_cgi path=json_proto method=POST [21:42:25]POST find Content-Length [21:42:25]Host: 172.17.60.69:8080 [21:42:25]Content-Length: 621 [21:42:25]Content-Type: application/json [21:42:25] [21:42:25]POST finish read [21:42:25]Found Content-Length = 621 [21:42:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73463", "tax_sys" : 0, "items" : [ { "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 151.00, "quantity" : 1.000, "sum" : 151.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 151.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:42:25]execute_script... [21:42:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73463", "tax_sys" : 0, "items" : [ { "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 151.00, "quantity" : 1.000, "sum" : 151.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 151.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:42:25]POST & json_proto [21:42:25]process_json_proto [21:42:25]json parsed OK: [21:42:25]protocol is kg_v1.0 [21:42:25]action value=close_receipt [21:42:25]process_action close_receipt [21:42:25]cmd_close_receipt [21:42:25]MH_GetDate [21:42:25]Write to MH i2c: F0 00 00 0C 0B 06 [21:42:25]Write i2c OK [21:42:25]MH_I2C_Read... [21:42:25]Read from MH i2c: F0 [21:42:25]MH_I2C_Read... [21:42:25]Read from MH i2c: F0 09 00 [21:42:25]MH_I2C_Read... [21:42:25]Read from MH i2c: F0 09 00 0C 0B 00 C2 38 5E 66 6A 96 4A 66 7D [21:42:25]GetLastDocTimeStamp 1717450933 [21:42:25]current date 1717450946 [21:42:25]FM_GetShiftState [21:42:25]SAM_PROTO_GetShiftState [21:42:25]wFMCommunicate request_size=4 [21:42:25]MH_SAM_APDU [21:42:25]CAPDU: 80 13 01 00 [21:42:25]Write to MH i2c: E2 08 00 0D 0B 80 13 01 00 00 00 00 00 95 [21:42:25]Write i2c OK [21:42:25]MH_I2C_Read... [21:42:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:42:25]Read from MH i2c: E2 [21:42:25]MH_I2C_Read... [21:42:25]Read from MH i2c: E2 0E 00 [21:42:25]MH_I2C_Read... [21:42:25]Read from MH i2c: E2 0E 00 0D 0B 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 61 [21:42:25]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [21:42:25]wFMCommunicate OK [21:42:25]SAM_PROTO_GetShiftState done [21:42:25]FM_GetShiftState done [21:42:25]opened in 1717373173 [21:42:25]opened+sec_in_day 1717459573 [21:42:25]quantity*price = 15100 [21:42:25]sum+1 = 15101 [21:42:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 151.00 НСП 1% : 1.34 НДС 12% : 16.03 Наличными: 151.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 153 03.06.2024 21:42 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63895 ФПД: 128616423308740 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T214226&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63895&fm=128616423308740&tin=02508201610067®Number=0000000000092737&sum=15100 0 [21:42:26]StoreToDocumentArchive [21:42:26]shift 373 fd 63895 [21:42:26]save to /storage/0373/doc_00063895 [21:42:26]save last doc name /storage/0373/doc_00063895 to /storage/kkm_last_doc_name [21:42:26]save OK [21:42:26]Clear old archive folders... [21:42:26]ProcessDocumentItem done err = 0, tmpTLVsize=274 [21:42:26]tlvbuf is 00AB1310 [21:42:26]SAM_PROTO_ClearQueue [21:42:26]wFMCommunicate request_size=4 [21:42:26]MH_SAM_APDU [21:42:26]CAPDU: 80 09 00 00 [21:42:26]Write to MH i2c: E2 08 00 1A 0B 80 09 00 00 00 00 00 00 97 [21:42:26]Write i2c OK [21:42:26]MH_I2C_Read... [21:42:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:42:26]Read from MH i2c: E2 [21:42:26]MH_I2C_Read... [21:42:26]Read from MH i2c: E2 03 00 [21:42:26]MH_I2C_Read... [21:42:26]Read from MH i2c: E2 03 00 1A 0B 00 90 00 99 [21:42:26]RAPDU: 90 00 [21:42:26]wFMCommunicate OK [21:42:26]SAM_PROTO_ClearQueue done [21:42:26]KKMCreateOFDPacket [21:42:26]OFDProtocolAddRootSTLVToBuf [21:42:26]FM_MakeSignedData [21:42:26]FM_MakeSignedData [21:42:26]SAM_PROTO_SignData [21:42:26]wFMCommunicate request_size=4 [21:42:26]MH_SAM_APDU [21:42:26]CAPDU: 80 0D 01 02 [21:42:26]Write to MH i2c: E2 08 00 1B 0B 80 0D 01 02 00 00 00 00 9F [21:42:26]Write i2c OK [21:42:26]MH_I2C_Read... [21:42:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:42:26]Read from MH i2c: E2 [21:42:26]MH_I2C_Read... [21:42:26]Read from MH i2c: E2 03 00 [21:42:26]MH_I2C_Read... [21:42:26]Read from MH i2c: E2 03 00 1B 0B 00 90 00 9A [21:42:26]RAPDU: 90 00 [21:42:26]wFMCommunicate OK [21:42:26]wFMCommunicate request_size=255 [21:42:26]MH_SAM_APDU [21:42:26]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 C2 38 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 [21:42:26]Write to MH i2c: E2 02 01 1C 0B 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 C2 38 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 00 00 38 [21:42:26]Write i2c OK [21:42:26]MH_I2C_Read... [21:42:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:42:27]Read from MH i2c: E2 [21:42:27]MH_I2C_Read... [21:42:27]Read from MH i2c: E2 03 00 [21:42:27]MH_I2C_Read... [21:42:27]Read from MH i2c: E2 03 00 1C 0B 00 90 00 9B [21:42:27]RAPDU: 90 00 [21:42:27]wFMCommunicate OK [21:42:27]wFMCommunicate request_size=33 [21:42:27]MH_SAM_APDU [21:42:27]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 35 30 37 34 10 04 04 00 97 F9 00 00 35 04 06 00 74 F9 D8 39 3D C4 [21:42:27]Write to MH i2c: E2 24 00 1D 0B 80 0D 02 02 1C 00 30 30 30 30 38 37 35 30 37 34 10 04 04 00 97 F9 00 00 35 04 06 00 74 F9 D8 39 3D C4 00 00 3F [21:42:27]Write i2c OK [21:42:27]MH_I2C_Read... [21:42:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:42:27]Read from MH i2c: E2 [21:42:27]MH_I2C_Read... [21:42:27]Read from MH i2c: E2 03 00 [21:42:27]MH_I2C_Read... [21:42:27]Read from MH i2c: E2 03 00 1D 0B 00 90 00 9C [21:42:27]RAPDU: 90 00 [21:42:27]wFMCommunicate OK [21:42:27]wFMCommunicate request_size=4 [21:42:27]MH_SAM_APDU [21:42:27]CAPDU: 80 0D 03 02 [21:42:27]Write to MH i2c: E2 08 00 1E 0B 80 0D 03 02 00 00 00 00 A4 [21:42:27]Write i2c OK [21:42:27]MH_I2C_Read... [21:42:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:42:27]Read from MH i2c: E2 [21:42:27]MH_I2C_Read... [21:42:27]Read from MH i2c: E2 0B 00 [21:42:27]MH_I2C_Read... [21:42:27]Read from MH i2c: E2 0B 00 1E 0B 00 BB 8E 95 4D 83 00 16 1C 90 00 85 [21:42:27]RAPDU: BB 8E 95 4D 83 00 16 1C 90 00 [21:42:27]wFMCommunicate OK [21:42:27]SAM_PROTO_SignData done [21:42:27]FM_MakeSignedData done [21:42:27]CreateOFDProtocolMessage [21:42:27]wFMCommunicate request_size=4 [21:42:27]MH_SAM_APDU [21:42:27]CAPDU: 80 11 00 00 [21:42:27]Write to MH i2c: E2 08 00 1F 0B 80 11 00 00 00 00 00 00 A4 [21:42:27]Write i2c OK [21:42:27]MH_I2C_Read... [21:42:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:42:27]Read from MH i2c: E2 [21:42:27]MH_I2C_Read... [21:42:27]Read from MH i2c: E2 17 00 [21:42:27]MH_I2C_Read... [21:42:27]Read from MH i2c: E2 17 00 1F 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 F6 [21:42:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [21:42:27]wFMCommunicate OK [21:42:27]CreateOFDProtocolMessage done [21:42:27]OFDSenderStorePacket 63895 [21:42:27]StoreOFDPacket docnum=63895 [21:42:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 26 01 00 00 BC A0 1E 01 F6 C8 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 C2 38 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 97 F9 00 00 35 04 06 00 74 F9 D8 39 3D C4 BB 8E 95 4D 83 00 16 1C [21:42:27]CheckFolder [21:42:27]dirname=/storage/ofd_packets [21:42:27]CheckFolder done [21:42:27]ProducePacketName [21:42:27]name=ofd_packets/00063895 [21:42:27]NVStorageSaveData ofd_packets/00063895 [21:42:27]File name is /storage/ofd_packets/00063895 [21:42:27]Write 324 bytes [21:42:27]NVStorageSaveData done [21:42:27]OFDSenderStorePacket done [21:42:27]KKMCreateOFDPacket done [21:42:27]NVStorageSaveData kkm_last_timestamp [21:42:27]File name is /storage/kkm_last_timestamp [21:42:27]Write 4 bytes [21:42:27]NVStorageSaveData done [21:42:27]ExternCall_PrintAddStr [21:42:27]wPrintStart [21:42:27]Write to MH i2c: 01 00 00 20 0B 2B [21:42:27]Write i2c OK [21:42:27]MH_I2C_Read... [21:42:27]Read from MH i2c: 01 [21:42:27]MH_I2C_Read... [21:42:27]Read from MH i2c: 01 07 00 [21:42:27]MH_I2C_Read... [21:42:27]Read from MH i2c: 01 07 00 20 0B 00 00 00 00 00 FF 0F 40 [21:42:27]RasterBufferAndPrint [21:42:27]line Счет N : (3)73463 [21:42:27]line ИНН: 02508201610067 [21:42:27]line Контрольно-Кассовый Чек [21:42:27]line ПРОДАЖА [21:42:27]line Товар: 48741958 [21:42:27]line Сигареты Parliament Aqua Blue [21:42:27]line 1.000 * 151.00 [21:42:27]line = 151.00 [21:42:27]line НДС 12% НСП 1% [21:42:27]line > о реализуемом товаре [21:42:27]line ИТОГО: 151.00 [21:42:27]line НСП 1% : 1.34 [21:42:27]line НДС 12% : 16.03 [21:42:27]line Наличными: 151.00 [21:42:27]line Безнал.: 0.00 [21:42:27]line Место: АЗС № 117 "Партнер Нефть" [21:42:27]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [21:42:27]line СНО: Общий режим [21:42:27]line Чек 153 03.06.2024 21:42 [21:42:27]line Смена: 373 ФФД: 1.0 [21:42:27]line ЗНМ: 0300000031 [21:42:27]line РНМ: 0000000000092737 [21:42:27]line Версия ККМ: 001 [21:42:27]line ФМ: 0000000000875074 [21:42:27]line ФД: 63895 [21:42:27]line ФПД: 128616423308740 [21:42:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T214226&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63895&fm=128616423308740&tin=02508201610067®Number=0000000000092737&sum=15100 [21:42:27]line 0 [21:42:27]written 0, free lines is 4095 [21:42:27]OFD Sender: Processing packet 63895 [packets to send 14, broken 13] [21:42:27]ProducePacketName [21:42:27]name=ofd_packets/00063895 [21:42:27]OFD Sender: To server: pG, [21:42:27]CommunicateWithHost lk.salyk.kg:30040 [21:42:27]ConnectInit lk.salyk.kg [21:42:27]Connected sock=10 [21:42:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 26 01 00 00 BC A0 1E 01 F6 C8 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 C2 38 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 97 F9 00 00 35 04 06 00 74 F9 D8 39 3D C4 BB 8E 95 4D 83 00 16 1C [21:42:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 BB 66 47 00 2F 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 35 30 37 34 10 04 04 00 97 F9 00 00 F4 03 04 00 92 E4 5D 66 B6 04 01 00 00 5B 99 46 41 33 D0 22 D9 [21:42:27]CommunicateWithHost err = 0 [21:42:27]CheckOFDResponse [21:42:27]1017 (14) - 77093643461234 [21:42:27]1041 (16) - 0000000000875074 [21:42:27]1040 (4) - 63895 [21:42:27]1012 (4) - 03.06.2024 15:43 [21:42:27]1206 (1) - 0 [21:42:27]OFD Sender: Remove packet 63895 [21:42:27]ProducePacketName [21:42:27]name=ofd_packets/00063895 [21:42:27]NVStorageDeleteData [21:42:27]Write to MH i2c: 01 00 00 49 0B 54 [21:42:27]Write i2c OK [21:42:27]MH_I2C_Read... [21:42:27]Read from MH i2c: 01 [21:42:27]MH_I2C_Read... [21:42:27]Read from MH i2c: 01 07 00 [21:42:27]MH_I2C_Read... [21:42:27]Read from MH i2c: 01 07 00 49 0B 00 00 00 00 00 C8 0C 2F [21:42:27]RasterBufferAndPrint [21:42:27]line [21:42:27]line [21:42:27]line [21:42:27]line [21:42:27]line [21:42:27]written 0, free lines is 3283 [21:42:27]MH_Cut [21:42:27]Write to MH i2c: D1 01 00 50 0B 01 2D [21:42:27]Write i2c OK [21:42:27]MH_I2C_Read... [21:42:27]Read from MH i2c: D1 [21:42:27]MH_I2C_Read... [21:42:27]Read from MH i2c: D1 01 00 [21:42:27]MH_I2C_Read... [21:42:27]Read from MH i2c: D1 01 00 50 0B 00 2C [21:42:27]Write to MH i2c: 01 00 00 51 0B 5C [21:42:27]Write i2c OK [21:42:27]MH_I2C_Read... [21:42:28]OFD Sender: No OFD packet to send [21:42:28]*** Cut start [21:42:28]*** Partial cut [21:42:28]*** CUTSNS_PIN = 1 [21:42:28]*** CUTSNS_PIN = 0 [21:42:28]*** Brake cut motor [21:42:29]Read from MH i2c: 01 [21:42:29]MH_I2C_Read... [21:42:29]*** Stop cut motor [21:42:29]*** Cut end [21:42:29]Read from MH i2c: 01 07 00 [21:42:29]MH_I2C_Read... [21:42:29]Read from MH i2c: 01 07 00 51 0B 00 00 00 00 00 FF 0F 71 [21:42:29]process_action close_receipt done [21:42:29]requested_data is exist [21:42:29]produce_requested_data [21:42:29]requested_item fm.sn is exist - process it [21:42:29]wFMCommunicate request_size=4 [21:42:29]MH_SAM_APDU [21:42:29]CAPDU: 80 11 00 00 [21:42:29]Write to MH i2c: E2 08 00 52 0B 80 11 00 00 00 00 00 00 D7 [21:42:29]Write i2c OK [21:42:29]MH_I2C_Read... [21:42:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:42:29]Read from MH i2c: E2 [21:42:29]MH_I2C_Read... [21:42:29]Read from MH i2c: E2 17 00 [21:42:29]MH_I2C_Read... [21:42:29]Read from MH i2c: E2 17 00 52 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 29 [21:42:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [21:42:29]wFMCommunicate OK [21:42:29]requested_item fd.num is exist - process it [21:42:29]SAM_PROTO_GetFieldsCounters [21:42:29]wFMCommunicate request_size=4 [21:42:29]MH_SAM_APDU [21:42:29]CAPDU: 80 13 00 00 [21:42:29]Write to MH i2c: E2 08 00 53 0B 80 13 00 00 00 00 00 00 DA [21:42:29]Write i2c OK [21:42:29]MH_I2C_Read... [21:42:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:42:29]Read from MH i2c: E2 [21:42:29]MH_I2C_Read... [21:42:29]Read from MH i2c: E2 62 00 [21:42:29]MH_I2C_Read... [21:42:29]Read from MH i2c: E2 62 00 53 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 97 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 99 00 00 00 5E 04 04 00 99 00 00 00 57 04 04 00 9A 00 00 00 19 04 04 00 00 00 00 00 90 00 CE [21:42: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 97 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 99 00 00 00 5E 04 04 00 99 00 00 00 57 04 04 00 9A 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:42:29]wFMCommunicate OK [21:42:29]SAM_PROTO_GetFieldsCounters done [21:42:29]requested_item shift.num is exist - process it [21:42:29]requested_item shift.opened is exist - process it [21:42:29]req_shift_opened [21:42:29]FM_GetShiftState [21:42:29]SAM_PROTO_GetShiftState [21:42:29]wFMCommunicate request_size=4 [21:42:29]MH_SAM_APDU [21:42:29]CAPDU: 80 13 01 00 [21:42:29]Write to MH i2c: E2 08 00 54 0B 80 13 01 00 00 00 00 00 DC [21:42:29]Write i2c OK [21:42:29]MH_I2C_Read... [21:42:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:42:29]Read from MH i2c: E2 [21:42:29]MH_I2C_Read... [21:42:29]Read from MH i2c: E2 0E 00 [21:42:29]MH_I2C_Read... [21:42:29]Read from MH i2c: E2 0E 00 54 0B 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 A8 [21:42:29]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [21:42:29]wFMCommunicate OK [21:42:29]SAM_PROTO_GetShiftState done [21:42:29]FM_GetShiftState done [21:42:29]req_shift_opened done [21:42:29]requested_item shift.open_date is exist - process it [21:42:29]req_shift_open_date [21:42:29]req_shift_open_date done [21:42:29]produce_requested_data done [21:42:29]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63895,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [21:42:29]process_action_free close_receipt [21:42:29]json_value_free [21:42:29]json_value_free done [21:42:29]process_json_proto returns [21:42:29]Send response to host [21:42:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63895,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [21:42:29]free response buf [21:42:29]execute_script done [21:42:29]execute_script returns [21:42:29]free content buf [21:42:29]Sock 9.Close socket [21:42:29]Sock 9.Thread stoped [21:42:33]OFD Sender: No OFD packet to send [21:42:38]OFD Sender: No OFD packet to send [21:42:43]OFD Sender: No OFD packet to send [21:42:48]OFD Sender: No OFD packet to send [21:42:53]OFD Sender: No OFD packet to send [21:42:58]OFD Sender: No OFD packet to send [21:43:03]OFD Sender: No OFD packet to send [21:43:08]OFD Sender: No OFD packet to send [21:43:13]OFD Sender: No OFD packet to send [21:43:18]OFD Sender: No OFD packet to send [21:43:23]OFD Sender: No OFD packet to send [21:43:28]OFD Sender: No OFD packet to send [21:43:33]OFD Sender: No OFD packet to send [21:43:38]OFD Sender: No OFD packet to send [21:43:43]OFD Sender: No OFD packet to send [21:43:48]OFD Sender: No OFD packet to send [21:43:53]OFD Sender: No OFD packet to send [21:43:58]OFD Sender: No OFD packet to send [21:44:03]OFD Sender: No OFD packet to send [21:44:08]OFD Sender: No OFD packet to send [21:44:13]OFD Sender: No OFD packet to send [21:44:18]OFD Sender: No OFD packet to send [21:44:23]OFD Sender: No OFD packet to send [21:44:28]OFD Sender: No OFD packet to send [21:44:33]OFD Sender: No OFD packet to send [21:44:38]OFD Sender: No OFD packet to send [21:44:43]OFD Sender: No OFD packet to send [21:44:48]OFD Sender: No OFD packet to send [21:44:53]OFD Sender: No OFD packet to send [21:44:57]accept exits with 7 [21:44:57]New connection [21:44:57]New thread 3066576228 created [21:44:57]Thread 3066719588 joined [21:44:57]Waiting for new connection... [21:44:57] Sock 7.Parse request [21:44:57]Sock 7.Check first char [21:44:57]Sock 7.First char is OK [21:44:57]request: POST /json_proto HTTP/1.0 [21:44:57]Method: POST [21:44:57]URL: /json_proto [21:44:57]Method is POST - this is cgi request [21:44:57]url: /json_proto [21:44:57]query_string will be loaded in cgi processing [21:44:57]execute_cgi json_proto POST (null) [21:44:57]execute_cgi path=json_proto method=POST [21:44:57]POST find Content-Length [21:44:57]Host: 172.17.60.69:8080 [21:44:57]Content-Length: 951 [21:44:57]Content-Type: application/json [21:44:57] [21:44:57]POST finish read [21:44:57]Found Content-Length = 951 [21:44:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73464", "tax_sys" : 0, "items" : [ { "code": "4600823143036", "name": "\u0428\u043E\u043A \u0411\u0430\u0431\u0430\u0435\u0432\u0441\u043A\u0438\u0439 20 \u0433 \u0433\u043E\u0440\u044C\u043A\u0438\u0439", "price" : 39.00, "quantity" : 1.000, "sum" : 39.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000034730018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E (GABB TRADE)", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 114.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:44:57]execute_script... [21:44:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73464", "tax_sys" : 0, "items" : [ { "code": "4600823143036", "name": "\u0428\u043E\u043A \u0411\u0430\u0431\u0430\u0435\u0432\u0441\u043A\u0438\u0439 20 \u0433 \u0433\u043E\u0440\u044C\u043A\u0438\u0439", "price" : 39.00, "quantity" : 1.000, "sum" : 39.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000034730018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E (GABB TRADE)", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 114.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:44:57]POST & json_proto [21:44:57]process_json_proto [21:44:57]json parsed OK: [21:44:57]protocol is kg_v1.0 [21:44:57]action value=close_receipt [21:44:57]process_action close_receipt [21:44:57]cmd_close_receipt [21:44:57]MH_GetDate [21:44:57]Write to MH i2c: F0 00 00 55 0B 4F [21:44:57]Write i2c OK [21:44:57]MH_I2C_Read... [21:44:57]Read from MH i2c: F0 [21:44:57]MH_I2C_Read... [21:44:57]Read from MH i2c: F0 09 00 [21:44:57]MH_I2C_Read... [21:44:57]Read from MH i2c: F0 09 00 55 0B 00 5A 39 5E 66 6A 96 4A 66 5F [21:44:57]GetLastDocTimeStamp 1717450946 [21:44:57]current date 1717451098 [21:44:57]FM_GetShiftState [21:44:57]SAM_PROTO_GetShiftState [21:44:57]wFMCommunicate request_size=4 [21:44:57]MH_SAM_APDU [21:44:57]CAPDU: 80 13 01 00 [21:44:57]Write to MH i2c: E2 08 00 56 0B 80 13 01 00 00 00 00 00 DE [21:44:57]Write i2c OK [21:44:57]MH_I2C_Read... [21:44:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:44:57]Read from MH i2c: E2 [21:44:57]MH_I2C_Read... [21:44:57]Read from MH i2c: E2 0E 00 [21:44:57]MH_I2C_Read... [21:44:57]Read from MH i2c: E2 0E 00 56 0B 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 AA [21:44:57]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [21:44:57]wFMCommunicate OK [21:44:57]SAM_PROTO_GetShiftState done [21:44:57]FM_GetShiftState done [21:44:57]opened in 1717373173 [21:44:57]opened+sec_in_day 1717459573 [21:44:57]quantity*price = 3900 [21:44:57]sum+1 = 3901 [21:44:57]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000034730018 Кофе Американо (GABB TRADE) 1.000 * 75.00 = 75.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 114.00 НСП 1% : 1.00 НДС 12% : 12.10 Наличными: 114.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 154 03.06.2024 21:44 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63896 ФПД: 14751855589762 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T214458&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63896&fm=14751855589762&tin=02508201610067®Number=0000000000092737&sum=11400 0 [21:44:58]StoreToDocumentArchive [21:44:58]shift 373 fd 63896 [21:44:58]save to /storage/0373/doc_00063896 [21:44:58]save last doc name /storage/0373/doc_00063896 to /storage/kkm_last_doc_name [21:44:58]save OK [21:44:58]Clear old archive folders... [21:44:58]ProcessDocumentItem done err = 0, tmpTLVsize=402 [21:44:58]tlvbuf is 00AC75B0 [21:44:58]SAM_PROTO_ClearQueue [21:44:58]wFMCommunicate request_size=4 [21:44:58]MH_SAM_APDU [21:44:58]CAPDU: 80 09 00 00 [21:44:58]Write to MH i2c: E2 08 00 63 0B 80 09 00 00 00 00 00 00 E0 [21:44:58]Write i2c OK [21:44:58]MH_I2C_Read... [21:44:58]Read from MH i2c: E2 [21:44:58]MH_I2C_Read... [21:44:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:44:58]Read from MH i2c: E2 03 00 [21:44:58]MH_I2C_Read... [21:44:58]Read from MH i2c: E2 03 00 63 0B 00 90 00 E2 [21:44:58]RAPDU: 90 00 [21:44:58]wFMCommunicate OK [21:44:58]SAM_PROTO_ClearQueue done [21:44:58]KKMCreateOFDPacket [21:44:58]OFDProtocolAddRootSTLVToBuf [21:44:58]FM_MakeSignedData [21:44:58]FM_MakeSignedData [21:44:58]SAM_PROTO_SignData [21:44:58]wFMCommunicate request_size=4 [21:44:58]MH_SAM_APDU [21:44:58]CAPDU: 80 0D 01 02 [21:44:58]Write to MH i2c: E2 08 00 64 0B 80 0D 01 02 00 00 00 00 E8 [21:44:58]Write i2c OK [21:44:58]MH_I2C_Read... [21:44:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:44:58]Read from MH i2c: E2 [21:44:58]MH_I2C_Read... [21:44:58]Read from MH i2c: E2 03 00 [21:44:58]MH_I2C_Read... [21:44:58]Read from MH i2c: E2 03 00 64 0B 00 90 00 E3 [21:44:58]RAPDU: 90 00 [21:44:58]wFMCommunicate OK [21:44:58]wFMCommunicate request_size=255 [21:44:58]MH_SAM_APDU [21:44:58]CAPDU: 80 0D 02 02 FA 03 00 92 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 36 30 30 38 32 33 31 34 33 30 33 36 06 04 30 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D0 B1 D0 B0 D0 B5 D0 B2 D1 81 D0 BA D0 B8 D0 B9 20 32 30 20 D0 B3 20 D0 B3 D0 BE D1 80 D1 8C D0 BA D0 B8 D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 3C 0F 00 00 00 00 13 04 06 00 3C 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 2C 00 00 00 [21:44:58]Write to MH i2c: E2 02 01 65 0B 80 0D 02 02 FA 00 03 00 92 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 36 30 30 38 32 33 31 34 33 30 33 36 06 04 30 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D0 B1 D0 B0 D0 B5 D0 B2 D1 81 D0 BA D0 B8 D0 B9 20 32 30 20 D0 B3 20 D0 B3 D0 BE D1 80 D1 8C D0 BA D0 B8 D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 3C 0F 00 00 00 00 13 04 06 00 3C 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 2C 00 00 00 00 00 55 [21:44:58]Write i2c OK [21:44:58]MH_I2C_Read... [21:44:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:44:59]Read from MH i2c: E2 [21:44:59]MH_I2C_Read... [21:44:59]Read from MH i2c: E2 03 00 [21:44:59]MH_I2C_Read... [21:44:59]Read from MH i2c: E2 03 00 65 0B 00 90 00 E4 [21:44:59]RAPDU: 90 00 [21:44:59]wFMCommunicate OK [21:44:59]wFMCommunicate request_size=161 [21:44:59]MH_SAM_APDU [21:44:59]CAPDU: 80 0D 02 02 9C 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 64 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 04 00 00 00 00 07 04 06 00 88 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 5A 39 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 98 F9 00 00 35 04 06 00 0D 6A AF 1C B9 82 [21:44:59]Write to MH i2c: E2 A4 00 66 0B 80 0D 02 02 9C 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 64 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 04 00 00 00 00 07 04 06 00 88 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 5A 39 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 98 F9 00 00 35 04 06 00 0D 6A AF 1C B9 82 00 00 AD [21:44:59]Write i2c OK [21:44:59]MH_I2C_Read... [21:44:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:44:59]Read from MH i2c: E2 [21:44:59]MH_I2C_Read... [21:44:59]Read from MH i2c: E2 03 00 [21:44:59]MH_I2C_Read... [21:44:59]Read from MH i2c: E2 03 00 66 0B 00 90 00 E5 [21:44:59]RAPDU: 90 00 [21:44:59]wFMCommunicate OK [21:44:59]wFMCommunicate request_size=4 [21:44:59]MH_SAM_APDU [21:44:59]CAPDU: 80 0D 03 02 [21:44:59]Write to MH i2c: E2 08 00 67 0B 80 0D 03 02 00 00 00 00 ED [21:44:59]Write i2c OK [21:44:59]MH_I2C_Read... [21:44:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:44:59]Read from MH i2c: E2 [21:44:59]MH_I2C_Read... [21:44:59]Read from MH i2c: E2 0B 00 [21:44:59]MH_I2C_Read... [21:44:59]Read from MH i2c: E2 0B 00 67 0B 00 21 2A 55 51 C7 48 ED 5D 90 00 38 [21:44:59]RAPDU: 21 2A 55 51 C7 48 ED 5D 90 00 [21:44:59]wFMCommunicate OK [21:44:59]SAM_PROTO_SignData done [21:44:59]FM_MakeSignedData done [21:44:59]CreateOFDProtocolMessage [21:44:59]wFMCommunicate request_size=4 [21:44:59]MH_SAM_APDU [21:44:59]CAPDU: 80 11 00 00 [21:44:59]Write to MH i2c: E2 08 00 68 0B 80 11 00 00 00 00 00 00 ED [21:44:59]Write i2c OK [21:44:59]MH_I2C_Read... [21:44:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:44:59]Read from MH i2c: E2 [21:44:59]MH_I2C_Read... [21:44:59]Read from MH i2c: E2 17 00 [21:44:59]MH_I2C_Read... [21:44:59]Read from MH i2c: E2 17 00 68 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 3F [21:44:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [21:44:59]wFMCommunicate OK [21:44:59]CreateOFDProtocolMessage done [21:44:59]OFDSenderStorePacket 63896 [21:44:59]StoreOFDPacket docnum=63896 [21:44:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 A6 01 00 00 06 F3 9E 01 65 86 5A 03 01 00 03 00 92 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 36 30 30 38 32 33 31 34 33 30 33 36 06 04 30 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D0 B1 D0 B0 D0 B5 D0 B2 D1 81 D0 BA D0 B8 D0 B9 20 32 30 20 D0 B3 20 D0 B3 D0 BE D1 80 D1 8C D0 BA D0 B8 D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 3C 0F 00 00 00 00 13 04 06 00 3C 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 64 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 04 00 00 00 00 07 04 06 00 88 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 5A 39 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 98 F9 00 00 35 04 06 00 0D 6A AF 1C B9 82 21 2A 55 51 C7 48 ED 5D [21:44:59]CheckFolder [21:44:59]dirname=/storage/ofd_packets [21:44:59]CheckFolder done [21:44:59]ProducePacketName [21:44:59]name=ofd_packets/00063896 [21:44:59]NVStorageSaveData ofd_packets/00063896 [21:44:59]File name is /storage/ofd_packets/00063896 [21:44:59]Write 452 bytes [21:44:59]NVStorageSaveData done [21:44:59]OFDSenderStorePacket done [21:44:59]KKMCreateOFDPacket done [21:44:59]NVStorageSaveData kkm_last_timestamp [21:44:59]File name is /storage/kkm_last_timestamp [21:44:59]Write 4 bytes [21:44:59]NVStorageSaveData done [21:44:59]ExternCall_PrintAddStr [21:44:59]wPrintStart [21:44:59]Write to MH i2c: 01 00 00 69 0B 74 [21:44:59]Write i2c OK [21:44:59]MH_I2C_Read... [21:44:59]Read from MH i2c: 01 [21:44:59]MH_I2C_Read... [21:44:59]Read from MH i2c: 01 07 00 [21:44:59]MH_I2C_Read... [21:44:59]Read from MH i2c: 01 07 00 69 0B 00 00 00 00 00 FF 0F 89 [21:44:59]RasterBufferAndPrint [21:44:59]line Счет N : (3)73464 [21:44:59]line ИНН: 02508201610067 [21:44:59]line Контрольно-Кассовый Чек [21:44:59]line ПРОДАЖА [21:44:59]line Товар: 4600823143036 [21:44:59]line Шок Бабаевский 20 г горький [21:44:59]line 1.000 * 39.00 [21:44:59]line = 39.00 [21:44:59]line НДС 12% НСП 1% [21:44:59]line > о реализуемом товаре [21:44:59]line Товар: 2000034730018 [21:44:59]line Кофе Американо (GABB TRADE) [21:44:59]line 1.000 * 75.00 [21:44:59]line = 75.00 [21:44:59]line НДС 12% НСП 1% [21:44:59]line > о реализуемом товаре [21:44:59]line ИТОГО: 114.00 [21:44:59]line НСП 1% : 1.00 [21:44:59]line НДС 12% : 12.10 [21:44:59]line Наличными: 114.00 [21:44:59]line Безнал.: 0.00 [21:44:59]line Место: АЗС № 117 "Партнер Нефть" [21:44:59]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [21:44:59]line СНО: Общий режим [21:44:59]line Чек 154 03.06.2024 21:44 [21:44:59]line Смена: 373 ФФД: 1.0 [21:44:59]line ЗНМ: 0300000031 [21:44:59]line РНМ: 0000000000092737 [21:44:59]line Версия ККМ: 001 [21:44:59]line ФМ: 0000000000875074 [21:44:59]line ФД: 63896 [21:44:59]line ФПД: 14751855589762 [21:44:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T214458&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63896&fm=14751855589762&tin=02508201610067®Number=0000000000092737&sum=11400 [21:44:59]line 0 [21:44:59]OFD Sender: Processing packet 63896 [packets to send 14, broken 13] [21:44:59]ProducePacketName [21:44:59]name=ofd_packets/00063896 [21:44:59]OFD Sender: To server: pG, [21:44:59]CommunicateWithHost lk.salyk.kg:30040 [21:44:59]ConnectInit lk.salyk.kg [21:44:59]written 0, free lines is 4095 [21:44:59]Connected sock=10 [21:44:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 A6 01 00 00 06 F3 9E 01 65 86 5A 03 01 00 03 00 92 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 36 30 30 38 32 33 31 34 33 30 33 36 06 04 30 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D0 B1 D0 B0 D0 B5 D0 B2 D1 81 D0 BA D0 B8 D0 B9 20 32 30 20 D0 B3 20 D0 B3 D0 BE D1 80 D1 8C D0 BA D0 B8 D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 3C 0F 00 00 00 00 13 04 06 00 3C 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 64 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 04 00 00 00 00 07 04 06 00 88 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 5A 39 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 98 F9 00 00 35 04 06 00 0D 6A AF 1C B9 82 21 2A 55 51 C7 48 ED 5D [21:45:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 A2 EA 47 00 D8 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 35 30 37 34 10 04 04 00 98 F9 00 00 F4 03 04 00 2B E5 5D 66 B6 04 01 00 00 8F E1 20 2E DA 9A B2 56 [21:45:00]CommunicateWithHost err = 0 [21:45:00]CheckOFDResponse [21:45:00]1017 (14) - 77093643461234 [21:45:00]1041 (16) - 0000000000875074 [21:45:00]1040 (4) - 63896 [21:45:00]1012 (4) - 03.06.2024 15:45 [21:45:00]1206 (1) - 0 [21:45:00]OFD Sender: Remove packet 63896 [21:45:00]ProducePacketName [21:45:00]name=ofd_packets/00063896 [21:45:00]NVStorageDeleteData [21:45:00]Write to MH i2c: 01 00 00 98 0B A3 [21:45:00]Write i2c OK [21:45:00]MH_I2C_Read... [21:45:00]Read from MH i2c: 01 [21:45:00]MH_I2C_Read... [21:45:00]Read from MH i2c: 01 07 00 [21:45:00]MH_I2C_Read... [21:45:00]Read from MH i2c: 01 07 00 98 0B 00 00 00 00 00 87 0C 3D [21:45:00]RasterBufferAndPrint [21:45:00]line [21:45:00]line [21:45:00]line [21:45:00]line [21:45:00]line [21:45:00]written 0, free lines is 3214 [21:45:00]MH_Cut [21:45:00]Write to MH i2c: D1 01 00 9F 0B 01 7C [21:45:00]Write i2c OK [21:45:00]MH_I2C_Read... [21:45:00]Read from MH i2c: D1 [21:45:00]MH_I2C_Read... [21:45:00]Read from MH i2c: D1 01 00 [21:45:00]MH_I2C_Read... [21:45:00]Read from MH i2c: D1 01 00 9F 0B 00 7B [21:45:00]Write to MH i2c: 01 00 00 A0 0B AB [21:45:00]Write i2c OK [21:45:00]MH_I2C_Read... [21:45:00]OFD Sender: No OFD packet to send [21:45:01]*** Cut start [21:45:01]*** Partial cut [21:45:01]*** CUTSNS_PIN = 1 [21:45:01]*** CUTSNS_PIN = 0 [21:45:01]*** Brake cut motor [21:45:01]Read from MH i2c: 01 [21:45:01]MH_I2C_Read... [21:45:01]*** Stop cut motor [21:45:01]*** Cut end [21:45:01]Read from MH i2c: 01 07 00 [21:45:01]MH_I2C_Read... [21:45:01]Read from MH i2c: 01 07 00 A0 0B 00 00 00 00 00 FF 0F C0 [21:45:01]process_action close_receipt done [21:45:01]requested_data is exist [21:45:01]produce_requested_data [21:45:01]requested_item fm.sn is exist - process it [21:45:01]wFMCommunicate request_size=4 [21:45:01]MH_SAM_APDU [21:45:01]CAPDU: 80 11 00 00 [21:45:01]Write to MH i2c: E2 08 00 A1 0B 80 11 00 00 00 00 00 00 26 [21:45:01]Write i2c OK [21:45:01]MH_I2C_Read... [21:45:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:45:01]Read from MH i2c: E2 [21:45:01]MH_I2C_Read... [21:45:01]Read from MH i2c: E2 17 00 [21:45:01]MH_I2C_Read... [21:45:01]Read from MH i2c: E2 17 00 A1 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 78 [21:45:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [21:45:01]wFMCommunicate OK [21:45:01]requested_item fd.num is exist - process it [21:45:01]SAM_PROTO_GetFieldsCounters [21:45:01]wFMCommunicate request_size=4 [21:45:01]MH_SAM_APDU [21:45:01]CAPDU: 80 13 00 00 [21:45:01]Write to MH i2c: E2 08 00 A2 0B 80 13 00 00 00 00 00 00 29 [21:45:01]Write i2c OK [21:45:01]MH_I2C_Read... [21:45:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:45:02]Read from MH i2c: E2 [21:45:02]MH_I2C_Read... [21:45:02]Read from MH i2c: E2 62 00 [21:45:02]MH_I2C_Read... [21:45:02]Read from MH i2c: E2 62 00 A2 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 98 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 9A 00 00 00 5E 04 04 00 9A 00 00 00 57 04 04 00 9B 00 00 00 19 04 04 00 00 00 00 00 90 00 21 [21:45: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 98 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 9A 00 00 00 5E 04 04 00 9A 00 00 00 57 04 04 00 9B 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:45:02]wFMCommunicate OK [21:45:02]SAM_PROTO_GetFieldsCounters done [21:45:02]requested_item shift.num is exist - process it [21:45:02]requested_item shift.opened is exist - process it [21:45:02]req_shift_opened [21:45:02]FM_GetShiftState [21:45:02]SAM_PROTO_GetShiftState [21:45:02]wFMCommunicate request_size=4 [21:45:02]MH_SAM_APDU [21:45:02]CAPDU: 80 13 01 00 [21:45:02]Write to MH i2c: E2 08 00 A3 0B 80 13 01 00 00 00 00 00 2B [21:45:02]Write i2c OK [21:45:02]MH_I2C_Read... [21:45:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:45:02]Read from MH i2c: E2 [21:45:02]MH_I2C_Read... [21:45:02]Read from MH i2c: E2 0E 00 [21:45:02]MH_I2C_Read... [21:45:02]Read from MH i2c: E2 0E 00 A3 0B 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 F7 [21:45:02]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [21:45:02]wFMCommunicate OK [21:45:02]SAM_PROTO_GetShiftState done [21:45:02]FM_GetShiftState done [21:45:02]req_shift_opened done [21:45:02]requested_item shift.open_date is exist - process it [21:45:02]req_shift_open_date [21:45:02]req_shift_open_date done [21:45:02]produce_requested_data done [21:45:02]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63896,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [21:45:02]process_action_free close_receipt [21:45:02]json_value_free [21:45:02]json_value_free done [21:45:02]process_json_proto returns [21:45:02]Send response to host [21:45:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63896,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [21:45:02]free response buf [21:45:02]execute_script done [21:45:02]execute_script returns [21:45:02]free content buf [21:45:02]Sock 7.Close socket [21:45:02]Sock 7.Thread stoped [21:45:05]OFD Sender: No OFD packet to send [21:45:10]OFD Sender: No OFD packet to send [21:45:15]OFD Sender: No OFD packet to send [21:45:18]int [21:45:18]Write to MH i2c: 01 00 00 A4 0B AF [21:45:18]Write i2c OK [21:45:18]MH_I2C_Read... [21:45:18]Read from MH i2c: 01 [21:45:18]MH_I2C_Read... [21:45:18]Read from MH i2c: 01 07 00 [21:45:18]MH_I2C_Read... [21:45:18]*** FLAG_PRN_PAP1 set [21:45:18]*** FLAG_PRN_PAP1 reset [21:45:18]Read from MH i2c: 01 07 00 A4 0B 00 00 00 00 00 FF 0F C4 [21:45:18]state=0 [21:45:18]int [21:45:18]Write to MH i2c: 01 00 00 A5 0B B0 [21:45:18]*** FLAG_PRN_PAP1 set [21:45:18]Write i2c OK [21:45:18]MH_I2C_Read... [21:45:18]Read from MH i2c: 01 [21:45:18]MH_I2C_Read... [21:45:18]Read from MH i2c: 01 07 00 [21:45:18]MH_I2C_Read... [21:45:18]Read from MH i2c: 01 07 00 A5 0B 00 01 00 00 00 FF 0F C6 [21:45:18]state=0 [21:45:18]No paper [21:45:18]int [21:45:18]Write to MH i2c: 01 00 00 A6 0B B1 [21:45:18]*** FLAG_PRN_PAP2 set [21:45:18]Write i2c OK [21:45:18]MH_I2C_Read... [21:45:18]Read from MH i2c: 01 [21:45:18]MH_I2C_Read... [21:45:18]Read from MH i2c: 01 07 00 [21:45:18]MH_I2C_Read... [21:45:18]Read from MH i2c: 01 07 00 A6 0B 00 03 00 00 00 FF 0F C9 [21:45:18]state=0 [21:45:18]No paper [21:45:18]Cover opened [21:45:18]int [21:45:18]Write to MH i2c: 01 00 00 A7 0B B2 [21:45:18]*** FLAG_PRN_PAP2 reset [21:45:18]Write i2c OK [21:45:18]MH_I2C_Read... [21:45:18]Read from MH i2c: 01 [21:45:18]MH_I2C_Read... [21:45:18]Read from MH i2c: 01 07 00 [21:45:18]MH_I2C_Read... [21:45:18]Read from MH i2c: 01 07 00 A7 0B 00 01 00 00 00 FF 0F C8 [21:45:18]state=3 [21:45:18]No paper [21:45:18]Cover closed [21:45:18]int [21:45:18]Write to MH i2c: 01 00 00 A8 0B B3 [21:45:18]*** FLAG_PRN_PAP2 set [21:45:18]Write i2c OK [21:45:18]MH_I2C_Read... [21:45:18]Read from MH i2c: 01 [21:45:18]MH_I2C_Read... [21:45:18]Read from MH i2c: 01 07 00 [21:45:18]MH_I2C_Read... [21:45:18]Read from MH i2c: 01 07 00 A8 0B 00 03 00 00 00 FF 0F CB [21:45:18]state=0 [21:45:18]No paper [21:45:18]Cover opened [21:45:18]int [21:45:18]Write to MH i2c: 01 00 00 A9 0B B4 [21:45:18]*** FLAG_PRN_PAP2 reset [21:45:18]Write i2c OK [21:45:18]MH_I2C_Read... [21:45:18]Read from MH i2c: 01 [21:45:18]MH_I2C_Read... [21:45:18]Read from MH i2c: 01 07 00 [21:45:18]MH_I2C_Read... [21:45:18]Read from MH i2c: 01 07 00 A9 0B 00 01 00 00 00 FF 0F CA [21:45:18]state=3 [21:45:18]No paper [21:45:18]Cover closed [21:45:18]int [21:45:18]Write to MH i2c: 01 00 00 AA 0B B5 [21:45:18]*** FLAG_PRN_PAP2 set [21:45:18]Write i2c OK [21:45:18]MH_I2C_Read... [21:45:18]Read from MH i2c: 01 [21:45:18]MH_I2C_Read... [21:45:18]Read from MH i2c: 01 07 00 [21:45:18]MH_I2C_Read... [21:45:18]Read from MH i2c: 01 07 00 AA 0B 00 03 00 00 00 FF 0F CD [21:45:18]state=0 [21:45:18]No paper [21:45:18]Cover opened [21:45:18]int [21:45:18]Write to MH i2c: 01 00 00 AB 0B B6 [21:45:18]*** FLAG_PRN_PAP2 reset [21:45:18]Write i2c OK [21:45:18]MH_I2C_Read... [21:45:18]Read from MH i2c: 01 [21:45:18]MH_I2C_Read... [21:45:18]Read from MH i2c: 01 07 00 [21:45:18]MH_I2C_Read... [21:45:18]Read from MH i2c: 01 07 00 AB 0B 00 01 00 00 00 FF 0F CC [21:45:18]state=3 [21:45:18]No paper [21:45:18]Cover closed [21:45:18]int [21:45:18]Write to MH i2c: 01 00 00 AC 0B B7 [21:45:18]*** FLAG_PRN_PAP2 set [21:45:18]Write i2c OK [21:45:18]MH_I2C_Read... [21:45:18]Read from MH i2c: 01 [21:45:18]MH_I2C_Read... [21:45:18]Read from MH i2c: 01 07 00 [21:45:18]MH_I2C_Read... [21:45:18]Read from MH i2c: 01 07 00 AC 0B 00 03 00 00 00 FF 0F CF [21:45:18]state=0 [21:45:18]No paper [21:45:18]Cover opened [21:45:20]OFD Sender: No OFD packet to send [21:45:24]Write to MH i2c: 01 00 00 AD 0B B8 [21:45:24]Write i2c OK [21:45:24]MH_I2C_Read... [21:45:24]Read from MH i2c: 01 [21:45:24]MH_I2C_Read... [21:45:24]Read from MH i2c: 01 07 00 [21:45:24]MH_I2C_Read... [21:45:24]Read from MH i2c: 01 07 00 AD 0B 00 03 00 00 00 FF 0F D0 [21:45:24]state=3 [21:45:24]No paper [21:45:24]Cover opened [21:45:25]OFD Sender: No OFD packet to send [21:45:28]int [21:45:28]Write to MH i2c: 01 00 00 AE 0B B9 [21:45:28]Write i2c OK [21:45:28]MH_I2C_Read... [21:45:28]Read from MH i2c: 01 [21:45:28]MH_I2C_Read... [21:45:28]Read from MH i2c: 01 07 00 [21:45:28]MH_I2C_Read... [21:45:28]*** FLAG_PRN_PAP2 reset [21:45:28]*** FLAG_PRN_PAP1 reset [21:45:28]Read from MH i2c: 01 07 00 AE 0B 00 00 00 00 00 FF 0F CE [21:45:28]state=3 [21:45:28]Cover closed [21:45:30]OFD Sender: No OFD packet to send [21:45:35]OFD Sender: No OFD packet to send [21:45:40]OFD Sender: No OFD packet to send [21:45:45]OFD Sender: No OFD packet to send [21:45:50]OFD Sender: No OFD packet to send [21:45:55]OFD Sender: No OFD packet to send [21:46:00]OFD Sender: No OFD packet to send [21:46:05]OFD Sender: No OFD packet to send [21:46:10]OFD Sender: No OFD packet to send [21:46:15]OFD Sender: No OFD packet to send [21:46:20]OFD Sender: No OFD packet to send [21:46:25]OFD Sender: No OFD packet to send [21:46:30]OFD Sender: No OFD packet to send [21:46:35]OFD Sender: No OFD packet to send [21:46:40]OFD Sender: No OFD packet to send [21:46:45]OFD Sender: No OFD packet to send [21:46:50]OFD Sender: No OFD packet to send [21:46:55]OFD Sender: No OFD packet to send [21:47:00]OFD Sender: No OFD packet to send [21:47:05]OFD Sender: No OFD packet to send [21:47:10]OFD Sender: No OFD packet to send [21:47:15]OFD Sender: No OFD packet to send [21:47:20]OFD Sender: No OFD packet to send [21:47:25]OFD Sender: No OFD packet to send [21:47:30]OFD Sender: No OFD packet to send [21:47:35]OFD Sender: No OFD packet to send [21:47:40]OFD Sender: No OFD packet to send [21:47:45]OFD Sender: No OFD packet to send [21:47:50]OFD Sender: No OFD packet to send [21:47:55]OFD Sender: No OFD packet to send [21:48:00]OFD Sender: No OFD packet to send [21:48:05]OFD Sender: No OFD packet to send [21:48:10]OFD Sender: No OFD packet to send [21:48:15]OFD Sender: No OFD packet to send [21:48:20]OFD Sender: No OFD packet to send [21:48:25]OFD Sender: No OFD packet to send [21:48:30]OFD Sender: No OFD packet to send [21:48:35]OFD Sender: No OFD packet to send [21:48:40]OFD Sender: No OFD packet to send [21:48:45]OFD Sender: No OFD packet to send [21:48:50]OFD Sender: No OFD packet to send [21:48:55]OFD Sender: No OFD packet to send [21:49:00]OFD Sender: No OFD packet to send [21:49:05]OFD Sender: No OFD packet to send [21:49:10]OFD Sender: No OFD packet to send [21:49:15]OFD Sender: No OFD packet to send [21:49:20]OFD Sender: No OFD packet to send [21:49:25]OFD Sender: No OFD packet to send [21:49:30]OFD Sender: No OFD packet to send [21:49:35]OFD Sender: No OFD packet to send [21:49:40]OFD Sender: No OFD packet to send [21:49:45]OFD Sender: No OFD packet to send [21:49:50]OFD Sender: No OFD packet to send [21:49:55]OFD Sender: No OFD packet to send [21:50:00]OFD Sender: No OFD packet to send [21:50:05]OFD Sender: No OFD packet to send [21:50:10]OFD Sender: No OFD packet to send [21:50:15]OFD Sender: No OFD packet to send [21:50:20]OFD Sender: No OFD packet to send [21:50:25]OFD Sender: No OFD packet to send [21:50:30]OFD Sender: No OFD packet to send [21:50:35]OFD Sender: No OFD packet to send [21:50:40]OFD Sender: No OFD packet to send [21:50:45]OFD Sender: No OFD packet to send [21:50:50]OFD Sender: No OFD packet to send [21:50:55]OFD Sender: No OFD packet to send [21:51:00]OFD Sender: No OFD packet to send [21:51:05]OFD Sender: No OFD packet to send [21:51:10]OFD Sender: No OFD packet to send [21:51:15]OFD Sender: No OFD packet to send [21:51:20]OFD Sender: No OFD packet to send [21:51:25]OFD Sender: No OFD packet to send [21:51:30]OFD Sender: No OFD packet to send [21:51:35]OFD Sender: No OFD packet to send [21:51:40]OFD Sender: No OFD packet to send [21:51:45]OFD Sender: No OFD packet to send [21:51:51]OFD Sender: No OFD packet to send [21:51:56]OFD Sender: No OFD packet to send [21:52:01]OFD Sender: No OFD packet to send [21:52:06]OFD Sender: No OFD packet to send [21:52:11]OFD Sender: No OFD packet to send [21:52:16]OFD Sender: No OFD packet to send [21:52:21]OFD Sender: No OFD packet to send [21:52:26]OFD Sender: No OFD packet to send [21:52:31]OFD Sender: No OFD packet to send [21:52:36]OFD Sender: No OFD packet to send [21:52:41]OFD Sender: No OFD packet to send [21:52:46]OFD Sender: No OFD packet to send [21:52:51]OFD Sender: No OFD packet to send [21:52:56]OFD Sender: No OFD packet to send [21:53:01]OFD Sender: No OFD packet to send [21:53:06]OFD Sender: No OFD packet to send [21:53:11]OFD Sender: No OFD packet to send [21:53:16]OFD Sender: No OFD packet to send [21:53:21]OFD Sender: No OFD packet to send [21:53:26]OFD Sender: No OFD packet to send [21:53:31]OFD Sender: No OFD packet to send [21:53:36]OFD Sender: No OFD packet to send [21:53:41]OFD Sender: No OFD packet to send [21:53:46]OFD Sender: No OFD packet to send [21:53:51]OFD Sender: No OFD packet to send [21:53:56]OFD Sender: No OFD packet to send [21:54:01]OFD Sender: No OFD packet to send [21:54:06]OFD Sender: No OFD packet to send [21:54:11]OFD Sender: No OFD packet to send [21:54:16]OFD Sender: No OFD packet to send [21:54:21]OFD Sender: No OFD packet to send [21:54:26]OFD Sender: No OFD packet to send [21:54:31]OFD Sender: No OFD packet to send [21:54:36]OFD Sender: No OFD packet to send [21:54:41]OFD Sender: No OFD packet to send [21:54:46]OFD Sender: No OFD packet to send [21:54:51]OFD Sender: No OFD packet to send [21:54:56]OFD Sender: No OFD packet to send [21:55:01]OFD Sender: No OFD packet to send [21:55:06]OFD Sender: No OFD packet to send [21:55:11]OFD Sender: No OFD packet to send [21:55:16]OFD Sender: No OFD packet to send [21:55:21]OFD Sender: No OFD packet to send [21:55:26]OFD Sender: No OFD packet to send [21:55:31]OFD Sender: No OFD packet to send [21:55:36]OFD Sender: No OFD packet to send [21:55:41]OFD Sender: No OFD packet to send [21:55:46]OFD Sender: No OFD packet to send [21:55:51]OFD Sender: No OFD packet to send [21:55:56]OFD Sender: No OFD packet to send [21:56:01]OFD Sender: No OFD packet to send [21:56:06]OFD Sender: No OFD packet to send [21:56:09]accept exits with 9 [21:56:09]New connection [21:56:09]New thread 3066719588 created [21:56:09]Thread 3066576228 joined [21:56:09]Waiting for new connection... [21:56:09] Sock 9.Parse request [21:56:09]Sock 9.Check first char [21:56:09]Sock 9.First char is OK [21:56:09]request: POST /json_proto HTTP/1.0 [21:56:09]Method: POST [21:56:09]URL: /json_proto [21:56:09]Method is POST - this is cgi request [21:56:09]url: /json_proto [21:56:09]query_string will be loaded in cgi processing [21:56:09]execute_cgi json_proto POST (null) [21:56:09]execute_cgi path=json_proto method=POST [21:56:09]POST find Content-Length [21:56:09]Host: 172.17.60.69:8080 [21:56:09]Content-Length: 632 [21:56:09]Content-Type: application/json [21:56:09] [21:56:09]POST finish read [21:56:09]Found Content-Length = 632 [21:56:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73465", "tax_sys" : 0, "items" : [ { "code": "4780022460292", "name": "\u0410\u043D\u0442\u0438\u0444\u0440\u0438\u0437 Yumiko green 1\u043A\u0433", "price" : 168.00, "quantity" : 1.000, "sum" : 168.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 168.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:56:09]execute_script... [21:56:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73465", "tax_sys" : 0, "items" : [ { "code": "4780022460292", "name": "\u0410\u043D\u0442\u0438\u0444\u0440\u0438\u0437 Yumiko green 1\u043A\u0433", "price" : 168.00, "quantity" : 1.000, "sum" : 168.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 168.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:56:09]POST & json_proto [21:56:09]process_json_proto [21:56:09]json parsed OK: [21:56:09]protocol is kg_v1.0 [21:56:09]action value=close_receipt [21:56:09]process_action close_receipt [21:56:09]cmd_close_receipt [21:56:09]MH_GetDate [21:56:09]Write to MH i2c: F0 00 00 AF 0B A9 [21:56:09]Write i2c OK [21:56:09]MH_I2C_Read... [21:56:09]Read from MH i2c: F0 [21:56:09]MH_I2C_Read... [21:56:09]Read from MH i2c: F0 09 00 [21:56:09]MH_I2C_Read... [21:56:09]Read from MH i2c: F0 09 00 AF 0B 00 FA 3B 5E 66 6A 96 4A 66 5B [21:56:09]GetLastDocTimeStamp 1717451098 [21:56:09]current date 1717451770 [21:56:09]FM_GetShiftState [21:56:09]SAM_PROTO_GetShiftState [21:56:09]wFMCommunicate request_size=4 [21:56:09]MH_SAM_APDU [21:56:09]CAPDU: 80 13 01 00 [21:56:09]Write to MH i2c: E2 08 00 B0 0B 80 13 01 00 00 00 00 00 38 [21:56:09]Write i2c OK [21:56:09]MH_I2C_Read... [21:56:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:56:09]Read from MH i2c: E2 [21:56:09]MH_I2C_Read... [21:56:09]Read from MH i2c: E2 0E 00 [21:56:09]MH_I2C_Read... [21:56:09]Read from MH i2c: E2 0E 00 B0 0B 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 04 [21:56:09]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [21:56:09]wFMCommunicate OK [21:56:09]SAM_PROTO_GetShiftState done [21:56:09]FM_GetShiftState done [21:56:09]opened in 1717373173 [21:56:09]opened+sec_in_day 1717459573 [21:56:09]quantity*price = 16800 [21:56:09]sum+1 = 16801 [21:56:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 168.00 НСП 1% : 1.49 НДС 12% : 17.84 Наличными: 168.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 155 03.06.2024 21:56 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63897 ФПД: 63997801266671 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T215610&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63897&fm=63997801266671&tin=02508201610067®Number=0000000000092737&sum=16800 0 [21:56:10]StoreToDocumentArchive [21:56:10]shift 373 fd 63897 [21:56:10]save to /storage/0373/doc_00063897 [21:56:10]save last doc name /storage/0373/doc_00063897 to /storage/kkm_last_doc_name [21:56:10]save OK [21:56:10]Clear old archive folders... [21:56:10]ProcessDocumentItem done err = 0, tmpTLVsize=277 [21:56:10]tlvbuf is 00AB1330 [21:56:10]SAM_PROTO_ClearQueue [21:56:10]wFMCommunicate request_size=4 [21:56:10]MH_SAM_APDU [21:56:10]CAPDU: 80 09 00 00 [21:56:10]Write to MH i2c: E2 08 00 BD 0B 80 09 00 00 00 00 00 00 3A [21:56:10]Write i2c OK [21:56:10]MH_I2C_Read... [21:56:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:56:10]Read from MH i2c: E2 [21:56:10]MH_I2C_Read... [21:56:10]Read from MH i2c: E2 03 00 [21:56:10]MH_I2C_Read... [21:56:10]Read from MH i2c: E2 03 00 BD 0B 00 90 00 3C [21:56:10]RAPDU: 90 00 [21:56:10]wFMCommunicate OK [21:56:10]SAM_PROTO_ClearQueue done [21:56:10]KKMCreateOFDPacket [21:56:10]OFDProtocolAddRootSTLVToBuf [21:56:10]FM_MakeSignedData [21:56:10]FM_MakeSignedData [21:56:10]SAM_PROTO_SignData [21:56:10]wFMCommunicate request_size=4 [21:56:10]MH_SAM_APDU [21:56:10]CAPDU: 80 0D 01 02 [21:56:10]Write to MH i2c: E2 08 00 BE 0B 80 0D 01 02 00 00 00 00 42 [21:56:10]Write i2c OK [21:56:10]MH_I2C_Read... [21:56:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:56:10]Read from MH i2c: E2 [21:56:10]MH_I2C_Read... [21:56:10]Read from MH i2c: E2 03 00 [21:56:10]MH_I2C_Read... [21:56:10]Read from MH i2c: E2 03 00 BE 0B 00 90 00 3D [21:56:10]RAPDU: 90 00 [21:56:10]wFMCommunicate OK [21:56:10]wFMCommunicate request_size=255 [21:56:10]MH_SAM_APDU [21:56:10]CAPDU: 80 0D 02 02 FA 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 37 38 30 30 32 32 34 36 30 32 39 32 06 04 23 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 59 75 6D 69 6B 6F 20 67 72 65 65 6E 20 31 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 41 00 00 00 00 13 04 06 00 A0 41 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 41 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 95 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 06 00 00 00 00 07 04 06 00 A0 41 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 FA 3B 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 [21:56:10]Write to MH i2c: E2 02 01 BF 0B 80 0D 02 02 FA 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 37 38 30 30 32 32 34 36 30 32 39 32 06 04 23 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 59 75 6D 69 6B 6F 20 67 72 65 65 6E 20 31 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 41 00 00 00 00 13 04 06 00 A0 41 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 41 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 95 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 06 00 00 00 00 07 04 06 00 A0 41 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 FA 3B 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 00 00 9D [21:56:10]Write i2c OK [21:56:10]MH_I2C_Read... [21:56:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:56:11]Read from MH i2c: E2 [21:56:11]MH_I2C_Read... [21:56:11]Read from MH i2c: E2 03 00 [21:56:11]MH_I2C_Read... [21:56:11]Read from MH i2c: E2 03 00 BF 0B 00 90 00 3E [21:56:11]RAPDU: 90 00 [21:56:11]wFMCommunicate OK [21:56:11]wFMCommunicate request_size=36 [21:56:11]MH_SAM_APDU [21:56:11]CAPDU: 80 0D 02 02 1F 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 99 F9 00 00 35 04 06 00 3A 34 A6 35 FD EF [21:56:11]Write to MH i2c: E2 27 00 C0 0B 80 0D 02 02 1F 00 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 99 F9 00 00 35 04 06 00 3A 34 A6 35 FD EF 00 00 30 [21:56:11]Write i2c OK [21:56:11]MH_I2C_Read... [21:56:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:56:11]Read from MH i2c: E2 [21:56:11]MH_I2C_Read... [21:56:11]Read from MH i2c: E2 03 00 [21:56:11]MH_I2C_Read... [21:56:11]Read from MH i2c: E2 03 00 C0 0B 00 90 00 3F [21:56:11]RAPDU: 90 00 [21:56:11]wFMCommunicate OK [21:56:11]wFMCommunicate request_size=4 [21:56:11]MH_SAM_APDU [21:56:11]CAPDU: 80 0D 03 02 [21:56:11]Write to MH i2c: E2 08 00 C1 0B 80 0D 03 02 00 00 00 00 47 [21:56:11]Write i2c OK [21:56:11]MH_I2C_Read... [21:56:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:56:11]Read from MH i2c: E2 [21:56:11]MH_I2C_Read... [21:56:11]Read from MH i2c: E2 0B 00 [21:56:11]MH_I2C_Read... [21:56:11]Read from MH i2c: E2 0B 00 C1 0B 00 EB 6E 38 E5 63 D1 F9 75 90 00 60 [21:56:11]RAPDU: EB 6E 38 E5 63 D1 F9 75 90 00 [21:56:11]wFMCommunicate OK [21:56:11]SAM_PROTO_SignData done [21:56:11]FM_MakeSignedData done [21:56:11]CreateOFDProtocolMessage [21:56:11]wFMCommunicate request_size=4 [21:56:11]MH_SAM_APDU [21:56:11]CAPDU: 80 11 00 00 [21:56:11]Write to MH i2c: E2 08 00 C2 0B 80 11 00 00 00 00 00 00 47 [21:56:11]Write i2c OK [21:56:11]MH_I2C_Read... [21:56:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:56:11]Read from MH i2c: E2 [21:56:11]MH_I2C_Read... [21:56:11]Read from MH i2c: E2 17 00 [21:56:11]MH_I2C_Read... [21:56:11]Read from MH i2c: E2 17 00 C2 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 99 [21:56:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [21:56:11]wFMCommunicate OK [21:56:11]CreateOFDProtocolMessage done [21:56:11]OFDSenderStorePacket 63897 [21:56:11]StoreOFDPacket docnum=63897 [21:56:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 29 01 00 00 11 4A 21 01 78 26 5A 03 01 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 37 38 30 30 32 32 34 36 30 32 39 32 06 04 23 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 59 75 6D 69 6B 6F 20 67 72 65 65 6E 20 31 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 41 00 00 00 00 13 04 06 00 A0 41 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 41 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 95 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 06 00 00 00 00 07 04 06 00 A0 41 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 FA 3B 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 99 F9 00 00 35 04 06 00 3A 34 A6 35 FD EF EB 6E 38 E5 63 D1 F9 75 [21:56:11]CheckFolder [21:56:11]dirname=/storage/ofd_packets [21:56:11]CheckFolder done [21:56:11]ProducePacketName [21:56:11]name=ofd_packets/00063897 [21:56:11]NVStorageSaveData ofd_packets/00063897 [21:56:11]File name is /storage/ofd_packets/00063897 [21:56:11]Write 327 bytes [21:56:11]NVStorageSaveData done [21:56:11]OFDSenderStorePacket done [21:56:11]KKMCreateOFDPacket done [21:56:11]NVStorageSaveData kkm_last_timestamp [21:56:11]File name is /storage/kkm_last_timestamp [21:56:11]Write 4 bytes [21:56:11]NVStorageSaveData done [21:56:11]ExternCall_PrintAddStr [21:56:11]wPrintStart [21:56:11]Write to MH i2c: 01 00 00 C3 0B CE [21:56:11]Write i2c OK [21:56:11]MH_I2C_Read... [21:56:11]Read from MH i2c: 01 [21:56:11]MH_I2C_Read... [21:56:11]Read from MH i2c: 01 07 00 [21:56:11]MH_I2C_Read... [21:56:11]Read from MH i2c: 01 07 00 C3 0B 00 00 00 00 00 FF 0F E3 [21:56:11]RasterBufferAndPrint [21:56:11]line Счет N : (3)73465 [21:56:11]line ИНН: 02508201610067 [21:56:11]line Контрольно-Кассовый Чек [21:56:11]line ПРОДАЖА [21:56:11]line Товар: 4780022460292 [21:56:11]line Антифриз Yumiko green 1кг [21:56:11]line 1.000 * 168.00 [21:56:11]line = 168.00 [21:56:11]line НДС 12% НСП 1% [21:56:11]line > о реализуемом товаре [21:56:11]line ИТОГО: 168.00 [21:56:11]line НСП 1% : 1.49 [21:56:11]line НДС 12% : 17.84 [21:56:11]line Наличными: 168.00 [21:56:11]line Безнал.: 0.00 [21:56:11]line Место: АЗС № 117 "Партнер Нефть" [21:56:11]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [21:56:11]line СНО: Общий режим [21:56:11]line Чек 155 03.06.2024 21:56 [21:56:11]line Смена: 373 ФФД: 1.0 [21:56:11]line ЗНМ: 0300000031 [21:56:11]line РНМ: 0000000000092737 [21:56:11]line Версия ККМ: 001 [21:56:11]line ФМ: 0000000000875074 [21:56:11]line ФД: 63897 [21:56:11]line ФПД: 63997801266671 [21:56:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T215610&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63897&fm=63997801266671&tin=02508201610067®Number=0000000000092737&sum=16800 [21:56:11]line 0 [21:56:11]OFD Sender: Processing packet 63897 [packets to send 14, broken 13] [21:56:11]ProducePacketName [21:56:11]name=ofd_packets/00063897 [21:56:11]OFD Sender: To server: pG, [21:56:11]CommunicateWithHost lk.salyk.kg:30040 [21:56:11]ConnectInit lk.salyk.kg [21:56:11]written 0, free lines is 4095 [21:56:11]Connected sock=10 [21:56:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 29 01 00 00 11 4A 21 01 78 26 5A 03 01 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 37 38 30 30 32 32 34 36 30 32 39 32 06 04 23 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 59 75 6D 69 6B 6F 20 67 72 65 65 6E 20 31 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 41 00 00 00 00 13 04 06 00 A0 41 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 41 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 95 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 06 00 00 00 00 07 04 06 00 A0 41 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 FA 3B 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 99 F9 00 00 35 04 06 00 3A 34 A6 35 FD EF EB 6E 38 E5 63 D1 F9 75 [21:56:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 B8 B8 47 00 A3 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 35 30 37 34 10 04 04 00 99 F9 00 00 F4 03 04 00 CA E7 5D 66 B6 04 01 00 00 50 ED 23 93 67 74 DA D8 [21:56:11]CommunicateWithHost err = 0 [21:56:11]CheckOFDResponse [21:56:11]1017 (14) - 77093643461234 [21:56:11]1041 (16) - 0000000000875074 [21:56:11]1040 (4) - 63897 [21:56:11]1012 (4) - 03.06.2024 15:56 [21:56:11]1206 (1) - 0 [21:56:11]OFD Sender: Remove packet 63897 [21:56:11]ProducePacketName [21:56:11]name=ofd_packets/00063897 [21:56:11]NVStorageDeleteData [21:56:11]Write to MH i2c: 01 00 00 EB 0B F6 [21:56:11]Write i2c OK [21:56:11]MH_I2C_Read... [21:56:11]Read from MH i2c: 01 [21:56:11]MH_I2C_Read... [21:56:11]Read from MH i2c: 01 07 00 [21:56:11]MH_I2C_Read... [21:56:11]Read from MH i2c: 01 07 00 EB 0B 00 00 00 00 00 F8 0C 01 [21:56:11]RasterBufferAndPrint [21:56:11]line [21:56:11]line [21:56:11]line [21:56:11]line [21:56:11]line [21:56:11]written 0, free lines is 3330 [21:56:11]MH_Cut [21:56:11]Write to MH i2c: D1 01 00 F2 0B 01 CF [21:56:11]Write i2c OK [21:56:11]MH_I2C_Read... [21:56:11]Read from MH i2c: D1 [21:56:11]MH_I2C_Read... [21:56:11]Read from MH i2c: D1 01 00 [21:56:11]MH_I2C_Read... [21:56:11]Read from MH i2c: D1 01 00 F2 0B 00 CE [21:56:11]Write to MH i2c: 01 00 00 F3 0B FE [21:56:11]Write i2c OK [21:56:11]MH_I2C_Read... [21:56:12]OFD Sender: No OFD packet to send [21:56:12]*** Cut start [21:56:12]*** Partial cut [21:56:12]*** CUTSNS_PIN = 1 [21:56:12]*** CUTSNS_PIN = 0 [21:56:13]*** Brake cut motor [21:56:13]Read from MH i2c: 01 [21:56:13]MH_I2C_Read... [21:56:13]*** Stop cut motor [21:56:13]*** Cut end [21:56:13]Read from MH i2c: 01 07 00 [21:56:13]MH_I2C_Read... [21:56:13]Read from MH i2c: 01 07 00 F3 0B 00 00 00 00 00 FF 0F 13 [21:56:13]process_action close_receipt done [21:56:13]requested_data is exist [21:56:13]produce_requested_data [21:56:13]requested_item fm.sn is exist - process it [21:56:13]wFMCommunicate request_size=4 [21:56:13]MH_SAM_APDU [21:56:13]CAPDU: 80 11 00 00 [21:56:13]Write to MH i2c: E2 08 00 F4 0B 80 11 00 00 00 00 00 00 79 [21:56:13]Write i2c OK [21:56:13]MH_I2C_Read... [21:56:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:56:13]Read from MH i2c: E2 [21:56:13]MH_I2C_Read... [21:56:13]Read from MH i2c: E2 17 00 [21:56:13]MH_I2C_Read... [21:56:13]Read from MH i2c: E2 17 00 F4 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 CB [21:56:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [21:56:13]wFMCommunicate OK [21:56:13]requested_item fd.num is exist - process it [21:56:13]SAM_PROTO_GetFieldsCounters [21:56:13]wFMCommunicate request_size=4 [21:56:13]MH_SAM_APDU [21:56:13]CAPDU: 80 13 00 00 [21:56:13]Write to MH i2c: E2 08 00 F5 0B 80 13 00 00 00 00 00 00 7C [21:56:13]Write i2c OK [21:56:13]MH_I2C_Read... [21:56:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:56:13]Read from MH i2c: E2 [21:56:13]MH_I2C_Read... [21:56:13]Read from MH i2c: E2 62 00 [21:56:13]MH_I2C_Read... [21:56:13]Read from MH i2c: E2 62 00 F5 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 99 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 9B 00 00 00 5E 04 04 00 9B 00 00 00 57 04 04 00 9C 00 00 00 19 04 04 00 00 00 00 00 90 00 78 [21:56: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 99 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 9B 00 00 00 5E 04 04 00 9B 00 00 00 57 04 04 00 9C 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:56:13]wFMCommunicate OK [21:56:13]SAM_PROTO_GetFieldsCounters done [21:56:13]requested_item shift.num is exist - process it [21:56:13]requested_item shift.opened is exist - process it [21:56:13]req_shift_opened [21:56:13]FM_GetShiftState [21:56:13]SAM_PROTO_GetShiftState [21:56:13]wFMCommunicate request_size=4 [21:56:13]MH_SAM_APDU [21:56:13]CAPDU: 80 13 01 00 [21:56:13]Write to MH i2c: E2 08 00 F6 0B 80 13 01 00 00 00 00 00 7E [21:56:13]Write i2c OK [21:56:13]MH_I2C_Read... [21:56:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:56:13]Read from MH i2c: E2 [21:56:13]MH_I2C_Read... [21:56:13]Read from MH i2c: E2 0E 00 [21:56:13]MH_I2C_Read... [21:56:13]Read from MH i2c: E2 0E 00 F6 0B 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 4A [21:56:13]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [21:56:13]wFMCommunicate OK [21:56:13]SAM_PROTO_GetShiftState done [21:56:13]FM_GetShiftState done [21:56:13]req_shift_opened done [21:56:13]requested_item shift.open_date is exist - process it [21:56:13]req_shift_open_date [21:56:13]req_shift_open_date done [21:56:13]produce_requested_data done [21:56:13]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63897,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [21:56:13]process_action_free close_receipt [21:56:13]json_value_free [21:56:13]json_value_free done [21:56:13]process_json_proto returns [21:56:13]Send response to host [21:56:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63897,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [21:56:13]free response buf [21:56:13]execute_script done [21:56:13]execute_script returns [21:56:13]free content buf [21:56:13]Sock 9.Close socket [21:56:13]Sock 9.Thread stoped [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:07]OFD Sender: No OFD packet to send [22:00:12]OFD Sender: No OFD packet to send [22:00:17]OFD Sender: No OFD packet to send [22:00:22]OFD Sender: No OFD packet to send [22:00:27]OFD Sender: No OFD packet to send [22:00:32]OFD Sender: No OFD packet to send [22:00:37]OFD Sender: No OFD packet to send [22:00:42]OFD Sender: No OFD packet to send [22:00:47]OFD Sender: No OFD packet to send [22:00:52]OFD Sender: No OFD packet to send [22:00:57]OFD Sender: No OFD packet to send [22:01:02]OFD Sender: No OFD packet to send [22:01:07]OFD Sender: No OFD packet to send [22:01:12]OFD Sender: No OFD packet to send [22:01:17]OFD Sender: No OFD packet to send [22:01:22]OFD Sender: No OFD packet to send [22:01:27]OFD Sender: No OFD packet to send [22:01:32]OFD Sender: No OFD packet to send [22:01:37]OFD Sender: No OFD packet to send [22:01:42]OFD Sender: No OFD packet to send [22:01:47]OFD Sender: No OFD packet to send [22:01:52]OFD Sender: No OFD packet to send [22:01:57]OFD Sender: No OFD packet to send [22:02:02]OFD Sender: No OFD packet to send [22:02:07]OFD Sender: No OFD packet to send [22:02:12]OFD Sender: No OFD packet to send [22:02:17]OFD Sender: No OFD packet to send [22:02:22]OFD Sender: No OFD packet to send [22:02:27]OFD Sender: No OFD packet to send [22:02:32]OFD Sender: No OFD packet to send [22:02:37]OFD Sender: No OFD packet to send [22:02:42]OFD Sender: No OFD packet to send [22:02:47]OFD Sender: No OFD packet to send [22:02:52]OFD Sender: No OFD packet to send [22:02:57]OFD Sender: No OFD packet to send [22:03:02]OFD Sender: No OFD packet to send [22:03:07]OFD Sender: No OFD packet to send [22:03:12]OFD Sender: No OFD packet to send [22:03:17]OFD Sender: No OFD packet to send [22:03:22]OFD Sender: No OFD packet to send [22:03:27]OFD Sender: No OFD packet to send [22:03:32]OFD Sender: No OFD packet to send [22:03:37]OFD Sender: No OFD packet to send [22:03:42]OFD Sender: No OFD packet to send [22:03:47]OFD Sender: No OFD packet to send [22:03:52]OFD Sender: No OFD packet to send [22:03:57]OFD Sender: No OFD packet to send [22:04:02]OFD Sender: No OFD packet to send [22:04:07]OFD Sender: No OFD packet to send [22:04:12]OFD Sender: No OFD packet to send [22:04:17]OFD Sender: No OFD packet to send [22:04:22]OFD Sender: No OFD packet to send [22:04:27]OFD Sender: No OFD packet to send [22:04:32]OFD Sender: No OFD packet to send [22:04:37]OFD Sender: No OFD packet to send [22:04:42]OFD Sender: No OFD packet to send [22:04:47]OFD Sender: No OFD packet to send [22:04:52]OFD Sender: No OFD packet to send [22:04:57]OFD Sender: No OFD packet to send [22:05:00]accept exits with 7 [22:05:00]New connection [22:05:00]New thread 3066576228 created [22:05:00]Thread 3066719588 joined [22:05:00]Waiting for new connection... [22:05:00] Sock 7.Parse request [22:05:00]Sock 7.Check first char [22:05:00]Sock 7.First char is OK [22:05:00]request: POST /json_proto HTTP/1.0 [22:05:00]Method: POST [22:05:00]URL: /json_proto [22:05:00]Method is POST - this is cgi request [22:05:00]url: /json_proto [22:05:00]query_string will be loaded in cgi processing [22:05:00]execute_cgi json_proto POST (null) [22:05:00]execute_cgi path=json_proto method=POST [22:05:00]POST find Content-Length [22:05:00]Host: 172.17.60.69:8080 [22:05:00]Content-Length: 983 [22:05:00]Content-Type: application/json [22:05:00] [22:05:00]POST finish read [22:05:00]Found Content-Length = 983 [22:05:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73466", "tax_sys" : 0, "items" : [ { "code": "4860114390277", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0431\u0435\u0437\u0430\u043B\u043A\u043E\u0433\u043E\u043B\u044C\u043D\u044B\u0439 \u0433\u0430\u0437\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0439 \u0421\u0430\u043F\u0435", "price" : 155.00, "quantity" : 1.000, "sum" : 155.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 155.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:05:00]execute_script... [22:05:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73466", "tax_sys" : 0, "items" : [ { "code": "4860114390277", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0431\u0435\u0437\u0430\u043B\u043A\u043E\u0433\u043E\u043B\u044C\u043D\u044B\u0439 \u0433\u0430\u0437\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0439 \u0421\u0430\u043F\u0435", "price" : 155.00, "quantity" : 1.000, "sum" : 155.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 155.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:05:00]POST & json_proto [22:05:00]process_json_proto [22:05:00]json parsed OK: [22:05:00]protocol is kg_v1.0 [22:05:00]action value=close_receipt [22:05:00]process_action close_receipt [22:05:00]cmd_close_receipt [22:05:00]MH_GetDate [22:05:00]Write to MH i2c: F0 00 00 F7 0B F1 [22:05:00]Write i2c OK [22:05:00]MH_I2C_Read... [22:05:00]Read from MH i2c: F0 [22:05:00]MH_I2C_Read... [22:05:00]Read from MH i2c: F0 09 00 [22:05:00]MH_I2C_Read... [22:05:00]Read from MH i2c: F0 09 00 F7 0B 00 0D 3E 5E 66 6A 96 4A 66 B9 [22:05:00]GetLastDocTimeStamp 1717451770 [22:05:00]current date 1717452301 [22:05:00]FM_GetShiftState [22:05:00]SAM_PROTO_GetShiftState [22:05:00]wFMCommunicate request_size=4 [22:05:00]MH_SAM_APDU [22:05:00]CAPDU: 80 13 01 00 [22:05:00]Write to MH i2c: E2 08 00 F8 0B 80 13 01 00 00 00 00 00 80 [22:05:00]Write i2c OK [22:05:00]MH_I2C_Read... [22:05:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:05:00]Read from MH i2c: E2 [22:05:00]MH_I2C_Read... [22:05:00]Read from MH i2c: E2 0E 00 [22:05:00]MH_I2C_Read... [22:05:00]Read from MH i2c: E2 0E 00 F8 0B 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 4C [22:05:00]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [22:05:00]wFMCommunicate OK [22:05:00]SAM_PROTO_GetShiftState done [22:05:00]FM_GetShiftState done [22:05:00]opened in 1717373173 [22:05:00]opened+sec_in_day 1717459573 [22:05:00]quantity*price = 15500 [22:05:00]sum+1 = 15501 [22:05:00]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 155.00 НСП 1% : 1.37 НДС 12% : 16.46 Наличными: 0.00 Безнал.: 155.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 156 03.06.2024 22:05 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000875074 ФД: 63898 ФПД: 22053016195885 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T220501&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63898&fm=22053016195885&tin=02508201610067®Number=0000000000092737&sum=15500 0 [22:05:01]StoreToDocumentArchive [22:05:01]shift 373 fd 63898 [22:05:01]save to /storage/0373/doc_00063898 [22:05:01]save last doc name /storage/0373/doc_00063898 to /storage/kkm_last_doc_name [22:05:01]save OK [22:05:01]Clear old archive folders... [22:05:01]ProcessDocumentItem done err = 0, tmpTLVsize=319 [22:05:01]tlvbuf is 00AB4B40 [22:05:01]SAM_PROTO_ClearQueue [22:05:01]wFMCommunicate request_size=4 [22:05:01]MH_SAM_APDU [22:05:01]CAPDU: 80 09 00 00 [22:05:01]Write to MH i2c: E2 08 00 05 0C 80 09 00 00 00 00 00 00 83 [22:05:01]Write i2c OK [22:05:01]MH_I2C_Read... [22:05:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:05:01]Read from MH i2c: E2 [22:05:01]MH_I2C_Read... [22:05:01]Read from MH i2c: E2 03 00 [22:05:01]MH_I2C_Read... [22:05:01]Read from MH i2c: E2 03 00 05 0C 00 90 00 85 [22:05:01]RAPDU: 90 00 [22:05:01]wFMCommunicate OK [22:05:01]SAM_PROTO_ClearQueue done [22:05:01]KKMCreateOFDPacket [22:05:01]OFDProtocolAddRootSTLVToBuf [22:05:01]FM_MakeSignedData [22:05:01]FM_MakeSignedData [22:05:01]SAM_PROTO_SignData [22:05:01]wFMCommunicate request_size=4 [22:05:01]MH_SAM_APDU [22:05:01]CAPDU: 80 0D 01 02 [22:05:01]Write to MH i2c: E2 08 00 06 0C 80 0D 01 02 00 00 00 00 8B [22:05:01]Write i2c OK [22:05:01]MH_I2C_Read... [22:05:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:05:01]Read from MH i2c: E2 [22:05:01]MH_I2C_Read... [22:05:01]Read from MH i2c: E2 03 00 [22:05:01]MH_I2C_Read... [22:05:01]Read from MH i2c: E2 03 00 06 0C 00 90 00 86 [22:05:01]RAPDU: 90 00 [22:05:01]wFMCommunicate OK [22:05:01]wFMCommunicate request_size=255 [22:05:01]MH_SAM_APDU [22:05:01]CAPDU: 80 0D 02 02 FA 03 00 3F 01 1E 04 01 00 01 23 04 91 00 8A 04 0D 00 34 38 36 30 31 31 34 33 39 30 32 37 37 06 04 4D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 B1 D0 B5 D0 B7 D0 B0 D0 BB D0 BA D0 BE D0 B3 D0 BE D0 BB D1 8C D0 BD D1 8B D0 B9 20 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 D0 BE D0 B2 D0 B0 D0 BD D0 BD D1 8B D0 B9 20 D0 A1 D0 B0 D0 BF D0 B5 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 3C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 0D 3E [22:05:01]Write to MH i2c: E2 02 01 07 0C 80 0D 02 02 FA 00 03 00 3F 01 1E 04 01 00 01 23 04 91 00 8A 04 0D 00 34 38 36 30 31 31 34 33 39 30 32 37 37 06 04 4D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 B1 D0 B5 D0 B7 D0 B0 D0 BB D0 BA D0 BE D0 B3 D0 BE D0 BB D1 8C D0 BD D1 8B D0 B9 20 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 D0 BE D0 B2 D0 B0 D0 BD D0 BD D1 8B D0 B9 20 D0 A1 D0 B0 D0 BF D0 B5 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 3C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 0D 3E 00 00 BD [22:05:01]Write i2c OK [22:05:01]MH_I2C_Read... [22:05:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:05:02]Read from MH i2c: E2 [22:05:02]MH_I2C_Read... [22:05:02]Read from MH i2c: E2 03 00 [22:05:02]MH_I2C_Read... [22:05:02]Read from MH i2c: E2 03 00 07 0C 00 90 00 87 [22:05:02]RAPDU: 90 00 [22:05:02]wFMCommunicate OK [22:05:02]wFMCommunicate request_size=78 [22:05:02]MH_SAM_APDU [22:05:02]CAPDU: 80 0D 02 02 49 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 9A F9 00 00 35 04 06 00 14 0E 9E 32 53 2D [22:05:02]Write to MH i2c: E2 51 00 08 0C 80 0D 02 02 49 00 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 9A F9 00 00 35 04 06 00 14 0E 9E 32 53 2D 00 00 0C [22:05:02]Write i2c OK [22:05:02]MH_I2C_Read... [22:05:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:05:02]Read from MH i2c: E2 [22:05:02]MH_I2C_Read... [22:05:02]Read from MH i2c: E2 03 00 [22:05:02]MH_I2C_Read... [22:05:02]Read from MH i2c: E2 03 00 08 0C 00 90 00 88 [22:05:02]RAPDU: 90 00 [22:05:02]wFMCommunicate OK [22:05:02]wFMCommunicate request_size=4 [22:05:02]MH_SAM_APDU [22:05:02]CAPDU: 80 0D 03 02 [22:05:02]Write to MH i2c: E2 08 00 09 0C 80 0D 03 02 00 00 00 00 90 [22:05:02]Write i2c OK [22:05:02]MH_I2C_Read... [22:05:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:05:02]Read from MH i2c: E2 [22:05:02]MH_I2C_Read... [22:05:02]Read from MH i2c: E2 0B 00 [22:05:02]MH_I2C_Read... [22:05:02]Read from MH i2c: E2 0B 00 09 0C 00 75 FF 06 54 91 14 A9 AC 90 00 59 [22:05:02]RAPDU: 75 FF 06 54 91 14 A9 AC 90 00 [22:05:02]wFMCommunicate OK [22:05:02]SAM_PROTO_SignData done [22:05:02]FM_MakeSignedData done [22:05:02]CreateOFDProtocolMessage [22:05:02]wFMCommunicate request_size=4 [22:05:02]MH_SAM_APDU [22:05:02]CAPDU: 80 11 00 00 [22:05:02]Write to MH i2c: E2 08 00 0A 0C 80 11 00 00 00 00 00 00 90 [22:05:02]Write i2c OK [22:05:02]MH_I2C_Read... [22:05:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:05:02]Read from MH i2c: E2 [22:05:02]MH_I2C_Read... [22:05:02]Read from MH i2c: E2 17 00 [22:05:02]MH_I2C_Read... [22:05:02]Read from MH i2c: E2 17 00 0A 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 E2 [22:05:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [22:05:02]wFMCommunicate OK [22:05:02]CreateOFDProtocolMessage done [22:05:02]OFDSenderStorePacket 63898 [22:05:02]StoreOFDPacket docnum=63898 [22:05:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 53 01 00 00 8A 37 4B 01 BB 06 5A 03 01 00 03 00 3F 01 1E 04 01 00 01 23 04 91 00 8A 04 0D 00 34 38 36 30 31 31 34 33 39 30 32 37 37 06 04 4D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 B1 D0 B5 D0 B7 D0 B0 D0 BB D0 BA D0 BE D0 B3 D0 BE D0 BB D1 8C D0 BD D1 8B D0 B9 20 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 D0 BE D0 B2 D0 B0 D0 BD D0 BD D1 8B D0 B9 20 D0 A1 D0 B0 D0 BF D0 B5 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 3C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 0D 3E 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 9A F9 00 00 35 04 06 00 14 0E 9E 32 53 2D 75 FF 06 54 91 14 A9 AC [22:05:02]CheckFolder [22:05:02]dirname=/storage/ofd_packets [22:05:02]CheckFolder done [22:05:02]ProducePacketName [22:05:02]name=ofd_packets/00063898 [22:05:02]NVStorageSaveData ofd_packets/00063898 [22:05:02]File name is /storage/ofd_packets/00063898 [22:05:02]Write 369 bytes [22:05:02]NVStorageSaveData done [22:05:02]OFDSenderStorePacket done [22:05:02]KKMCreateOFDPacket done [22:05:02]NVStorageSaveData kkm_last_timestamp [22:05:02]File name is /storage/kkm_last_timestamp [22:05:02]Write 4 bytes [22:05:02]NVStorageSaveData done [22:05:02]ExternCall_PrintAddStr [22:05:02]wPrintStart [22:05:02]Write to MH i2c: 01 00 00 0B 0C 17 [22:05:02]Write i2c OK [22:05:02]MH_I2C_Read... [22:05:02]Read from MH i2c: 01 [22:05:02]MH_I2C_Read... [22:05:02]Read from MH i2c: 01 07 00 [22:05:02]MH_I2C_Read... [22:05:02]Read from MH i2c: 01 07 00 0B 0C 00 00 00 00 00 FF 0F 2C [22:05:02]RasterBufferAndPrint [22:05:02]line Счет N : (3)73466 [22:05:02]line ИНН: 02508201610067 [22:05:02]line Контрольно-Кассовый Чек [22:05:02]line ПРОДАЖА [22:05:02]line Товар: 4860114390277 [22:05:02]line Напиток безалкогольный газированный Сапе [22:05:02]line 1.000 * 155.00 [22:05:02]line = 155.00 [22:05:02]line НДС 12% НСП 1% [22:05:02]line > о реализуемом товаре [22:05:02]line ИТОГО: 155.00 [22:05:02]line НСП 1% : 1.37 [22:05:02]line НДС 12% : 16.46 [22:05:02]line Наличными: 0.00 [22:05:02]line Безнал.: 155.00 [22:05:02]line Место: АЗС № 117 "Партнер Нефть" [22:05:02]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [22:05:02]line СНО: Общий режим [22:05:02]line Чек 156 03.06.2024 22:05 [22:05:02]line Смена: 373 ФФД: 1.0 [22:05:02]line ЗНМ: 0300000031 [22:05:02]line РНМ: 0000000000092737 [22:05:02]line Версия ККМ: 001 [22:05:02]line Платежная система: АКБ Кыргызстан [22:05:02]line ФМ: 0000000000875074 [22:05:02]line ФД: 63898 [22:05:02]line ФПД: 22053016195885 [22:05:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T220501&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63898&fm=22053016195885&tin=02508201610067®Number=0000000000092737&sum=15500 [22:05:02]line 0 [22:05:02]OFD Sender: Processing packet 63898 [packets to send 14, broken 13] [22:05:02]ProducePacketName [22:05:02]name=ofd_packets/00063898 [22:05:02]OFD Sender: To server: pG, [22:05:02]CommunicateWithHost lk.salyk.kg:30040 [22:05:02]ConnectInit lk.salyk.kg [22:05:02]written 0, free lines is 4095 [22:05:02]Connected sock=10 [22:05:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 53 01 00 00 8A 37 4B 01 BB 06 5A 03 01 00 03 00 3F 01 1E 04 01 00 01 23 04 91 00 8A 04 0D 00 34 38 36 30 31 31 34 33 39 30 32 37 37 06 04 4D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 B1 D0 B5 D0 B7 D0 B0 D0 BB D0 BA D0 BE D0 B3 D0 BE D0 BB D1 8C D0 BD D1 8B D0 B9 20 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 D0 BE D0 B2 D0 B0 D0 BD D0 BD D1 8B D0 B9 20 D0 A1 D0 B0 D0 BF D0 B5 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 3C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 0D 3E 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 9A F9 00 00 35 04 06 00 14 0E 9E 32 53 2D 75 FF 06 54 91 14 A9 AC [22:05:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 5F EB 47 00 39 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 35 30 37 34 10 04 04 00 9A F9 00 00 F4 03 04 00 DD E9 5D 66 B6 04 01 00 00 94 C7 3B 33 78 F0 C6 6F [22:05:02]CommunicateWithHost err = 0 [22:05:02]CheckOFDResponse [22:05:02]1017 (14) - 77093643461234 [22:05:02]1041 (16) - 0000000000875074 [22:05:02]1040 (4) - 63898 [22:05:02]1012 (4) - 03.06.2024 16:05 [22:05:02]1206 (1) - 0 [22:05:02]OFD Sender: Remove packet 63898 [22:05:02]ProducePacketName [22:05:02]name=ofd_packets/00063898 [22:05:02]NVStorageDeleteData [22:05:03]Write to MH i2c: 01 00 00 36 0C 42 [22:05:03]Write i2c OK [22:05:03]MH_I2C_Read... [22:05:03]Read from MH i2c: 01 [22:05:03]MH_I2C_Read... [22:05:03]Read from MH i2c: 01 07 00 [22:05:03]MH_I2C_Read... [22:05:03]Read from MH i2c: 01 07 00 36 0C 00 00 00 00 00 C5 0C 1A [22:05:03]RasterBufferAndPrint [22:05:03]line [22:05:03]line [22:05:03]line [22:05:03]line [22:05:03]line [22:05:03]written 0, free lines is 3275 [22:05:03]MH_Cut [22:05:03]Write to MH i2c: D1 01 00 3D 0C 01 1B [22:05:03]Write i2c OK [22:05:03]MH_I2C_Read... [22:05:03]Read from MH i2c: D1 [22:05:03]MH_I2C_Read... [22:05:03]Read from MH i2c: D1 01 00 [22:05:03]MH_I2C_Read... [22:05:03]Read from MH i2c: D1 01 00 3D 0C 00 1A [22:05:03]Write to MH i2c: 01 00 00 3E 0C 4A [22:05:03]Write i2c OK [22:05:03]MH_I2C_Read... [22:05:03]OFD Sender: No OFD packet to send [22:05:03]*** Cut start [22:05:03]*** Partial cut [22:05:03]*** CUTSNS_PIN = 1 [22:05:04]*** CUTSNS_PIN = 0 [22:05:04]*** Brake cut motor [22:05:04]Read from MH i2c: 01 [22:05:04]MH_I2C_Read... [22:05:04]*** Stop cut motor [22:05:04]*** Cut end [22:05:04]Read from MH i2c: 01 07 00 [22:05:04]MH_I2C_Read... [22:05:04]Read from MH i2c: 01 07 00 3E 0C 00 00 00 00 00 FF 0F 5F [22:05:04]process_action close_receipt done [22:05:04]requested_data is exist [22:05:04]produce_requested_data [22:05:04]requested_item fm.sn is exist - process it [22:05:04]wFMCommunicate request_size=4 [22:05:04]MH_SAM_APDU [22:05:04]CAPDU: 80 11 00 00 [22:05:04]Write to MH i2c: E2 08 00 3F 0C 80 11 00 00 00 00 00 00 C5 [22:05:04]Write i2c OK [22:05:04]MH_I2C_Read... [22:05:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:05:04]Read from MH i2c: E2 [22:05:04]MH_I2C_Read... [22:05:04]Read from MH i2c: E2 17 00 [22:05:04]MH_I2C_Read... [22:05:04]Read from MH i2c: E2 17 00 3F 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 17 [22:05:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [22:05:04]wFMCommunicate OK [22:05:04]requested_item fd.num is exist - process it [22:05:04]SAM_PROTO_GetFieldsCounters [22:05:04]wFMCommunicate request_size=4 [22:05:04]MH_SAM_APDU [22:05:04]CAPDU: 80 13 00 00 [22:05:04]Write to MH i2c: E2 08 00 40 0C 80 13 00 00 00 00 00 00 C8 [22:05:04]Write i2c OK [22:05:04]MH_I2C_Read... [22:05:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:05:04]Read from MH i2c: E2 [22:05:04]MH_I2C_Read... [22:05:04]Read from MH i2c: E2 62 00 [22:05:04]MH_I2C_Read... [22:05:04]Read from MH i2c: E2 62 00 40 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 9A F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 9C 00 00 00 5E 04 04 00 9C 00 00 00 57 04 04 00 9D 00 00 00 19 04 04 00 00 00 00 00 90 00 C8 [22:05: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 9A F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 9C 00 00 00 5E 04 04 00 9C 00 00 00 57 04 04 00 9D 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:05:04]wFMCommunicate OK [22:05:04]SAM_PROTO_GetFieldsCounters done [22:05:04]requested_item shift.num is exist - process it [22:05:04]requested_item shift.opened is exist - process it [22:05:04]req_shift_opened [22:05:04]FM_GetShiftState [22:05:04]SAM_PROTO_GetShiftState [22:05:04]wFMCommunicate request_size=4 [22:05:04]MH_SAM_APDU [22:05:04]CAPDU: 80 13 01 00 [22:05:04]Write to MH i2c: E2 08 00 41 0C 80 13 01 00 00 00 00 00 CA [22:05:04]Write i2c OK [22:05:04]MH_I2C_Read... [22:05:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:05:04]Read from MH i2c: E2 [22:05:04]MH_I2C_Read... [22:05:04]Read from MH i2c: E2 0E 00 [22:05:04]MH_I2C_Read... [22:05:04]Read from MH i2c: E2 0E 00 41 0C 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 96 [22:05:04]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [22:05:04]wFMCommunicate OK [22:05:04]SAM_PROTO_GetShiftState done [22:05:04]FM_GetShiftState done [22:05:04]req_shift_opened done [22:05:04]requested_item shift.open_date is exist - process it [22:05:04]req_shift_open_date [22:05:04]req_shift_open_date done [22:05:04]produce_requested_data done [22:05:04]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63898,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [22:05:04]process_action_free close_receipt [22:05:04]json_value_free [22:05:04]json_value_free done [22:05:04]process_json_proto returns [22:05:04]Send response to host [22:05:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63898,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [22:05:04]free response buf [22:05:04]execute_script done [22:05:04]execute_script returns [22:05:04]free content buf [22:05:04]Sock 7.Close socket [22:05:04]Sock 7.Thread stoped [22:05:08]OFD Sender: No OFD packet to send [22:05:13]OFD Sender: No OFD packet to send [22:05:18]OFD Sender: No OFD packet to send [22:05:23]OFD Sender: No OFD packet to send [22:05:28]OFD Sender: No OFD packet to send [22:05:33]OFD Sender: No OFD packet to send [22:05:38]OFD Sender: No OFD packet to send [22:05:43]OFD Sender: No OFD packet to send [22:05:48]OFD Sender: No OFD packet to send [22:05:53]OFD Sender: No OFD packet to send [22:05:58]OFD Sender: No OFD packet to send [22:06:03]OFD Sender: No OFD packet to send [22:06:08]OFD Sender: No OFD packet to send [22:06:13]OFD Sender: No OFD packet to send [22:06:18]OFD Sender: No OFD packet to send [22:06:23]OFD Sender: No OFD packet to send [22:06:28]OFD Sender: No OFD packet to send [22:06:33]OFD Sender: No OFD packet to send [22:06:38]OFD Sender: No OFD packet to send [22:06:43]OFD Sender: No OFD packet to send [22:06:48]OFD Sender: No OFD packet to send [22:06:53]OFD Sender: No OFD packet to send [22:06:58]OFD Sender: No OFD packet to send [22:07:03]OFD Sender: No OFD packet to send [22:07:08]OFD Sender: No OFD packet to send [22:07:13]OFD Sender: No OFD packet to send [22:07:18]OFD Sender: No OFD packet to send [22:07:23]OFD Sender: No OFD packet to send [22:07:28]OFD Sender: No OFD packet to send [22:07:33]OFD Sender: No OFD packet to send [22:07:38]OFD Sender: No OFD packet to send [22:07:43]OFD Sender: No OFD packet to send [22:07:48]OFD Sender: No OFD packet to send [22:07:51]accept exits with 9 [22:07:51]New connection [22:07:51]New thread 3066719588 created [22:07:51]Thread 3066576228 joined [22:07:51]Waiting for new connection... [22:07:51] Sock 9.Parse request [22:07:51]Sock 9.Check first char [22:07:51]Sock 9.First char is OK [22:07:51]request: POST /json_proto HTTP/1.0 [22:07:51]Method: POST [22:07:51]URL: /json_proto [22:07:51]Method is POST - this is cgi request [22:07:51]url: /json_proto [22:07:51]query_string will be loaded in cgi processing [22:07:51]execute_cgi json_proto POST (null) [22:07:51]execute_cgi path=json_proto method=POST [22:07:51]POST find Content-Length [22:07:51]Host: 172.17.60.69:8080 [22:07:51]Content-Length: 648 [22:07:51]Content-Type: application/json [22:07:51] [22:07:51]POST finish read [22:07:51]Found Content-Length = 648 [22:07:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73467", "tax_sys" : 0, "items" : [ { "code": "4870227272957", "name": "\u041B\u0438\u043C\u043E\u043D\u0430\u0434 Sunbel \u0422\u0430\u0440\u0445\u0443\u043D 1\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 85.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:07:51]execute_script... [22:07:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73467", "tax_sys" : 0, "items" : [ { "code": "4870227272957", "name": "\u041B\u0438\u043C\u043E\u043D\u0430\u0434 Sunbel \u0422\u0430\u0440\u0445\u0443\u043D 1\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 85.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:07:51]POST & json_proto [22:07:51]process_json_proto [22:07:51]json parsed OK: [22:07:51]protocol is kg_v1.0 [22:07:51]action value=close_receipt [22:07:51]process_action close_receipt [22:07:51]cmd_close_receipt [22:07:51]MH_GetDate [22:07:51]Write to MH i2c: F0 00 00 42 0C 3D [22:07:51]Write i2c OK [22:07:51]MH_I2C_Read... [22:07:51]Read from MH i2c: F0 [22:07:51]MH_I2C_Read... [22:07:51]Read from MH i2c: F0 09 00 [22:07:51]MH_I2C_Read... [22:07:51]Read from MH i2c: F0 09 00 42 0C 00 B8 3E 5E 66 6A 96 4A 66 B0 [22:07:51]GetLastDocTimeStamp 1717452301 [22:07:51]current date 1717452472 [22:07:51]FM_GetShiftState [22:07:51]SAM_PROTO_GetShiftState [22:07:51]wFMCommunicate request_size=4 [22:07:51]MH_SAM_APDU [22:07:51]CAPDU: 80 13 01 00 [22:07:51]Write to MH i2c: E2 08 00 43 0C 80 13 01 00 00 00 00 00 CC [22:07:51]Write i2c OK [22:07:51]MH_I2C_Read... [22:07:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:07:51]Read from MH i2c: E2 [22:07:51]MH_I2C_Read... [22:07:51]Read from MH i2c: E2 0E 00 [22:07:51]MH_I2C_Read... [22:07:51]Read from MH i2c: E2 0E 00 43 0C 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 98 [22:07:51]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [22:07:51]wFMCommunicate OK [22:07:51]SAM_PROTO_GetShiftState done [22:07:51]FM_GetShiftState done [22:07:51]opened in 1717373173 [22:07:51]opened+sec_in_day 1717459573 [22:07:51]quantity*price = 8500 [22:07:51]sum+1 = 8501 [22:07:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 85.00 НСП 1% : 0.75 НДС 12% : 9.03 Наличными: 85.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 157 03.06.2024 22:07 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63899 ФПД: 238548970500667 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T220752&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63899&fm=238548970500667&tin=02508201610067®Number=0000000000092737&sum=8500 0 [22:07:52]StoreToDocumentArchive [22:07:52]shift 373 fd 63899 [22:07:52]save to /storage/0373/doc_00063899 [22:07:52]save last doc name /storage/0373/doc_00063899 to /storage/kkm_last_doc_name [22:07:52]save OK [22:07:52]Clear old archive folders... [22:07:52]ProcessDocumentItem done err = 0, tmpTLVsize=280 [22:07:52]tlvbuf is 00AB1190 [22:07:52]SAM_PROTO_ClearQueue [22:07:52]wFMCommunicate request_size=4 [22:07:52]MH_SAM_APDU [22:07:52]CAPDU: 80 09 00 00 [22:07:52]Write to MH i2c: E2 08 00 50 0C 80 09 00 00 00 00 00 00 CE [22:07:52]Write i2c OK [22:07:52]MH_I2C_Read... [22:07:52]Read from MH i2c: E2 [22:07:52]MH_I2C_Read... [22:07:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:07:52]Read from MH i2c: E2 03 00 [22:07:52]MH_I2C_Read... [22:07:52]Read from MH i2c: E2 03 00 50 0C 00 90 00 D0 [22:07:52]RAPDU: 90 00 [22:07:52]wFMCommunicate OK [22:07:52]SAM_PROTO_ClearQueue done [22:07:52]KKMCreateOFDPacket [22:07:52]OFDProtocolAddRootSTLVToBuf [22:07:52]FM_MakeSignedData [22:07:52]FM_MakeSignedData [22:07:52]SAM_PROTO_SignData [22:07:52]wFMCommunicate request_size=4 [22:07:52]MH_SAM_APDU [22:07:52]CAPDU: 80 0D 01 02 [22:07:52]Write to MH i2c: E2 08 00 51 0C 80 0D 01 02 00 00 00 00 D6 [22:07:52]Write i2c OK [22:07:52]MH_I2C_Read... [22:07:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:07:52]Read from MH i2c: E2 [22:07:52]MH_I2C_Read... [22:07:52]Read from MH i2c: E2 03 00 [22:07:52]MH_I2C_Read... [22:07:52]Read from MH i2c: E2 03 00 51 0C 00 90 00 D1 [22:07:52]RAPDU: 90 00 [22:07:52]wFMCommunicate OK [22:07:52]wFMCommunicate request_size=255 [22:07:52]MH_SAM_APDU [22:07:52]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 38 37 30 32 32 37 32 37 32 39 35 37 06 04 26 00 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 53 75 6E 62 65 6C 20 D0 A2 D0 B0 D1 80 D1 85 D1 83 D0 BD 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 B8 3E 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 [22:07:52]Write to MH i2c: E2 02 01 52 0C 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 38 37 30 32 32 37 32 37 32 39 35 37 06 04 26 00 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 53 75 6E 62 65 6C 20 D0 A2 D0 B0 D1 80 D1 85 D1 83 D0 BD 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 B8 3E 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 00 00 82 [22:07:52]Write i2c OK [22:07:52]MH_I2C_Read... [22:07:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:07:53]Read from MH i2c: E2 [22:07:53]MH_I2C_Read... [22:07:53]Read from MH i2c: E2 03 00 [22:07:53]MH_I2C_Read... [22:07:53]Read from MH i2c: E2 03 00 52 0C 00 90 00 D2 [22:07:53]RAPDU: 90 00 [22:07:53]wFMCommunicate OK [22:07:53]wFMCommunicate request_size=39 [22:07:53]MH_SAM_APDU [22:07:53]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 9B F9 00 00 35 04 06 00 D8 F5 82 A5 F2 3B [22:07:53]Write to MH i2c: E2 2A 00 53 0C 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 9B F9 00 00 35 04 06 00 D8 F5 82 A5 F2 3B 00 00 48 [22:07:53]Write i2c OK [22:07:53]MH_I2C_Read... [22:07:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:07:53]Read from MH i2c: E2 [22:07:53]MH_I2C_Read... [22:07:53]Read from MH i2c: E2 03 00 [22:07:53]MH_I2C_Read... [22:07:53]Read from MH i2c: E2 03 00 53 0C 00 90 00 D3 [22:07:53]RAPDU: 90 00 [22:07:53]wFMCommunicate OK [22:07:53]wFMCommunicate request_size=4 [22:07:53]MH_SAM_APDU [22:07:53]CAPDU: 80 0D 03 02 [22:07:53]Write to MH i2c: E2 08 00 54 0C 80 0D 03 02 00 00 00 00 DB [22:07:53]Write i2c OK [22:07:53]MH_I2C_Read... [22:07:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:07:53]Read from MH i2c: E2 [22:07:53]MH_I2C_Read... [22:07:53]Read from MH i2c: E2 0B 00 [22:07:53]MH_I2C_Read... [22:07:53]Read from MH i2c: E2 0B 00 54 0C 00 A4 68 07 7E 20 50 BB 18 90 00 B0 [22:07:53]RAPDU: A4 68 07 7E 20 50 BB 18 90 00 [22:07:53]wFMCommunicate OK [22:07:53]SAM_PROTO_SignData done [22:07:53]FM_MakeSignedData done [22:07:53]CreateOFDProtocolMessage [22:07:53]wFMCommunicate request_size=4 [22:07:53]MH_SAM_APDU [22:07:53]CAPDU: 80 11 00 00 [22:07:53]Write to MH i2c: E2 08 00 55 0C 80 11 00 00 00 00 00 00 DB [22:07:53]Write i2c OK [22:07:53]MH_I2C_Read... [22:07:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:07:53]Read from MH i2c: E2 [22:07:53]MH_I2C_Read... [22:07:53]Read from MH i2c: E2 17 00 [22:07:53]MH_I2C_Read... [22:07:53]Read from MH i2c: E2 17 00 55 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 2D [22:07:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [22:07:53]wFMCommunicate OK [22:07:53]CreateOFDProtocolMessage done [22:07:53]OFDSenderStorePacket 63899 [22:07:53]StoreOFDPacket docnum=63899 [22:07:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 2C 01 00 00 6A 83 24 01 D1 73 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 38 37 30 32 32 37 32 37 32 39 35 37 06 04 26 00 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 53 75 6E 62 65 6C 20 D0 A2 D0 B0 D1 80 D1 85 D1 83 D0 BD 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 B8 3E 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 9B F9 00 00 35 04 06 00 D8 F5 82 A5 F2 3B A4 68 07 7E 20 50 BB 18 [22:07:53]CheckFolder [22:07:53]dirname=/storage/ofd_packets [22:07:53]CheckFolder done [22:07:53]ProducePacketName [22:07:53]name=ofd_packets/00063899 [22:07:53]NVStorageSaveData ofd_packets/00063899 [22:07:53]File name is /storage/ofd_packets/00063899 [22:07:53]Write 330 bytes [22:07:53]NVStorageSaveData done [22:07:53]OFDSenderStorePacket done [22:07:53]KKMCreateOFDPacket done [22:07:53]NVStorageSaveData kkm_last_timestamp [22:07:53]File name is /storage/kkm_last_timestamp [22:07:53]Write 4 bytes [22:07:53]NVStorageSaveData done [22:07:53]ExternCall_PrintAddStr [22:07:53]wPrintStart [22:07:53]Write to MH i2c: 01 00 00 56 0C 62 [22:07:53]Write i2c OK [22:07:53]MH_I2C_Read... [22:07:53]Read from MH i2c: 01 [22:07:53]MH_I2C_Read... [22:07:53]Read from MH i2c: 01 07 00 [22:07:53]MH_I2C_Read... [22:07:53]Read from MH i2c: 01 07 00 56 0C 00 00 00 00 00 FF 0F 77 [22:07:53]RasterBufferAndPrint [22:07:53]line Счет N : (3)73467 [22:07:53]line ИНН: 02508201610067 [22:07:53]line Контрольно-Кассовый Чек [22:07:53]line ПРОДАЖА [22:07:53]line Товар: 4870227272957 [22:07:53]line Лимонад Sunbel Тархун 1л [22:07:53]line 1.000 * 85.00 [22:07:53]line = 85.00 [22:07:53]line НДС 12% НСП 1% [22:07:53]line > о реализуемом товаре [22:07:53]line ИТОГО: 85.00 [22:07:53]line НСП 1% : 0.75 [22:07:53]line НДС 12% : 9.03 [22:07:53]line Наличными: 85.00 [22:07:53]line Безнал.: 0.00 [22:07:53]line Место: АЗС № 117 "Партнер Нефть" [22:07:53]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [22:07:53]line СНО: Общий режим [22:07:53]line Чек 157 03.06.2024 22:07 [22:07:53]line Смена: 373 ФФД: 1.0 [22:07:53]line ЗНМ: 0300000031 [22:07:53]line РНМ: 0000000000092737 [22:07:53]line Версия ККМ: 001 [22:07:53]line ФМ: 0000000000875074 [22:07:53]line ФД: 63899 [22:07:53]line ФПД: 238548970500667 [22:07:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T220752&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63899&fm=238548970500667&tin=02508201610067®Number=0000000000092737&sum=8500 [22:07:53]line 0 [22:07:53]OFD Sender: Processing packet 63899 [packets to send 14, broken 13] [22:07:53]ProducePacketName [22:07:53]name=ofd_packets/00063899 [22:07:53]OFD Sender: To server: pG, [22:07:53]CommunicateWithHost lk.salyk.kg:30040 [22:07:53]ConnectInit lk.salyk.kg [22:07:53]written 0, free lines is 4095 [22:07:53]Connected sock=10 [22:07:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 2C 01 00 00 6A 83 24 01 D1 73 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 38 37 30 32 32 37 32 37 32 39 35 37 06 04 26 00 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 53 75 6E 62 65 6C 20 D0 A2 D0 B0 D1 80 D1 85 D1 83 D0 BD 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 B8 3E 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 9B F9 00 00 35 04 06 00 D8 F5 82 A5 F2 3B A4 68 07 7E 20 50 BB 18 [22:07:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 7D 7B 47 00 15 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 35 30 37 34 10 04 04 00 9B F9 00 00 F4 03 04 00 88 EA 5D 66 B6 04 01 00 00 D5 68 04 03 34 D1 B3 ED [22:07:53]CommunicateWithHost err = 0 [22:07:53]CheckOFDResponse [22:07:53]1017 (14) - 77093643461234 [22:07:53]1041 (16) - 0000000000875074 [22:07:53]1040 (4) - 63899 [22:07:53]1012 (4) - 03.06.2024 16:08 [22:07:53]1206 (1) - 0 [22:07:53]OFD Sender: Remove packet 63899 [22:07:53]ProducePacketName [22:07:53]name=ofd_packets/00063899 [22:07:53]NVStorageDeleteData [22:07:54]Write to MH i2c: 01 00 00 7E 0C 8A [22:07:54]Write i2c OK [22:07:54]MH_I2C_Read... [22:07:54]Read from MH i2c: 01 [22:07:54]MH_I2C_Read... [22:07:54]Read from MH i2c: 01 07 00 [22:07:54]MH_I2C_Read... [22:07:54]Read from MH i2c: 01 07 00 7E 0C 00 00 00 00 00 F3 0C 90 [22:07:54]RasterBufferAndPrint [22:07:54]line [22:07:54]line [22:07:54]line [22:07:54]line [22:07:54]line [22:07:54]written 0, free lines is 3323 [22:07:54]MH_Cut [22:07:54]Write to MH i2c: D1 01 00 85 0C 01 63 [22:07:54]Write i2c OK [22:07:54]MH_I2C_Read... [22:07:54]Read from MH i2c: D1 [22:07:54]MH_I2C_Read... [22:07:54]Read from MH i2c: D1 01 00 [22:07:54]MH_I2C_Read... [22:07:54]Read from MH i2c: D1 01 00 85 0C 00 62 [22:07:54]Write to MH i2c: 01 00 00 86 0C 92 [22:07:54]Write i2c OK [22:07:54]MH_I2C_Read... [22:07:54]OFD Sender: No OFD packet to send [22:07:54]*** Cut start [22:07:54]*** Partial cut [22:07:54]*** CUTSNS_PIN = 1 [22:07:54]*** CUTSNS_PIN = 0 [22:07:55]*** Brake cut motor [22:07:55]Read from MH i2c: 01 [22:07:55]MH_I2C_Read... [22:07:55]*** Stop cut motor [22:07:55]*** Cut end [22:07:55]Read from MH i2c: 01 07 00 [22:07:55]MH_I2C_Read... [22:07:55]Read from MH i2c: 01 07 00 86 0C 00 00 00 00 00 FF 0F A7 [22:07:55]process_action close_receipt done [22:07:55]requested_data is exist [22:07:55]produce_requested_data [22:07:55]requested_item fm.sn is exist - process it [22:07:55]wFMCommunicate request_size=4 [22:07:55]MH_SAM_APDU [22:07:55]CAPDU: 80 11 00 00 [22:07:55]Write to MH i2c: E2 08 00 87 0C 80 11 00 00 00 00 00 00 0D [22:07:55]Write i2c OK [22:07:55]MH_I2C_Read... [22:07:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:07:55]Read from MH i2c: E2 [22:07:55]MH_I2C_Read... [22:07:55]Read from MH i2c: E2 17 00 [22:07:55]MH_I2C_Read... [22:07:55]Read from MH i2c: E2 17 00 87 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 5F [22:07:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [22:07:55]wFMCommunicate OK [22:07:55]requested_item fd.num is exist - process it [22:07:55]SAM_PROTO_GetFieldsCounters [22:07:55]wFMCommunicate request_size=4 [22:07:55]MH_SAM_APDU [22:07:55]CAPDU: 80 13 00 00 [22:07:55]Write to MH i2c: E2 08 00 88 0C 80 13 00 00 00 00 00 00 10 [22:07:55]Write i2c OK [22:07:55]MH_I2C_Read... [22:07:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:07:55]Read from MH i2c: E2 [22:07:55]MH_I2C_Read... [22:07:55]Read from MH i2c: E2 62 00 [22:07:55]MH_I2C_Read... [22:07:55]Read from MH i2c: E2 62 00 88 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 9B F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 9D 00 00 00 5E 04 04 00 9D 00 00 00 57 04 04 00 9E 00 00 00 19 04 04 00 00 00 00 00 90 00 14 [22:07: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 9B F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 9D 00 00 00 5E 04 04 00 9D 00 00 00 57 04 04 00 9E 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:07:55]wFMCommunicate OK [22:07:55]SAM_PROTO_GetFieldsCounters done [22:07:55]requested_item shift.num is exist - process it [22:07:55]requested_item shift.opened is exist - process it [22:07:55]req_shift_opened [22:07:55]FM_GetShiftState [22:07:55]SAM_PROTO_GetShiftState [22:07:55]wFMCommunicate request_size=4 [22:07:55]MH_SAM_APDU [22:07:55]CAPDU: 80 13 01 00 [22:07:55]Write to MH i2c: E2 08 00 89 0C 80 13 01 00 00 00 00 00 12 [22:07:55]Write i2c OK [22:07:55]MH_I2C_Read... [22:07:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:07:55]Read from MH i2c: E2 [22:07:55]MH_I2C_Read... [22:07:55]Read from MH i2c: E2 0E 00 [22:07:55]MH_I2C_Read... [22:07:55]Read from MH i2c: E2 0E 00 89 0C 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 DE [22:07:55]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [22:07:55]wFMCommunicate OK [22:07:55]SAM_PROTO_GetShiftState done [22:07:55]FM_GetShiftState done [22:07:55]req_shift_opened done [22:07:55]requested_item shift.open_date is exist - process it [22:07:55]req_shift_open_date [22:07:55]req_shift_open_date done [22:07:55]produce_requested_data done [22:07:55]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63899,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [22:07:55]process_action_free close_receipt [22:07:55]json_value_free [22:07:55]json_value_free done [22:07:55]process_json_proto returns [22:07:55]Send response to host [22:07:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63899,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [22:07:55]free response buf [22:07:55]execute_script done [22:07:55]execute_script returns [22:07:55]free content buf [22:07:55]Sock 9.Close socket [22:07:55]Sock 9.Thread stoped [22:07:59]OFD Sender: No OFD packet to send [22:08:04]OFD Sender: No OFD packet to send [22:08:09]OFD Sender: No OFD packet to send [22:08:14]OFD Sender: No OFD packet to send [22:08:19]OFD Sender: No OFD packet to send [22:08:24]OFD Sender: No OFD packet to send [22:08:29]OFD Sender: No OFD packet to send [22:08:34]OFD Sender: No OFD packet to send [22:08:39]OFD Sender: No OFD packet to send [22:08:44]OFD Sender: No OFD packet to send [22:08:49]OFD Sender: No OFD packet to send [22:08:54]OFD Sender: No OFD packet to send [22:08:59]OFD Sender: No OFD packet to send [22:09:04]OFD Sender: No OFD packet to send [22:09:09]OFD Sender: No OFD packet to send [22:09:14]OFD Sender: No OFD packet to send [22:09:19]OFD Sender: No OFD packet to send [22:09:24]OFD Sender: No OFD packet to send [22:09:28]accept exits with 7 [22:09:28]New connection [22:09:28]New thread 3066576228 created [22:09:28]Thread 3066719588 joined [22:09:28]Waiting for new connection... [22:09:28] Sock 7.Parse request [22:09:28]Sock 7.Check first char [22:09:28]Sock 7.First char is OK [22:09:28]request: POST /json_proto HTTP/1.0 [22:09:28]Method: POST [22:09:28]URL: /json_proto [22:09:28]Method is POST - this is cgi request [22:09:28]url: /json_proto [22:09:28]query_string will be loaded in cgi processing [22:09:28]execute_cgi json_proto POST (null) [22:09:28]execute_cgi path=json_proto method=POST [22:09:28]POST find Content-Length [22:09:28]Host: 172.17.60.69:8080 [22:09:28]Content-Length: 708 [22:09:28]Content-Type: application/json [22:09:28] [22:09:28]POST finish read [22:09:28]Found Content-Length = 708 [22:09:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73468", "tax_sys" : 0, "items" : [ { "code": "4870112003956", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A ALBENI SUPER \u0410\u043B\u044C\u0431\u0435\u043D\u0438 \u0421\u0443\u043F\u0435\u0440", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 75.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:09:28]execute_script... [22:09:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73468", "tax_sys" : 0, "items" : [ { "code": "4870112003956", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A ALBENI SUPER \u0410\u043B\u044C\u0431\u0435\u043D\u0438 \u0421\u0443\u043F\u0435\u0440", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 75.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:09:28]POST & json_proto [22:09:28]process_json_proto [22:09:28]json parsed OK: [22:09:28]protocol is kg_v1.0 [22:09:28]action value=close_receipt [22:09:28]process_action close_receipt [22:09:28]cmd_close_receipt [22:09:28]MH_GetDate [22:09:28]Write to MH i2c: F0 00 00 8A 0C 85 [22:09:28]Write i2c OK [22:09:28]MH_I2C_Read... [22:09:28]Read from MH i2c: F0 [22:09:28]MH_I2C_Read... [22:09:28]Read from MH i2c: F0 09 00 [22:09:28]MH_I2C_Read... [22:09:28]Read from MH i2c: F0 09 00 8A 0C 00 19 3F 5E 66 6A 96 4A 66 5A [22:09:28]GetLastDocTimeStamp 1717452472 [22:09:28]current date 1717452569 [22:09:28]FM_GetShiftState [22:09:28]SAM_PROTO_GetShiftState [22:09:28]wFMCommunicate request_size=4 [22:09:28]MH_SAM_APDU [22:09:28]CAPDU: 80 13 01 00 [22:09:28]Write to MH i2c: E2 08 00 8B 0C 80 13 01 00 00 00 00 00 14 [22:09:28]Write i2c OK [22:09:28]MH_I2C_Read... [22:09:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:09:28]Read from MH i2c: E2 [22:09:28]MH_I2C_Read... [22:09:28]Read from MH i2c: E2 0E 00 [22:09:28]MH_I2C_Read... [22:09:28]Read from MH i2c: E2 0E 00 8B 0C 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 E0 [22:09:28]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [22:09:28]wFMCommunicate OK [22:09:28]SAM_PROTO_GetShiftState done [22:09:28]FM_GetShiftState done [22:09:28]opened in 1717373173 [22:09:28]opened+sec_in_day 1717459573 [22:09:28]quantity*price = 7500 [22:09:28]sum+1 = 7501 [22:09:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 75.00 НСП 1% : 0.66 НДС 12% : 7.96 Наличными: 75.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 158 03.06.2024 22:09 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63900 ФПД: 218272964934179 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T220929&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63900&fm=218272964934179&tin=02508201610067®Number=0000000000092737&sum=7500 0 [22:09:29]StoreToDocumentArchive [22:09:29]shift 373 fd 63900 [22:09:29]save to /storage/0373/doc_00063900 [22:09:29]save last doc name /storage/0373/doc_00063900 to /storage/kkm_last_doc_name [22:09:29]save OK [22:09:29]Clear old archive folders... [22:09:29]ProcessDocumentItem done err = 0, tmpTLVsize=304 [22:09:29]tlvbuf is 00A80960 [22:09:29]SAM_PROTO_ClearQueue [22:09:29]wFMCommunicate request_size=4 [22:09:29]MH_SAM_APDU [22:09:29]CAPDU: 80 09 00 00 [22:09:29]Write to MH i2c: E2 08 00 98 0C 80 09 00 00 00 00 00 00 16 [22:09:29]Write i2c OK [22:09:29]MH_I2C_Read... [22:09:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:09:29]Read from MH i2c: E2 [22:09:29]MH_I2C_Read... [22:09:29]Read from MH i2c: E2 03 00 [22:09:29]MH_I2C_Read... [22:09:29]Read from MH i2c: E2 03 00 98 0C 00 90 00 18 [22:09:29]RAPDU: 90 00 [22:09:29]wFMCommunicate OK [22:09:29]SAM_PROTO_ClearQueue done [22:09:29]KKMCreateOFDPacket [22:09:29]OFDProtocolAddRootSTLVToBuf [22:09:29]FM_MakeSignedData [22:09:29]FM_MakeSignedData [22:09:29]SAM_PROTO_SignData [22:09:29]wFMCommunicate request_size=4 [22:09:29]MH_SAM_APDU [22:09:29]CAPDU: 80 0D 01 02 [22:09:29]Write to MH i2c: E2 08 00 99 0C 80 0D 01 02 00 00 00 00 1E [22:09:29]Write i2c OK [22:09:29]MH_I2C_Read... [22:09:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:09:29]Read from MH i2c: E2 [22:09:29]MH_I2C_Read... [22:09:29]Read from MH i2c: E2 03 00 [22:09:29]MH_I2C_Read... [22:09:29]Read from MH i2c: E2 03 00 99 0C 00 90 00 19 [22:09:29]RAPDU: 90 00 [22:09:29]wFMCommunicate OK [22:09:29]wFMCommunicate request_size=255 [22:09:29]MH_SAM_APDU [22:09:29]CAPDU: 80 0D 02 02 FA 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 35 36 06 04 3E 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 41 4C 42 45 4E 49 20 53 55 50 45 52 20 D0 90 D0 BB D1 8C D0 B1 D0 B5 D0 BD D0 B8 20 D0 A1 D1 83 D0 BF D0 B5 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 19 3F 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 [22:09:29]Write to MH i2c: E2 02 01 9A 0C 80 0D 02 02 FA 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 35 36 06 04 3E 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 41 4C 42 45 4E 49 20 53 55 50 45 52 20 D0 90 D0 BB D1 8C D0 B1 D0 B5 D0 BD D0 B8 20 D0 A1 D1 83 D0 BF D0 B5 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 19 3F 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 00 00 12 [22:09:29]Write i2c OK [22:09:29]MH_I2C_Read... [22:09:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:09:30]Read from MH i2c: E2 [22:09:30]MH_I2C_Read... [22:09:30]Read from MH i2c: E2 03 00 [22:09:30]MH_I2C_Read... [22:09:30]Read from MH i2c: E2 03 00 9A 0C 00 90 00 1A [22:09:30]RAPDU: 90 00 [22:09:30]wFMCommunicate OK [22:09:30]wFMCommunicate request_size=63 [22:09:30]MH_SAM_APDU [22:09:30]CAPDU: 80 0D 02 02 3A 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 9C F9 00 00 35 04 06 00 C6 84 A2 89 FA 23 [22:09:30]Write to MH i2c: E2 42 00 9B 0C 80 0D 02 02 3A 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 9C F9 00 00 35 04 06 00 C6 84 A2 89 FA 23 00 00 94 [22:09:30]Write i2c OK [22:09:30]MH_I2C_Read... [22:09:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:09:30]Read from MH i2c: E2 [22:09:30]MH_I2C_Read... [22:09:30]Read from MH i2c: E2 03 00 [22:09:30]MH_I2C_Read... [22:09:30]Read from MH i2c: E2 03 00 9B 0C 00 90 00 1B [22:09:30]RAPDU: 90 00 [22:09:30]wFMCommunicate OK [22:09:30]wFMCommunicate request_size=4 [22:09:30]MH_SAM_APDU [22:09:30]CAPDU: 80 0D 03 02 [22:09:30]Write to MH i2c: E2 08 00 9C 0C 80 0D 03 02 00 00 00 00 23 [22:09:30]Write i2c OK [22:09:30]MH_I2C_Read... [22:09:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:09:30]Read from MH i2c: E2 [22:09:30]MH_I2C_Read... [22:09:30]Read from MH i2c: E2 0B 00 [22:09:30]MH_I2C_Read... [22:09:30]Read from MH i2c: E2 0B 00 9C 0C 00 E2 73 2B 38 DA 57 65 F4 90 00 66 [22:09:30]RAPDU: E2 73 2B 38 DA 57 65 F4 90 00 [22:09:30]wFMCommunicate OK [22:09:30]SAM_PROTO_SignData done [22:09:30]FM_MakeSignedData done [22:09:30]CreateOFDProtocolMessage [22:09:30]wFMCommunicate request_size=4 [22:09:30]MH_SAM_APDU [22:09:30]CAPDU: 80 11 00 00 [22:09:30]Write to MH i2c: E2 08 00 9D 0C 80 11 00 00 00 00 00 00 23 [22:09:30]Write i2c OK [22:09:30]MH_I2C_Read... [22:09:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:09:30]Read from MH i2c: E2 [22:09:30]MH_I2C_Read... [22:09:30]Read from MH i2c: E2 17 00 [22:09:30]MH_I2C_Read... [22:09:30]Read from MH i2c: E2 17 00 9D 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 75 [22:09:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [22:09:30]wFMCommunicate OK [22:09:30]CreateOFDProtocolMessage done [22:09:30]OFDSenderStorePacket 63900 [22:09:30]StoreOFDPacket docnum=63900 [22:09:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 44 01 00 00 B2 78 3C 01 74 D7 5A 03 01 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 35 36 06 04 3E 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 41 4C 42 45 4E 49 20 53 55 50 45 52 20 D0 90 D0 BB D1 8C D0 B1 D0 B5 D0 BD D0 B8 20 D0 A1 D1 83 D0 BF D0 B5 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 19 3F 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 9C F9 00 00 35 04 06 00 C6 84 A2 89 FA 23 E2 73 2B 38 DA 57 65 F4 [22:09:30]CheckFolder [22:09:30]dirname=/storage/ofd_packets [22:09:30]CheckFolder done [22:09:30]ProducePacketName [22:09:30]name=ofd_packets/00063900 [22:09:30]NVStorageSaveData ofd_packets/00063900 [22:09:30]File name is /storage/ofd_packets/00063900 [22:09:30]Write 354 bytes [22:09:30]NVStorageSaveData done [22:09:30]OFDSenderStorePacket done [22:09:30]KKMCreateOFDPacket done [22:09:30]NVStorageSaveData kkm_last_timestamp [22:09:30]File name is /storage/kkm_last_timestamp [22:09:30]Write 4 bytes [22:09:30]NVStorageSaveData done [22:09:30]ExternCall_PrintAddStr [22:09:30]wPrintStart [22:09:30]Write to MH i2c: 01 00 00 9E 0C AA [22:09:30]Write i2c OK [22:09:30]MH_I2C_Read... [22:09:30]Read from MH i2c: 01 [22:09:30]MH_I2C_Read... [22:09:30]Read from MH i2c: 01 07 00 [22:09:30]MH_I2C_Read... [22:09:30]Read from MH i2c: 01 07 00 9E 0C 00 00 00 00 00 FF 0F BF [22:09:30]RasterBufferAndPrint [22:09:30]line Счет N : (3)73468 [22:09:30]line ИНН: 02508201610067 [22:09:30]line Контрольно-Кассовый Чек [22:09:30]line ПРОДАЖА [22:09:30]line Товар: 4870112003956 [22:09:30]line Шок батончик ALBENI SUPER Альбени Супер [22:09:30]line 1.000 * 75.00 [22:09:30]line = 75.00 [22:09:30]line НДС 12% НСП 1% [22:09:30]line > о реализуемом товаре [22:09:30]line ИТОГО: 75.00 [22:09:30]line НСП 1% : 0.66 [22:09:30]line НДС 12% : 7.96 [22:09:30]line Наличными: 75.00 [22:09:30]line Безнал.: 0.00 [22:09:30]line Место: АЗС № 117 "Партнер Нефть" [22:09:30]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [22:09:30]line СНО: Общий режим [22:09:30]line Чек 158 03.06.2024 22:09 [22:09:30]line Смена: 373 ФФД: 1.0 [22:09:30]line ЗНМ: 0300000031 [22:09:30]line РНМ: 0000000000092737 [22:09:30]line Версия ККМ: 001 [22:09:30]line ФМ: 0000000000875074 [22:09:30]line ФД: 63900 [22:09:30]line ФПД: 218272964934179 [22:09:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T220929&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63900&fm=218272964934179&tin=02508201610067®Number=0000000000092737&sum=7500 [22:09:30]line 0 [22:09:30]OFD Sender: Processing packet 63900 [packets to send 14, broken 13] [22:09:30]ProducePacketName [22:09:30]name=ofd_packets/00063900 [22:09:30]OFD Sender: To server: pG, [22:09:30]CommunicateWithHost lk.salyk.kg:30040 [22:09:30]ConnectInit lk.salyk.kg [22:09:30]written 0, free lines is 4095 [22:09:30]Connected sock=10 [22:09:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 44 01 00 00 B2 78 3C 01 74 D7 5A 03 01 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 35 36 06 04 3E 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 41 4C 42 45 4E 49 20 53 55 50 45 52 20 D0 90 D0 BB D1 8C D0 B1 D0 B5 D0 BD D0 B8 20 D0 A1 D1 83 D0 BF D0 B5 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 19 3F 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 9C F9 00 00 35 04 06 00 C6 84 A2 89 FA 23 E2 73 2B 38 DA 57 65 F4 [22:09:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 05 5A 47 00 5A 3E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 9C F9 00 00 F4 03 04 00 E9 EA 5D 66 B6 04 01 00 00 77 2E A7 19 02 F8 2A 83 [22:09:30]CommunicateWithHost err = 0 [22:09:30]CheckOFDResponse [22:09:30]1017 (14) - 77093643461234 [22:09:30]1041 (16) - 0000000000875074 [22:09:30]1040 (4) - 63900 [22:09:30]1012 (4) - 03.06.2024 16:10 [22:09:30]1206 (1) - 0 [22:09:30]OFD Sender: Remove packet 63900 [22:09:30]ProducePacketName [22:09:30]name=ofd_packets/00063900 [22:09:30]NVStorageDeleteData [22:09:31]Write to MH i2c: 01 00 00 C7 0C D3 [22:09:31]Write i2c OK [22:09:31]MH_I2C_Read... [22:09:31]Read from MH i2c: 01 [22:09:31]MH_I2C_Read... [22:09:31]Read from MH i2c: 01 07 00 [22:09:31]MH_I2C_Read... [22:09:31]Read from MH i2c: 01 07 00 C7 0C 00 00 00 00 00 E0 0C C6 [22:09:31]RasterBufferAndPrint [22:09:31]line [22:09:31]line [22:09:31]line [22:09:31]line [22:09:31]line [22:09:31]written 0, free lines is 3302 [22:09:31]MH_Cut [22:09:31]Write to MH i2c: D1 01 00 CE 0C 01 AC [22:09:31]Write i2c OK [22:09:31]MH_I2C_Read... [22:09:31]Read from MH i2c: D1 [22:09:31]MH_I2C_Read... [22:09:31]Read from MH i2c: D1 01 00 [22:09:31]MH_I2C_Read... [22:09:31]Read from MH i2c: D1 01 00 CE 0C 00 AB [22:09:31]Write to MH i2c: 01 00 00 CF 0C DB [22:09:31]Write i2c OK [22:09:31]MH_I2C_Read... [22:09:31]OFD Sender: No OFD packet to send [22:09:31]*** Cut start [22:09:31]*** Partial cut [22:09:31]*** CUTSNS_PIN = 1 [22:09:31]*** CUTSNS_PIN = 0 [22:09:32]*** Brake cut motor [22:09:32]Read from MH i2c: 01 [22:09:32]MH_I2C_Read... [22:09:32]*** Stop cut motor [22:09:32]*** Cut end [22:09:32]Read from MH i2c: 01 07 00 [22:09:32]MH_I2C_Read... [22:09:32]Read from MH i2c: 01 07 00 CF 0C 00 00 00 00 00 FF 0F F0 [22:09:32]process_action close_receipt done [22:09:32]requested_data is exist [22:09:32]produce_requested_data [22:09:32]requested_item fm.sn is exist - process it [22:09:32]wFMCommunicate request_size=4 [22:09:32]MH_SAM_APDU [22:09:32]CAPDU: 80 11 00 00 [22:09:32]Write to MH i2c: E2 08 00 D0 0C 80 11 00 00 00 00 00 00 56 [22:09:32]Write i2c OK [22:09:32]MH_I2C_Read... [22:09:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:09:32]Read from MH i2c: E2 [22:09:32]MH_I2C_Read... [22:09:32]Read from MH i2c: E2 17 00 [22:09:32]MH_I2C_Read... [22:09:32]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 35 30 37 34 90 00 A8 [22:09:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [22:09:32]wFMCommunicate OK [22:09:32]requested_item fd.num is exist - process it [22:09:32]SAM_PROTO_GetFieldsCounters [22:09:32]wFMCommunicate request_size=4 [22:09:32]MH_SAM_APDU [22:09:32]CAPDU: 80 13 00 00 [22:09:32]Write to MH i2c: E2 08 00 D1 0C 80 13 00 00 00 00 00 00 59 [22:09:32]Write i2c OK [22:09:32]MH_I2C_Read... [22:09:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:09:32]Read from MH i2c: E2 [22:09:32]MH_I2C_Read... [22:09:32]Read from MH i2c: E2 62 00 [22:09:32]MH_I2C_Read... [22:09:32]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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 9C F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 9E 00 00 00 5E 04 04 00 9E 00 00 00 57 04 04 00 9F 00 00 00 19 04 04 00 00 00 00 00 90 00 61 [22:09: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 9C F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 9E 00 00 00 5E 04 04 00 9E 00 00 00 57 04 04 00 9F 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:09:32]wFMCommunicate OK [22:09:32]SAM_PROTO_GetFieldsCounters done [22:09:32]requested_item shift.num is exist - process it [22:09:32]requested_item shift.opened is exist - process it [22:09:32]req_shift_opened [22:09:32]FM_GetShiftState [22:09:32]SAM_PROTO_GetShiftState [22:09:32]wFMCommunicate request_size=4 [22:09:32]MH_SAM_APDU [22:09:32]CAPDU: 80 13 01 00 [22:09:32]Write to MH i2c: E2 08 00 D2 0C 80 13 01 00 00 00 00 00 5B [22:09:32]Write i2c OK [22:09:32]MH_I2C_Read... [22:09:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:09:32]Read from MH i2c: E2 [22:09:32]MH_I2C_Read... [22:09:32]Read from MH i2c: E2 0E 00 [22:09:32]MH_I2C_Read... [22:09:32]Read from MH i2c: E2 0E 00 D2 0C 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 27 [22:09:32]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [22:09:32]wFMCommunicate OK [22:09:32]SAM_PROTO_GetShiftState done [22:09:32]FM_GetShiftState done [22:09:32]req_shift_opened done [22:09:32]requested_item shift.open_date is exist - process it [22:09:32]req_shift_open_date [22:09:32]req_shift_open_date done [22:09:32]produce_requested_data done [22:09:32]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63900,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [22:09:32]process_action_free close_receipt [22:09:32]json_value_free [22:09:32]json_value_free done [22:09:32]process_json_proto returns [22:09:32]Send response to host [22:09:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63900,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [22:09:32]free response buf [22:09:32]execute_script done [22:09:32]execute_script returns [22:09:32]free content buf [22:09:32]Sock 7.Close socket [22:09:32]Sock 7.Thread stoped [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:16]OFD Sender: No OFD packet to send [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:17]OFD Sender: No OFD packet to send [22:20:22]OFD Sender: No OFD packet to send [22:20:27]OFD Sender: No OFD packet to send [22:20:32]OFD Sender: No OFD packet to send [22:20:37]OFD Sender: No OFD packet to send [22:20:42]OFD Sender: No OFD packet to send [22:20:47]OFD Sender: No OFD packet to send [22:20:52]OFD Sender: No OFD packet to send [22:20:57]OFD Sender: No OFD packet to send [22:21:02]OFD Sender: No OFD packet to send [22:21:07]OFD Sender: No OFD packet to send [22:21:12]OFD Sender: No OFD packet to send [22:21:17]OFD Sender: No OFD packet to send [22:21:22]OFD Sender: No OFD packet to send [22:21:27]OFD Sender: No OFD packet to send [22:21:32]OFD Sender: No OFD packet to send [22:21:37]OFD Sender: No OFD packet to send [22:21:42]OFD Sender: No OFD packet to send [22:21:47]OFD Sender: No OFD packet to send [22:21:52]OFD Sender: No OFD packet to send [22:21:57]OFD Sender: No OFD packet to send [22:22:02]OFD Sender: No OFD packet to send [22:22:07]OFD Sender: No OFD packet to send [22:22:12]OFD Sender: No OFD packet to send [22:22:17]OFD Sender: No OFD packet to send [22:22:22]OFD Sender: No OFD packet to send [22:22:27]OFD Sender: No OFD packet to send [22:22:32]OFD Sender: No OFD packet to send [22:22:37]OFD Sender: No OFD packet to send [22:22:42]OFD Sender: No OFD packet to send [22:22:47]OFD Sender: No OFD packet to send [22:22:52]OFD Sender: No OFD packet to send [22:22:57]OFD Sender: No OFD packet to send [22:23:02]OFD Sender: No OFD packet to send [22:23:07]OFD Sender: No OFD packet to send [22:23:12]OFD Sender: No OFD packet to send [22:23:17]OFD Sender: No OFD packet to send [22:23:22]OFD Sender: No OFD packet to send [22:23:27]OFD Sender: No OFD packet to send [22:23:32]OFD Sender: No OFD packet to send [22:23:37]OFD Sender: No OFD packet to send [22:23:42]OFD Sender: No OFD packet to send [22:23:47]OFD Sender: No OFD packet to send [22:23:52]OFD Sender: No OFD packet to send [22:23:57]OFD Sender: No OFD packet to send [22:24:02]OFD Sender: No OFD packet to send [22:24:07]OFD Sender: No OFD packet to send [22:24:12]OFD Sender: No OFD packet to send [22:24:17]OFD Sender: No OFD packet to send [22:24:22]OFD Sender: No OFD packet to send [22:24:27]OFD Sender: No OFD packet to send [22:24:32]OFD Sender: No OFD packet to send [22:24:37]OFD Sender: No OFD packet to send [22:24:42]OFD Sender: No OFD packet to send [22:24:47]OFD Sender: No OFD packet to send [22:24:52]OFD Sender: No OFD packet to send [22:24:57]OFD Sender: No OFD packet to send [22:25:02]OFD Sender: No OFD packet to send [22:25:07]OFD Sender: No OFD packet to send [22:25:12]OFD Sender: No OFD packet to send [22:25:17]OFD Sender: No OFD packet to send [22:25:22]OFD Sender: No OFD packet to send [22:25:27]OFD Sender: No OFD packet to send [22:25:32]OFD Sender: No OFD packet to send [22:25:37]OFD Sender: No OFD packet to send [22:25:42]OFD Sender: No OFD packet to send [22:25:47]OFD Sender: No OFD packet to send [22:25:52]OFD Sender: No OFD packet to send [22:25:57]OFD Sender: No OFD packet to send [22:26:02]OFD Sender: No OFD packet to send [22:26:07]OFD Sender: No OFD packet to send [22:26:12]OFD Sender: No OFD packet to send [22:26:17]OFD Sender: No OFD packet to send [22:26:22]OFD Sender: No OFD packet to send [22:26:27]OFD Sender: No OFD packet to send [22:26:32]OFD Sender: No OFD packet to send [22:26:37]OFD Sender: No OFD packet to send [22:26:42]OFD Sender: No OFD packet to send [22:26:47]OFD Sender: No OFD packet to send [22:26:52]OFD Sender: No OFD packet to send [22:26:57]OFD Sender: No OFD packet to send [22:27:02]OFD Sender: No OFD packet to send [22:27:07]OFD Sender: No OFD packet to send [22:27:12]OFD Sender: No OFD packet to send [22:27:17]OFD Sender: No OFD packet to send [22:27:22]OFD Sender: No OFD packet to send [22:27:27]OFD Sender: No OFD packet to send [22:27:32]OFD Sender: No OFD packet to send [22:27:37]OFD Sender: No OFD packet to send [22:27:42]OFD Sender: No OFD packet to send [22:27:47]OFD Sender: No OFD packet to send [22:27:52]OFD Sender: No OFD packet to send [22:27:57]OFD Sender: No OFD packet to send [22:28:02]OFD Sender: No OFD packet to send [22:28:07]OFD Sender: No OFD packet to send [22:28:12]OFD Sender: No OFD packet to send [22:28:17]OFD Sender: No OFD packet to send [22:28:22]OFD Sender: No OFD packet to send [22:28:27]OFD Sender: No OFD packet to send [22:28:32]OFD Sender: No OFD packet to send [22:28:37]OFD Sender: No OFD packet to send [22:28:42]OFD Sender: No OFD packet to send [22:28:47]OFD Sender: No OFD packet to send [22:28:52]OFD Sender: No OFD packet to send [22:28:57]OFD Sender: No OFD packet to send [22:29:02]OFD Sender: No OFD packet to send [22:29:07]OFD Sender: No OFD packet to send [22:29:12]OFD Sender: No OFD packet to send [22:29:17]OFD Sender: No OFD packet to send [22:29:22]OFD Sender: No OFD packet to send [22:29:27]OFD Sender: No OFD packet to send [22:29:32]OFD Sender: No OFD packet to send [22:29:37]OFD Sender: No OFD packet to send [22:29:42]OFD Sender: No OFD packet to send [22:29:47]OFD Sender: No OFD packet to send [22:29:52]OFD Sender: No OFD packet to send [22:29:57]OFD Sender: No OFD packet to send [22:30:02]OFD Sender: No OFD packet to send [22:30:07]OFD Sender: No OFD packet to send [22:30:12]OFD Sender: No OFD packet to send [22:30:17]OFD Sender: No OFD packet to send [22:30:22]OFD Sender: No OFD packet to send [22:30:27]OFD Sender: No OFD packet to send [22:30:32]OFD Sender: No OFD packet to send [22:30:36]accept exits with 9 [22:30:36]New connection [22:30:36]New thread 3066719588 created [22:30:36]Thread 3066576228 joined [22:30:36]Waiting for new connection... [22:30:36] Sock 9.Parse request [22:30:36]Sock 9.Check first char [22:30:36]Sock 9.First char is OK [22:30:36]request: POST /json_proto HTTP/1.0 [22:30:36]Method: POST [22:30:36]URL: /json_proto [22:30:36]Method is POST - this is cgi request [22:30:36]url: /json_proto [22:30:36]query_string will be loaded in cgi processing [22:30:36]execute_cgi json_proto POST (null) [22:30:36]execute_cgi path=json_proto method=POST [22:30:36]POST find Content-Length [22:30:36]Host: 172.17.60.69:8080 [22:30:36]Content-Length: 636 [22:30:36]Content-Type: application/json [22:30:36] [22:30:36]POST finish read [22:30:36]Found Content-Length = 636 [22:30:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73469", "tax_sys" : 0, "items" : [ { "code": "4700000160051", "name": "\u0412\u043E\u0434\u0430 \u042B\u0441\u0441\u044B\u043A \u0410\u0442\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:30:36]execute_script... [22:30:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73469", "tax_sys" : 0, "items" : [ { "code": "4700000160051", "name": "\u0412\u043E\u0434\u0430 \u042B\u0441\u0441\u044B\u043A \u0410\u0442\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:30:36]POST & json_proto [22:30:36]process_json_proto [22:30:36]json parsed OK: [22:30:36]protocol is kg_v1.0 [22:30:36]action value=close_receipt [22:30:36]process_action close_receipt [22:30:36]cmd_close_receipt [22:30:36]MH_GetDate [22:30:36]Write to MH i2c: F0 00 00 D3 0C CE [22:30:36]Write i2c OK [22:30:36]MH_I2C_Read... [22:30:36]Read from MH i2c: F0 [22:30:36]MH_I2C_Read... [22:30:36]Read from MH i2c: F0 09 00 [22:30:36]MH_I2C_Read... [22:30:36]Read from MH i2c: F0 09 00 D3 0C 00 0D 44 5E 66 6A 96 4A 66 9C [22:30:36]GetLastDocTimeStamp 1717452569 [22:30:36]current date 1717453837 [22:30:36]FM_GetShiftState [22:30:36]SAM_PROTO_GetShiftState [22:30:36]wFMCommunicate request_size=4 [22:30:36]MH_SAM_APDU [22:30:36]CAPDU: 80 13 01 00 [22:30:36]Write to MH i2c: E2 08 00 D4 0C 80 13 01 00 00 00 00 00 5D [22:30:36]Write i2c OK [22:30:36]MH_I2C_Read... [22:30:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:30:36]Read from MH i2c: E2 [22:30:36]MH_I2C_Read... [22:30:36]Read from MH i2c: E2 0E 00 [22:30:36]MH_I2C_Read... [22:30:36]Read from MH i2c: E2 0E 00 D4 0C 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 29 [22:30:36]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [22:30:36]wFMCommunicate OK [22:30:36]SAM_PROTO_GetShiftState done [22:30:36]FM_GetShiftState done [22:30:36]opened in 1717373173 [22:30:36]opened+sec_in_day 1717459573 [22:30:36]quantity*price = 5000 [22:30:36]sum+1 = 5001 [22:30:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 50.00 НСП 1% : 0.44 НДС 12% : 5.31 Наличными: 50.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 159 03.06.2024 22:30 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63901 ФПД: 54575026794335 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T223037&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63901&fm=54575026794335&tin=02508201610067®Number=0000000000092737&sum=5000 0 [22:30:37]StoreToDocumentArchive [22:30:37]shift 373 fd 63901 [22:30:37]save to /storage/0373/doc_00063901 [22:30:37]save last doc name /storage/0373/doc_00063901 to /storage/kkm_last_doc_name [22:30:37]save OK [22:30:37]Clear old archive folders... [22:30:37]ProcessDocumentItem done err = 0, tmpTLVsize=272 [22:30:37]tlvbuf is 00AC9530 [22:30:37]SAM_PROTO_ClearQueue [22:30:37]wFMCommunicate request_size=4 [22:30:37]MH_SAM_APDU [22:30:37]CAPDU: 80 09 00 00 [22:30:37]Write to MH i2c: E2 08 00 E1 0C 80 09 00 00 00 00 00 00 5F [22:30:37]Write i2c OK [22:30:37]MH_I2C_Read... [22:30:37]Read from MH i2c: E2 [22:30:37]MH_I2C_Read... [22:30:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:30:37]Read from MH i2c: E2 03 00 [22:30:37]MH_I2C_Read... [22:30:37]Read from MH i2c: E2 03 00 E1 0C 00 90 00 61 [22:30:37]RAPDU: 90 00 [22:30:37]wFMCommunicate OK [22:30:37]SAM_PROTO_ClearQueue done [22:30:37]KKMCreateOFDPacket [22:30:37]OFDProtocolAddRootSTLVToBuf [22:30:37]FM_MakeSignedData [22:30:37]FM_MakeSignedData [22:30:37]SAM_PROTO_SignData [22:30:37]wFMCommunicate request_size=4 [22:30:37]MH_SAM_APDU [22:30:37]CAPDU: 80 0D 01 02 [22:30:37]Write to MH i2c: E2 08 00 E2 0C 80 0D 01 02 00 00 00 00 67 [22:30:37]Write i2c OK [22:30:37]MH_I2C_Read... [22:30:37]Read from MH i2c: E2 [22:30:37]MH_I2C_Read... [22:30:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:30:37]Read from MH i2c: E2 03 00 [22:30:37]MH_I2C_Read... [22:30:37]Read from MH i2c: E2 03 00 E2 0C 00 90 00 62 [22:30:37]RAPDU: 90 00 [22:30:37]wFMCommunicate OK [22:30:37]wFMCommunicate request_size=255 [22:30:37]MH_SAM_APDU [22:30:37]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 35 31 06 04 1E 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AB D1 81 D1 81 D1 8B D0 BA 20 D0 90 D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 0D 44 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 [22:30:37]Write to MH i2c: E2 02 01 E3 0C 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 35 31 06 04 1E 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AB D1 81 D1 81 D1 8B D0 BA 20 D0 90 D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 0D 44 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 00 00 E1 [22:30:37]Write i2c OK [22:30:37]MH_I2C_Read... [22:30:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:30:38]Read from MH i2c: E2 [22:30:38]MH_I2C_Read... [22:30:38]Read from MH i2c: E2 03 00 [22:30:38]MH_I2C_Read... [22:30:38]Read from MH i2c: E2 03 00 E3 0C 00 90 00 63 [22:30:38]RAPDU: 90 00 [22:30:38]wFMCommunicate OK [22:30:38]wFMCommunicate request_size=31 [22:30:38]MH_SAM_APDU [22:30:38]CAPDU: 80 0D 02 02 1A 30 30 38 37 35 30 37 34 10 04 04 00 9D F9 00 00 35 04 06 00 31 A2 BD 15 EF 5F [22:30:38]Write to MH i2c: E2 22 00 E4 0C 80 0D 02 02 1A 00 30 30 38 37 35 30 37 34 10 04 04 00 9D F9 00 00 35 04 06 00 31 A2 BD 15 EF 5F 00 00 1D [22:30:38]Write i2c OK [22:30:38]MH_I2C_Read... [22:30:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:30:38]Read from MH i2c: E2 [22:30:38]MH_I2C_Read... [22:30:38]Read from MH i2c: E2 03 00 [22:30:38]MH_I2C_Read... [22:30:38]Read from MH i2c: E2 03 00 E4 0C 00 90 00 64 [22:30:38]RAPDU: 90 00 [22:30:38]wFMCommunicate OK [22:30:38]wFMCommunicate request_size=4 [22:30:38]MH_SAM_APDU [22:30:38]CAPDU: 80 0D 03 02 [22:30:38]Write to MH i2c: E2 08 00 E5 0C 80 0D 03 02 00 00 00 00 6C [22:30:38]Write i2c OK [22:30:38]MH_I2C_Read... [22:30:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:30:38]Read from MH i2c: E2 [22:30:38]MH_I2C_Read... [22:30:38]Read from MH i2c: E2 0B 00 [22:30:38]MH_I2C_Read... [22:30:38]Read from MH i2c: E2 0B 00 E5 0C 00 39 35 B0 88 DD 9A E7 BC 90 00 2D [22:30:38]RAPDU: 39 35 B0 88 DD 9A E7 BC 90 00 [22:30:38]wFMCommunicate OK [22:30:38]SAM_PROTO_SignData done [22:30:38]FM_MakeSignedData done [22:30:38]CreateOFDProtocolMessage [22:30:38]wFMCommunicate request_size=4 [22:30:38]MH_SAM_APDU [22:30:38]CAPDU: 80 11 00 00 [22:30:38]Write to MH i2c: E2 08 00 E6 0C 80 11 00 00 00 00 00 00 6C [22:30:38]Write i2c OK [22:30:38]MH_I2C_Read... [22:30:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:30:38]Read from MH i2c: E2 [22:30:38]MH_I2C_Read... [22:30:38]Read from MH i2c: E2 17 00 [22:30:38]MH_I2C_Read... [22:30:38]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 35 30 37 34 90 00 BE [22:30:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [22:30:38]wFMCommunicate OK [22:30:38]CreateOFDProtocolMessage done [22:30:38]OFDSenderStorePacket 63901 [22:30:38]StoreOFDPacket docnum=63901 [22:30:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 24 01 00 00 76 73 1C 01 08 2D 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 35 31 06 04 1E 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AB D1 81 D1 81 D1 8B D0 BA 20 D0 90 D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 0D 44 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 9D F9 00 00 35 04 06 00 31 A2 BD 15 EF 5F 39 35 B0 88 DD 9A E7 BC [22:30:38]CheckFolder [22:30:38]dirname=/storage/ofd_packets [22:30:38]CheckFolder done [22:30:38]ProducePacketName [22:30:38]name=ofd_packets/00063901 [22:30:38]NVStorageSaveData ofd_packets/00063901 [22:30:38]File name is /storage/ofd_packets/00063901 [22:30:38]Write 322 bytes [22:30:38]NVStorageSaveData done [22:30:38]OFDSenderStorePacket done [22:30:38]KKMCreateOFDPacket done [22:30:38]NVStorageSaveData kkm_last_timestamp [22:30:38]File name is /storage/kkm_last_timestamp [22:30:38]Write 4 bytes [22:30:38]NVStorageSaveData done [22:30:38]ExternCall_PrintAddStr [22:30:38]wPrintStart [22:30:38]Write to MH i2c: 01 00 00 E7 0C F3 [22:30:38]Write i2c OK [22:30:38]MH_I2C_Read... [22:30:38]Read from MH i2c: 01 [22:30:38]MH_I2C_Read... [22:30:38]Read from MH i2c: 01 07 00 [22:30:38]MH_I2C_Read... [22:30:38]Read from MH i2c: 01 07 00 E7 0C 00 00 00 00 00 FF 0F 08 [22:30:38]RasterBufferAndPrint [22:30:38]line Счет N : (3)73469 [22:30:38]line ИНН: 02508201610067 [22:30:38]line Контрольно-Кассовый Чек [22:30:38]line ПРОДАЖА [22:30:38]line Товар: 4700000160051 [22:30:38]line Вода Ыссык Ата 1л [22:30:38]line 1.000 * 50.00 [22:30:38]line = 50.00 [22:30:38]line НДС 12% НСП 1% [22:30:38]line > о реализуемом товаре [22:30:38]line ИТОГО: 50.00 [22:30:38]line НСП 1% : 0.44 [22:30:38]line НДС 12% : 5.31 [22:30:38]line Наличными: 50.00 [22:30:38]line Безнал.: 0.00 [22:30:38]line Место: АЗС № 117 "Партнер Нефть" [22:30:38]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [22:30:38]line СНО: Общий режим [22:30:38]line Чек 159 03.06.2024 22:30 [22:30:38]line Смена: 373 ФФД: 1.0 [22:30:38]line ЗНМ: 0300000031 [22:30:38]line РНМ: 0000000000092737 [22:30:38]line Версия ККМ: 001 [22:30:38]line ФМ: 0000000000875074 [22:30:38]line ФД: 63901 [22:30:38]line ФПД: 54575026794335 [22:30:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T223037&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63901&fm=54575026794335&tin=02508201610067®Number=0000000000092737&sum=5000 [22:30:38]line 0 [22:30:38]OFD Sender: Processing packet 63901 [packets to send 14, broken 13] [22:30:38]ProducePacketName [22:30:38]name=ofd_packets/00063901 [22:30:38]OFD Sender: To server: pG, [22:30:38]CommunicateWithHost lk.salyk.kg:30040 [22:30:38]ConnectInit lk.salyk.kg [22:30:38]written 0, free lines is 4095 [22:30:38]Connected sock=10 [22:30:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 24 01 00 00 76 73 1C 01 08 2D 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 35 31 06 04 1E 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AB D1 81 D1 81 D1 8B D0 BA 20 D0 90 D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 0D 44 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 9D F9 00 00 35 04 06 00 31 A2 BD 15 EF 5F 39 35 B0 88 DD 9A E7 BC [22:30:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 44 DB 47 00 3B 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 35 30 37 34 10 04 04 00 9D F9 00 00 F4 03 04 00 DD EF 5D 66 B6 04 01 00 00 BE EA 29 76 E3 68 29 1B [22:30:38]CommunicateWithHost err = 0 [22:30:38]CheckOFDResponse [22:30:38]1017 (14) - 77093643461234 [22:30:38]1041 (16) - 0000000000875074 [22:30:38]1040 (4) - 63901 [22:30:38]1012 (4) - 03.06.2024 16:31 [22:30:38]1206 (1) - 0 [22:30:38]OFD Sender: Remove packet 63901 [22:30:38]ProducePacketName [22:30:38]name=ofd_packets/00063901 [22:30:38]NVStorageDeleteData [22:30:39]Write to MH i2c: 01 00 00 0F 0D 1C [22:30:39]Write i2c OK [22:30:39]MH_I2C_Read... [22:30:39]Read from MH i2c: 01 [22:30:39]MH_I2C_Read... [22:30:39]Read from MH i2c: 01 07 00 [22:30:39]MH_I2C_Read... [22:30:39]Read from MH i2c: 01 07 00 0F 0D 00 00 00 00 00 F7 0C 26 [22:30:39]RasterBufferAndPrint [22:30:39]line [22:30:39]line [22:30:39]line [22:30:39]line [22:30:39]line [22:30:39]written 0, free lines is 3325 [22:30:39]MH_Cut [22:30:39]Write to MH i2c: D1 01 00 16 0D 01 F5 [22:30:39]Write i2c OK [22:30:39]MH_I2C_Read... [22:30:39]Read from MH i2c: D1 [22:30:39]MH_I2C_Read... [22:30:39]Read from MH i2c: D1 01 00 [22:30:39]MH_I2C_Read... [22:30:39]Read from MH i2c: D1 01 00 16 0D 00 F4 [22:30:39]Write to MH i2c: 01 00 00 17 0D 24 [22:30:39]Write i2c OK [22:30:39]MH_I2C_Read... [22:30:39]OFD Sender: No OFD packet to send [22:30:39]*** Cut start [22:30:39]*** Partial cut [22:30:39]*** CUTSNS_PIN = 1 [22:30:39]*** CUTSNS_PIN = 0 [22:30:40]*** Brake cut motor [22:30:40]Read from MH i2c: 01 [22:30:40]MH_I2C_Read... [22:30:40]*** Stop cut motor [22:30:40]*** Cut end [22:30:40]Read from MH i2c: 01 07 00 [22:30:40]MH_I2C_Read... [22:30:40]Read from MH i2c: 01 07 00 17 0D 00 00 00 00 00 FF 0F 39 [22:30:40]process_action close_receipt done [22:30:40]requested_data is exist [22:30:40]produce_requested_data [22:30:40]requested_item fm.sn is exist - process it [22:30:40]wFMCommunicate request_size=4 [22:30:40]MH_SAM_APDU [22:30:40]CAPDU: 80 11 00 00 [22:30:40]Write to MH i2c: E2 08 00 18 0D 80 11 00 00 00 00 00 00 9F [22:30:40]Write i2c OK [22:30:40]MH_I2C_Read... [22:30:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:30:40]Read from MH i2c: E2 [22:30:40]MH_I2C_Read... [22:30:40]Read from MH i2c: E2 17 00 [22:30:40]MH_I2C_Read... [22:30:40]Read from MH i2c: E2 17 00 18 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 F1 [22:30:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [22:30:40]wFMCommunicate OK [22:30:40]requested_item fd.num is exist - process it [22:30:40]SAM_PROTO_GetFieldsCounters [22:30:40]wFMCommunicate request_size=4 [22:30:40]MH_SAM_APDU [22:30:40]CAPDU: 80 13 00 00 [22:30:40]Write to MH i2c: E2 08 00 19 0D 80 13 00 00 00 00 00 00 A2 [22:30:40]Write i2c OK [22:30:40]MH_I2C_Read... [22:30:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:30:40]Read from MH i2c: E2 [22:30:40]MH_I2C_Read... [22:30:40]Read from MH i2c: E2 62 00 [22:30:40]MH_I2C_Read... [22:30:40]Read from MH i2c: E2 62 00 19 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 9D F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 9F 00 00 00 5E 04 04 00 9F 00 00 00 57 04 04 00 A0 00 00 00 19 04 04 00 00 00 00 00 90 00 AE [22:30: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 9D F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 9F 00 00 00 5E 04 04 00 9F 00 00 00 57 04 04 00 A0 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:30:40]wFMCommunicate OK [22:30:40]SAM_PROTO_GetFieldsCounters done [22:30:40]requested_item shift.num is exist - process it [22:30:40]requested_item shift.opened is exist - process it [22:30:40]req_shift_opened [22:30:40]FM_GetShiftState [22:30:40]SAM_PROTO_GetShiftState [22:30:40]wFMCommunicate request_size=4 [22:30:40]MH_SAM_APDU [22:30:40]CAPDU: 80 13 01 00 [22:30:40]Write to MH i2c: E2 08 00 1A 0D 80 13 01 00 00 00 00 00 A4 [22:30:40]Write i2c OK [22:30:40]MH_I2C_Read... [22:30:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:30:40]Read from MH i2c: E2 [22:30:40]MH_I2C_Read... [22:30:40]Read from MH i2c: E2 0E 00 [22:30:40]MH_I2C_Read... [22:30:40]Read from MH i2c: E2 0E 00 1A 0D 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 70 [22:30:40]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [22:30:40]wFMCommunicate OK [22:30:40]SAM_PROTO_GetShiftState done [22:30:40]FM_GetShiftState done [22:30:40]req_shift_opened done [22:30:40]requested_item shift.open_date is exist - process it [22:30:40]req_shift_open_date [22:30:40]req_shift_open_date done [22:30:40]produce_requested_data done [22:30:40]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63901,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [22:30:40]process_action_free close_receipt [22:30:40]json_value_free [22:30:40]json_value_free done [22:30:40]process_json_proto returns [22:30:40]Send response to host [22:30:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63901,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [22:30:40]free response buf [22:30:40]execute_script done [22:30:40]execute_script returns [22:30:40]free content buf [22:30:40]Sock 9.Close socket [22:30:40]Sock 9.Thread stoped [22:30:44]OFD Sender: No OFD packet to send [22:30:49]OFD Sender: No OFD packet to send [22:30:54]OFD Sender: No OFD packet to send [22:30:59]OFD Sender: No OFD packet to send [22:31:04]OFD Sender: No OFD packet to send [22:31:09]OFD Sender: No OFD packet to send [22:31:14]OFD Sender: No OFD packet to send [22:31:19]OFD Sender: No OFD packet to send [22:31:24]OFD Sender: No OFD packet to send [22:31:29]OFD Sender: No OFD packet to send [22:31:34]OFD Sender: No OFD packet to send [22:31:39]OFD Sender: No OFD packet to send [22:31:44]OFD Sender: No OFD packet to send [22:31:49]OFD Sender: No OFD packet to send [22:31:54]OFD Sender: No OFD packet to send [22:31:59]OFD Sender: No OFD packet to send [22:32:04]OFD Sender: No OFD packet to send [22:32:09]OFD Sender: No OFD packet to send [22:32:14]OFD Sender: No OFD packet to send [22:32:19]OFD Sender: No OFD packet to send [22:32:24]OFD Sender: No OFD packet to send [22:32:29]OFD Sender: No OFD packet to send [22:32:34]OFD Sender: No OFD packet to send [22:32:39]OFD Sender: No OFD packet to send [22:32:44]OFD Sender: No OFD packet to send [22:32:49]OFD Sender: No OFD packet to send [22:32:54]OFD Sender: No OFD packet to send [22:32:59]OFD Sender: No OFD packet to send [22:33:04]OFD Sender: No OFD packet to send [22:33:09]OFD Sender: No OFD packet to send [22:33:14]OFD Sender: No OFD packet to send [22:33:19]OFD Sender: No OFD packet to send [22:33:24]OFD Sender: No OFD packet to send [22:33:29]OFD Sender: No OFD packet to send [22:33:34]OFD Sender: No OFD packet to send [22:33:39]OFD Sender: No OFD packet to send [22:33:44]OFD Sender: No OFD packet to send [22:33:49]OFD Sender: No OFD packet to send [22:33:54]OFD Sender: No OFD packet to send [22:33:59]OFD Sender: No OFD packet to send [22:34:04]OFD Sender: No OFD packet to send [22:34:09]OFD Sender: No OFD packet to send [22:34:14]OFD Sender: No OFD packet to send [22:34:19]OFD Sender: No OFD packet to send [22:34:24]OFD Sender: No OFD packet to send [22:34:29]OFD Sender: No OFD packet to send [22:34:34]OFD Sender: No OFD packet to send [22:34:39]OFD Sender: No OFD packet to send [22:34:44]OFD Sender: No OFD packet to send [22:34:49]OFD Sender: No OFD packet to send [22:34:51]accept exits with 7 [22:34:51]New connection [22:34:51]New thread 3066576228 created [22:34:51]Thread 3066719588 joined [22:34:51]Waiting for new connection... [22:34:51] Sock 7.Parse request [22:34:51]Sock 7.Check first char [22:34:51]Sock 7.First char is OK [22:34:51]request: POST /json_proto HTTP/1.0 [22:34:51]Method: POST [22:34:51]URL: /json_proto [22:34:51]Method is POST - this is cgi request [22:34:51]url: /json_proto [22:34:51]query_string will be loaded in cgi processing [22:34:51]execute_cgi json_proto POST (null) [22:34:51]execute_cgi path=json_proto method=POST [22:34:51]POST find Content-Length [22:34:51]Host: 172.17.60.69:8080 [22:34:51]Content-Length: 643 [22:34:51]Content-Type: application/json [22:34:51] [22:34:51]POST finish read [22:34:51]Found Content-Length = 643 [22:34:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73470", "tax_sys" : 0, "items" : [ { "code": "5449000005489", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 1\u043B \u0431/\u0433", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:34:51]execute_script... [22:34:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73470", "tax_sys" : 0, "items" : [ { "code": "5449000005489", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 1\u043B \u0431/\u0433", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:34:51]POST & json_proto [22:34:51]process_json_proto [22:34:51]json parsed OK: [22:34:51]protocol is kg_v1.0 [22:34:51]action value=close_receipt [22:34:51]process_action close_receipt [22:34:51]cmd_close_receipt [22:34:51]MH_GetDate [22:34:51]Write to MH i2c: F0 00 00 1B 0D 17 [22:34:51]Write i2c OK [22:34:51]MH_I2C_Read... [22:34:51]Read from MH i2c: F0 [22:34:51]MH_I2C_Read... [22:34:51]Read from MH i2c: F0 09 00 [22:34:51]MH_I2C_Read... [22:34:51]Read from MH i2c: F0 09 00 1B 0D 00 0C 45 5E 66 6A 96 4A 66 E5 [22:34:51]GetLastDocTimeStamp 1717453837 [22:34:51]current date 1717454092 [22:34:51]FM_GetShiftState [22:34:51]SAM_PROTO_GetShiftState [22:34:51]wFMCommunicate request_size=4 [22:34:51]MH_SAM_APDU [22:34:51]CAPDU: 80 13 01 00 [22:34:51]Write to MH i2c: E2 08 00 1C 0D 80 13 01 00 00 00 00 00 A6 [22:34:51]Write i2c OK [22:34:51]MH_I2C_Read... [22:34:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:34:51]Read from MH i2c: E2 [22:34:51]MH_I2C_Read... [22:34:51]Read from MH i2c: E2 0E 00 [22:34:51]MH_I2C_Read... [22:34:51]Read from MH i2c: E2 0E 00 1C 0D 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 72 [22:34:51]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [22:34:51]wFMCommunicate OK [22:34:51]SAM_PROTO_GetShiftState done [22:34:51]FM_GetShiftState done [22:34:51]opened in 1717373173 [22:34:51]opened+sec_in_day 1717459573 [22:34:51]quantity*price = 5000 [22:34:51]sum+1 = 5001 [22:34:51]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре ИТОГО: 125.00 НСП 1% : 1.11 НДС 12% : 13.27 Наличными: 125.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 161 03.06.2024 22:50 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63903 ФПД: 240918381022289 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T225003&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63903&fm=240918381022289&tin=02508201610067®Number=0000000000092737&sum=12500 0 [22:50:03]StoreToDocumentArchive [22:50:03]shift 373 fd 63903 [22:50:03]save to /storage/0373/doc_00063903 [22:50:03]save last doc name /storage/0373/doc_00063903 to /storage/kkm_last_doc_name [22:50:03]save OK [22:50:03]Clear old archive folders... [22:50:03]ProcessDocumentItem done err = 0, tmpTLVsize=294 [22:50:03]tlvbuf is 00C19F20 [22:50:03]SAM_PROTO_ClearQueue [22:50:03]wFMCommunicate request_size=4 [22:50:03]MH_SAM_APDU [22:50:03]CAPDU: 80 09 00 00 [22:50:03]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [22:50:03]Write i2c OK [22:50:03]MH_I2C_Read... [22:50:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:50:03]Read from MH i2c: E2 [22:50:03]MH_I2C_Read... [22:50:03]Read from MH i2c: E2 03 00 [22:50:03]MH_I2C_Read... [22:50:03]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [22:50:03]RAPDU: 90 00 [22:50:03]wFMCommunicate OK [22:50:03]SAM_PROTO_ClearQueue done [22:50:03]KKMCreateOFDPacket [22:50:03]OFDProtocolAddRootSTLVToBuf [22:50:03]FM_MakeSignedData [22:50:03]FM_MakeSignedData [22:50:03]SAM_PROTO_SignData [22:50:03]wFMCommunicate request_size=4 [22:50:03]MH_SAM_APDU [22:50:03]CAPDU: 80 0D 01 02 [22:50:03]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [22:50:03]Write i2c OK [22:50:03]MH_I2C_Read... [22:50:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:50:03]Read from MH i2c: E2 [22:50:03]MH_I2C_Read... [22:50:03]Read from MH i2c: E2 03 00 [22:50:03]MH_I2C_Read... [22:50:03]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [22:50:03]RAPDU: 90 00 [22:50:03]wFMCommunicate OK [22:50:03]wFMCommunicate request_size=255 [22:50:03]MH_SAM_APDU [22:50:03]CAPDU: 80 0D 02 02 FA 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 34 37 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D1 87 D0 B5 D1 80 D0 BD 2E D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 9B 48 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 [22:50:03]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 34 37 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D1 87 D0 B5 D1 80 D0 BD 2E D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 9B 48 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 00 00 E6 [22:50:03]Write i2c OK [22:50:03]MH_I2C_Read... [22:50:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:50:04]Read from MH i2c: E2 [22:50:04]MH_I2C_Read... [22:50:04]Read from MH i2c: E2 03 00 [22:50:04]MH_I2C_Read... [22:50:04]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [22:50:04]RAPDU: 90 00 [22:50:04]wFMCommunicate OK [22:50:04]wFMCommunicate request_size=53 [22:50:04]MH_SAM_APDU [22:50:04]CAPDU: 80 0D 02 02 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 9F F9 00 00 35 04 06 00 DB 1D 2E 85 4C 51 [22:50:04]Write to MH i2c: E2 38 00 2E 00 80 0D 02 02 30 00 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 9F F9 00 00 35 04 06 00 DB 1D 2E 85 4C 51 00 00 7F [22:50:04]Write i2c OK [22:50:04]MH_I2C_Read... [22:50:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:50:04]Read from MH i2c: E2 [22:50:04]MH_I2C_Read... [22:50:04]Read from MH i2c: E2 03 00 [22:50:04]MH_I2C_Read... [22:50:04]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [22:50:04]RAPDU: 90 00 [22:50:04]wFMCommunicate OK [22:50:04]wFMCommunicate request_size=4 [22:50:04]MH_SAM_APDU [22:50:04]CAPDU: 80 0D 03 02 [22:50:04]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [22:50:04]Write i2c OK [22:50:04]MH_I2C_Read... [22:50:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:50:04]Read from MH i2c: E2 [22:50:04]MH_I2C_Read... [22:50:04]Read from MH i2c: E2 0B 00 [22:50:04]MH_I2C_Read... [22:50:04]Read from MH i2c: E2 0B 00 2F 00 00 D2 04 C5 FF F1 5F 3A 49 90 00 18 [22:50:04]RAPDU: D2 04 C5 FF F1 5F 3A 49 90 00 [22:50:04]wFMCommunicate OK [22:50:04]SAM_PROTO_SignData done [22:50:04]FM_MakeSignedData done [22:50:04]CreateOFDProtocolMessage [22:50:04]wFMCommunicate request_size=4 [22:50:04]MH_SAM_APDU [22:50:04]CAPDU: 80 11 00 00 [22:50:04]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [22:50:04]Write i2c OK [22:50:04]MH_I2C_Read... [22:50:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:50:04]Read from MH i2c: E2 [22:50:04]MH_I2C_Read... [22:50:04]Read from MH i2c: E2 17 00 [22:50:04]MH_I2C_Read... [22:50:04]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 35 30 37 34 90 00 FC [22:50:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [22:50:04]wFMCommunicate OK [22:50:04]CreateOFDProtocolMessage done [22:50:04]OFDSenderStorePacket 63903 [22:50:04]StoreOFDPacket docnum=63903 [22:50:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 3A 01 00 00 66 2E 32 01 53 44 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 34 37 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D1 87 D0 B5 D1 80 D0 BD 2E D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 9B 48 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 9F F9 00 00 35 04 06 00 DB 1D 2E 85 4C 51 D2 04 C5 FF F1 5F 3A 49 [22:50:04]CheckFolder [22:50:04]dirname=/storage/ofd_packets [22:50:04]CheckFolder done [22:50:04]ProducePacketName [22:50:04]name=ofd_packets/00063903 [22:50:04]NVStorageSaveData ofd_packets/00063903 [22:50:04]File name is /storage/ofd_packets/00063903 [22:50:04]Write 344 bytes [22:50:04]NVStorageSaveData done [22:50:04]OFDSenderStorePacket done [22:50:04]KKMCreateOFDPacket done [22:50:04]NVStorageSaveData kkm_last_timestamp [22:50:04]File name is /storage/kkm_last_timestamp [22:50:04]Write 4 bytes [22:50:04]NVStorageSaveData done [22:50:04]ExternCall_PrintAddStr [22:50:04]wPrintStart [22:50:04]Write to MH i2c: 01 00 00 31 00 31 [22:50:04]Write i2c OK [22:50:04]MH_I2C_Read... [22:50:04]Read from MH i2c: 01 [22:50:04]MH_I2C_Read... [22:50:04]Read from MH i2c: 01 07 00 [22:50:04]MH_I2C_Read... [22:50:04]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [22:50:04]RasterBufferAndPrint [22:50:04]line Счет N : (3)73471 [22:50:04]line ИНН: 02508201610067 [22:50:04]line Контрольно-Кассовый Чек [22:50:04]line ПРОДАЖА [22:50:04]line Товар: 4870202521247 [22:50:04]line Напиток MAXI чай 1,2 черн.персик [22:50:04]line 1.000 * 125.00 [22:50:04]line = 125.00 [22:50:04]line НДС 12% НСП 1% [22:50:04]line > о реализуемом товаре [22:50:04]line ИТОГО: 125.00 [22:50:04]line НСП 1% : 1.11 [22:50:04]line НДС 12% : 13.27 [22:50:04]line Наличными: 125.00 [22:50:04]line Безнал.: 0.00 [22:50:04]line Место: АЗС № 117 "Партнер Нефть" [22:50:04]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [22:50:04]line СНО: Общий режим [22:50:04]line Чек 161 03.06.2024 22:50 [22:50:04]line Смена: 373 ФФД: 1.0 [22:50:04]line ЗНМ: 0300000031 [22:50:04]line РНМ: 0000000000092737 [22:50:04]line Версия ККМ: 001 [22:50:04]line ФМ: 0000000000875074 [22:50:04]line ФД: 63903 [22:50:04]line ФПД: 240918381022289 [22:50:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T225003&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63903&fm=240918381022289&tin=02508201610067®Number=0000000000092737&sum=12500 [22:50:04]line 0 [22:50:04]written 0, free lines is 4095 [22:50:04]OFD Sender: Processing packet 63903 [packets to send 14, broken 13] [22:50:04]ProducePacketName [22:50:04]name=ofd_packets/00063903 [22:50:04]OFD Sender: To server: pG, [22:50:04]CommunicateWithHost lk.salyk.kg:30040 [22:50:04]ConnectInit lk.salyk.kg [22:50:04]Connected sock=10 [22:50:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 3A 01 00 00 66 2E 32 01 53 44 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 34 37 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D1 87 D0 B5 D1 80 D0 BD 2E D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 9B 48 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 9F F9 00 00 35 04 06 00 DB 1D 2E 85 4C 51 D2 04 C5 FF F1 5F 3A 49 [22:50:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 2E 63 47 00 01 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 35 30 37 34 10 04 04 00 9F F9 00 00 F4 03 04 00 6B F4 5D 66 B6 04 01 00 00 5F 23 23 F6 F4 6B B3 53 [22:50:04]CommunicateWithHost err = 0 [22:50:04]CheckOFDResponse [22:50:04]1017 (14) - 77093643461234 [22:50:04]1041 (16) - 0000000000875074 [22:50:04]1040 (4) - 63903 [22:50:04]1012 (4) - 03.06.2024 16:50 [22:50:04]1206 (1) - 0 [22:50:04]OFD Sender: Remove packet 63903 [22:50:04]ProducePacketName [22:50:04]name=ofd_packets/00063903 [22:50:04]NVStorageDeleteData [22:50:04]Write to MH i2c: 01 00 00 5A 00 5A [22:50:04]Write i2c OK [22:50:04]MH_I2C_Read... [22:50:04]Read from MH i2c: 01 [22:50:04]MH_I2C_Read... [22:50:04]Read from MH i2c: 01 07 00 [22:50:04]MH_I2C_Read... [22:50:04]Read from MH i2c: 01 07 00 5A 00 00 00 00 00 00 EC 0C 59 [22:50:04]RasterBufferAndPrint [22:50:04]line [22:50:04]line [22:50:04]line [22:50:04]line [22:50:04]line [22:50:04]written 0, free lines is 3327 [22:50:04]MH_Cut [22:50:04]Write to MH i2c: D1 01 00 61 00 01 33 [22:50:04]Write i2c OK [22:50:04]MH_I2C_Read... [22:50:04]Read from MH i2c: D1 [22:50:04]MH_I2C_Read... [22:50:04]Read from MH i2c: D1 01 00 [22:50:04]MH_I2C_Read... [22:50:04]Read from MH i2c: D1 01 00 61 00 00 32 [22:50:04]Write to MH i2c: 01 00 00 62 00 62 [22:50:04]Write i2c OK [22:50:04]MH_I2C_Read... [22:50:05]OFD Sender: No OFD packet to send [22:50:05]*** Cut start [22:50:05]*** Partial cut [22:50:05]*** CUTSNS_PIN = 1 [22:50:05]*** CUTSNS_PIN = 0 [22:50:05]*** Brake cut motor [22:50:06]Read from MH i2c: 01 *** Stop cut motor [22:50:06] [22:50:06]*** Cut end [22:50:06]MH_I2C_Read... [22:50:06]Read from MH i2c: 01 07 00 [22:50:06]MH_I2C_Read... [22:50:06]Read from MH i2c: 01 07 00 62 00 00 00 00 00 00 FF 0F 77 [22:50:06]process_action close_receipt done [22:50:06]requested_data is exist [22:50:06]produce_requested_data [22:50:06]requested_item fm.sn is exist - process it [22:50:06]wFMCommunicate request_size=4 [22:50:06]MH_SAM_APDU [22:50:06]CAPDU: 80 11 00 00 [22:50:06]Write to MH i2c: E2 08 00 63 00 80 11 00 00 00 00 00 00 DD [22:50:06]Write i2c OK [22:50:06]MH_I2C_Read... [22:50:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:50:06]Read from MH i2c: E2 [22:50:06]MH_I2C_Read... [22:50:06]Read from MH i2c: E2 17 00 [22:50:06]MH_I2C_Read... [22:50:06]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 35 30 37 34 90 00 2F [22:50:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [22:50:06]wFMCommunicate OK [22:50:06]requested_item fd.num is exist - process it [22:50:06]SAM_PROTO_GetFieldsCounters [22:50:06]wFMCommunicate request_size=4 [22:50:06]MH_SAM_APDU [22:50:06]CAPDU: 80 13 00 00 [22:50:06]Write to MH i2c: E2 08 00 64 00 80 13 00 00 00 00 00 00 E0 [22:50:06]Write i2c OK [22:50:06]MH_I2C_Read... [22:50:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:50:06]Read from MH i2c: E2 [22:50:06]MH_I2C_Read... [22:50:06]Read from MH i2c: E2 62 00 [22:50:06]MH_I2C_Read... [22:50:06]Read from MH i2c: E2 62 00 64 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 9F F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 A1 00 00 00 5E 04 04 00 A1 00 00 00 57 04 04 00 A2 00 00 00 19 04 04 00 00 00 00 00 90 00 F4 [22:50: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 9F F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 A1 00 00 00 5E 04 04 00 A1 00 00 00 57 04 04 00 A2 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:50:06]wFMCommunicate OK [22:50:06]SAM_PROTO_GetFieldsCounters done [22:50:06]requested_item shift.num is exist - process it [22:50:06]requested_item shift.opened is exist - process it [22:50:06]req_shift_opened [22:50:06]FM_GetShiftState [22:50:06]SAM_PROTO_GetShiftState [22:50:06]wFMCommunicate request_size=4 [22:50:06]MH_SAM_APDU [22:50:06]CAPDU: 80 13 01 00 [22:50:06]Write to MH i2c: E2 08 00 65 00 80 13 01 00 00 00 00 00 E2 [22:50:06]Write i2c OK [22:50:06]MH_I2C_Read... [22:50:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:50:06]Read from MH i2c: E2 [22:50:06]MH_I2C_Read... [22:50:06]Read from MH i2c: E2 0E 00 [22:50:06]MH_I2C_Read... [22:50:06]Read from MH i2c: E2 0E 00 65 00 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 AE [22:50:06]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [22:50:06]wFMCommunicate OK [22:50:06]SAM_PROTO_GetShiftState done [22:50:06]FM_GetShiftState done [22:50:06]req_shift_opened done [22:50:06]requested_item shift.open_date is exist - process it [22:50:06]req_shift_open_date [22:50:06]req_shift_open_date done [22:50:06]produce_requested_data done [22:50:06]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63903,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [22:50:06]process_action_free close_receipt [22:50:06]json_value_free [22:50:06]json_value_free done [22:50:06]process_json_proto returns [22:50:06]Send response to host [22:50:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63903,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [22:50:06]free response buf [22:50:06]execute_script done [22:50:06]execute_script returns [22:50:06]free content buf [22:50:06]Sock 8.Close socket [22:50:06]Sock 8.Thread stoped [22:50:08]accept exits with 9 [22:50:08]New connection [22:50:08]New thread 3066973540 created [22:50:08]Thread 3067116900 joined [22:50:08]Waiting for new connection... [22:50:08] Sock 9.Parse request [22:50:08]Sock 9.Check first char [22:50:08]Sock 9.First char is OK [22:50:08]request: POST /json_proto HTTP/1.0 [22:50:08]Method: POST [22:50:08]URL: /json_proto [22:50:08]Method is POST - this is cgi request [22:50:08]url: /json_proto [22:50:08]query_string will be loaded in cgi processing [22:50:08]execute_cgi json_proto POST (null) [22:50:08]execute_cgi path=json_proto method=POST [22:50:08]POST find Content-Length [22:50:08]Host: 172.17.60.69:8080 [22:50:08]Content-Length: 940 [22:50:08]Content-Type: application/json [22:50:08] [22:50:08]POST finish read [22:50:08]Found Content-Length = 940 [22:50:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73472", "tax_sys" : 0, "items" : [ { "code": "4870202521216", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u0437\u0435\u043B.\u043B\u0438\u043C\u043E\u043D (\u043D\u043E\u0432\u044B\u0439)", "price" : 113.00, "quantity" : 1.000, "sum" : 113.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 223.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:50:08]execute_script... [22: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 : (3)73472", "tax_sys" : 0, "items" : [ { "code": "4870202521216", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u0437\u0435\u043B.\u043B\u0438\u043C\u043E\u043D (\u043D\u043E\u0432\u044B\u0439)", "price" : 113.00, "quantity" : 1.000, "sum" : 113.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 223.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:50:08]POST & json_proto [22:50:08]process_json_proto [22:50:08]json parsed OK: [22:50:08]protocol is kg_v1.0 [22:50:08]action value=close_receipt [22:50:08]process_action close_receipt [22:50:08]cmd_close_receipt [22:50:08]MH_GetDate [22:50:08]Write to MH i2c: F0 00 00 66 00 55 [22:50:08]Write i2c OK [22:50:08]MH_I2C_Read... [22:50:08]Read from MH i2c: F0 [22:50:08]MH_I2C_Read... [22:50:08]Read from MH i2c: F0 09 00 [22:50:08]MH_I2C_Read... [22:50:08]Read from MH i2c: F0 09 00 66 00 00 A1 48 5E 66 6A 96 4A 66 BB [22:50:08]GetLastDocTimeStamp 1717455003 [22:50:08]current date 1717455009 [22:50:08]FM_GetShiftState [22:50:08]SAM_PROTO_GetShiftState [22:50:08]wFMCommunicate request_size=4 [22:50:08]MH_SAM_APDU [22:50:08]CAPDU: 80 13 01 00 [22:50:08]Write to MH i2c: E2 08 00 67 00 80 13 01 00 00 00 00 00 E4 [22:50:08]Write i2c OK [22:50:08]MH_I2C_Read... [22:50:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:50:08]Read from MH i2c: E2 [22:50:08]MH_I2C_Read... [22:50:08]Read from MH i2c: E2 0E 00 [22:50:08]MH_I2C_Read... [22:50:08]Read from MH i2c: E2 0E 00 67 00 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 B0 [22:50:08]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [22:50:08]wFMCommunicate OK [22:50:08]SAM_PROTO_GetShiftState done [22:50:08]FM_GetShiftState done [22:50:08]opened in 1717373173 [22:50:08]opened+sec_in_day 1717459573 [22:50:08]quantity*price = 11300 [22:50:08]sum+1 = 11301 [22:50:08]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870001570071 Напиток Pepsi 1л 1.000 * 110.00 = 110.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 223.00 НСП 1% : 1.97 НДС 12% : 23.68 Наличными: 223.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 162 03.06.2024 22:50 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63904 ФПД: 192105504803493 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T225009&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63904&fm=192105504803493&tin=02508201610067®Number=0000000000092737&sum=22300 0 [22:50:09]StoreToDocumentArchive [22:50:09]shift 373 fd 63904 [22:50:09]save to /storage/0373/doc_00063904 [22:50:09]save last doc name /storage/0373/doc_00063904 to /storage/kkm_last_doc_name [22:50:09]save OK [22:50:09]Clear old archive folders... [22:50:09]ProcessDocumentItem done err = 0, tmpTLVsize=399 [22:50:09]tlvbuf is 00C19B00 [22:50:09]SAM_PROTO_ClearQueue [22:50:09]wFMCommunicate request_size=4 [22:50:09]MH_SAM_APDU [22:50:09]CAPDU: 80 09 00 00 [22:50:09]Write to MH i2c: E2 08 00 74 00 80 09 00 00 00 00 00 00 E6 [22:50:09]Write i2c OK [22:50:09]MH_I2C_Read... [22:50:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:50:09]Read from MH i2c: E2 [22:50:09]MH_I2C_Read... [22:50:09]Read from MH i2c: E2 03 00 [22:50:09]MH_I2C_Read... [22:50:09]Read from MH i2c: E2 03 00 74 00 00 90 00 E8 [22:50:09]RAPDU: 90 00 [22:50:09]wFMCommunicate OK [22:50:09]SAM_PROTO_ClearQueue done [22:50:09]KKMCreateOFDPacket [22:50:09]OFDProtocolAddRootSTLVToBuf [22:50:09]FM_MakeSignedData [22:50:09]FM_MakeSignedData [22:50:09]SAM_PROTO_SignData [22:50:09]wFMCommunicate request_size=4 [22:50:09]MH_SAM_APDU [22:50:09]CAPDU: 80 0D 01 02 [22:50:09]Write to MH i2c: E2 08 00 75 00 80 0D 01 02 00 00 00 00 EE [22:50:09]Write i2c OK [22:50:09]MH_I2C_Read... [22:50:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:50:09]Read from MH i2c: E2 [22:50:09]MH_I2C_Read... [22:50:09]Read from MH i2c: E2 03 00 [22:50:09]MH_I2C_Read... [22:50:09]Read from MH i2c: E2 03 00 75 00 00 90 00 E9 [22:50:09]RAPDU: 90 00 [22:50:09]wFMCommunicate OK [22:50:09]wFMCommunicate request_size=255 [22:50:09]MH_SAM_APDU [22:50:09]CAPDU: 80 0D 02 02 FA 03 00 8F 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 31 36 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 B7 D0 B5 D0 BB 2E D0 BB D0 B8 D0 BC D0 BE D0 BD 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 57 00 00 00 00 EB 03 [22:50:09]Write to MH i2c: E2 02 01 76 00 80 0D 02 02 FA 00 03 00 8F 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 31 36 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 B7 D0 B5 D0 BB 2E D0 BB D0 B8 D0 BC D0 BE D0 BD 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 57 00 00 00 00 EB 03 00 00 E0 [22:50:09]Write i2c OK [22:50:09]MH_I2C_Read... [22:50:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:50:10]Read from MH i2c: E2 [22:50:10]MH_I2C_Read... [22:50:10]Read from MH i2c: E2 03 00 [22:50:10]MH_I2C_Read... [22:50:10]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [22:50:10]RAPDU: 90 00 [22:50:10]wFMCommunicate OK [22:50:10]wFMCommunicate request_size=158 [22:50:10]MH_SAM_APDU [22:50:10]CAPDU: 80 0D 02 02 99 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 09 00 00 00 00 07 04 06 00 1C 57 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 A1 48 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 A0 F9 00 00 35 04 06 00 AE B8 0C 5F 8A A5 [22:50:10]Write to MH i2c: E2 A1 00 77 00 80 0D 02 02 99 00 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 09 00 00 00 00 07 04 06 00 1C 57 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 A1 48 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 A0 F9 00 00 35 04 06 00 AE B8 0C 5F 8A A5 00 00 53 [22:50:10]Write i2c OK [22:50:10]MH_I2C_Read... [22:50:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:50:10]Read from MH i2c: E2 [22:50:10]MH_I2C_Read... [22:50:10]Read from MH i2c: E2 03 00 [22:50:10]MH_I2C_Read... [22:50:10]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [22:50:10]RAPDU: 90 00 [22:50:10]wFMCommunicate OK [22:50:10]wFMCommunicate request_size=4 [22:50:10]MH_SAM_APDU [22:50:10]CAPDU: 80 0D 03 02 [22:50:10]Write to MH i2c: E2 08 00 78 00 80 0D 03 02 00 00 00 00 F3 [22:50:10]Write i2c OK [22:50:10]MH_I2C_Read... [22:50:10]OFD Sender: No OFD packet to send [22:50:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:50:10]Read from MH i2c: E2 [22:50:10]MH_I2C_Read... [22:50:10]Read from MH i2c: E2 0B 00 [22:50:10]MH_I2C_Read... [22:50:10]Read from MH i2c: E2 0B 00 78 00 00 6D 51 8F AF A8 B8 F5 46 90 00 8B [22:50:10]RAPDU: 6D 51 8F AF A8 B8 F5 46 90 00 [22:50:10]wFMCommunicate OK [22:50:10]SAM_PROTO_SignData done [22:50:10]FM_MakeSignedData done [22:50:10]CreateOFDProtocolMessage [22:50:10]wFMCommunicate request_size=4 [22:50:10]MH_SAM_APDU [22:50:10]CAPDU: 80 11 00 00 [22:50:10]Write to MH i2c: E2 08 00 79 00 80 11 00 00 00 00 00 00 F3 [22:50:10]Write i2c OK [22:50:10]MH_I2C_Read... [22:50:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:50:10]Read from MH i2c: E2 [22:50:10]MH_I2C_Read... [22:50:10]Read from MH i2c: E2 17 00 [22:50:10]MH_I2C_Read... [22:50:10]Read from MH i2c: E2 17 00 79 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 45 [22:50:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [22:50:10]wFMCommunicate OK [22:50:10]CreateOFDProtocolMessage done [22:50:10]OFDSenderStorePacket 63904 [22:50:10]StoreOFDPacket docnum=63904 [22:50:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 A3 01 00 00 A8 FB 9B 01 CD 6D 5A 03 01 00 03 00 8F 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 31 36 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 B7 D0 B5 D0 BB 2E D0 BB D0 B8 D0 BC D0 BE D0 BD 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 09 00 00 00 00 07 04 06 00 1C 57 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 A1 48 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 A0 F9 00 00 35 04 06 00 AE B8 0C 5F 8A A5 6D 51 8F AF A8 B8 F5 46 [22:50:10]CheckFolder [22:50:10]dirname=/storage/ofd_packets [22:50:10]CheckFolder done [22:50:10]ProducePacketName [22:50:10]name=ofd_packets/00063904 [22:50:10]NVStorageSaveData ofd_packets/00063904 [22:50:10]File name is /storage/ofd_packets/00063904 [22:50:10]Write 449 bytes [22:50:10]NVStorageSaveData done [22:50:10]OFDSenderStorePacket done [22:50:10]KKMCreateOFDPacket done [22:50:10]NVStorageSaveData kkm_last_timestamp [22:50:10]File name is /storage/kkm_last_timestamp [22:50:10]Write 4 bytes [22:50:10]NVStorageSaveData done [22:50:10]ExternCall_PrintAddStr [22:50:10]wPrintStart [22:50:10]Write to MH i2c: 01 00 00 7A 00 7A [22:50:10]Write i2c OK [22:50:10]MH_I2C_Read... [22:50:10]Read from MH i2c: 01 [22:50:10]MH_I2C_Read... [22:50:10]Read from MH i2c: 01 07 00 [22:50:10]MH_I2C_Read... [22:50:10]Read from MH i2c: 01 07 00 7A 00 00 00 00 00 00 FF 0F 8F [22:50:10]RasterBufferAndPrint [22:50:10]line Счет N : (3)73472 [22:50:10]line ИНН: 02508201610067 [22:50:10]line Контрольно-Кассовый Чек [22:50:10]line ПРОДАЖА [22:50:10]line Товар: 4870202521216 [22:50:10]line Напиток MAXI чай 1,2 зел.лимон (новый) [22:50:10]line 1.000 * 113.00 [22:50:10]line = 113.00 [22:50:10]line НДС 12% НСП 1% [22:50:10]line > о реализуемом товаре [22:50:10]line Товар: 4870001570071 [22:50:10]line Напиток Pepsi 1л [22:50:10]line 1.000 * 110.00 [22:50:10]line = 110.00 [22:50:10]line НДС 12% НСП 1% [22:50:10]line > о реализуемом товаре [22:50:10]line ИТОГО: 223.00 [22:50:10]line НСП 1% : 1.97 [22:50:10]line НДС 12% : 23.68 [22:50:10]line Наличными: 223.00 [22:50:10]line Безнал.: 0.00 [22:50:10]line Место: АЗС № 117 "Партнер Нефть" [22:50:10]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [22:50:10]line СНО: Общий режим [22:50:10]line Чек 162 03.06.2024 22:50 [22:50:10]line Смена: 373 ФФД: 1.0 [22:50:10]line ЗНМ: 0300000031 [22:50:10]line РНМ: 0000000000092737 [22:50:10]line Версия ККМ: 001 [22:50:10]line ФМ: 0000000000875074 [22:50:10]line ФД: 63904 [22:50:10]line ФПД: 192105504803493 [22:50:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T225009&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63904&fm=192105504803493&tin=02508201610067®Number=0000000000092737&sum=22300 [22:50:10]line 0 [22:50:10]written 0, free lines is 4095 [22:50:10]OFD Sender: Processing packet 63904 [packets to send 14, broken 13] [22:50:10]ProducePacketName [22:50:10]name=ofd_packets/00063904 [22:50:10]OFD Sender: To server: pG, [22:50:10]CommunicateWithHost lk.salyk.kg:30040 [22:50:10]ConnectInit lk.salyk.kg [22:50:10]Connected sock=10 [22: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 35 30 37 34 A3 01 00 00 A8 FB 9B 01 CD 6D 5A 03 01 00 03 00 8F 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 31 36 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 B7 D0 B5 D0 BB 2E D0 BB D0 B8 D0 BC D0 BE D0 BD 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 09 00 00 00 00 07 04 06 00 1C 57 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 A1 48 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 A0 F9 00 00 35 04 06 00 AE B8 0C 5F 8A A5 6D 51 8F AF A8 B8 F5 46 [22:50:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 5B 46 47 00 F3 03 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 A0 F9 00 00 F4 03 04 00 71 F4 5D 66 B6 04 01 00 00 A1 85 BE 7B 2A 37 97 B6 [22:50:11]CommunicateWithHost err = 0 [22:50:11]CheckOFDResponse [22:50:11]1017 (14) - 77093643461234 [22:50:11]1041 (16) - 0000000000875074 [22:50:11]1040 (4) - 63904 [22:50:11]1012 (4) - 03.06.2024 16:50 [22:50:11]1206 (1) - 0 [22:50:11]OFD Sender: Remove packet 63904 [22:50:11]ProducePacketName [22:50:11]name=ofd_packets/00063904 [22:50:11]NVStorageDeleteData [22:50:11]Write to MH i2c: 01 00 00 A9 00 A9 [22:50:11]Write i2c OK [22:50:11]MH_I2C_Read... [22:50:11]Read from MH i2c: 01 [22:50:11]MH_I2C_Read... [22:50:11]Read from MH i2c: 01 07 00 [22:50:11]MH_I2C_Read... [22:50:11]Read from MH i2c: 01 07 00 A9 00 00 00 00 00 00 AD 0C 69 [22:50:11]RasterBufferAndPrint [22:50:11]line [22:50:11]line [22:50:11]line [22:50:11]line [22:50:11]line [22:50:11]written 0, free lines is 3264 [22:50:11]MH_Cut [22:50:11]Write to MH i2c: D1 01 00 B0 00 01 82 [22:50:11]Write i2c OK [22:50:11]MH_I2C_Read... [22:50:11]Read from MH i2c: D1 [22:50:11]MH_I2C_Read... [22:50:11]Read from MH i2c: D1 01 00 [22:50:11]MH_I2C_Read... [22:50:11]Read from MH i2c: D1 01 00 B0 00 00 81 [22:50:11]Write to MH i2c: 01 00 00 B1 00 B1 [22:50:11]Write i2c OK [22:50:11]MH_I2C_Read... [22:50:11]OFD Sender: No OFD packet to send [22:50:11]*** Cut start [22:50:11]*** Partial cut [22:50:11]*** CUTSNS_PIN = 1 [22:50:11]*** CUTSNS_PIN = 0 [22:50:12]*** Brake cut motor [22:50:12]Read from MH i2c: 01 *** Stop cut motor [22:50:12] [22:50:12]*** Cut end [22:50:12]MH_I2C_Read... [22:50:12]Read from MH i2c: 01 07 00 [22:50:12]MH_I2C_Read... [22:50:12]Read from MH i2c: 01 07 00 B1 00 00 00 00 00 00 FF 0F C6 [22:50:12]process_action close_receipt done [22:50:12]requested_data is exist [22:50:12]produce_requested_data [22:50:12]requested_item fm.sn is exist - process it [22:50:12]wFMCommunicate request_size=4 [22:50:12]MH_SAM_APDU [22:50:12]CAPDU: 80 11 00 00 [22:50:12]Write to MH i2c: E2 08 00 B2 00 80 11 00 00 00 00 00 00 2C [22:50:12]Write i2c OK [22:50:12]MH_I2C_Read... [22:50:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:50:12]Read from MH i2c: E2 [22:50:12]MH_I2C_Read... [22:50:12]Read from MH i2c: E2 17 00 [22:50:12]MH_I2C_Read... [22:50:12]Read from MH i2c: E2 17 00 B2 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 7E [22:50:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [22:50:12]wFMCommunicate OK [22:50:12]requested_item fd.num is exist - process it [22:50:12]SAM_PROTO_GetFieldsCounters [22:50:12]wFMCommunicate request_size=4 [22:50:12]MH_SAM_APDU [22:50:12]CAPDU: 80 13 00 00 [22:50:12]Write to MH i2c: E2 08 00 B3 00 80 13 00 00 00 00 00 00 2F [22:50:12]Write i2c OK [22:50:12]MH_I2C_Read... [22:50:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:50:12]Read from MH i2c: E2 [22:50:12]MH_I2C_Read... [22:50:12]Read from MH i2c: E2 62 00 [22:50:12]MH_I2C_Read... [22:50:12]Read from MH i2c: E2 62 00 B3 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 A0 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 A2 00 00 00 5E 04 04 00 A2 00 00 00 57 04 04 00 A3 00 00 00 19 04 04 00 00 00 00 00 90 00 47 [22:50: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 A0 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 A2 00 00 00 5E 04 04 00 A2 00 00 00 57 04 04 00 A3 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:50:12]wFMCommunicate OK [22:50:12]SAM_PROTO_GetFieldsCounters done [22:50:12]requested_item shift.num is exist - process it [22:50:12]requested_item shift.opened is exist - process it [22:50:12]req_shift_opened [22:50:12]FM_GetShiftState [22:50:12]SAM_PROTO_GetShiftState [22:50:12]wFMCommunicate request_size=4 [22:50:12]MH_SAM_APDU [22:50:12]CAPDU: 80 13 01 00 [22:50:12]Write to MH i2c: E2 08 00 B4 00 80 13 01 00 00 00 00 00 31 [22:50:12]Write i2c OK [22:50:12]MH_I2C_Read... [22:50:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:50:12]Read from MH i2c: E2 [22:50:12]MH_I2C_Read... [22:50:12]Read from MH i2c: E2 0E 00 [22:50:12]MH_I2C_Read... [22:50:12]Read from MH i2c: E2 0E 00 B4 00 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 FD [22:50:12]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [22:50:12]wFMCommunicate OK [22:50:12]SAM_PROTO_GetShiftState done [22:50:12]FM_GetShiftState done [22:50:12]req_shift_opened done [22:50:12]requested_item shift.open_date is exist - process it [22:50:12]req_shift_open_date [22:50:12]req_shift_open_date done [22:50:12]produce_requested_data done [22:50:12]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63904,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [22:50:12]process_action_free close_receipt [22:50:12]json_value_free [22:50:12]json_value_free done [22:50:12]process_json_proto returns [22:50:12]Send response to host [22:50:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63904,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [22:50:12]free response buf [22:50:12]execute_script done [22:50:12]execute_script returns [22:50:12]free content buf [22:50:12]Sock 9.Close socket [22:50:12]Sock 9.Thread stoped [22:50:16]OFD Sender: No OFD packet to send [22:50:17]accept exits with 8 [22:50:17]New connection [22:50:17]New thread 3067116900 created [22:50:17]Thread 3066973540 joined [22:50:17]Waiting for new connection... [22:50:17] Sock 8.Parse request [22:50:17]Sock 8.Check first char [22:50:17]Sock 8.First char is OK [22:50:17]request: POST /json_proto HTTP/1.0 [22:50:17]Method: POST [22:50:17]URL: /json_proto [22:50:17]Method is POST - this is cgi request [22:50:17]url: /json_proto [22:50:17]query_string will be loaded in cgi processing [22:50:17]execute_cgi json_proto POST (null) [22:50:17]execute_cgi path=json_proto method=POST [22:50:17]POST find Content-Length [22:50:17]Host: 172.17.60.69:8080 [22:50:17]Content-Length: 620 [22:50:17]Content-Type: application/json [22:50:17] [22:50:17]POST finish read [22:50:17]Found Content-Length = 620 [22:50:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73473", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:50:17]execute_script... [22:50:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73473", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:50:17]POST & json_proto [22:50:17]process_json_proto [22:50:17]json parsed OK: [22:50:17]protocol is kg_v1.0 [22:50:17]action value=close_receipt [22:50:17]process_action close_receipt [22:50:17]cmd_close_receipt [22:50:17]MH_GetDate [22:50:17]Write to MH i2c: F0 00 00 B5 00 A4 [22:50:17]Write i2c OK [22:50:17]MH_I2C_Read... [22:50:17]Read from MH i2c: F0 [22:50:17]MH_I2C_Read... [22:50:17]Read from MH i2c: F0 09 00 [22:50:17]MH_I2C_Read... [22:50:17]Read from MH i2c: F0 09 00 B5 00 00 AA 48 5E 66 6A 96 4A 66 13 [22:50:17]GetLastDocTimeStamp 1717455009 [22:50:17]current date 1717455018 [22:50:17]FM_GetShiftState [22:50:17]SAM_PROTO_GetShiftState [22:50:17]wFMCommunicate request_size=4 [22:50:17]MH_SAM_APDU [22:50:17]CAPDU: 80 13 01 00 [22:50:17]Write to MH i2c: E2 08 00 B6 00 80 13 01 00 00 00 00 00 33 [22:50:17]Write i2c OK [22:50:17]MH_I2C_Read... [22:50:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:50:17]Read from MH i2c: E2 [22:50:17]MH_I2C_Read... [22:50:17]Read from MH i2c: E2 0E 00 [22:50:17]MH_I2C_Read... [22:50:17]Read from MH i2c: E2 0E 00 B6 00 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 FF [22:50:17]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [22:50:17]wFMCommunicate OK [22:50:17]SAM_PROTO_GetShiftState done [22:50:17]FM_GetShiftState done [22:50:17]opened in 1717373173 [22:50:17]opened+sec_in_day 1717459573 [22:50:17]quantity*price = 14000 [22:50:17]sum+1 = 14001 [22:50:17]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 163 03.06.2024 22:50 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63905 ФПД: 83404681610655 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T225018&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63905&fm=83404681610655&tin=02508201610067®Number=0000000000092737&sum=14000 0 [22:50:18]StoreToDocumentArchive [22:50:18]shift 373 fd 63905 [22:50:18]save to /storage/0373/doc_00063905 [22:50:18]save last doc name /storage/0373/doc_00063905 to /storage/kkm_last_doc_name [22:50:18]save OK [22:50:18]Clear old archive folders... [22:50:18]ProcessDocumentItem done err = 0, tmpTLVsize=273 [22:50:18]tlvbuf is 00C05F50 [22:50:18]SAM_PROTO_ClearQueue [22:50:18]wFMCommunicate request_size=4 [22:50:18]MH_SAM_APDU [22:50:18]CAPDU: 80 09 00 00 [22:50:18]Write to MH i2c: E2 08 00 C3 00 80 09 00 00 00 00 00 00 35 [22:50:18]Write i2c OK [22:50:18]MH_I2C_Read... [22:50:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:50:18]Read from MH i2c: E2 [22:50:18]MH_I2C_Read... [22:50:18]Read from MH i2c: E2 03 00 [22:50:18]MH_I2C_Read... [22:50:18]Read from MH i2c: E2 03 00 C3 00 00 90 00 37 [22:50:18]RAPDU: 90 00 [22:50:18]wFMCommunicate OK [22:50:18]SAM_PROTO_ClearQueue done [22:50:18]KKMCreateOFDPacket [22:50:18]OFDProtocolAddRootSTLVToBuf [22:50:18]FM_MakeSignedData [22:50:18]FM_MakeSignedData [22:50:18]SAM_PROTO_SignData [22:50:18]wFMCommunicate request_size=4 [22:50:18]MH_SAM_APDU [22:50:18]CAPDU: 80 0D 01 02 [22:50:18]Write to MH i2c: E2 08 00 C4 00 80 0D 01 02 00 00 00 00 3D [22:50:18]Write i2c OK [22:50:18]MH_I2C_Read... [22:50:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:50:18]Read from MH i2c: E2 [22:50:18]MH_I2C_Read... [22:50:18]Read from MH i2c: E2 03 00 [22:50:18]MH_I2C_Read... [22:50:18]Read from MH i2c: E2 03 00 C4 00 00 90 00 38 [22:50:18]RAPDU: 90 00 [22:50:18]wFMCommunicate OK [22:50:18]wFMCommunicate request_size=255 [22:50:18]MH_SAM_APDU [22:50:18]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 AA 48 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 [22:50:18]Write to MH i2c: E2 02 01 C5 00 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 AA 48 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 00 00 04 [22:50:18]Write i2c OK [22:50:18]MH_I2C_Read... [22:50:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:50:18]Read from MH i2c: E2 [22:50:18]MH_I2C_Read... [22:50:18]Read from MH i2c: E2 03 00 [22:50:18]MH_I2C_Read... [22:50:18]Read from MH i2c: E2 03 00 C5 00 00 90 00 39 [22:50:18]RAPDU: 90 00 [22:50:18]wFMCommunicate OK [22:50:18]wFMCommunicate request_size=32 [22:50:18]MH_SAM_APDU [22:50:18]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 35 30 37 34 10 04 04 00 A1 F9 00 00 35 04 06 00 4B DB 2A 6B 85 9F [22:50:18]Write to MH i2c: E2 23 00 C6 00 80 0D 02 02 1B 00 30 30 30 38 37 35 30 37 34 10 04 04 00 A1 F9 00 00 35 04 06 00 4B DB 2A 6B 85 9F 00 00 15 [22:50:18]Write i2c OK [22:50:18]MH_I2C_Read... [22:50:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:50:18]Read from MH i2c: E2 [22:50:18]MH_I2C_Read... [22:50:18]Read from MH i2c: E2 03 00 [22:50:18]MH_I2C_Read... [22:50:18]Read from MH i2c: E2 03 00 C6 00 00 90 00 3A [22:50:18]RAPDU: 90 00 [22:50:18]wFMCommunicate OK [22:50:18]wFMCommunicate request_size=4 [22:50:18]MH_SAM_APDU [22:50:18]CAPDU: 80 0D 03 02 [22:50:18]Write to MH i2c: E2 08 00 C7 00 80 0D 03 02 00 00 00 00 42 [22:50:18]Write i2c OK [22:50:18]MH_I2C_Read... [22:50:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:50:19]Read from MH i2c: E2 [22:50:19]MH_I2C_Read... [22:50:19]Read from MH i2c: E2 0B 00 [22:50:19]MH_I2C_Read... [22:50:19]Read from MH i2c: E2 0B 00 C7 00 00 B0 ED F3 B9 BC BC 76 9D 90 00 17 [22:50:19]RAPDU: B0 ED F3 B9 BC BC 76 9D 90 00 [22:50:19]wFMCommunicate OK [22:50:19]SAM_PROTO_SignData done [22:50:19]FM_MakeSignedData done [22:50:19]CreateOFDProtocolMessage [22:50:19]wFMCommunicate request_size=4 [22:50:19]MH_SAM_APDU [22:50:19]CAPDU: 80 11 00 00 [22:50:19]Write to MH i2c: E2 08 00 C8 00 80 11 00 00 00 00 00 00 42 [22:50:19]Write i2c OK [22:50:19]MH_I2C_Read... [22:50:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:50:19]Read from MH i2c: E2 [22:50:19]MH_I2C_Read... [22:50:19]Read from MH i2c: E2 17 00 [22:50:19]MH_I2C_Read... [22:50:19]Read from MH i2c: E2 17 00 C8 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 94 [22:50:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [22:50:19]wFMCommunicate OK [22:50:19]CreateOFDProtocolMessage done [22:50:19]OFDSenderStorePacket 63905 [22:50:19]StoreOFDPacket docnum=63905 [22:50:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 25 01 00 00 51 71 1D 01 15 A9 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 AA 48 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 A1 F9 00 00 35 04 06 00 4B DB 2A 6B 85 9F B0 ED F3 B9 BC BC 76 9D [22:50:19]CheckFolder [22:50:19]dirname=/storage/ofd_packets [22:50:19]CheckFolder done [22:50:19]ProducePacketName [22:50:19]name=ofd_packets/00063905 [22:50:19]NVStorageSaveData ofd_packets/00063905 [22:50:19]File name is /storage/ofd_packets/00063905 [22:50:19]Write 323 bytes [22:50:19]NVStorageSaveData done [22:50:19]OFDSenderStorePacket done [22:50:19]KKMCreateOFDPacket done [22:50:19]NVStorageSaveData kkm_last_timestamp [22:50:19]File name is /storage/kkm_last_timestamp [22:50:19]Write 4 bytes [22:50:19]NVStorageSaveData done [22:50:19]ExternCall_PrintAddStr [22:50:19]wPrintStart [22:50:19]Write to MH i2c: 01 00 00 C9 00 C9 [22:50:19]Write i2c OK [22:50:19]MH_I2C_Read... [22:50:19]Read from MH i2c: 01 [22:50:19]MH_I2C_Read... [22:50:19]Read from MH i2c: 01 07 00 [22:50:19]MH_I2C_Read... [22:50:19]Read from MH i2c: 01 07 00 C9 00 00 00 00 00 00 FF 0F DE [22:50:19]RasterBufferAndPrint [22:50:19]line Счет N : (3)73473 [22:50:19]line ИНН: 02508201610067 [22:50:19]line Контрольно-Кассовый Чек [22:50:19]line ПРОДАЖА [22:50:19]line Товар: 48743570 [22:50:19]line Сигареты Winston XStyle Blue [22:50:19]line 1.000 * 140.00 [22:50:19]line = 140.00 [22:50:19]line НДС 12% НСП 1% [22:50:19]line > о реализуемом товаре [22:50:19]line ИТОГО: 140.00 [22:50:19]line НСП 1% : 1.24 [22:50:19]line НДС 12% : 14.87 [22:50:19]line Наличными: 140.00 [22:50:19]line Безнал.: 0.00 [22:50:19]line Место: АЗС № 117 "Партнер Нефть" [22:50:19]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [22:50:19]line СНО: Общий режим [22:50:19]line Чек 163 03.06.2024 22:50 [22:50:19]line Смена: 373 ФФД: 1.0 [22:50:19]line ЗНМ: 0300000031 [22:50:19]line РНМ: 0000000000092737 [22:50:19]line Версия ККМ: 001 [22:50:19]line ФМ: 0000000000875074 [22:50:19]line ФД: 63905 [22:50:19]line ФПД: 83404681610655 [22:50:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T225018&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63905&fm=83404681610655&tin=02508201610067®Number=0000000000092737&sum=14000 [22:50:19]line 0 [22:50:19]OFD Sender: Processing packet 63905 [packets to send 14, broken 13] [22:50:19]ProducePacketName [22:50:19]name=ofd_packets/00063905 [22:50:19]OFD Sender: To server: pG, [22:50:19]CommunicateWithHost lk.salyk.kg:30040 [22:50:19]ConnectInit lk.salyk.kg [22:50:19]written 0, free lines is 4095 [22:50:19]Connected sock=10 [22:50:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 25 01 00 00 51 71 1D 01 15 A9 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 AA 48 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 A1 F9 00 00 35 04 06 00 4B DB 2A 6B 85 9F B0 ED F3 B9 BC BC 76 9D [22:50:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 F3 2E 47 00 84 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 35 30 37 34 10 04 04 00 A1 F9 00 00 F4 03 04 00 7A F4 5D 66 B6 04 01 00 00 AE A8 1F DC 1D 47 91 04 [22:50:19]CommunicateWithHost err = 0 [22:50:19]CheckOFDResponse [22:50:19]1017 (14) - 77093643461234 [22:50:19]1041 (16) - 0000000000875074 [22:50:19]1040 (4) - 63905 [22:50:19]1012 (4) - 03.06.2024 16:51 [22:50:19]1206 (1) - 0 [22:50:19]OFD Sender: Remove packet 63905 [22:50:19]ProducePacketName [22:50:19]name=ofd_packets/00063905 [22:50:19]NVStorageDeleteData [22:50:19]Write to MH i2c: 01 00 00 F1 00 F1 [22:50:19]Write i2c OK [22:50:19]MH_I2C_Read... [22:50:19]Read from MH i2c: 01 [22:50:19]MH_I2C_Read... [22:50:19]Read from MH i2c: 01 07 00 [22:50:19]MH_I2C_Read... [22:50:19]Read from MH i2c: 01 07 00 F1 00 00 00 00 00 00 05 0D 0A [22:50:19]RasterBufferAndPrint [22:50:19]line [22:50:19]line [22:50:19]line [22:50:19]line [22:50:19]line [22:50:19]written 0, free lines is 3362 [22:50:19]MH_Cut [22:50:19]Write to MH i2c: D1 01 00 F8 00 01 CA [22:50:19]Write i2c OK [22:50:19]MH_I2C_Read... [22:50:19]Read from MH i2c: D1 [22:50:19]MH_I2C_Read... [22:50:19]Read from MH i2c: D1 01 00 [22:50:19]MH_I2C_Read... [22:50:19]Read from MH i2c: D1 01 00 F8 00 00 C9 [22:50:19]Write to MH i2c: 01 00 00 F9 00 F9 [22:50:19]Write i2c OK [22:50:19]MH_I2C_Read... [22:50:20]OFD Sender: No OFD packet to send [22:50:20]*** Cut start [22:50:20]*** Partial cut [22:50:20]*** CUTSNS_PIN = 1 [22:50:20]*** CUTSNS_PIN = 0 [22:50:20]*** Brake cut motor [22:50:21]Read from MH i2c: 01 [22:50:21]MH_I2C_Read... [22:50:21]*** Stop cut motor [22:50:21]*** Cut end [22:50:21]Read from MH i2c: 01 07 00 [22:50:21]MH_I2C_Read... [22:50:21]Read from MH i2c: 01 07 00 F9 00 00 00 00 00 00 FF 0F 0E [22:50:21]process_action close_receipt done [22:50:21]requested_data is exist [22:50:21]produce_requested_data [22:50:21]requested_item fm.sn is exist - process it [22:50:21]wFMCommunicate request_size=4 [22:50:21]MH_SAM_APDU [22:50:21]CAPDU: 80 11 00 00 [22:50:21]Write to MH i2c: E2 08 00 FA 00 80 11 00 00 00 00 00 00 74 [22:50:21]Write i2c OK [22:50:21]MH_I2C_Read... [22:50:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:50:21]Read from MH i2c: E2 [22:50:21]MH_I2C_Read... [22:50:21]Read from MH i2c: E2 17 00 [22:50:21]MH_I2C_Read... [22:50:21]Read from MH i2c: E2 17 00 FA 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 C6 [22:50:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [22:50:21]wFMCommunicate OK [22:50:21]requested_item fd.num is exist - process it [22:50:21]SAM_PROTO_GetFieldsCounters [22:50:21]wFMCommunicate request_size=4 [22:50:21]MH_SAM_APDU [22:50:21]CAPDU: 80 13 00 00 [22:50:21]Write to MH i2c: E2 08 00 FB 00 80 13 00 00 00 00 00 00 77 [22:50:21]Write i2c OK [22:50:21]MH_I2C_Read... [22:50:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:50:21]Read from MH i2c: E2 [22:50:21]MH_I2C_Read... [22:50:21]Read from MH i2c: E2 62 00 [22:50:21]MH_I2C_Read... [22:50:21]Read from MH i2c: E2 62 00 FB 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 A1 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 A3 00 00 00 5E 04 04 00 A3 00 00 00 57 04 04 00 A4 00 00 00 19 04 04 00 00 00 00 00 90 00 93 [22:50: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 A1 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 A3 00 00 00 5E 04 04 00 A3 00 00 00 57 04 04 00 A4 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:50:21]wFMCommunicate OK [22:50:21]SAM_PROTO_GetFieldsCounters done [22:50:21]requested_item shift.num is exist - process it [22:50:21]requested_item shift.opened is exist - process it [22:50:21]req_shift_opened [22:50:21]FM_GetShiftState [22:50:21]SAM_PROTO_GetShiftState [22:50:21]wFMCommunicate request_size=4 [22:50:21]MH_SAM_APDU [22:50:21]CAPDU: 80 13 01 00 [22:50:21]Write to MH i2c: E2 08 00 FC 00 80 13 01 00 00 00 00 00 79 [22:50:21]Write i2c OK [22:50:21]MH_I2C_Read... [22:50:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:50:21]Read from MH i2c: E2 [22:50:21]MH_I2C_Read... [22:50:21]Read from MH i2c: E2 0E 00 [22:50:21]MH_I2C_Read... [22:50:21]Read from MH i2c: E2 0E 00 FC 00 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 45 [22:50:21]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [22:50:21]wFMCommunicate OK [22:50:21]SAM_PROTO_GetShiftState done [22:50:21]FM_GetShiftState done [22:50:21]req_shift_opened done [22:50:21]requested_item shift.open_date is exist - process it [22:50:21]req_shift_open_date [22:50:21]req_shift_open_date done [22:50:21]produce_requested_data done [22:50:21]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63905,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [22:50:21]process_action_free close_receipt [22:50:21]json_value_free [22:50:21]json_value_free done [22:50:21]process_json_proto returns [22:50:21]Send response to host [22:50:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63905,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [22:50:21]free response buf [22:50:21]execute_script done [22:50:21]execute_script returns [22:50:21]free content buf [22:50:21]Sock 8.Close socket [22:50:21]Sock 8.Thread stoped [22:50:25]OFD Sender: No OFD packet to send [22:50:30]OFD Sender: No OFD packet to send [22:50:35]OFD Sender: No OFD packet to send [22:50:40]OFD Sender: No OFD packet to send [22:50:45]OFD Sender: No OFD packet to send [22:50:50]OFD Sender: No OFD packet to send [22:50:55]OFD Sender: No OFD packet to send [22:51:00]OFD Sender: No OFD packet to send [22:51:05]OFD Sender: No OFD packet to send [22:51:10]OFD Sender: No OFD packet to send [22:51:15]OFD Sender: No OFD packet to send [22:51:20]OFD Sender: No OFD packet to send [22:51:25]OFD Sender: No OFD packet to send [22:51:30]OFD Sender: No OFD packet to send [22:51:35]OFD Sender: No OFD packet to send [22:51:40]OFD Sender: No OFD packet to send [22:51:45]OFD Sender: No OFD packet to send [22:51:50]OFD Sender: No OFD packet to send [22:51:55]OFD Sender: No OFD packet to send [22:52:00]OFD Sender: No OFD packet to send [22:52:05]OFD Sender: No OFD packet to send [22:52:10]OFD Sender: No OFD packet to send [22:52:15]OFD Sender: No OFD packet to send [22:52:20]OFD Sender: No OFD packet to send [22:52:25]OFD Sender: No OFD packet to send [22:52:30]OFD Sender: No OFD packet to send [22:52:35]OFD Sender: No OFD packet to send [22:52:40]OFD Sender: No OFD packet to send [22:52:45]OFD Sender: No OFD packet to send [22:52:50]OFD Sender: No OFD packet to send [22:52:55]OFD Sender: No OFD packet to send [22:53:00]OFD Sender: No OFD packet to send [22:53:05]OFD Sender: No OFD packet to send [22:53:07]accept exits with 9 [22:53:07]New connection [22:53:07]New thread 3066973540 created [22:53:07]Thread 3067116900 joined [22:53:07]Waiting for new connection... [22:53:07] Sock 9.Parse request [22:53:07]Sock 9.Check first char [22:53:07]Sock 9.First char is OK [22:53:07]request: POST /json_proto HTTP/1.0 [22:53:07]Method: POST [22:53:07]URL: /json_proto [22:53:07]Method is POST - this is cgi request [22:53:07]url: /json_proto [22:53:07]query_string will be loaded in cgi processing [22:53:07]execute_cgi json_proto POST (null) [22:53:07]execute_cgi path=json_proto method=POST [22:53:07]POST find Content-Length [22:53:07]Host: 172.17.60.69:8080 [22:53:07]Content-Length: 683 [22:53:07]Content-Type: application/json [22:53:07] [22:53:07]POST finish read [22:53:07]Found Content-Length = 683 [22:53:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73474", "tax_sys" : 0, "items" : [ { "code": "5449000027450", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 75.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:53:07]execute_script... [22:53:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73474", "tax_sys" : 0, "items" : [ { "code": "5449000027450", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 75.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:53:07]POST & json_proto [22:53:07]process_json_proto [22:53:07]json parsed OK: [22:53:07]protocol is kg_v1.0 [22:53:07]action value=close_receipt [22:53:07]process_action close_receipt [22:53:07]cmd_close_receipt [22:53:07]MH_GetDate [22:53:07]Write to MH i2c: F0 00 00 FD 00 EC [22:53:07]Write i2c OK [22:53:07]MH_I2C_Read... [22:53:07]Read from MH i2c: F0 [22:53:07]MH_I2C_Read... [22:53:07]Read from MH i2c: F0 09 00 [22:53:07]MH_I2C_Read... [22:53:07]Read from MH i2c: F0 09 00 FD 00 00 54 49 5E 66 6A 96 4A 66 06 [22:53:07]GetLastDocTimeStamp 1717455018 [22:53:07]current date 1717455188 [22:53:07]FM_GetShiftState [22:53:07]SAM_PROTO_GetShiftState [22:53:07]wFMCommunicate request_size=4 [22:53:07]MH_SAM_APDU [22:53:07]CAPDU: 80 13 01 00 [22:53:07]Write to MH i2c: E2 08 00 FE 00 80 13 01 00 00 00 00 00 7B [22:53:07]Write i2c OK [22:53:07]MH_I2C_Read... [22:53:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:53:07]Read from MH i2c: E2 [22:53:07]MH_I2C_Read... [22:53:07]Read from MH i2c: E2 0E 00 [22:53:07]MH_I2C_Read... [22:53:07]Read from MH i2c: E2 0E 00 FE 00 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 47 [22:53:07]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [22:53:07]wFMCommunicate OK [22:53:07]SAM_PROTO_GetShiftState done [22:53:07]FM_GetShiftState done [22:53:07]opened in 1717373173 [22:53:07]opened+sec_in_day 1717459573 [22:53:07]quantity*price = 7500 [22:53:07]sum+1 = 7501 [22:53:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 75.00 НСП 1% : 0.66 НДС 12% : 7.96 Наличными: 75.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 164 03.06.2024 22:53 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63906 ФПД: 276831598657928 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T225308&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63906&fm=276831598657928&tin=02508201610067®Number=0000000000092737&sum=7500 0 [22:53:09]StoreToDocumentArchive [22:53:09]shift 373 fd 63906 [22:53:09]save to /storage/0373/doc_00063906 [22:53:09]save last doc name /storage/0373/doc_00063906 to /storage/kkm_last_doc_name [22:53:09]save OK [22:53:09]Clear old archive folders... [22:53:09]ProcessDocumentItem done err = 0, tmpTLVsize=295 [22:53:09]tlvbuf is 00BD9910 [22:53:09]SAM_PROTO_ClearQueue [22:53:09]wFMCommunicate request_size=4 [22:53:09]MH_SAM_APDU [22:53:09]CAPDU: 80 09 00 00 [22:53:09]Write to MH i2c: E2 08 00 0B 01 80 09 00 00 00 00 00 00 7E [22:53:09]Write i2c OK [22:53:09]MH_I2C_Read... [22:53:09]Read from MH i2c: E2 [22:53:09]MH_I2C_Read... [22:53:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:53:09]Read from MH i2c: E2 03 00 [22:53:09]MH_I2C_Read... [22:53:09]Read from MH i2c: E2 03 00 0B 01 00 90 00 80 [22:53:09]RAPDU: 90 00 [22:53:09]wFMCommunicate OK [22:53:09]SAM_PROTO_ClearQueue done [22:53:09]KKMCreateOFDPacket [22:53:09]OFDProtocolAddRootSTLVToBuf [22:53:09]FM_MakeSignedData [22:53:09]FM_MakeSignedData [22:53:09]SAM_PROTO_SignData [22:53:09]wFMCommunicate request_size=4 [22:53:09]MH_SAM_APDU [22:53:09]CAPDU: 80 0D 01 02 [22:53:09]Write to MH i2c: E2 08 00 0C 01 80 0D 01 02 00 00 00 00 86 [22:53:09]Write i2c OK [22:53:09]MH_I2C_Read... [22:53:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:53:09]Read from MH i2c: E2 [22:53:09]MH_I2C_Read... [22:53:09]Read from MH i2c: E2 03 00 [22:53:09]MH_I2C_Read... [22:53:09]Read from MH i2c: E2 03 00 0C 01 00 90 00 81 [22:53:09]RAPDU: 90 00 [22:53:09]wFMCommunicate OK [22:53:09]wFMCommunicate request_size=255 [22:53:09]MH_SAM_APDU [22:53:09]CAPDU: 80 0D 02 02 FA 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 54 49 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 [22:53:09]Write to MH i2c: E2 02 01 0D 01 80 0D 02 02 FA 00 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 54 49 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 00 00 46 [22:53:09]Write i2c OK [22:53:09]MH_I2C_Read... [22:53:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:53:09]Read from MH i2c: E2 [22:53:09]MH_I2C_Read... [22:53:09]Read from MH i2c: E2 03 00 [22:53:09]MH_I2C_Read... [22:53:09]Read from MH i2c: E2 03 00 0D 01 00 90 00 82 [22:53:09]RAPDU: 90 00 [22:53:09]wFMCommunicate OK [22:53:09]wFMCommunicate request_size=54 [22:53:09]MH_SAM_APDU [22:53:09]CAPDU: 80 0D 02 02 31 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 A2 F9 00 00 35 04 06 00 FB C6 E1 19 C1 88 [22:53:09]Write to MH i2c: E2 39 00 0E 01 80 0D 02 02 31 00 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 A2 F9 00 00 35 04 06 00 FB C6 E1 19 C1 88 00 00 51 [22:53:09]Write i2c OK [22:53:09]MH_I2C_Read... [22:53:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:53:09]Read from MH i2c: E2 [22:53:09]MH_I2C_Read... [22:53:09]Read from MH i2c: E2 03 00 [22:53:09]MH_I2C_Read... [22:53:09]Read from MH i2c: E2 03 00 0E 01 00 90 00 83 [22:53:09]RAPDU: 90 00 [22:53:09]wFMCommunicate OK [22:53:09]wFMCommunicate request_size=4 [22:53:09]MH_SAM_APDU [22:53:09]CAPDU: 80 0D 03 02 [22:53:09]Write to MH i2c: E2 08 00 0F 01 80 0D 03 02 00 00 00 00 8B [22:53:09]Write i2c OK [22:53:09]MH_I2C_Read... [22:53:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:53:09]Read from MH i2c: E2 [22:53:09]MH_I2C_Read... [22:53:09]Read from MH i2c: E2 0B 00 [22:53:09]MH_I2C_Read... [22:53:09]Read from MH i2c: E2 0B 00 0F 01 00 78 70 5F 5E 24 92 6C 89 90 00 DC [22:53:09]RAPDU: 78 70 5F 5E 24 92 6C 89 90 00 [22:53:09]wFMCommunicate OK [22:53:09]SAM_PROTO_SignData done [22:53:09]FM_MakeSignedData done [22:53:09]CreateOFDProtocolMessage [22:53:09]wFMCommunicate request_size=4 [22:53:09]MH_SAM_APDU [22:53:09]CAPDU: 80 11 00 00 [22:53:09]Write to MH i2c: E2 08 00 10 01 80 11 00 00 00 00 00 00 8B [22:53:09]Write i2c OK [22:53:09]MH_I2C_Read... [22:53:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:53:09]Read from MH i2c: E2 [22:53:09]MH_I2C_Read... [22:53:09]Read from MH i2c: E2 17 00 [22:53:09]MH_I2C_Read... [22:53:09]Read from MH i2c: E2 17 00 10 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 DD [22:53:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [22:53:09]wFMCommunicate OK [22:53:09]CreateOFDProtocolMessage done [22:53:09]OFDSenderStorePacket 63906 [22:53:09]StoreOFDPacket docnum=63906 [22:53:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 3B 01 00 00 CF FE 33 01 EE 2A 5A 03 01 00 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 54 49 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 A2 F9 00 00 35 04 06 00 FB C6 E1 19 C1 88 78 70 5F 5E 24 92 6C 89 [22:53:09]CheckFolder [22:53:09]dirname=/storage/ofd_packets [22:53:09]CheckFolder done [22:53:09]ProducePacketName [22:53:09]name=ofd_packets/00063906 [22:53:09]NVStorageSaveData ofd_packets/00063906 [22:53:09]File name is /storage/ofd_packets/00063906 [22:53:09]Write 345 bytes [22:53:09]NVStorageSaveData done [22:53:09]OFDSenderStorePacket done [22:53:09]KKMCreateOFDPacket done [22:53:09]NVStorageSaveData kkm_last_timestamp [22:53:09]File name is /storage/kkm_last_timestamp [22:53:09]Write 4 bytes [22:53:09]NVStorageSaveData done [22:53:09]ExternCall_PrintAddStr [22:53:09]wPrintStart [22:53:09]Write to MH i2c: 01 00 00 11 01 12 [22:53:09]Write i2c OK [22:53:09]MH_I2C_Read... [22:53:09]Read from MH i2c: 01 [22:53:09]MH_I2C_Read... [22:53:09]Read from MH i2c: 01 07 00 [22:53:09]MH_I2C_Read... [22:53:09]Read from MH i2c: 01 07 00 11 01 00 00 00 00 00 FF 0F 27 [22:53:09]RasterBufferAndPrint [22:53:09]line Счет N : (3)73474 [22:53:09]line ИНН: 02508201610067 [22:53:09]line Контрольно-Кассовый Чек [22:53:09]line ПРОДАЖА [22:53:09]line Товар: 5449000027450 [22:53:09]line Напиток FuzeTea чай манго,ром 0,5л [22:53:09]line 1.000 * 75.00 [22:53:09]line = 75.00 [22:53:09]line НДС 12% НСП 1% [22:53:09]line > о реализуемом товаре [22:53:09]line ИТОГО: 75.00 [22:53:09]line НСП 1% : 0.66 [22:53:09]line НДС 12% : 7.96 [22:53:09]line Наличными: 75.00 [22:53:09]line Безнал.: 0.00 [22:53:09]line Место: АЗС № 117 "Партнер Нефть" [22:53:09]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [22:53:09]line СНО: Общий режим [22:53:09]line Чек 164 03.06.2024 22:53 [22:53:09]line Смена: 373 ФФД: 1.0 [22:53:09]line ЗНМ: 0300000031 [22:53:09]line РНМ: 0000000000092737 [22:53:09]line Версия ККМ: 001 [22:53:09]line ФМ: 0000000000875074 [22:53:09]line ФД: 63906 [22:53:09]line ФПД: 276831598657928 [22:53:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T225308&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63906&fm=276831598657928&tin=02508201610067®Number=0000000000092737&sum=7500 [22:53:09]line 0 [22:53:09]OFD Sender: Processing packet 63906 [packets to send 14, broken 13] [22:53:09]ProducePacketName [22:53:09]name=ofd_packets/00063906 [22:53:09]OFD Sender: To server: pG, [22:53:09]CommunicateWithHost lk.salyk.kg:30040 [22:53:09]ConnectInit lk.salyk.kg [22:53:09]written 0, free lines is 4095 [22:53:10]Connected sock=10 [22:53:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 3B 01 00 00 CF FE 33 01 EE 2A 5A 03 01 00 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 54 49 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 A2 F9 00 00 35 04 06 00 FB C6 E1 19 C1 88 78 70 5F 5E 24 92 6C 89 [22:53:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 17 41 47 00 A8 CE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 A2 F9 00 00 F4 03 04 00 24 F5 5D 66 B6 04 01 00 00 74 09 A5 23 ED D6 90 C6 [22:53:10]CommunicateWithHost err = 0 [22:53:10]CheckOFDResponse [22:53:10]1017 (14) - 77093643461234 [22:53:10]1041 (16) - 0000000000875074 [22:53:10]1040 (4) - 63906 [22:53:10]1012 (4) - 03.06.2024 16:53 [22:53:10]1206 (1) - 0 [22:53:10]OFD Sender: Remove packet 63906 [22:53:10]ProducePacketName [22:53:10]name=ofd_packets/00063906 [22:53:10]NVStorageDeleteData [22:53:10]Write to MH i2c: 01 00 00 3A 01 3B [22:53:10]Write i2c OK [22:53:10]MH_I2C_Read... [22:53:10]Read from MH i2c: 01 [22:53:10]MH_I2C_Read... [22:53:10]Read from MH i2c: 01 07 00 [22:53:10]MH_I2C_Read... [22:53:10]Read from MH i2c: 01 07 00 3A 01 00 00 00 00 00 D5 0C 23 [22:53:10]RasterBufferAndPrint [22:53:10]line [22:53:10]line [22:53:10]line [22:53:10]line [22:53:10]line [22:53:10]written 0, free lines is 3291 [22:53:10]MH_Cut [22:53:10]Write to MH i2c: D1 01 00 41 01 01 14 [22:53:10]Write i2c OK [22:53:10]MH_I2C_Read... [22:53:10]Read from MH i2c: D1 [22:53:10]MH_I2C_Read... [22:53:10]Read from MH i2c: D1 01 00 [22:53:10]MH_I2C_Read... [22:53:10]Read from MH i2c: D1 01 00 41 01 00 13 [22:53:10]Write to MH i2c: 01 00 00 42 01 43 [22:53:10]Write i2c OK [22:53:10]MH_I2C_Read... [22:53:10]OFD Sender: No OFD packet to send [22:53:11]*** Cut start [22:53:11]*** Partial cut [22:53:11]*** CUTSNS_PIN = 1 [22:53:11]*** CUTSNS_PIN = 0 [22:53:11]*** Brake cut motor [22:53:11]Read from MH i2c: 01 [22:53:11]MH_I2C_Read... [22:53:11]*** Stop cut motor [22:53:11]*** Cut end [22:53:11]Read from MH i2c: 01 07 00 [22:53:11]MH_I2C_Read... [22:53:11]Read from MH i2c: 01 07 00 42 01 00 00 00 00 00 FF 0F 58 [22:53:11]process_action close_receipt done [22:53:11]requested_data is exist [22:53:11]produce_requested_data [22:53:11]requested_item fm.sn is exist - process it [22:53:11]wFMCommunicate request_size=4 [22:53:11]MH_SAM_APDU [22:53:11]CAPDU: 80 11 00 00 [22:53:11]Write to MH i2c: E2 08 00 43 01 80 11 00 00 00 00 00 00 BE [22:53:11]Write i2c OK [22:53:11]MH_I2C_Read... [22:53:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:53:11]Read from MH i2c: E2 [22:53:11]MH_I2C_Read... [22:53:11]Read from MH i2c: E2 17 00 [22:53:11]MH_I2C_Read... [22:53:11]Read from MH i2c: E2 17 00 43 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 10 [22:53:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [22:53:11]wFMCommunicate OK [22:53:11]requested_item fd.num is exist - process it [22:53:11]SAM_PROTO_GetFieldsCounters [22:53:11]wFMCommunicate request_size=4 [22:53:11]MH_SAM_APDU [22:53:11]CAPDU: 80 13 00 00 [22:53:11]Write to MH i2c: E2 08 00 44 01 80 13 00 00 00 00 00 00 C1 [22:53:11]Write i2c OK [22:53:11]MH_I2C_Read... [22:53:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:53:12]Read from MH i2c: E2 [22:53:12]MH_I2C_Read... [22:53:12]Read from MH i2c: E2 62 00 [22:53:12]MH_I2C_Read... [22:53:12]Read from MH i2c: E2 62 00 44 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 A2 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 A4 00 00 00 5E 04 04 00 A4 00 00 00 57 04 04 00 A5 00 00 00 19 04 04 00 00 00 00 00 90 00 E1 [22:53: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 A2 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 A4 00 00 00 5E 04 04 00 A4 00 00 00 57 04 04 00 A5 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:53:12]wFMCommunicate OK [22:53:12]SAM_PROTO_GetFieldsCounters done [22:53:12]requested_item shift.num is exist - process it [22:53:12]requested_item shift.opened is exist - process it [22:53:12]req_shift_opened [22:53:12]FM_GetShiftState [22:53:12]SAM_PROTO_GetShiftState [22:53:12]wFMCommunicate request_size=4 [22:53:12]MH_SAM_APDU [22:53:12]CAPDU: 80 13 01 00 [22:53:12]Write to MH i2c: E2 08 00 45 01 80 13 01 00 00 00 00 00 C3 [22:53:12]Write i2c OK [22:53:12]MH_I2C_Read... [22:53:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:53:12]Read from MH i2c: E2 [22:53:12]MH_I2C_Read... [22:53:12]Read from MH i2c: E2 0E 00 [22:53:12]MH_I2C_Read... [22:53:12]Read from MH i2c: E2 0E 00 45 01 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 8F [22:53:12]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [22:53:12]wFMCommunicate OK [22:53:12]SAM_PROTO_GetShiftState done [22:53:12]FM_GetShiftState done [22:53:12]req_shift_opened done [22:53:12]requested_item shift.open_date is exist - process it [22:53:12]req_shift_open_date [22:53:12]req_shift_open_date done [22:53:12]produce_requested_data done [22:53:12]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63906,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [22:53:12]process_action_free close_receipt [22:53:12]json_value_free [22:53:12]json_value_free done [22:53:12]process_json_proto returns [22:53:12]Send response to host [22:53:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63906,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [22:53:12]free response buf [22:53:12]execute_script done [22:53:12]execute_script returns [22:53:12]free content buf [22:53:12]Sock 9.Close socket [22:53:12]Sock 9.Thread stoped [22:53:15]OFD Sender: No OFD packet to send [22:53:20]OFD Sender: No OFD packet to send [22:53:25]OFD Sender: No OFD packet to send [22:53:30]OFD Sender: No OFD packet to send [22:53:35]OFD Sender: No OFD packet to send [22:53:40]OFD Sender: No OFD packet to send [22:53:45]OFD Sender: No OFD packet to send [22:53:50]OFD Sender: No OFD packet to send [22:53:55]OFD Sender: No OFD packet to send [22:54:00]OFD Sender: No OFD packet to send [22:54:05]OFD Sender: No OFD packet to send [22:54:10]OFD Sender: No OFD packet to send [22:54:15]OFD Sender: No OFD packet to send [22:54:20]OFD Sender: No OFD packet to send [22:54:25]OFD Sender: No OFD packet to send [22:54:30]OFD Sender: No OFD packet to send [22:54:35]OFD Sender: No OFD packet to send [22:54:40]OFD Sender: No OFD packet to send [22:54:45]OFD Sender: No OFD packet to send [22:54:50]OFD Sender: No OFD packet to send [22:54:55]OFD Sender: No OFD packet to send [22:55:00]OFD Sender: No OFD packet to send [22:55:05]OFD Sender: No OFD packet to send [22:55:10]OFD Sender: No OFD packet to send [22:55:15]OFD Sender: No OFD packet to send [22:55:20]OFD Sender: No OFD packet to send [22:55:25]OFD Sender: No OFD packet to send [22:55:30]OFD Sender: No OFD packet to send [22:55:35]OFD Sender: No OFD packet to send [22:55:40]OFD Sender: No OFD packet to send [22:55:45]OFD Sender: No OFD packet to send [22:55:50]OFD Sender: No OFD packet to send [22:55:55]OFD Sender: No OFD packet to send [22:56:00]OFD Sender: No OFD packet to send [22:56:05]OFD Sender: No OFD packet to send [22:56:10]OFD Sender: No OFD packet to send [22:56:15]OFD Sender: No OFD packet to send [22:56:20]OFD Sender: No OFD packet to send [22:56:25]OFD Sender: No OFD packet to send [22:56:30]OFD Sender: No OFD packet to send [22:56:35]OFD Sender: No OFD packet to send [22:56:40]OFD Sender: No OFD packet to send [22:56:45]OFD Sender: No OFD packet to send [22:56:50]OFD Sender: No OFD packet to send [22:56:55]OFD Sender: No OFD packet to send [22:57:00]OFD Sender: No OFD packet to send [22:57:05]OFD Sender: No OFD packet to send [22:57:10]OFD Sender: No OFD packet to send [22:57:15]OFD Sender: No OFD packet to send [22:57:20]OFD Sender: No OFD packet to send [22:57:25]OFD Sender: No OFD packet to send [22:57:30]OFD Sender: No OFD packet to send [22:57:35]OFD Sender: No OFD packet to send [22:57:40]OFD Sender: No OFD packet to send [22:57:45]OFD Sender: No OFD packet to send [22:57:50]OFD Sender: No OFD packet to send [22:57:55]OFD Sender: No OFD packet to send [22:58:00]OFD Sender: No OFD packet to send [22:58:06]OFD Sender: No OFD packet to send [22:58:11]OFD Sender: No OFD packet to send [22:58:16]OFD Sender: No OFD packet to send [22:58:21]OFD Sender: No OFD packet to send [22:58:26]OFD Sender: No OFD packet to send [22:58:31]OFD Sender: No OFD packet to send [22:58:36]OFD Sender: No OFD packet to send [22:58:41]OFD Sender: No OFD packet to send [22:58:46]OFD Sender: No OFD packet to send [22:58:51]OFD Sender: No OFD packet to send [22:58:56]OFD Sender: No OFD packet to send [22:59:01]OFD Sender: No OFD packet to send [22:59:06]OFD Sender: No OFD packet to send [22:59:11]OFD Sender: No OFD packet to send [22:59:16]OFD Sender: No OFD packet to send [22:59:21]OFD Sender: No OFD packet to send [22:59:26]OFD Sender: No OFD packet to send [22:59:31]OFD Sender: No OFD packet to send [22:59:36]OFD Sender: No OFD packet to send [22:59:41]OFD Sender: No OFD packet to send [22:59:46]OFD Sender: No OFD packet to send [22:59:51]OFD Sender: No OFD packet to send [22:59:56]OFD Sender: No OFD packet to send [23:00:01]OFD Sender: No OFD packet to send [23:00:06]OFD Sender: No OFD packet to send [23:00:11]OFD Sender: No OFD packet to send [23:00:16]OFD Sender: No OFD packet to send [23:00:21]OFD Sender: No OFD packet to send [23:00:26]OFD Sender: No OFD packet to send [23:00:31]OFD Sender: No OFD packet to send [23:00:36]OFD Sender: No OFD packet to send [23:00:37]accept exits with 8 [23:00:37]New connection [23:00:37]New thread 3067116900 created [23:00:37]Thread 3066973540 joined [23:00:37]Waiting for new connection... [23:00:37] Sock 8.Parse request [23:00:37]Sock 8.Check first char [23:00:37]Sock 8.First char is OK [23:00:37]request: POST /json_proto HTTP/1.0 [23:00:37]Method: POST [23:00:37]URL: /json_proto [23:00:37]Method is POST - this is cgi request [23:00:37]url: /json_proto [23:00:37]query_string will be loaded in cgi processing [23:00:37]execute_cgi json_proto POST (null) [23:00:37]execute_cgi path=json_proto method=POST [23:00:37]POST find Content-Length [23:00:37]Host: 172.17.60.69:8080 [23:00:37]Content-Length: 660 [23:00:37]Content-Type: application/json [23:00:37] [23:00:37]POST finish read [23:00:37]Found Content-Length = 660 [23:00:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73475", "tax_sys" : 0, "items" : [ { "code": "8710732217097", "name": "\u0417\u0430\u0436\u0438\u0433\u0430\u043B\u043A\u0430 Cricket \u041F\u041D \u043F\u044C\u0435\u0437\u043E", "price" : 67.00, "quantity" : 1.000, "sum" : 67.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 67.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:00:37]execute_script... [23:00: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 : (3)73475", "tax_sys" : 0, "items" : [ { "code": "8710732217097", "name": "\u0417\u0430\u0436\u0438\u0433\u0430\u043B\u043A\u0430 Cricket \u041F\u041D \u043F\u044C\u0435\u0437\u043E", "price" : 67.00, "quantity" : 1.000, "sum" : 67.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 67.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:00:37]POST & json_proto [23:00:37]process_json_proto [23:00:37]json parsed OK: [23:00:37]protocol is kg_v1.0 [23:00:37]action value=close_receipt [23:00:37]process_action close_receipt [23:00:37]cmd_close_receipt [23:00:37]MH_GetDate [23:00:37]Write to MH i2c: F0 00 00 46 01 36 [23:00:37]Write i2c OK [23:00:37]MH_I2C_Read... [23:00:37]Read from MH i2c: F0 [23:00:37]MH_I2C_Read... [23:00:37]Read from MH i2c: F0 09 00 [23:00:37]MH_I2C_Read... [23:00:37]Read from MH i2c: F0 09 00 46 01 00 16 4B 5E 66 6A 96 4A 66 14 [23:00:37]GetLastDocTimeStamp 1717455188 [23:00:37]current date 1717455638 [23:00:37]FM_GetShiftState [23:00:37]SAM_PROTO_GetShiftState [23:00:37]wFMCommunicate request_size=4 [23:00:37]MH_SAM_APDU [23:00:37]CAPDU: 80 13 01 00 [23:00:37]Write to MH i2c: E2 08 00 47 01 80 13 01 00 00 00 00 00 C5 [23:00:37]Write i2c OK [23:00:37]MH_I2C_Read... [23:00:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:00:37]Read from MH i2c: E2 [23:00:37]MH_I2C_Read... [23:00:37]Read from MH i2c: E2 0E 00 [23:00:37]MH_I2C_Read... [23:00:37]Read from MH i2c: E2 0E 00 47 01 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 91 [23:00:37]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [23:00:37]wFMCommunicate OK [23:00:37]SAM_PROTO_GetShiftState done [23:00:37]FM_GetShiftState done [23:00:37]opened in 1717373173 [23:00:37]opened+sec_in_day 1717459573 [23:00:37]quantity*price = 6700 [23:00:37]sum+1 = 6701 [23:00:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 67.00 НСП 1% : 0.59 НДС 12% : 7.11 Наличными: 67.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 165 03.06.2024 23:00 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63907 ФПД: 84563279007845 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T230038&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63907&fm=84563279007845&tin=02508201610067®Number=0000000000092737&sum=6700 0 [23:00:39]StoreToDocumentArchive [23:00:39]shift 373 fd 63907 [23:00:39]save to /storage/0373/doc_00063907 [23:00:39]save last doc name /storage/0373/doc_00063907 to /storage/kkm_last_doc_name [23:00:39]save OK [23:00:39]Clear old archive folders... [23:00:39]ProcessDocumentItem done err = 0, tmpTLVsize=284 [23:00:39]tlvbuf is 00BF98C0 [23:00:39]SAM_PROTO_ClearQueue [23:00:39]wFMCommunicate request_size=4 [23:00:39]MH_SAM_APDU [23:00:39]CAPDU: 80 09 00 00 [23:00:39]Write to MH i2c: E2 08 00 54 01 80 09 00 00 00 00 00 00 C7 [23:00:39]Write i2c OK [23:00:39]MH_I2C_Read... [23:00:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:00:39]Read from MH i2c: E2 [23:00:39]MH_I2C_Read... [23:00:39]Read from MH i2c: E2 03 00 [23:00:39]MH_I2C_Read... [23:00:39]Read from MH i2c: E2 03 00 54 01 00 90 00 C9 [23:00:39]RAPDU: 90 00 [23:00:39]wFMCommunicate OK [23:00:39]SAM_PROTO_ClearQueue done [23:00:39]KKMCreateOFDPacket [23:00:39]OFDProtocolAddRootSTLVToBuf [23:00:39]FM_MakeSignedData [23:00:39]FM_MakeSignedData [23:00:39]SAM_PROTO_SignData [23:00:39]wFMCommunicate request_size=4 [23:00:39]MH_SAM_APDU [23:00:39]CAPDU: 80 0D 01 02 [23:00:39]Write to MH i2c: E2 08 00 55 01 80 0D 01 02 00 00 00 00 CF [23:00:39]Write i2c OK [23:00:39]MH_I2C_Read... [23:00:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:00:39]Read from MH i2c: E2 [23:00:39]MH_I2C_Read... [23:00:39]Read from MH i2c: E2 03 00 [23:00:39]MH_I2C_Read... [23:00:39]Read from MH i2c: E2 03 00 55 01 00 90 00 CA [23:00:39]RAPDU: 90 00 [23:00:39]wFMCommunicate OK [23:00:39]wFMCommunicate request_size=255 [23:00:39]MH_SAM_APDU [23:00:39]CAPDU: 80 0D 02 02 FA 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 38 37 31 30 37 33 32 32 31 37 30 39 37 06 04 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 2C 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 3B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 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 A5 00 00 00 F4 03 04 00 16 4B 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 [23:00:39]Write to MH i2c: E2 02 01 56 01 80 0D 02 02 FA 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 38 37 31 30 37 33 32 32 31 37 30 39 37 06 04 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 2C 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 3B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 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 A5 00 00 00 F4 03 04 00 16 4B 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 00 00 37 [23:00:39]Write i2c OK [23:00:39]MH_I2C_Read... [23:00:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:00:39]Read from MH i2c: E2 [23:00:39]MH_I2C_Read... [23:00:39]Read from MH i2c: E2 03 00 [23:00:39]MH_I2C_Read... [23:00:39]Read from MH i2c: E2 03 00 56 01 00 90 00 CB [23:00:39]RAPDU: 90 00 [23:00:39]wFMCommunicate OK [23:00:39]wFMCommunicate request_size=43 [23:00:39]MH_SAM_APDU [23:00:39]CAPDU: 80 0D 02 02 26 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 A3 F9 00 00 35 04 06 00 4C E8 EC 34 D0 65 [23:00:39]Write to MH i2c: E2 2E 00 57 01 80 0D 02 02 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 A3 F9 00 00 35 04 06 00 4C E8 EC 34 D0 65 00 00 DE [23:00:39]Write i2c OK [23:00:39]MH_I2C_Read... [23:00:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:00:39]Read from MH i2c: E2 [23:00:39]MH_I2C_Read... [23:00:39]Read from MH i2c: E2 03 00 [23:00:39]MH_I2C_Read... [23:00:39]Read from MH i2c: E2 03 00 57 01 00 90 00 CC [23:00:39]RAPDU: 90 00 [23:00:39]wFMCommunicate OK [23:00:39]wFMCommunicate request_size=4 [23:00:39]MH_SAM_APDU [23:00:39]CAPDU: 80 0D 03 02 [23:00:39]Write to MH i2c: E2 08 00 58 01 80 0D 03 02 00 00 00 00 D4 [23:00:39]Write i2c OK [23:00:39]MH_I2C_Read... [23:00:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:00:39]Read from MH i2c: E2 [23:00:39]MH_I2C_Read... [23:00:39]Read from MH i2c: E2 0B 00 [23:00:39]MH_I2C_Read... [23:00:39]Read from MH i2c: E2 0B 00 58 01 00 55 43 BB 3E 45 6F 72 A4 90 00 30 [23:00:39]RAPDU: 55 43 BB 3E 45 6F 72 A4 90 00 [23:00:39]wFMCommunicate OK [23:00:39]SAM_PROTO_SignData done [23:00:39]FM_MakeSignedData done [23:00:39]CreateOFDProtocolMessage [23:00:39]wFMCommunicate request_size=4 [23:00:39]MH_SAM_APDU [23:00:39]CAPDU: 80 11 00 00 [23:00:39]Write to MH i2c: E2 08 00 59 01 80 11 00 00 00 00 00 00 D4 [23:00:39]Write i2c OK [23:00:39]MH_I2C_Read... [23:00:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:00:39]Read from MH i2c: E2 [23:00:39]MH_I2C_Read... [23:00:39]Read from MH i2c: E2 17 00 [23:00:39]MH_I2C_Read... [23:00:39]Read from MH i2c: E2 17 00 59 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 26 [23:00:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [23:00:39]wFMCommunicate OK [23:00:39]CreateOFDProtocolMessage done [23:00:39]OFDSenderStorePacket 63907 [23:00:39]StoreOFDPacket docnum=63907 [23:00:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 30 01 00 00 EC 01 28 01 C0 12 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 38 37 31 30 37 33 32 32 31 37 30 39 37 06 04 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 2C 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 3B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 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 A5 00 00 00 F4 03 04 00 16 4B 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 A3 F9 00 00 35 04 06 00 4C E8 EC 34 D0 65 55 43 BB 3E 45 6F 72 A4 [23:00:39]CheckFolder [23:00:39]dirname=/storage/ofd_packets [23:00:39]CheckFolder done [23:00:39]ProducePacketName [23:00:39]name=ofd_packets/00063907 [23:00:39]NVStorageSaveData ofd_packets/00063907 [23:00:39]File name is /storage/ofd_packets/00063907 [23:00:39]Write 334 bytes [23:00:39]NVStorageSaveData done [23:00:39]OFDSenderStorePacket done [23:00:39]KKMCreateOFDPacket done [23:00:39]NVStorageSaveData kkm_last_timestamp [23:00:39]File name is /storage/kkm_last_timestamp [23:00:39]Write 4 bytes [23:00:39]NVStorageSaveData done [23:00:39]ExternCall_PrintAddStr [23:00:39]wPrintStart [23:00:39]Write to MH i2c: 01 00 00 5A 01 5B [23:00:39]Write i2c OK [23:00:39]MH_I2C_Read... [23:00:39]Read from MH i2c: 01 [23:00:39]MH_I2C_Read... [23:00:39]Read from MH i2c: 01 07 00 [23:00:39]MH_I2C_Read... [23:00:39]Read from MH i2c: 01 07 00 5A 01 00 00 00 00 00 FF 0F 70 [23:00:39]RasterBufferAndPrint [23:00:39]line Счет N : (3)73475 [23:00:39]line ИНН: 02508201610067 [23:00:39]line Контрольно-Кассовый Чек [23:00:39]line ПРОДАЖА [23:00:39]line Товар: 8710732217097 [23:00:39]line Зажигалка Cricket ПН пьезо [23:00:39]line 1.000 * 67.00 [23:00:39]line = 67.00 [23:00:39]line НДС 12% НСП 1% [23:00:39]line > о реализуемом товаре [23:00:39]line ИТОГО: 67.00 [23:00:39]line НСП 1% : 0.59 [23:00:39]line НДС 12% : 7.11 [23:00:39]line Наличными: 67.00 [23:00:39]line Безнал.: 0.00 [23:00:39]line Место: АЗС № 117 "Партнер Нефть" [23:00:39]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [23:00:39]line СНО: Общий режим [23:00:39]line Чек 165 03.06.2024 23:00 [23:00:39]line Смена: 373 ФФД: 1.0 [23:00:39]line ЗНМ: 0300000031 [23:00:39]line РНМ: 0000000000092737 [23:00:39]line Версия ККМ: 001 [23:00:39]line ФМ: 0000000000875074 [23:00:39]line ФД: 63907 [23:00:39]line ФПД: 84563279007845 [23:00:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T230038&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63907&fm=84563279007845&tin=02508201610067®Number=0000000000092737&sum=6700 [23:00:39]line 0 [23:00:39]written 0, free lines is 4095 [23:00:39]OFD Sender: Processing packet 63907 [packets to send 14, broken 13] [23:00:39]ProducePacketName [23:00:39]name=ofd_packets/00063907 [23:00:39]OFD Sender: To server: pG, [23:00:39]CommunicateWithHost lk.salyk.kg:30040 [23:00:39]ConnectInit lk.salyk.kg [23:00:40]Connected sock=9 [23:00:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 30 01 00 00 EC 01 28 01 C0 12 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 38 37 31 30 37 33 32 32 31 37 30 39 37 06 04 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 2C 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 3B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 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 A5 00 00 00 F4 03 04 00 16 4B 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 A3 F9 00 00 35 04 06 00 4C E8 EC 34 D0 65 55 43 BB 3E 45 6F 72 A4 [23:00:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 D2 03 47 00 08 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 35 30 37 34 10 04 04 00 A3 F9 00 00 F4 03 04 00 E6 F6 5D 66 B6 04 01 00 00 4E 4D 9B 44 CF 38 F1 D6 [23:00:40]CommunicateWithHost err = 0 [23:00:40]CheckOFDResponse [23:00:40]1017 (14) - 77093643461234 [23:00:40]1041 (16) - 0000000000875074 [23:00:40]1040 (4) - 63907 [23:00:40]1012 (4) - 03.06.2024 17:01 [23:00:40]1206 (1) - 0 [23:00:40]OFD Sender: Remove packet 63907 [23:00:40]ProducePacketName [23:00:40]name=ofd_packets/00063907 [23:00:40]NVStorageDeleteData [23:00:40]Write to MH i2c: 01 00 00 82 01 83 [23:00:40]Write i2c OK [23:00:40]MH_I2C_Read... [23:00:40]Read from MH i2c: 01 [23:00:40]MH_I2C_Read... [23:00:40]Read from MH i2c: 01 07 00 [23:00:40]MH_I2C_Read... [23:00:40]Read from MH i2c: 01 07 00 82 01 00 00 00 00 00 EE 0C 84 [23:00:40]RasterBufferAndPrint [23:00:40]line [23:00:40]line [23:00:40]line [23:00:40]line [23:00:40]line [23:00:40]written 0, free lines is 3319 [23:00:40]MH_Cut [23:00:40]Write to MH i2c: D1 01 00 89 01 01 5C [23:00:40]Write i2c OK [23:00:40]MH_I2C_Read... [23:00:40]Read from MH i2c: D1 [23:00:40]MH_I2C_Read... [23:00:40]Read from MH i2c: D1 01 00 [23:00:40]MH_I2C_Read... [23:00:40]Read from MH i2c: D1 01 00 89 01 00 5B [23:00:40]Write to MH i2c: 01 00 00 8A 01 8B [23:00:40]Write i2c OK [23:00:40]MH_I2C_Read... [23:00:40]OFD Sender: No OFD packet to send [23:00:41]*** Cut start [23:00:41]*** Partial cut [23:00:41]*** CUTSNS_PIN = 1 [23:00:41]*** CUTSNS_PIN = 0 [23:00:41]*** Brake cut motor [23:00:41]Read from MH i2c: 01 [23:00:41]MH_I2C_Read... [23:00:41]*** Stop cut motor [23:00:41]*** Cut end [23:00:41]Read from MH i2c: 01 07 00 [23:00:41]MH_I2C_Read... [23:00:41]Read from MH i2c: 01 07 00 8A 01 00 00 00 00 00 FF 0F A0 [23:00:41]process_action close_receipt done [23:00:41]requested_data is exist [23:00:41]produce_requested_data [23:00:41]requested_item fm.sn is exist - process it [23:00:41]wFMCommunicate request_size=4 [23:00:41]MH_SAM_APDU [23:00:41]CAPDU: 80 11 00 00 [23:00:41]Write to MH i2c: E2 08 00 8B 01 80 11 00 00 00 00 00 00 06 [23:00:41]Write i2c OK [23:00:41]MH_I2C_Read... [23:00:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:00:41]Read from MH i2c: E2 [23:00:41]MH_I2C_Read... [23:00:41]Read from MH i2c: E2 17 00 [23:00:41]MH_I2C_Read... [23:00:41]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 35 30 37 34 90 00 58 [23:00:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [23:00:41]wFMCommunicate OK [23:00:41]requested_item fd.num is exist - process it [23:00:41]SAM_PROTO_GetFieldsCounters [23:00:41]wFMCommunicate request_size=4 [23:00:41]MH_SAM_APDU [23:00:41]CAPDU: 80 13 00 00 [23:00:41]Write to MH i2c: E2 08 00 8C 01 80 13 00 00 00 00 00 00 09 [23:00:41]Write i2c OK [23:00:41]MH_I2C_Read... [23:00:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:00:42]Read from MH i2c: E2 [23:00:42]MH_I2C_Read... [23:00:42]Read from MH i2c: E2 62 00 [23:00:42]MH_I2C_Read... [23:00:42]Read from MH i2c: E2 62 00 8C 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 A3 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 A5 00 00 00 5E 04 04 00 A5 00 00 00 57 04 04 00 A6 00 00 00 19 04 04 00 00 00 00 00 90 00 2D [23:00: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 A3 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 A5 00 00 00 5E 04 04 00 A5 00 00 00 57 04 04 00 A6 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:00:42]wFMCommunicate OK [23:00:42]SAM_PROTO_GetFieldsCounters done [23:00:42]requested_item shift.num is exist - process it [23:00:42]requested_item shift.opened is exist - process it [23:00:42]req_shift_opened [23:00:42]FM_GetShiftState [23:00:42]SAM_PROTO_GetShiftState [23:00:42]wFMCommunicate request_size=4 [23:00:42]MH_SAM_APDU [23:00:42]CAPDU: 80 13 01 00 [23:00:42]Write to MH i2c: E2 08 00 8D 01 80 13 01 00 00 00 00 00 0B [23:00:42]Write i2c OK [23:00:42]MH_I2C_Read... [23:00:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:00:42]Read from MH i2c: E2 [23:00:42]MH_I2C_Read... [23:00:42]Read from MH i2c: E2 0E 00 [23:00:42]MH_I2C_Read... [23:00:42]Read from MH i2c: E2 0E 00 8D 01 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 D7 [23:00:42]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [23:00:42]wFMCommunicate OK [23:00:42]SAM_PROTO_GetShiftState done [23:00:42]FM_GetShiftState done [23:00:42]req_shift_opened done [23:00:42]requested_item shift.open_date is exist - process it [23:00:42]req_shift_open_date [23:00:42]req_shift_open_date done [23:00:42]produce_requested_data done [23:00:42]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63907,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [23:00:42]process_action_free close_receipt [23:00:42]json_value_free [23:00:42]json_value_free done [23:00:42]process_json_proto returns [23:00:42]Send response to host [23:00:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63907,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [23:00:42]free response buf [23:00:42]execute_script done [23:00:42]execute_script returns [23:00:42]free content buf [23:00:42]Sock 8.Close socket [23:00:42]Sock 8.Thread stoped [23:00:45]OFD Sender: No OFD packet to send [23:00:50]OFD Sender: No OFD packet to send [23:00:55]OFD Sender: No OFD packet to send [23:01:00]OFD Sender: No OFD packet to send [23:01:05]OFD Sender: No OFD packet to send [23:01:10]OFD Sender: No OFD packet to send [23:01:15]OFD Sender: No OFD packet to send [23:01:20]OFD Sender: No OFD packet to send [23:01:25]OFD Sender: No OFD packet to send [23:01:30]OFD Sender: No OFD packet to send [23:01:35]OFD Sender: No OFD packet to send [23:01:40]OFD Sender: No OFD packet to send [23:01:45]OFD Sender: No OFD packet to send [23:01:50]OFD Sender: No OFD packet to send [23:01:55]OFD Sender: No OFD packet to send [23:02:00]OFD Sender: No OFD packet to send [23:02:05]OFD Sender: No OFD packet to send [23:02:10]OFD Sender: No OFD packet to send [23:02:15]OFD Sender: No OFD packet to send [23:02:20]OFD Sender: No OFD packet to send [23:02:25]OFD Sender: No OFD packet to send [23:02:30]OFD Sender: No OFD packet to send [23:02:35]OFD Sender: No OFD packet to send [23:02:40]OFD Sender: No OFD packet to send [23:02:45]OFD Sender: No OFD packet to send [23:02:50]OFD Sender: No OFD packet to send [23:02:55]OFD Sender: No OFD packet to send [23:03:00]OFD Sender: No OFD packet to send [23:03:05]OFD Sender: No OFD packet to send [23:03:10]OFD Sender: No OFD packet to send [23:03:15]OFD Sender: No OFD packet to send [23:03:20]OFD Sender: No OFD packet to send [23:03:25]OFD Sender: No OFD packet to send [23:03:30]OFD Sender: No OFD packet to send [23:03:35]OFD Sender: No OFD packet to send [23:03:40]OFD Sender: No OFD packet to send [23:03:45]OFD Sender: No OFD packet to send [23:03:50]OFD Sender: No OFD packet to send [23:03:55]OFD Sender: No OFD packet to send [23:04:00]OFD Sender: No OFD packet to send [23:04:05]OFD Sender: No OFD packet to send [23:04:10]OFD Sender: No OFD packet to send [23:04:15]OFD Sender: No OFD packet to send [23:04:20]OFD Sender: No OFD packet to send [23:04:25]OFD Sender: No OFD packet to send [23:04:30]OFD Sender: No OFD packet to send [23:04:35]OFD Sender: No OFD packet to send [23:04:40]OFD Sender: No OFD packet to send [23:04:45]OFD Sender: No OFD packet to send [23:04:50]OFD Sender: No OFD packet to send [23:04:55]OFD Sender: No OFD packet to send [23:05:00]OFD Sender: No OFD packet to send [23:05:05]OFD Sender: No OFD packet to send [23:05:10]OFD Sender: No OFD packet to send [23:05:15]OFD Sender: No OFD packet to send [23:05:21]OFD Sender: No OFD packet to send [23:05:26]OFD Sender: No OFD packet to send [23:05:31]OFD Sender: No OFD packet to send [23:05:36]OFD Sender: No OFD packet to send [23:05:41]OFD Sender: No OFD packet to send [23:05:46]OFD Sender: No OFD packet to send [23:05:51]OFD Sender: No OFD packet to send [23:05:56]OFD Sender: No OFD packet to send [23:06:01]OFD Sender: No OFD packet to send [23:06:06]OFD Sender: No OFD packet to send [23:06:11]OFD Sender: No OFD packet to send [23:06:16]OFD Sender: No OFD packet to send [23:06:21]OFD Sender: No OFD packet to send [23:06:26]OFD Sender: No OFD packet to send [23:06:31]OFD Sender: No OFD packet to send [23:06:36]OFD Sender: No OFD packet to send [23:06:41]OFD Sender: No OFD packet to send [23:06:45]accept exits with 10 [23:06:45]New connection [23:06:45]New thread 3066973540 created [23:06:45]Thread 3067116900 joined [23:06:45]Waiting for new connection... [23:06:45] Sock 10.Parse request [23:06:45]Sock 10.Check first char [23:06:45]Sock 10.First char is OK [23:06:45]request: POST /json_proto HTTP/1.0 [23:06:45]Method: POST [23:06:45]URL: /json_proto [23:06:45]Method is POST - this is cgi request [23:06:45]url: /json_proto [23:06:45]query_string will be loaded in cgi processing [23:06:45]execute_cgi json_proto POST (null) [23:06:45]execute_cgi path=json_proto method=POST [23:06:45]POST find Content-Length [23:06:45]Host: 172.17.60.69:8080 [23:06:45]Content-Length: 814 [23:06:45]Content-Type: application/json [23:06:45] [23:06:45]POST finish read [23:06:45]Found Content-Length = 814 [23:06:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73476", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:06:45]execute_script... [23:06:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73476", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:06:45]POST & json_proto [23:06:45]process_json_proto [23:06:45]json parsed OK: [23:06:45]protocol is kg_v1.0 [23:06:45]action value=close_receipt [23:06:45]process_action close_receipt [23:06:45]cmd_close_receipt [23:06:45]MH_GetDate [23:06:45]Write to MH i2c: F0 00 00 8E 01 7E [23:06:45]Write i2c OK [23:06:45]MH_I2C_Read... [23:06:45]Read from MH i2c: F0 [23:06:45]MH_I2C_Read... [23:06:45]Read from MH i2c: F0 09 00 [23:06:45]MH_I2C_Read... [23:06:45]Read from MH i2c: F0 09 00 8E 01 00 86 4C 5E 66 6A 96 4A 66 CD [23:06:45]GetLastDocTimeStamp 1717455638 [23:06:45]current date 1717456006 [23:06:45]FM_GetShiftState [23:06:45]SAM_PROTO_GetShiftState [23:06:45]wFMCommunicate request_size=4 [23:06:45]MH_SAM_APDU [23:06:45]CAPDU: 80 13 01 00 [23:06:45]Write to MH i2c: E2 08 00 8F 01 80 13 01 00 00 00 00 00 0D [23:06:45]Write i2c OK [23:06:45]MH_I2C_Read... [23:06:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:06:45]Read from MH i2c: E2 [23:06:45]MH_I2C_Read... [23:06:45]Read from MH i2c: E2 0E 00 [23:06:45]MH_I2C_Read... [23:06:45]Read from MH i2c: E2 0E 00 8F 01 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 D9 [23:06:45]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [23:06:45]wFMCommunicate OK [23:06:45]SAM_PROTO_GetShiftState done [23:06:45]FM_GetShiftState done [23:06:45]opened in 1717373173 [23:06:45]opened+sec_in_day 1717459573 [23:06:45]quantity*price = 9500 [23:06:45]sum+1 = 9501 [23:06:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 0.00 Безнал.: 95.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 166 03.06.2024 23:06 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875074 ФД: 63908 ФПД: 48895414295033 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T230646&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63908&fm=48895414295033&tin=02508201610067®Number=0000000000092737&sum=9500 0 [23:06:46]StoreToDocumentArchive [23:06:46]shift 373 fd 63908 [23:06:46]save to /storage/0373/doc_00063908 [23:06:46]save last doc name /storage/0373/doc_00063908 to /storage/kkm_last_doc_name [23:06:46]save OK [23:06:46]Clear old archive folders... [23:06:46]ProcessDocumentItem done err = 0, tmpTLVsize=293 [23:06:46]tlvbuf is 00BD9970 [23:06:46]SAM_PROTO_ClearQueue [23:06:46]wFMCommunicate request_size=4 [23:06:46]MH_SAM_APDU [23:06:46]CAPDU: 80 09 00 00 [23:06:46]Write to MH i2c: E2 08 00 9C 01 80 09 00 00 00 00 00 00 0F [23:06:46]Write i2c OK [23:06:46]MH_I2C_Read... [23:06:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:06:46]Read from MH i2c: E2 [23:06:46]MH_I2C_Read... [23:06:46]Read from MH i2c: E2 03 00 [23:06:46]MH_I2C_Read... [23:06:46]Read from MH i2c: E2 03 00 9C 01 00 90 00 11 [23:06:46]RAPDU: 90 00 [23:06:46]wFMCommunicate OK [23:06:46]SAM_PROTO_ClearQueue done [23:06:46]KKMCreateOFDPacket [23:06:46]OFDProtocolAddRootSTLVToBuf [23:06:46]FM_MakeSignedData [23:06:46]FM_MakeSignedData [23:06:46]SAM_PROTO_SignData [23:06:46]wFMCommunicate request_size=4 [23:06:46]MH_SAM_APDU [23:06:46]CAPDU: 80 0D 01 02 [23:06:46]Write to MH i2c: E2 08 00 9D 01 80 0D 01 02 00 00 00 00 17 [23:06:46]Write i2c OK [23:06:46]MH_I2C_Read... [23:06:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:06:46]Read from MH i2c: E2 [23:06:46]MH_I2C_Read... [23:06:46]Read from MH i2c: E2 03 00 [23:06:46]MH_I2C_Read... [23:06:46]Read from MH i2c: E2 03 00 9D 01 00 90 00 12 [23:06:46]RAPDU: 90 00 [23:06:46]wFMCommunicate OK [23:06:46]wFMCommunicate request_size=255 [23:06:46]MH_SAM_APDU [23:06:46]CAPDU: 80 0D 02 02 FA 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C 25 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 86 4C 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [23:06:46]Write to MH i2c: E2 02 01 9E 01 80 0D 02 02 FA 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C 25 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 86 4C 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 69 [23:06:46]Write i2c OK [23:06:46]MH_I2C_Read... [23:06:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:06:46]Read from MH i2c: E2 [23:06:46]MH_I2C_Read... [23:06:46]Read from MH i2c: E2 03 00 [23:06:46]MH_I2C_Read... [23:06:46]Read from MH i2c: E2 03 00 9E 01 00 90 00 13 [23:06:46]RAPDU: 90 00 [23:06:46]wFMCommunicate OK [23:06:46]wFMCommunicate request_size=52 [23:06:46]MH_SAM_APDU [23:06:46]CAPDU: 80 0D 02 02 2F 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 A4 F9 00 00 35 04 06 00 2C 78 59 CC D9 F9 [23:06:46]Write to MH i2c: E2 37 00 9F 01 80 0D 02 02 2F 00 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 A4 F9 00 00 35 04 06 00 2C 78 59 CC D9 F9 00 00 17 [23:06:46]Write i2c OK [23:06:46]MH_I2C_Read... [23:06:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:06:46]Read from MH i2c: E2 [23:06:46]MH_I2C_Read... [23:06:46]Read from MH i2c: E2 03 00 [23:06:46]MH_I2C_Read... [23:06:46]Read from MH i2c: E2 03 00 9F 01 00 90 00 14 [23:06:46]RAPDU: 90 00 [23:06:46]wFMCommunicate OK [23:06:46]wFMCommunicate request_size=4 [23:06:46]MH_SAM_APDU [23:06:46]CAPDU: 80 0D 03 02 [23:06:46]Write to MH i2c: E2 08 00 A0 01 80 0D 03 02 00 00 00 00 1C [23:06:46]Write i2c OK [23:06:46]MH_I2C_Read... [23:06:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:06:46]Read from MH i2c: E2 [23:06:46]MH_I2C_Read... [23:06:46]Read from MH i2c: E2 0B 00 [23:06:46]MH_I2C_Read... [23:06:46]Read from MH i2c: E2 0B 00 A0 01 00 76 47 E8 DF A9 39 77 3A 90 00 34 [23:06:46]RAPDU: 76 47 E8 DF A9 39 77 3A 90 00 [23:06:46]wFMCommunicate OK [23:06:46]SAM_PROTO_SignData done [23:06:46]FM_MakeSignedData done [23:06:46]CreateOFDProtocolMessage [23:06:46]wFMCommunicate request_size=4 [23:06:46]MH_SAM_APDU [23:06:46]CAPDU: 80 11 00 00 [23:06:46]Write to MH i2c: E2 08 00 A1 01 80 11 00 00 00 00 00 00 1C [23:06:46]Write i2c OK [23:06:46]MH_I2C_Read... [23:06:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:06:46]Read from MH i2c: E2 [23:06:46]MH_I2C_Read... [23:06:46]Read from MH i2c: E2 17 00 [23:06:46]MH_I2C_Read... [23:06:46]Read from MH i2c: E2 17 00 A1 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 6E [23:06:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [23:06:46]wFMCommunicate OK [23:06:46]CreateOFDProtocolMessage done [23:06:46]OFDSenderStorePacket 63908 [23:06:46]StoreOFDPacket docnum=63908 [23:06:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 39 01 00 00 62 43 31 01 F1 86 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C 25 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 86 4C 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 A4 F9 00 00 35 04 06 00 2C 78 59 CC D9 F9 76 47 E8 DF A9 39 77 3A [23:06:46]CheckFolder [23:06:46]dirname=/storage/ofd_packets [23:06:46]CheckFolder done [23:06:46]ProducePacketName [23:06:46]name=ofd_packets/00063908 [23:06:46]NVStorageSaveData ofd_packets/00063908 [23:06:46]File name is /storage/ofd_packets/00063908 [23:06:46]Write 343 bytes [23:06:46]NVStorageSaveData done [23:06:46]OFDSenderStorePacket done [23:06:46]KKMCreateOFDPacket done [23:06:46]NVStorageSaveData kkm_last_timestamp [23:06:46]File name is /storage/kkm_last_timestamp [23:06:46]Write 4 bytes [23:06:46]NVStorageSaveData done [23:06:46]ExternCall_PrintAddStr [23:06:46]wPrintStart [23:06:46]Write to MH i2c: 01 00 00 A2 01 A3 [23:06:46]Write i2c OK [23:06:46]MH_I2C_Read... [23:06:46]Read from MH i2c: 01 [23:06:46]MH_I2C_Read... [23:06:46]Read from MH i2c: 01 07 00 [23:06:46]MH_I2C_Read... [23:06:46]Read from MH i2c: 01 07 00 A2 01 00 00 00 00 00 FF 0F B8 [23:06:46]RasterBufferAndPrint [23:06:46]line Счет N : (3)73476 [23:06:46]line ИНН: 02508201610067 [23:06:46]line Контрольно-Кассовый Чек [23:06:46]line ПРОДАЖА [23:06:46]line Товар: 4700000480050 [23:06:46]line Напиток Nitro Energy эн green ж/б 0,45л [23:06:46]line 1.000 * 95.00 [23:06:46]line = 95.00 [23:06:46]line НДС 12% НСП 1% [23:06:46]line > о реализуемом товаре [23:06:46]line ИТОГО: 95.00 [23:06:46]line НСП 1% : 0.84 [23:06:46]line НДС 12% : 10.09 [23:06:46]line Наличными: 0.00 [23:06:46]line Безнал.: 95.00 [23:06:46]line Место: АЗС № 117 "Партнер Нефть" [23:06:46]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [23:06:46]line СНО: Общий режим [23:06:46]line Чек 166 03.06.2024 23:06 [23:06:46]line Смена: 373 ФФД: 1.0 [23:06:46]line ЗНМ: 0300000031 [23:06:46]line РНМ: 0000000000092737 [23:06:46]line Версия ККМ: 001 [23:06:46]line Платежная система: O! деньги [23:06:47]line ФМ: 0000000000875074 [23:06:47]line ФД: 63908 [23:06:47]line ФПД: 48895414295033 [23:06:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T230646&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63908&fm=48895414295033&tin=02508201610067®Number=0000000000092737&sum=9500 [23:06:47]line 0 [23:06:47]OFD Sender: Processing packet 63908 [packets to send 14, broken 13] [23:06:47]ProducePacketName [23:06:47]name=ofd_packets/00063908 [23:06:47]OFD Sender: To server: pG, [23:06:47]CommunicateWithHost lk.salyk.kg:30040 [23:06:47]ConnectInit lk.salyk.kg [23:06:47]written 0, free lines is 4095 [23:06:47]Connected sock=9 [23:06:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 39 01 00 00 62 43 31 01 F1 86 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C 25 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 86 4C 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 A4 F9 00 00 35 04 06 00 2C 78 59 CC D9 F9 76 47 E8 DF A9 39 77 3A [23:06:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 D0 0D 47 00 73 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 35 30 37 34 10 04 04 00 A4 F9 00 00 F4 03 04 00 56 F8 5D 66 B6 04 01 00 00 95 83 46 CB 89 9B 1A 55 [23:06:47]CommunicateWithHost err = 0 [23:06:47]CheckOFDResponse [23:06:47]1017 (14) - 77093643461234 [23:06:47]1041 (16) - 0000000000875074 [23:06:47]1040 (4) - 63908 [23:06:47]1012 (4) - 03.06.2024 17:07 [23:06:47]1206 (1) - 0 [23:06:47]OFD Sender: Remove packet 63908 [23:06:47]ProducePacketName [23:06:47]name=ofd_packets/00063908 [23:06:47]NVStorageDeleteData [23:06:47]Write to MH i2c: 01 00 00 CD 01 CE [23:06:47]Write i2c OK [23:06:47]MH_I2C_Read... [23:06:47]Read from MH i2c: 01 [23:06:47]MH_I2C_Read... [23:06:47]Read from MH i2c: 01 07 00 [23:06:47]MH_I2C_Read... [23:06:47]Read from MH i2c: 01 07 00 CD 01 00 00 00 00 00 BA 0C 9B [23:06:47]RasterBufferAndPrint [23:06:47]line [23:06:47]line [23:06:47]line [23:06:47]line [23:06:47]line [23:06:47]written 0, free lines is 3262 [23:06:47]MH_Cut [23:06:47]Write to MH i2c: D1 01 00 D4 01 01 A7 [23:06:47]Write i2c OK [23:06:47]MH_I2C_Read... [23:06:47]Read from MH i2c: D1 [23:06:47]MH_I2C_Read... [23:06:47]Read from MH i2c: D1 01 00 [23:06:47]MH_I2C_Read... [23:06:47]Read from MH i2c: D1 01 00 D4 01 00 A6 [23:06:47]Write to MH i2c: 01 00 00 D5 01 D6 [23:06:47]Write i2c OK [23:06:47]MH_I2C_Read... [23:06:47]OFD Sender: No OFD packet to send [23:06:48]*** Cut start [23:06:48]*** Partial cut [23:06:48]*** CUTSNS_PIN = 1 [23:06:48]*** CUTSNS_PIN = 0 [23:06:48]*** Brake cut motor [23:06:49]Read from MH i2c: 01 [23:06:49]MH_I2C_Read... [23:06:49]*** Stop cut motor [23:06:49]*** Cut end [23:06:49]Read from MH i2c: 01 07 00 [23:06:49]MH_I2C_Read... [23:06:49]Read from MH i2c: 01 07 00 D5 01 00 00 00 00 00 FF 0F EB [23:06:49]process_action close_receipt done [23:06:49]requested_data is exist [23:06:49]produce_requested_data [23:06:49]requested_item fm.sn is exist - process it [23:06:49]wFMCommunicate request_size=4 [23:06:49]MH_SAM_APDU [23:06:49]CAPDU: 80 11 00 00 [23:06:49]Write to MH i2c: E2 08 00 D6 01 80 11 00 00 00 00 00 00 51 [23:06:49]Write i2c OK [23:06:49]MH_I2C_Read... [23:06:49]Read from MH i2c: E2 [23:06:49]MH_I2C_Read... [23:06:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:06:49]Read from MH i2c: E2 17 00 [23:06:49]MH_I2C_Read... [23:06:49]Read from MH i2c: E2 17 00 D6 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 A3 [23:06:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [23:06:49]wFMCommunicate OK [23:06:49]requested_item fd.num is exist - process it [23:06:49]SAM_PROTO_GetFieldsCounters [23:06:49]wFMCommunicate request_size=4 [23:06:49]MH_SAM_APDU [23:06:49]CAPDU: 80 13 00 00 [23:06:49]Write to MH i2c: E2 08 00 D7 01 80 13 00 00 00 00 00 00 54 [23:06:49]Write i2c OK [23:06:49]MH_I2C_Read... [23:06:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:06:49]Read from MH i2c: E2 [23:06:49]MH_I2C_Read... [23:06:49]Read from MH i2c: E2 62 00 [23:06:49]MH_I2C_Read... [23:06:49]Read from MH i2c: E2 62 00 D7 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 A4 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 A6 00 00 00 5E 04 04 00 A6 00 00 00 57 04 04 00 A7 00 00 00 19 04 04 00 00 00 00 00 90 00 7C [23:06: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 A4 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 A6 00 00 00 5E 04 04 00 A6 00 00 00 57 04 04 00 A7 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:06:49]wFMCommunicate OK [23:06:49]SAM_PROTO_GetFieldsCounters done [23:06:49]requested_item shift.num is exist - process it [23:06:49]requested_item shift.opened is exist - process it [23:06:49]req_shift_opened [23:06:49]FM_GetShiftState [23:06:49]SAM_PROTO_GetShiftState [23:06:49]wFMCommunicate request_size=4 [23:06:49]MH_SAM_APDU [23:06:49]CAPDU: 80 13 01 00 [23:06:49]Write to MH i2c: E2 08 00 D8 01 80 13 01 00 00 00 00 00 56 [23:06:49]Write i2c OK [23:06:49]MH_I2C_Read... [23:06:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:06:49]Read from MH i2c: E2 [23:06:49]MH_I2C_Read... [23:06:49]Read from MH i2c: E2 0E 00 [23:06:49]MH_I2C_Read... [23:06:49]Read from MH i2c: E2 0E 00 D8 01 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 22 [23:06:49]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [23:06:49]wFMCommunicate OK [23:06:49]SAM_PROTO_GetShiftState done [23:06:49]FM_GetShiftState done [23:06:49]req_shift_opened done [23:06:49]requested_item shift.open_date is exist - process it [23:06:49]req_shift_open_date [23:06:49]req_shift_open_date done [23:06:49]produce_requested_data done [23:06:49]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63908,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [23:06:49]process_action_free close_receipt [23:06:49]json_value_free [23:06:49]json_value_free done [23:06:49]process_json_proto returns [23:06:49]Send response to host [23:06:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63908,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [23:06:49]free response buf [23:06:49]execute_script done [23:06:49]execute_script returns [23:06:49]free content buf [23:06:49]Sock 10.Close socket [23:06:49]Sock 10.Thread stoped [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:58]OFD Sender: No OFD packet to send [23:09:03]OFD Sender: No OFD packet to send [23:09:08]OFD Sender: No OFD packet to send [23:09:13]OFD Sender: No OFD packet to send [23:09:18]OFD Sender: No OFD packet to send [23:09:23]OFD Sender: No OFD packet to send [23:09:28]OFD Sender: No OFD packet to send [23:09:33]OFD Sender: No OFD packet to send [23:09:38]OFD Sender: No OFD packet to send [23:09:43]OFD Sender: No OFD packet to send [23:09:48]OFD Sender: No OFD packet to send [23:09:53]OFD Sender: No OFD packet to send [23:09:58]OFD Sender: No OFD packet to send [23:10:03]OFD Sender: No OFD packet to send [23:10:08]OFD Sender: No OFD packet to send [23:10:13]OFD Sender: No OFD packet to send [23:10:18]OFD Sender: No OFD packet to send [23:10:23]OFD Sender: No OFD packet to send [23:10:28]OFD Sender: No OFD packet to send [23:10:33]OFD Sender: No OFD packet to send [23:10:38]OFD Sender: No OFD packet to send [23:10:43]OFD Sender: No OFD packet to send [23:10:48]OFD Sender: No OFD packet to send [23:10:53]OFD Sender: No OFD packet to send [23:10:58]OFD Sender: No OFD packet to send [23:11:03]OFD Sender: No OFD packet to send [23:11:08]OFD Sender: No OFD packet to send [23:11:13]OFD Sender: No OFD packet to send [23:11:18]OFD Sender: No OFD packet to send [23:11:23]OFD Sender: No OFD packet to send [23:11:28]OFD Sender: No OFD packet to send [23:11:33]OFD Sender: No OFD packet to send [23:11:38]OFD Sender: No OFD packet to send [23:11:43]OFD Sender: No OFD packet to send [23:11:48]OFD Sender: No OFD packet to send [23:11:53]OFD Sender: No OFD packet to send [23:11:58]OFD Sender: No OFD packet to send [23:12:03]OFD Sender: No OFD packet to send [23:12:08]OFD Sender: No OFD packet to send [23:12:13]OFD Sender: No OFD packet to send [23:12:18]OFD Sender: No OFD packet to send [23:12:23]OFD Sender: No OFD packet to send [23:12:28]OFD Sender: No OFD packet to send [23:12:33]OFD Sender: No OFD packet to send [23:12:38]OFD Sender: No OFD packet to send [23:12:43]OFD Sender: No OFD packet to send [23:12:48]OFD Sender: No OFD packet to send [23:12:53]OFD Sender: No OFD packet to send [23:12:58]OFD Sender: No OFD packet to send [23:13:03]OFD Sender: No OFD packet to send [23:13:08]OFD Sender: No OFD packet to send [23:13:13]OFD Sender: No OFD packet to send [23:13:18]OFD Sender: No OFD packet to send [23:13:23]OFD Sender: No OFD packet to send [23:13:28]OFD Sender: No OFD packet to send [23:13:33]OFD Sender: No OFD packet to send [23:13:38]OFD Sender: No OFD packet to send [23:13:43]OFD Sender: No OFD packet to send [23:13:48]OFD Sender: No OFD packet to send [23:13:53]OFD Sender: No OFD packet to send [23:13:58]OFD Sender: No OFD packet to send [23:14:03]OFD Sender: No OFD packet to send [23:14:08]OFD Sender: No OFD packet to send [23:14:13]OFD Sender: No OFD packet to send [23:14:18]OFD Sender: No OFD packet to send [23:14:23]OFD Sender: No OFD packet to send [23:14:28]OFD Sender: No OFD packet to send [23:14:33]OFD Sender: No OFD packet to send [23:14:38]OFD Sender: No OFD packet to send [23:14:43]OFD Sender: No OFD packet to send [23:14:48]OFD Sender: No OFD packet to send [23:14:53]OFD Sender: No OFD packet to send [23:14:58]OFD Sender: No OFD packet to send [23:15:03]OFD Sender: No OFD packet to send [23:15:08]OFD Sender: No OFD packet to send [23:15:13]OFD Sender: No OFD packet to send [23:15:18]OFD Sender: No OFD packet to send [23:15:23]OFD Sender: No OFD packet to send [23:15:28]OFD Sender: No OFD packet to send [23:15:33]OFD Sender: No OFD packet to send [23:15:38]OFD Sender: No OFD packet to send [23:15:43]OFD Sender: No OFD packet to send [23:15:48]OFD Sender: No OFD packet to send [23:15:53]OFD Sender: No OFD packet to send [23:15:58]OFD Sender: No OFD packet to send [23:16:03]OFD Sender: No OFD packet to send [23:16:08]OFD Sender: No OFD packet to send [23:16:13]OFD Sender: No OFD packet to send [23:16:18]OFD Sender: No OFD packet to send [23:16:23]OFD Sender: No OFD packet to send [23:16:28]OFD Sender: No OFD packet to send [23:16:33]OFD Sender: No OFD packet to send [23:16:38]OFD Sender: No OFD packet to send [23:16:43]OFD Sender: No OFD packet to send [23:16:48]OFD Sender: No OFD packet to send [23:16:53]OFD Sender: No OFD packet to send [23:16:58]OFD Sender: No OFD packet to send [23:17:03]OFD Sender: No OFD packet to send [23:17:08]OFD Sender: No OFD packet to send [23:17:13]OFD Sender: No OFD packet to send [23:17:18]OFD Sender: No OFD packet to send [23:17:23]OFD Sender: No OFD packet to send [23:17:28]OFD Sender: No OFD packet to send [23:17:33]OFD Sender: No OFD packet to send [23:17:38]OFD Sender: No OFD packet to send [23:17:43]OFD Sender: No OFD packet to send [23:17:48]OFD Sender: No OFD packet to send [23:17:53]OFD Sender: No OFD packet to send [23:17:58]OFD Sender: No OFD packet to send [23:18:03]OFD Sender: No OFD packet to send [23:18:08]OFD Sender: No OFD packet to send [23:18:13]OFD Sender: No OFD packet to send [23:18:18]OFD Sender: No OFD packet to send [23:18:23]OFD Sender: No OFD packet to send [23:18:28]OFD Sender: No OFD packet to send [23:18:33]OFD Sender: No OFD packet to send [23:18:38]OFD Sender: No OFD packet to send [23:18:43]OFD Sender: No OFD packet to send [23:18:48]OFD Sender: No OFD packet to send [23:18:49]accept exits with 8 [23:18:49]New connection [23:18:49]New thread 3067116900 created [23:18:49]Thread 3066973540 joined [23:18:49]Waiting for new connection... [23:18:49] Sock 8.Parse request [23:18:49]Sock 8.Check first char [23:18:49]Sock 8.First char is OK [23:18:49]request: POST /json_proto HTTP/1.0 [23:18:49]Method: POST [23:18:49]URL: /json_proto [23:18:49]Method is POST - this is cgi request [23:18:49]url: /json_proto [23:18:49]query_string will be loaded in cgi processing [23:18:49]execute_cgi json_proto POST (null) [23:18:49]execute_cgi path=json_proto method=POST [23:18:49]POST find Content-Length [23:18:49]Host: 172.17.60.69:8080 [23:18:49]Content-Length: 688 [23:18:49]Content-Type: application/json [23:18:49] [23:18:49]POST finish read [23:18:49]Found Content-Length = 688 [23:18:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73477", "tax_sys" : 0, "items" : [ { "code": "5449000000950", "name": "\u041A\u041E\u041C\u0411\u041E \u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,33\u043B", "price" : 77.00, "quantity" : 1.000, "sum" : 77.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 77.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:18:49]execute_script... [23:18:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73477", "tax_sys" : 0, "items" : [ { "code": "5449000000950", "name": "\u041A\u041E\u041C\u0411\u041E \u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,33\u043B", "price" : 77.00, "quantity" : 1.000, "sum" : 77.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 77.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:18:49]POST & json_proto [23:18:49]process_json_proto [23:18:49]json parsed OK: [23:18:49]protocol is kg_v1.0 [23:18:49]action value=close_receipt [23:18:49]process_action close_receipt [23:18:49]cmd_close_receipt [23:18:49]MH_GetDate [23:18:49]Write to MH i2c: F0 00 00 D9 01 C9 [23:18:49]Write i2c OK [23:18:49]MH_I2C_Read... [23:18:49]Read from MH i2c: F0 [23:18:49]MH_I2C_Read... [23:18:49]Read from MH i2c: F0 09 00 [23:18:49]MH_I2C_Read... [23:18:49]Read from MH i2c: F0 09 00 D9 01 00 5A 4F 5E 66 6A 96 4A 66 EF [23:18:49]GetLastDocTimeStamp 1717456006 [23:18:49]current date 1717456730 [23:18:49]FM_GetShiftState [23:18:49]SAM_PROTO_GetShiftState [23:18:49]wFMCommunicate request_size=4 [23:18:49]MH_SAM_APDU [23:18:49]CAPDU: 80 13 01 00 [23:18:49]Write to MH i2c: E2 08 00 DA 01 80 13 01 00 00 00 00 00 58 [23:18:49]Write i2c OK [23:18:49]MH_I2C_Read... [23:18:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:18:50]Read from MH i2c: E2 [23:18:50]MH_I2C_Read... [23:18:50]Read from MH i2c: E2 0E 00 [23:18:50]MH_I2C_Read... [23:18:50]Read from MH i2c: E2 0E 00 DA 01 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 24 [23:18:50]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [23:18:50]wFMCommunicate OK [23:18:50]SAM_PROTO_GetShiftState done [23:18:50]FM_GetShiftState done [23:18:50]opened in 1717373173 [23:18:50]opened+sec_in_day 1717459573 [23:18:50]quantity*price = 7700 [23:18:50]sum+1 = 7701 [23:18:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 77.00 НСП 1% : 0.68 НДС 12% : 8.18 Наличными: 77.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 167 03.06.2024 23:18 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63909 ФПД: 129144410223543 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T231851&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63909&fm=129144410223543&tin=02508201610067®Number=0000000000092737&sum=7700 0 [23:18:51]StoreToDocumentArchive [23:18:51]shift 373 fd 63909 [23:18:51]save to /storage/0373/doc_00063909 [23:18:51]save last doc name /storage/0373/doc_00063909 to /storage/kkm_last_doc_name [23:18:51]save OK [23:18:51]Clear old archive folders... [23:18:51]ProcessDocumentItem done err = 0, tmpTLVsize=292 [23:18:51]tlvbuf is 00BF97B0 [23:18:51]SAM_PROTO_ClearQueue [23:18:51]wFMCommunicate request_size=4 [23:18:51]MH_SAM_APDU [23:18:51]CAPDU: 80 09 00 00 [23:18:51]Write to MH i2c: E2 08 00 E7 01 80 09 00 00 00 00 00 00 5A [23:18:51]Write i2c OK [23:18:51]MH_I2C_Read... [23:18:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:18:51]Read from MH i2c: E2 [23:18:51]MH_I2C_Read... [23:18:51]Read from MH i2c: E2 03 00 [23:18:51]MH_I2C_Read... [23:18:51]Read from MH i2c: E2 03 00 E7 01 00 90 00 5C [23:18:51]RAPDU: 90 00 [23:18:51]wFMCommunicate OK [23:18:51]SAM_PROTO_ClearQueue done [23:18:51]KKMCreateOFDPacket [23:18:51]OFDProtocolAddRootSTLVToBuf [23:18:51]FM_MakeSignedData [23:18:51]FM_MakeSignedData [23:18:51]SAM_PROTO_SignData [23:18:51]wFMCommunicate request_size=4 [23:18:51]MH_SAM_APDU [23:18:51]CAPDU: 80 0D 01 02 [23:18:51]Write to MH i2c: E2 08 00 E8 01 80 0D 01 02 00 00 00 00 62 [23:18:51]Write i2c OK [23:18:51]MH_I2C_Read... [23:18:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:18:51]Read from MH i2c: E2 [23:18:51]MH_I2C_Read... [23:18:51]Read from MH i2c: E2 03 00 [23:18:51]MH_I2C_Read... [23:18:51]Read from MH i2c: E2 03 00 E8 01 00 90 00 5D [23:18:51]RAPDU: 90 00 [23:18:51]wFMCommunicate OK [23:18:51]wFMCommunicate request_size=255 [23:18:51]MH_SAM_APDU [23:18:51]CAPDU: 80 0D 02 02 FA 03 00 24 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 39 35 30 06 04 32 00 D0 9A D0 9E D0 9C D0 91 D0 9E 20 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 1E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 44 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 03 00 00 00 00 07 04 06 00 14 1E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 5B 4F 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 [23:18:51]Write to MH i2c: E2 02 01 E9 01 80 0D 02 02 FA 00 03 00 24 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 39 35 30 06 04 32 00 D0 9A D0 9E D0 9C D0 91 D0 9E 20 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 1E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 44 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 03 00 00 00 00 07 04 06 00 14 1E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 5B 4F 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 00 00 F1 [23:18:51]Write i2c OK [23:18:51]MH_I2C_Read... [23:18:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:18:51]Read from MH i2c: E2 [23:18:51]MH_I2C_Read... [23:18:51]Read from MH i2c: E2 03 00 [23:18:51]MH_I2C_Read... [23:18:51]Read from MH i2c: E2 03 00 E9 01 00 90 00 5E [23:18:51]RAPDU: 90 00 [23:18:51]wFMCommunicate OK [23:18:51]wFMCommunicate request_size=51 [23:18:51]MH_SAM_APDU [23:18:51]CAPDU: 80 0D 02 02 2E 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 A5 F9 00 00 35 04 06 00 75 74 C6 B2 33 B7 [23:18:51]Write to MH i2c: E2 36 00 EA 01 80 0D 02 02 2E 00 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 A5 F9 00 00 35 04 06 00 75 74 C6 B2 33 B7 00 00 E1 [23:18:51]Write i2c OK [23:18:51]MH_I2C_Read... [23:18:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:18:51]Read from MH i2c: E2 [23:18:51]MH_I2C_Read... [23:18:51]Read from MH i2c: E2 03 00 [23:18:51]MH_I2C_Read... [23:18:51]Read from MH i2c: E2 03 00 EA 01 00 90 00 5F [23:18:51]RAPDU: 90 00 [23:18:51]wFMCommunicate OK [23:18:51]wFMCommunicate request_size=4 [23:18:51]MH_SAM_APDU [23:18:51]CAPDU: 80 0D 03 02 [23:18:51]Write to MH i2c: E2 08 00 EB 01 80 0D 03 02 00 00 00 00 67 [23:18:51]Write i2c OK [23:18:51]MH_I2C_Read... [23:18:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:18:51]Read from MH i2c: E2 [23:18:51]MH_I2C_Read... [23:18:51]Read from MH i2c: E2 0B 00 [23:18:51]MH_I2C_Read... [23:18:51]Read from MH i2c: E2 0B 00 EB 01 00 EC 8B DF 12 D4 80 0B 9E 90 00 CD [23:18:51]RAPDU: EC 8B DF 12 D4 80 0B 9E 90 00 [23:18:51]wFMCommunicate OK [23:18:51]SAM_PROTO_SignData done [23:18:51]FM_MakeSignedData done [23:18:51]CreateOFDProtocolMessage [23:18:51]wFMCommunicate request_size=4 [23:18:51]MH_SAM_APDU [23:18:51]CAPDU: 80 11 00 00 [23:18:51]Write to MH i2c: E2 08 00 EC 01 80 11 00 00 00 00 00 00 67 [23:18:51]Write i2c OK [23:18:51]MH_I2C_Read... [23:18:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:18:51]Read from MH i2c: E2 [23:18:51]MH_I2C_Read... [23:18:51]Read from MH i2c: E2 17 00 [23:18:51]MH_I2C_Read... [23:18:51]Read from MH i2c: E2 17 00 EC 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 B9 [23:18:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [23:18:51]wFMCommunicate OK [23:18:51]CreateOFDProtocolMessage done [23:18:51]OFDSenderStorePacket 63909 [23:18:51]StoreOFDPacket docnum=63909 [23:18:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 38 01 00 00 AA 67 30 01 1E EA 5A 03 01 00 03 00 24 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 39 35 30 06 04 32 00 D0 9A D0 9E D0 9C D0 91 D0 9E 20 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 1E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 44 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 03 00 00 00 00 07 04 06 00 14 1E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 5B 4F 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 A5 F9 00 00 35 04 06 00 75 74 C6 B2 33 B7 EC 8B DF 12 D4 80 0B 9E [23:18:51]CheckFolder [23:18:51]dirname=/storage/ofd_packets [23:18:51]CheckFolder done [23:18:51]ProducePacketName [23:18:51]name=ofd_packets/00063909 [23:18:51]NVStorageSaveData ofd_packets/00063909 [23:18:51]File name is /storage/ofd_packets/00063909 [23:18:51]Write 342 bytes [23:18:51]NVStorageSaveData done [23:18:51]OFDSenderStorePacket done [23:18:51]KKMCreateOFDPacket done [23:18:51]NVStorageSaveData kkm_last_timestamp [23:18:51]File name is /storage/kkm_last_timestamp [23:18:51]Write 4 bytes [23:18:51]NVStorageSaveData done [23:18:51]ExternCall_PrintAddStr [23:18:51]wPrintStart [23:18:51]Write to MH i2c: 01 00 00 ED 01 EE [23:18:51]Write i2c OK [23:18:51]MH_I2C_Read... [23:18:51]Read from MH i2c: 01 [23:18:51]MH_I2C_Read... [23:18:51]Read from MH i2c: 01 07 00 [23:18:51]MH_I2C_Read... [23:18:51]Read from MH i2c: 01 07 00 ED 01 00 00 00 00 00 FF 0F 03 [23:18:51]RasterBufferAndPrint [23:18:51]line Счет N : (3)73477 [23:18:51]line ИНН: 02508201610067 [23:18:51]line Контрольно-Кассовый Чек [23:18:51]line ПРОДАЖА [23:18:51]line Товар: 5449000000950 [23:18:51]line КОМБО Напиток Кока-Кола 0,33л [23:18:51]line 1.000 * 77.00 [23:18:51]line = 77.00 [23:18:51]line НДС 12% НСП 1% [23:18:51]line > о реализуемом товаре [23:18:51]line ИТОГО: 77.00 [23:18:51]line НСП 1% : 0.68 [23:18:51]line НДС 12% : 8.18 [23:18:51]line Наличными: 77.00 [23:18:51]line Безнал.: 0.00 [23:18:51]line Место: АЗС № 117 "Партнер Нефть" [23:18:51]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [23:18:51]line СНО: Общий режим [23:18:51]line Чек 167 03.06.2024 23:18 [23:18:51]line Смена: 373 ФФД: 1.0 [23:18:51]line ЗНМ: 0300000031 [23:18:51]line РНМ: 0000000000092737 [23:18:51]line Версия ККМ: 001 [23:18:51]line ФМ: 0000000000875074 [23:18:51]line ФД: 63909 [23:18:51]line ФПД: 129144410223543 [23:18:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T231851&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63909&fm=129144410223543&tin=02508201610067®Number=0000000000092737&sum=7700 [23:18:52]line 0 [23:18:52]OFD Sender: Processing packet 63909 [packets to send 14, broken 13] [23:18:52]ProducePacketName [23:18:52]name=ofd_packets/00063909 [23:18:52]OFD Sender: To server: pG, [23:18:52]CommunicateWithHost lk.salyk.kg:30040 [23:18:52]ConnectInit lk.salyk.kg [23:18:52]written 0, free lines is 4095 [23:18:52]Connected sock=10 [23:18:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 38 01 00 00 AA 67 30 01 1E EA 5A 03 01 00 03 00 24 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 39 35 30 06 04 32 00 D0 9A D0 9E D0 9C D0 91 D0 9E 20 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 1E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 44 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 03 00 00 00 00 07 04 06 00 14 1E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 5B 4F 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 A5 F9 00 00 35 04 06 00 75 74 C6 B2 33 B7 EC 8B DF 12 D4 80 0B 9E [23:18:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 16 D5 47 00 E5 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 35 30 37 34 10 04 04 00 A5 F9 00 00 F4 03 04 00 2B FB 5D 66 B6 04 01 00 00 3F E4 BB EC 03 4B 66 8D [23:18:52]CommunicateWithHost err = 0 [23:18:52]CheckOFDResponse [23:18:52]1017 (14) - 77093643461234 [23:18:52]1041 (16) - 0000000000875074 [23:18:52]1040 (4) - 63909 [23:18:52]1012 (4) - 03.06.2024 17:19 [23:18:52]1206 (1) - 0 [23:18:52]OFD Sender: Remove packet 63909 [23:18:52]ProducePacketName [23:18:52]name=ofd_packets/00063909 [23:18:52]NVStorageDeleteData [23:18:52]Write to MH i2c: 01 00 00 16 02 18 [23:18:52]Write i2c OK [23:18:52]MH_I2C_Read... [23:18:52]Read from MH i2c: 01 [23:18:52]MH_I2C_Read... [23:18:52]Read from MH i2c: 01 07 00 [23:18:52]MH_I2C_Read... [23:18:52]Read from MH i2c: 01 07 00 16 02 00 00 00 00 00 EB 0C 16 [23:18:52]RasterBufferAndPrint [23:18:52]line [23:18:52]line [23:18:52]line [23:18:52]line [23:18:52]line [23:18:52]written 0, free lines is 3316 [23:18:52]MH_Cut [23:18:52]Write to MH i2c: D1 01 00 1D 02 01 F1 [23:18:52]Write i2c OK [23:18:52]MH_I2C_Read... [23:18:52]Read from MH i2c: D1 [23:18:52]MH_I2C_Read... [23:18:52]Read from MH i2c: D1 01 00 [23:18:52]MH_I2C_Read... [23:18:52]Read from MH i2c: D1 01 00 1D 02 00 F0 [23:18:52]Write to MH i2c: 01 00 00 1E 02 20 [23:18:52]Write i2c OK [23:18:52]MH_I2C_Read... [23:18:52]OFD Sender: No OFD packet to send [23:18:53]*** Cut start [23:18:53]*** Partial cut [23:18:53]*** CUTSNS_PIN = 1 [23:18:53]*** CUTSNS_PIN = 0 [23:18:53]*** Brake cut motor [23:18:53]Read from MH i2c: 01 [23:18:53]MH_I2C_Read... [23:18:53]*** Stop cut motor [23:18:53]*** Cut end [23:18:53]Read from MH i2c: 01 07 00 [23:18:53]MH_I2C_Read... [23:18:53]Read from MH i2c: 01 07 00 1E 02 00 00 00 00 00 FF 0F 35 [23:18:53]process_action close_receipt done [23:18:53]requested_data is exist [23:18:53]produce_requested_data [23:18:53]requested_item fm.sn is exist - process it [23:18:53]wFMCommunicate request_size=4 [23:18:53]MH_SAM_APDU [23:18:53]CAPDU: 80 11 00 00 [23:18:53]Write to MH i2c: E2 08 00 1F 02 80 11 00 00 00 00 00 00 9B [23:18:53]Write i2c OK [23:18:53]MH_I2C_Read... [23:18:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:18:53]Read from MH i2c: E2 [23:18:53]MH_I2C_Read... [23:18:53]Read from MH i2c: E2 17 00 [23:18:53]MH_I2C_Read... [23:18:53]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 35 30 37 34 90 00 ED [23:18:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [23:18:53]wFMCommunicate OK [23:18:53]requested_item fd.num is exist - process it [23:18:53]SAM_PROTO_GetFieldsCounters [23:18:53]wFMCommunicate request_size=4 [23:18:53]MH_SAM_APDU [23:18:53]CAPDU: 80 13 00 00 [23:18:53]Write to MH i2c: E2 08 00 20 02 80 13 00 00 00 00 00 00 9E [23:18:53]Write i2c OK [23:18:53]MH_I2C_Read... [23:18:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:18:54]Read from MH i2c: E2 [23:18:54]MH_I2C_Read... [23:18:54]Read from MH i2c: E2 62 00 [23:18:54]MH_I2C_Read... [23:18:54]Read from MH i2c: E2 62 00 20 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 A5 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 A7 00 00 00 5E 04 04 00 A7 00 00 00 57 04 04 00 A8 00 00 00 19 04 04 00 00 00 00 00 90 00 CA [23:18:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 A5 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 A7 00 00 00 5E 04 04 00 A7 00 00 00 57 04 04 00 A8 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:18:54]wFMCommunicate OK [23:18:54]SAM_PROTO_GetFieldsCounters done [23:18:54]requested_item shift.num is exist - process it [23:18:54]requested_item shift.opened is exist - process it [23:18:54]req_shift_opened [23:18:54]FM_GetShiftState [23:18:54]SAM_PROTO_GetShiftState [23:18:54]wFMCommunicate request_size=4 [23:18:54]MH_SAM_APDU [23:18:54]CAPDU: 80 13 01 00 [23:18:54]Write to MH i2c: E2 08 00 21 02 80 13 01 00 00 00 00 00 A0 [23:18:54]Write i2c OK [23:18:54]MH_I2C_Read... [23:18:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:18:54]Read from MH i2c: E2 [23:18:54]MH_I2C_Read... [23:18:54]Read from MH i2c: E2 0E 00 [23:18:54]MH_I2C_Read... [23:18:54]Read from MH i2c: E2 0E 00 21 02 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 6C [23:18:54]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [23:18:54]wFMCommunicate OK [23:18:54]SAM_PROTO_GetShiftState done [23:18:54]FM_GetShiftState done [23:18:54]req_shift_opened done [23:18:54]requested_item shift.open_date is exist - process it [23:18:54]req_shift_open_date [23:18:54]req_shift_open_date done [23:18:54]produce_requested_data done [23:18:54]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63909,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [23:18:54]process_action_free close_receipt [23:18:54]json_value_free [23:18:54]json_value_free done [23:18:54]process_json_proto returns [23:18:54]Send response to host [23:18:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63909,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [23:18:54]free response buf [23:18:54]execute_script done [23:18:54]execute_script returns [23:18:54]free content buf [23:18:54]Sock 8.Close socket [23:18:54]Sock 8.Thread stoped [23:18:57]OFD Sender: No OFD packet to send [23:19:02]OFD Sender: No OFD packet to send [23:19:07]OFD Sender: No OFD packet to send [23:19:12]OFD Sender: No OFD packet to send [23:19:17]OFD Sender: No OFD packet to send [23:19:22]OFD Sender: No OFD packet to send [23:19:27]OFD Sender: No OFD packet to send [23:19:32]OFD Sender: No OFD packet to send [23:19:37]OFD Sender: No OFD packet to send [23:19:42]OFD Sender: No OFD packet to send [23:19:47]OFD Sender: No OFD packet to send [23:19:52]OFD Sender: No OFD packet to send [23:19:57]OFD Sender: No OFD packet to send [23:20:02]OFD Sender: No OFD packet to send [23:20:07]OFD Sender: No OFD packet to send [23:20:12]OFD Sender: No OFD packet to send [23:20:17]OFD Sender: No OFD packet to send [23:20:22]OFD Sender: No OFD packet to send [23:20:27]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:48]accept exits with 9 [23:22:48]New connection [23:22:48]New thread 3066973540 created [23:22:48]Thread 3067116900 joined [23:22:48]Waiting for new connection... [23:22:48] Sock 9.Parse request [23:22:48]Sock 9.Check first char [23:22:48]Sock 9.First char is OK [23:22:48]request: POST /json_proto HTTP/1.0 [23:22:48]Method: POST [23:22:48]URL: /json_proto [23:22:48]Method is POST - this is cgi request [23:22:48]url: /json_proto [23:22:48]query_string will be loaded in cgi processing [23:22:48]execute_cgi json_proto POST (null) [23:22:48]execute_cgi path=json_proto method=POST [23:22:48]POST find Content-Length [23:22:48]Host: 172.17.60.69:8080 [23:22:48]Content-Length: 627 [23:22:48]Content-Type: application/json [23:22:48] [23:22:48]POST finish read [23:22:48]Found Content-Length = 627 [23:22:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73478", "tax_sys" : 0, "items" : [ { "code": "48741231", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Super Slims Silver", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 135.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:22:48]execute_script... [23:22:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73478", "tax_sys" : 0, "items" : [ { "code": "48741231", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Super Slims Silver", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 135.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:22:48]POST & json_proto [23:22:48]process_json_proto [23:22:48]json parsed OK: [23:22:48]protocol is kg_v1.0 [23:22:48]action value=close_receipt [23:22:48]process_action close_receipt [23:22:48]cmd_close_receipt [23:22:48]MH_GetDate [23:22:48]Write to MH i2c: F0 00 00 22 02 13 [23:22:48]Write i2c OK [23:22:48]MH_I2C_Read... [23:22:48]Read from MH i2c: F0 [23:22:48]MH_I2C_Read... [23:22:48]Read from MH i2c: F0 09 00 [23:22:48]MH_I2C_Read... [23:22:48]Read from MH i2c: F0 09 00 22 02 00 49 50 5E 66 6A 96 4A 66 29 [23:22:48]GetLastDocTimeStamp 1717456731 [23:22:48]current date 1717456969 [23:22:48]FM_GetShiftState [23:22:48]SAM_PROTO_GetShiftState [23:22:48]wFMCommunicate request_size=4 [23:22:48]MH_SAM_APDU [23:22:48]CAPDU: 80 13 01 00 [23:22:48]Write to MH i2c: E2 08 00 23 02 80 13 01 00 00 00 00 00 A2 [23:22:48]Write i2c OK [23:22:48]MH_I2C_Read... [23:22:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:22:48]Read from MH i2c: E2 [23:22:48]MH_I2C_Read... [23:22:48]Read from MH i2c: E2 0E 00 [23:22:48]MH_I2C_Read... [23:22:48]Read from MH i2c: E2 0E 00 23 02 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 6E [23:22:48]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [23:22:48]wFMCommunicate OK [23:22:48]SAM_PROTO_GetShiftState done [23:22:48]FM_GetShiftState done [23:22:48]opened in 1717373173 [23:22:48]opened+sec_in_day 1717459573 [23:22:48]quantity*price = 13500 [23:22:48]sum+1 = 13501 [23:22:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 135.00 НСП 1% : 1.19 НДС 12% : 14.34 Наличными: 135.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 168 03.06.2024 23:22 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63910 ФПД: 43971219462430 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T232249&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63910&fm=43971219462430&tin=02508201610067®Number=0000000000092737&sum=13500 0 [23:22:50]StoreToDocumentArchive [23:22:50]shift 373 fd 63910 [23:22:50]save to /storage/0373/doc_00063910 [23:22:50]save last doc name /storage/0373/doc_00063910 to /storage/kkm_last_doc_name [23:22:50]save OK [23:22:50]Clear old archive folders... [23:22:50]ProcessDocumentItem done err = 0, tmpTLVsize=280 [23:22:50]tlvbuf is 00BCC4C0 [23:22:50]SAM_PROTO_ClearQueue [23:22:50]wFMCommunicate request_size=4 [23:22:50]MH_SAM_APDU [23:22:50]CAPDU: 80 09 00 00 [23:22:50]Write to MH i2c: E2 08 00 30 02 80 09 00 00 00 00 00 00 A4 [23:22:50]Write i2c OK [23:22:50]MH_I2C_Read... [23:22:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:22:50]Read from MH i2c: E2 [23:22:50]MH_I2C_Read... [23:22:50]Read from MH i2c: E2 03 00 [23:22:50]MH_I2C_Read... [23:22:50]Read from MH i2c: E2 03 00 30 02 00 90 00 A6 [23:22:50]RAPDU: 90 00 [23:22:50]wFMCommunicate OK [23:22:50]SAM_PROTO_ClearQueue done [23:22:50]KKMCreateOFDPacket [23:22:50]OFDProtocolAddRootSTLVToBuf [23:22:50]FM_MakeSignedData [23:22:50]FM_MakeSignedData [23:22:50]SAM_PROTO_SignData [23:22:50]wFMCommunicate request_size=4 [23:22:50]MH_SAM_APDU [23:22:50]CAPDU: 80 0D 01 02 [23:22:50]Write to MH i2c: E2 08 00 31 02 80 0D 01 02 00 00 00 00 AC [23:22:50]Write i2c OK [23:22:50]MH_I2C_Read... [23:22:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:22:50]Read from MH i2c: E2 [23:22:50]MH_I2C_Read... [23:22:50]Read from MH i2c: E2 03 00 [23:22:50]MH_I2C_Read... [23:22:50]Read from MH i2c: E2 03 00 31 02 00 90 00 A7 [23:22:50]RAPDU: 90 00 [23:22:50]wFMCommunicate OK [23:22:50]wFMCommunicate request_size=255 [23:22:50]MH_SAM_APDU [23:22:50]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 08 00 34 38 37 34 31 32 33 31 06 04 2B 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 20 53 6C 69 6D 73 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 49 50 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 [23:22:50]Write to MH i2c: E2 02 01 32 02 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 08 00 34 38 37 34 31 32 33 31 06 04 2B 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 20 53 6C 69 6D 73 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 49 50 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 00 00 85 [23:22:50]Write i2c OK [23:22:50]MH_I2C_Read... [23:22:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:22:50]Read from MH i2c: E2 [23:22:50]MH_I2C_Read... [23:22:50]Read from MH i2c: E2 03 00 [23:22:50]MH_I2C_Read... [23:22:50]Read from MH i2c: E2 03 00 32 02 00 90 00 A8 [23:22:50]RAPDU: 90 00 [23:22:50]wFMCommunicate OK [23:22:50]wFMCommunicate request_size=39 [23:22:50]MH_SAM_APDU [23:22:50]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 A6 F9 00 00 35 04 06 00 27 FD D8 EA 99 1E [23:22:50]Write to MH i2c: E2 2A 00 33 02 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 A6 F9 00 00 35 04 06 00 27 FD D8 EA 99 1E 00 00 A5 [23:22:50]Write i2c OK [23:22:50]MH_I2C_Read... [23:22:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:22:50]Read from MH i2c: E2 [23:22:50]MH_I2C_Read... [23:22:50]Read from MH i2c: E2 03 00 [23:22:50]MH_I2C_Read... [23:22:50]Read from MH i2c: E2 03 00 33 02 00 90 00 A9 [23:22:50]RAPDU: 90 00 [23:22:50]wFMCommunicate OK [23:22:50]wFMCommunicate request_size=4 [23:22:50]MH_SAM_APDU [23:22:50]CAPDU: 80 0D 03 02 [23:22:50]Write to MH i2c: E2 08 00 34 02 80 0D 03 02 00 00 00 00 B1 [23:22:50]Write i2c OK [23:22:50]MH_I2C_Read... [23:22:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:22:50]Read from MH i2c: E2 [23:22:50]MH_I2C_Read... [23:22:50]Read from MH i2c: E2 0B 00 [23:22:50]MH_I2C_Read... [23:22:50]Read from MH i2c: E2 0B 00 34 02 00 C2 5F 1B F4 08 94 C3 EA 90 00 2B [23:22:50]RAPDU: C2 5F 1B F4 08 94 C3 EA 90 00 [23:22:50]wFMCommunicate OK [23:22:50]SAM_PROTO_SignData done [23:22:50]FM_MakeSignedData done [23:22:50]CreateOFDProtocolMessage [23:22:50]wFMCommunicate request_size=4 [23:22:50]MH_SAM_APDU [23:22:50]CAPDU: 80 11 00 00 [23:22:50]Write to MH i2c: E2 08 00 35 02 80 11 00 00 00 00 00 00 B1 [23:22:50]Write i2c OK [23:22:50]MH_I2C_Read... [23:22:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:22:50]Read from MH i2c: E2 [23:22:50]MH_I2C_Read... [23:22:50]Read from MH i2c: E2 17 00 [23:22:50]MH_I2C_Read... [23:22:50]Read from MH i2c: E2 17 00 35 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 03 [23:22:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [23:22:50]wFMCommunicate OK [23:22:50]CreateOFDProtocolMessage done [23:22:50]OFDSenderStorePacket 63910 [23:22:50]StoreOFDPacket docnum=63910 [23:22:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 2C 01 00 00 E3 E8 24 01 B7 28 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 08 00 34 38 37 34 31 32 33 31 06 04 2B 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 20 53 6C 69 6D 73 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 49 50 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 A6 F9 00 00 35 04 06 00 27 FD D8 EA 99 1E C2 5F 1B F4 08 94 C3 EA [23:22:50]CheckFolder [23:22:50]dirname=/storage/ofd_packets [23:22:50]CheckFolder done [23:22:50]ProducePacketName [23:22:50]name=ofd_packets/00063910 [23:22:50]NVStorageSaveData ofd_packets/00063910 [23:22:50]File name is /storage/ofd_packets/00063910 [23:22:50]Write 330 bytes [23:22:50]NVStorageSaveData done [23:22:50]OFDSenderStorePacket done [23:22:50]KKMCreateOFDPacket done [23:22:50]NVStorageSaveData kkm_last_timestamp [23:22:50]File name is /storage/kkm_last_timestamp [23:22:50]Write 4 bytes [23:22:50]NVStorageSaveData done [23:22:50]ExternCall_PrintAddStr [23:22:50]wPrintStart [23:22:50]Write to MH i2c: 01 00 00 36 02 38 [23:22:50]Write i2c OK [23:22:50]MH_I2C_Read... [23:22:50]Read from MH i2c: 01 [23:22:50]MH_I2C_Read... [23:22:50]Read from MH i2c: 01 07 00 [23:22:50]MH_I2C_Read... [23:22:50]Read from MH i2c: 01 07 00 36 02 00 00 00 00 00 FF 0F 4D [23:22:50]RasterBufferAndPrint [23:22:50]line Счет N : (3)73478 [23:22:50]line ИНН: 02508201610067 [23:22:50]line Контрольно-Кассовый Чек [23:22:50]line ПРОДАЖА [23:22:50]line Товар: 48741231 [23:22:50]line Сигареты Winston Super Slims Silver [23:22:50]line 1.000 * 135.00 [23:22:50]line = 135.00 [23:22:50]line НДС 12% НСП 1% [23:22:50]line > о реализуемом товаре [23:22:50]line ИТОГО: 135.00 [23:22:50]line НСП 1% : 1.19 [23:22:50]line НДС 12% : 14.34 [23:22:50]line Наличными: 135.00 [23:22:50]line Безнал.: 0.00 [23:22:50]line Место: АЗС № 117 "Партнер Нефть" [23:22:50]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [23:22:50]line СНО: Общий режим [23:22:50]line Чек 168 03.06.2024 23:22 [23:22:50]line Смена: 373 ФФД: 1.0 [23:22:50]line ЗНМ: 0300000031 [23:22:50]line РНМ: 0000000000092737 [23:22:50]line Версия ККМ: 001 [23:22:50]line ФМ: 0000000000875074 [23:22:50]line ФД: 63910 [23:22:50]line ФПД: 43971219462430 [23:22:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T232249&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63910&fm=43971219462430&tin=02508201610067®Number=0000000000092737&sum=13500 [23:22:50]line 0 [23:22:50]OFD Sender: Processing packet 63910 [packets to send 14, broken 13] [23:22:50]ProducePacketName [23:22:50]name=ofd_packets/00063910 [23:22:50]OFD Sender: To server: pG, [23:22:50]CommunicateWithHost lk.salyk.kg:30040 [23:22:50]ConnectInit lk.salyk.kg [23:22:50]written 0, free lines is 4095 [23:22:51]Connected sock=10 [23:22:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 2C 01 00 00 E3 E8 24 01 B7 28 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 08 00 34 38 37 34 31 32 33 31 06 04 2B 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 20 53 6C 69 6D 73 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 49 50 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 A6 F9 00 00 35 04 06 00 27 FD D8 EA 99 1E C2 5F 1B F4 08 94 C3 EA [23:22:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 3F FA 47 00 D0 21 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 A6 F9 00 00 F4 03 04 00 19 FC 5D 66 B6 04 01 00 00 5F 74 65 3A 4B B5 6C 3A [23:22:51]CommunicateWithHost err = 0 [23:22:51]CheckOFDResponse [23:22:51]1017 (14) - 77093643461234 [23:22:51]1041 (16) - 0000000000875074 [23:22:51]1040 (4) - 63910 [23:22:51]1012 (4) - 03.06.2024 17:23 [23:22:51]1206 (1) - 0 [23:22:51]OFD Sender: Remove packet 63910 [23:22:51]ProducePacketName [23:22:51]name=ofd_packets/00063910 [23:22:51]NVStorageDeleteData [23:22:51]Write to MH i2c: 01 00 00 5F 02 61 [23:22:51]Write i2c OK [23:22:51]MH_I2C_Read... [23:22:51]Read from MH i2c: 01 [23:22:51]MH_I2C_Read... [23:22:51]Read from MH i2c: 01 07 00 [23:22:51]MH_I2C_Read... [23:22:51]Read from MH i2c: 01 07 00 5F 02 00 00 00 00 00 C8 0C 3C [23:22:51]RasterBufferAndPrint [23:22:51]line [23:22:51]line [23:22:51]line [23:22:51]line [23:22:51]line [23:22:51]written 0, free lines is 3277 [23:22:51]MH_Cut [23:22:51]Write to MH i2c: D1 01 00 66 02 01 3A [23:22:51]Write i2c OK [23:22:51]MH_I2C_Read... [23:22:51]Read from MH i2c: D1 [23:22:51]MH_I2C_Read... [23:22:51]Read from MH i2c: D1 01 00 [23:22:51]MH_I2C_Read... [23:22:51]Read from MH i2c: D1 01 00 66 02 00 39 [23:22:51]Write to MH i2c: 01 00 00 67 02 69 [23:22:51]Write i2c OK [23:22:51]MH_I2C_Read... [23:22:51]OFD Sender: No OFD packet to send [23:22:52]*** Cut start [23:22:52]*** Partial cut [23:22:52]*** CUTSNS_PIN = 1 [23:22:52]*** CUTSNS_PIN = 0 [23:22:52]*** Brake cut motor [23:22:52]Read from MH i2c: 01 [23:22:52]MH_I2C_Read... [23:22:52]*** Stop cut motor [23:22:52]*** Cut end [23:22:52]Read from MH i2c: 01 07 00 [23:22:52]MH_I2C_Read... [23:22:52]Read from MH i2c: 01 07 00 67 02 00 00 00 00 00 FF 0F 7E [23:22:52]process_action close_receipt done [23:22:52]requested_data is exist [23:22:52]produce_requested_data [23:22:52]requested_item fm.sn is exist - process it [23:22:52]wFMCommunicate request_size=4 [23:22:52]MH_SAM_APDU [23:22:52]CAPDU: 80 11 00 00 [23:22:52]Write to MH i2c: E2 08 00 68 02 80 11 00 00 00 00 00 00 E4 [23:22:52]Write i2c OK [23:22:52]MH_I2C_Read... [23:22:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:22:52]Read from MH i2c: E2 [23:22:52]MH_I2C_Read... [23:22:52]Read from MH i2c: E2 17 00 [23:22:52]MH_I2C_Read... [23:22:52]Read from MH i2c: E2 17 00 68 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 36 [23:22:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [23:22:52]wFMCommunicate OK [23:22:52]requested_item fd.num is exist - process it [23:22:52]SAM_PROTO_GetFieldsCounters [23:22:52]wFMCommunicate request_size=4 [23:22:52]MH_SAM_APDU [23:22:52]CAPDU: 80 13 00 00 [23:22:52]Write to MH i2c: E2 08 00 69 02 80 13 00 00 00 00 00 00 E7 [23:22:52]Write i2c OK [23:22:52]MH_I2C_Read... [23:22:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:22:53]Read from MH i2c: E2 [23:22:53]MH_I2C_Read... [23:22:53]Read from MH i2c: E2 62 00 [23:22:53]MH_I2C_Read... [23:22:53]Read from MH i2c: E2 62 00 69 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 A6 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 A8 00 00 00 5E 04 04 00 A8 00 00 00 57 04 04 00 A9 00 00 00 19 04 04 00 00 00 00 00 90 00 17 [23:22: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 A6 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 A8 00 00 00 5E 04 04 00 A8 00 00 00 57 04 04 00 A9 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:22:53]wFMCommunicate OK [23:22:53]SAM_PROTO_GetFieldsCounters done [23:22:53]requested_item shift.num is exist - process it [23:22:53]requested_item shift.opened is exist - process it [23:22:53]req_shift_opened [23:22:53]FM_GetShiftState [23:22:53]SAM_PROTO_GetShiftState [23:22:53]wFMCommunicate request_size=4 [23:22:53]MH_SAM_APDU [23:22:53]CAPDU: 80 13 01 00 [23:22:53]Write to MH i2c: E2 08 00 6A 02 80 13 01 00 00 00 00 00 E9 [23:22:53]Write i2c OK [23:22:53]MH_I2C_Read... [23:22:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:22:53]Read from MH i2c: E2 [23:22:53]MH_I2C_Read... [23:22:53]Read from MH i2c: E2 0E 00 [23:22:53]MH_I2C_Read... [23:22:53]Read from MH i2c: E2 0E 00 6A 02 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 B5 [23:22:53]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [23:22:53]wFMCommunicate OK [23:22:53]SAM_PROTO_GetShiftState done [23:22:53]FM_GetShiftState done [23:22:53]req_shift_opened done [23:22:53]requested_item shift.open_date is exist - process it [23:22:53]req_shift_open_date [23:22:53]req_shift_open_date done [23:22:53]produce_requested_data done [23:22:53]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63910,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [23:22:53]process_action_free close_receipt [23:22:53]json_value_free [23:22:53]json_value_free done [23:22:53]process_json_proto returns [23:22:53]Send response to host [23:22:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63910,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [23:22:53]free response buf [23:22:53]execute_script done [23:22:53]execute_script returns [23:22:53]free content buf [23:22:53]Sock 9.Close socket [23:22:53]Sock 9.Thread stoped [23:22:56]OFD Sender: No OFD packet to send [23:23:01]OFD Sender: No OFD packet to send [23:23:06]OFD Sender: No OFD packet to send [23:23:11]OFD Sender: No OFD packet to send [23:23:16]OFD Sender: No OFD packet to send [23:23:21]OFD Sender: No OFD packet to send [23:23:26]OFD Sender: No OFD packet to send [23:23:31]OFD Sender: No OFD packet to send [23:23:36]OFD Sender: No OFD packet to send [00:00:09] *** EcrCore started. Build 196 *** [00:00:09]/dev/ttyS4 opened [00:00:09]MH_InterfaceInit /dev/i2c-1 [00:00:09]Malloc ok [00:00:09]MH_GetMetrics [00:00:09]Write to MH i2c: 00 00 00 01 00 00 [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 29 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 5F FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 04 [00:00:09]Are we in boot? [00:00:09]We are in boot - try to switch [00:00:09]Write to MH i2c: A0 00 00 02 00 A1 [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:09]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:09]*** [00:00:09]Read from MH i2c: A0 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: A0 01 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:09]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:09]*** Waiting for read because exit forced [00:00:09]*** 10 ms more... [00:00:10]*** MH1903S init start (LINUX_LIGHT) [00:00:10]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:10]*** Serial: 3139303353513838 540000000057255F (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: 1294249+1716164202=1717458451 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x20ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33510623 [00:00:10]*** Is cutter blocked? [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 03 00 02 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 5F FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 05 [00:00:10]Are we in boot? [00:00:10]We are not in boot now [00:00:10]Write to MH i2c: 01 00 00 04 00 04 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 01 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 01 07 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:10]Model is 3 [00:00:10]MH firmware is 30620 [00:00:10]MH boot firmware is 3 [00:00:10]MH_SetPrinterDots 448 [00:00:10]HeadWidthInBytes 56 [00:00:10]maxmasksize 7 [00:00:11]Write to MH i2c: D6 06 00 05 00 46 00 40 00 FF FF 64 [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 14 56 5E 66 6A 96 4A 66 DD [23:47:32]Current date/time: 03.06.2024 23:47 [23:47:32]FM_Init [23:47:32]wFMConnect [23:47:32]MH_SAM_On [23:47:32]Write to MH i2c: E0 00 00 08 00 E7 [23:47:32]Write i2c OK [23:47:32]MH_I2C_Read... [23:47:32]*** iso7816_init finished! [23:47:32]*** atr: [23:47:32]*** 0F 3B D5 18 FF 81 91 FE [23:47:32]*** 1F C3 80 73 C8 21 10 0A [23:47:32]*** 00 00 00 00 00 00 00 00 [23:47:32]*** 00 00 00 00 00 00 00 00 [23:47:32]*** 00 00 00 00 00 00 00 00 [23:47:32]*** 00 00 00 00 00 00 00 00 [23:47:32]*** 00 00 00 00 00 00 00 00 [23:47:32]*** 00 00 00 00 00 00 00 00 [23:47:32]Read from MH i2c: E0 [23:47:32]MH_I2C_Read... [23:47:32]Read from MH i2c: E0 10 00 [23:47:32]MH_I2C_Read... [23:47:32]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [23:47:32]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [23:47:32]wFMCommunicate request_size=10 [23:47:32]MH_SAM_APDU [23:47:32]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [23:47:32]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [23:47:32]Write i2c OK [23:47:32]MH_I2C_Read... [23:47:32]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [23:47:32]Read from MH i2c: E2 [23:47:32]MH_I2C_Read... [23:47:32]Read from MH i2c: E2 03 00 [23:47:32]MH_I2C_Read... [23:47:32]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [23:47:32]RAPDU: 90 00 [23:47:32]wFMCommunicate OK [23:47:32]wFMCommunicate request_size=4 [23:47:32]MH_SAM_APDU [23:47:32]CAPDU: 80 11 00 00 [23:47:32]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [23:47:32]Write i2c OK [23:47:32]MH_I2C_Read... [23:47:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:47:32]Read from MH i2c: E2 [23:47:32]MH_I2C_Read... [23:47:32]Read from MH i2c: E2 17 00 [23:47:32]MH_I2C_Read... [23:47:32]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 D6 [23:47:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [23:47:32]wFMCommunicate OK [23:47:32]Detected FM SN is 0000000000875074 [23:47:32]Stored FM SN is 0000000000875074 [23:47:32]wFMCommunicate request_size=9 [23:47:32]MH_SAM_APDU [23:47:32]CAPDU: 80 16 00 00 04 FA 15 01 00 [23:47:32]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 FA 15 01 00 00 00 A2 [23:47:32]Write i2c OK [23:47:32]MH_I2C_Read... [23:47:32]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [23:47:32]Read from MH i2c: E2 [23:47:32]MH_I2C_Read... [23:47:32]Read from MH i2c: E2 03 00 [23:47:32]MH_I2C_Read... [23:47:32]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [23:47:32]RAPDU: 90 00 [23:47:32]wFMCommunicate OK [23:47:32]FM PIN OK [23:47:32]wFMCommunicate request_size=8 [23:47:32]MH_SAM_APDU [23:47:32]CAPDU: 80 14 04 00 03 02 00 01 [23:47:32]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [23:47:32]Write i2c OK [23:47:32]MH_I2C_Read... [23:47:32]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [23:47:32]Read from MH i2c: E2 [23:47:32]MH_I2C_Read... [23:47:32]Read from MH i2c: E2 03 00 [23:47:32]MH_I2C_Read... [23:47:32]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [23:47:32]RAPDU: 90 00 [23:47:32]wFMCommunicate OK [23:47:32]wFMCommunicate request_size=13 [23:47:32]MH_SAM_APDU [23:47:32]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [23:47:32]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [23:47:32]Write i2c OK [23:47:32]MH_I2C_Read... [23:47:32]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [23:47:32]Read from MH i2c: E2 [23:47:32]MH_I2C_Read... [23:47:32]Read from MH i2c: E2 03 00 [23:47:32]MH_I2C_Read... [23:47:32]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [23:47:32]RAPDU: 90 00 [23:47:32]wFMCommunicate OK [23:47:32]wFMCommunicate request_size=4 [23:47:32]MH_SAM_APDU [23:47:32]CAPDU: 80 11 00 00 [23:47:32]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [23:47:32]Write i2c OK [23:47:32]MH_I2C_Read... [23:47:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:47:32]Read from MH i2c: E2 [23:47:32]MH_I2C_Read... [23:47:32]Read from MH i2c: E2 17 00 [23:47:32]MH_I2C_Read... [23:47:32]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 DA [23:47:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [23:47:32]wFMCommunicate OK [23:47:32]DocumentArchiveInit [23:47:32]Start Httpd... [23:47:32]Httpd thread 3067342180 created [23:47:32]Write to MH i2c: 01 00 00 0F 00 0F [23:47:32]Write i2c OK [23:47:32]MH_I2C_Read... [23:47:32]Read from MH i2c: 01 [23:47:32]MH_I2C_Read... [23:47:32]Read from MH i2c: 01 07 00 [23:47:32]MH_I2C_Read... [23:47:32]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [23:47:32]MH Int Process started [23:47:32]Allocated Socket 8 [23:47:32]Bind OK [23:47:32]Listen OK [23:47:32]httpd running on port 8080 [23:47:32]Waiting for new connection... [23:47:32]OFD Sender: No OFD packet to send [23:47:36]accept exits with 9 [23:47:36]New connection [23:47:36]New thread 3067055460 created [23:47:36]Waiting for new connection... [23:47:36] Sock 9.Parse request [23:47:36]Sock 9.Check first char [23:47:36]Sock 9.First char is OK [23:47:36]request: POST /json_proto HTTP/1.0 [23:47:36]Method: POST [23:47:36]URL: /json_proto [23:47:36]Method is POST - this is cgi request [23:47:36]url: /json_proto [23:47:36]query_string will be loaded in cgi processing [23:47:36]execute_cgi json_proto POST (null) [23:47:36]execute_cgi path=json_proto method=POST [23:47:36]POST find Content-Length [23:47:36]Host: 172.17.60.69:8080 [23:47:36]Content-Length: 215 [23:47:36]Content-Type: application/json [23:47:36] [23:47:36]POST finish read [23:47:36]Found Content-Length = 215 [23:47:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:47:36]execute_script... [23:47:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:47:36]POST & json_proto [23:47:36]process_json_proto [23:47:36]json parsed OK: [23:47:36]protocol is kg_v1.0 [23:47:36]action value=get_value [23:47:36]process_action get_value [23:47:36]cmd_get_value [23:47:36]process_action get_value done [23:47:36]requested_data is exist [23:47:36]produce_requested_data [23:47:36]requested_item kkm.sn is exist - process it [23:47:36]requested_item kkm.ver is exist - process it [23:47:36]requested_item fm.sn is exist - process it [23:47:36]wFMCommunicate request_size=4 [23:47:36]MH_SAM_APDU [23:47:36]CAPDU: 80 11 00 00 [23:47:36]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [23:47:36]Write i2c OK [23:47:36]MH_I2C_Read... [23:47:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:47:36]Read from MH i2c: E2 [23:47:36]MH_I2C_Read... [23:47:36]Read from MH i2c: E2 17 00 [23:47:36]MH_I2C_Read... [23:47:36]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 DC [23:47:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [23:47:36]wFMCommunicate OK [23:47:36]requested_item fd.num is exist - process it [23:47:36]SAM_PROTO_GetFieldsCounters [23:47:36]wFMCommunicate request_size=4 [23:47:36]MH_SAM_APDU [23:47:36]CAPDU: 80 13 00 00 [23:47:36]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [23:47:36]Write i2c OK [23:47:36]MH_I2C_Read... [23:47:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:47:36]Read from MH i2c: E2 [23:47:36]MH_I2C_Read... [23:47:36]Read from MH i2c: E2 62 00 [23:47:36]MH_I2C_Read... [23:47:36]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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 A6 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 A8 00 00 00 5E 04 04 00 A8 00 00 00 57 04 04 00 A9 00 00 00 19 04 04 00 00 00 00 00 90 00 BD [23:47: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 A6 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 A8 00 00 00 5E 04 04 00 A8 00 00 00 57 04 04 00 A9 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:47:36]wFMCommunicate OK [23:47:36]SAM_PROTO_GetFieldsCounters done [23:47:36]requested_item shift.num is exist - process it [23:47:36]requested_item shift.opened is exist - process it [23:47:36]req_shift_opened [23:47:36]FM_GetShiftState [23:47:36]SAM_PROTO_GetShiftState [23:47:36]wFMCommunicate request_size=4 [23:47:36]MH_SAM_APDU [23:47:36]CAPDU: 80 13 01 00 [23:47:36]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [23:47:36]Write i2c OK [23:47:36]MH_I2C_Read... [23:47:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:47:36]Read from MH i2c: E2 [23:47:36]MH_I2C_Read... [23:47:36]Read from MH i2c: E2 0E 00 [23:47:36]MH_I2C_Read... [23:47:36]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 5B [23:47:36]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [23:47:36]wFMCommunicate OK [23:47:36]SAM_PROTO_GetShiftState done [23:47:36]FM_GetShiftState done [23:47:36]req_shift_opened done [23:47:36]requested_item shift.open_date is exist - process it [23:47:36]req_shift_open_date [23:47:36]req_shift_open_date done [23:47:36]produce_requested_data done [23:47:36]produce_requested_data return {"kkm.sn":"0300000031","kkm.ver":"001","fm.sn":"0000000000875074","fd.num":63910,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [23:47:36]process_action_free get_value [23:47:36]json_value_free [23:47:36]json_value_free done [23:47:36]process_json_proto returns [23:47:36]Send response to host [23:47:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000031","kkm.ver":"001","fm.sn":"0000000000875074","fd.num":63910,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [23:47:36]free response buf [23:47:36]execute_script done [23:47:36]execute_script returns [23:47:36]free content buf [23:47:36]Sock 9.Close socket [23:47:36]Sock 9.Thread stoped [23:47:36]accept exits with 7 [23:47:36]New connection [23:47:36]New thread 3066912100 created [23:47:36]Thread 3067055460 joined [23:47:36]Waiting for new connection... [23:47:36] Sock 7.Parse request [23:47:36]Sock 7.Check first char [23:47:36]Sock 7.First char is OK [23:47:36]request: POST /json_proto HTTP/1.0 [23:47:36]Method: POST [23:47:36]URL: /json_proto [23:47:36]Method is POST - this is cgi request [23:47:36]url: /json_proto [23:47:36]query_string will be loaded in cgi processing [23:47:36]execute_cgi json_proto POST (null) [23:47:36]execute_cgi path=json_proto method=POST [23:47:36]POST find Content-Length [23:47:36]Host: 172.17.60.69:8080 [23:47:36]Content-Length: 331 [23:47:36]Content-Type: application/json [23:47:36] [23:47:36]POST finish read [23:47:36]Found Content-Length = 331 [23:47:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:47:36]execute_script... [23:47:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:47:36]POST & json_proto [23:47:36]process_json_proto [23:47:36]json parsed OK: [23:47:36]protocol is kg_v1.0 [23:47:36]action value=get_value [23:47:36]process_action get_value [23:47:36]cmd_get_value [23:47:36]process_action get_value done [23:47:36]requested_data is exist [23:47:36]produce_requested_data [23:47:36]requested_item fm.sale.total is exist - process it [23:47:36]SAM_PROTO_GetFMData [23:47:36]wFMCommunicate request_size=4 [23:47:36]MH_SAM_APDU [23:47:36]CAPDU: 80 13 03 00 [23:47:36]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [23:47:36]Write i2c OK [23:47:36]MH_I2C_Read... [23:47:37]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:47:37]Read from MH i2c: E2 [23:47:37]MH_I2C_Read... [23:47:37]Read from MH i2c: E2 FD 00 [23:47:37]MH_I2C_Read... [23:47:37]Read from MH i2c: E2 FD 00 13 00 00 C5 04 85 04 C1 04 6E 04 04 00 BC F6 00 00 69 04 A1 00 6F 04 04 00 5C F4 00 00 B1 04 04 00 FD 6E C3 76 70 04 04 00 6A 39 05 66 72 04 04 00 93 35 BE 10 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 CD 19 9D 0C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 CC 03 0D 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 60 02 00 00 B1 04 04 00 E4 BA 80 03 70 04 04 00 60 5F 65 03 72 04 03 00 84 5B 1B 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 84 3C 5F EF 03 09 90 00 2D [23:47:37]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 BC F6 00 00 69 04 A1 00 6F 04 04 00 5C F4 00 00 B1 04 04 00 FD 6E C3 76 70 04 04 00 6A 39 05 66 72 04 04 00 93 35 BE 10 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 CD 19 9D 0C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 CC 03 0D 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 60 02 00 00 B1 04 04 00 E4 BA 80 03 70 04 04 00 60 5F 65 03 72 04 03 00 84 5B 1B 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 84 3C 5F EF 03 09 90 00 [23:47:37]wFMCommunicate OK [23:47:37]wFMCommunicate request_size=4 [23:47:37]MH_SAM_APDU [23:47:37]CAPDU: 80 17 00 00 [23:47:37]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [23:47:37]Write i2c OK [23:47:37]MH_I2C_Read... [23:47:37]OFD Sender: No OFD packet to send [23:47:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:47:37]Read from MH i2c: E2 [23:47:37]MH_I2C_Read... [23:47:37]Read from MH i2c: E2 FD 00 [23:47:37]MH_I2C_Read... [23:47:37]Read from MH i2c: E2 FD 00 14 00 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 7A EF 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 BA [23:47:37]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 7A EF 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [23:47:37]wFMCommunicate OK [23:47:37]wFMCommunicate request_size=4 [23:47:37]MH_SAM_APDU [23:47:37]CAPDU: 80 17 00 00 [23:47:37]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [23:47:37]Write i2c OK [23:47:37]MH_I2C_Read... [23:47:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:47:37]Read from MH i2c: E2 [23:47:37]MH_I2C_Read... [23:47:37]Read from MH i2c: E2 FD 00 [23:47:37]MH_I2C_Read... [23:47:37]Read from MH i2c: E2 FD 00 15 00 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 A7 [23:47:37]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [23:47:37]wFMCommunicate OK [23:47:37]wFMCommunicate request_size=4 [23:47:37]MH_SAM_APDU [23:47:37]CAPDU: 80 17 00 00 [23:47:37]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [23:47:37]Write i2c OK [23:47:37]MH_I2C_Read... [23:47:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:47:38]Read from MH i2c: E2 [23:47:38]MH_I2C_Read... [23:47:38]Read from MH i2c: E2 FD 00 [23:47:38]MH_I2C_Read... [23:47:38]Read from MH i2c: E2 FD 00 16 00 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 22 [23:47:38]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [23:47:38]wFMCommunicate OK [23:47:38]wFMCommunicate request_size=4 [23:47:38]MH_SAM_APDU [23:47:38]CAPDU: 80 17 00 00 [23:47:38]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [23:47:38]Write i2c OK [23:47:38]MH_I2C_Read... [23:47:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [23:47:38]Read from MH i2c: E2 [23:47:38]MH_I2C_Read... [23:47:38]Read from MH i2c: E2 E2 00 [23:47:38]MH_I2C_Read... [23:47:38]Read from MH i2c: E2 E2 00 17 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 75 [23:47:38]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:47:38]wFMCommunicate OK [23:47:38]SAM_PROTO_GetFMData done [23:47:38]requested_item fm.sale_refund.total is exist - process it [23:47:38]requested_item fm.buy.total is exist - process it [23:47:38]requested_item shift.sale.total is exist - process it [23:47:38]SAM_PROTO_GetShiftData [23:47:38]wFMCommunicate request_size=4 [23:47:38]MH_SAM_APDU [23:47:38]CAPDU: 80 13 02 00 [23:47:38]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [23:47:38]Write i2c OK [23:47:38]MH_I2C_Read... [23:47:38]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:47:38]Read from MH i2c: E2 [23:47:38]MH_I2C_Read... [23:47:38]Read from MH i2c: E2 FD 00 [23:47:38]MH_I2C_Read... [23:47:38]Read from MH i2c: E2 FD 00 18 00 00 B8 04 AA 04 B4 04 6E 04 04 00 A8 00 00 00 69 04 9B 00 6F 04 04 00 A5 00 00 00 B1 04 03 00 10 7A 4B 70 04 03 00 64 9E 39 72 04 03 00 AC DB 11 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 1D 04 08 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 F8 AA EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 03 00 00 00 B1 04 03 00 80 A9 03 70 04 03 00 80 A9 03 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 92 63 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 98 [23:47:38]RAPDU: B8 04 AA 04 B4 04 6E 04 04 00 A8 00 00 00 69 04 9B 00 6F 04 04 00 A5 00 00 00 B1 04 03 00 10 7A 4B 70 04 03 00 64 9E 39 72 04 03 00 AC DB 11 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 1D 04 08 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 F8 AA EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 03 00 00 00 B1 04 03 00 80 A9 03 70 04 03 00 80 A9 03 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 92 63 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 [23:47:38]wFMCommunicate OK [23:47:38]wFMCommunicate request_size=4 [23:47:38]MH_SAM_APDU [23:47:38]CAPDU: 80 17 00 00 [23:47:38]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [23:47:38]Write i2c OK [23:47:38]MH_I2C_Read... [23:47:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:47:39]Read from MH i2c: E2 [23:47:39]MH_I2C_Read... [23:47:39]Read from MH i2c: E2 FD 00 [23:47:39]MH_I2C_Read... [23:47:39]Read from MH i2c: E2 FD 00 19 00 00 0B 00 F6 03 01 00 01 F7 03 02 00 4C 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 90 00 1E [23:47:39]RAPDU: 0B 00 F6 03 01 00 01 F7 03 02 00 4C 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 90 00 [23:47:39]wFMCommunicate OK [23:47:39]wFMCommunicate request_size=4 [23:47:39]MH_SAM_APDU [23:47:39]CAPDU: 80 17 00 00 [23:47:39]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [23:47:39]Write i2c OK [23:47:39]MH_I2C_Read... [23:47:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:47:39]Read from MH i2c: E2 [23:47:39]MH_I2C_Read... [23:47:39]Read from MH i2c: E2 FD 00 [23:47:39]MH_I2C_Read... [23:47:39]Read from MH i2c: E2 FD 00 1A 00 00 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 90 00 3C [23:47:39]RAPDU: 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 90 00 [23:47:39]wFMCommunicate OK [23:47:39]wFMCommunicate request_size=4 [23:47:39]MH_SAM_APDU [23:47:39]CAPDU: 80 17 00 00 [23:47:39]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [23:47:39]Write i2c OK [23:47:39]MH_I2C_Read... [23:47:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:47:39]Read from MH i2c: E2 [23:47:39]MH_I2C_Read... [23:47:39]Read from MH i2c: E2 FD 00 [23:47:39]MH_I2C_Read... [23:47:39]Read from MH i2c: E2 FD 00 1B 00 00 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 90 00 24 [23:47:39]RAPDU: 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 90 00 [23:47:39]wFMCommunicate OK [23:47:39]wFMCommunicate request_size=4 [23:47:39]MH_SAM_APDU [23:47:39]CAPDU: 80 17 00 00 [23:47:39]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [23:47:39]Write i2c OK [23:47:39]MH_I2C_Read... [23:47:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 210! [23:47:39]Read from MH i2c: E2 [23:47:39]MH_I2C_Read... [23:47:39]Read from MH i2c: E2 D5 00 [23:47:39]MH_I2C_Read... [23:47:39]Read from MH i2c: E2 D5 00 1C 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 7D [23:47:39]RAPDU: EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:47:39]wFMCommunicate OK [23:47:39]SAM_PROTO_GetShiftData done [23:47:39]requested_item shift.sale.total_cash is exist - process it [23:47:39]requested_item shift.sale_refund.total is exist - process it [23:47:40]requested_item shift.sale_refund.total_cash is exist - process it [23:47:40]requested_item shift.buy.total is exist - process it [23:47:40]requested_item shift.buy.total_cash is exist - process it [23:47:40]produce_requested_data done [23:47:40]produce_requested_data return {"fm.sale.total":19925194.21,"fm.sale_refund.total":587681.00,"fm.buy.total":0.00,"shift.sale.total":49464.48,"shift.sale.total_cash":37761.00,"shift.sale_refund.total":2400.00,"shift.sale_refund.total_cash":2400.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [23:47:40]process_action_free get_value [23:47:40]json_value_free [23:47:40]json_value_free done [23:47:40]process_json_proto returns [23:47:40]Send response to host [23:47:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":19925194.21,"fm.sale_refund.total":587681.00,"fm.buy.total":0.00,"shift.sale.total":49464.48,"shift.sale.total_cash":37761.00,"shift.sale_refund.total":2400.00,"shift.sale_refund.total_cash":2400.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [23:47:40]free response buf [23:47:40]execute_script done [23:47:40]execute_script returns [23:47:40]free content buf [23:47:40]Sock 7.Close socket [23:47:40]Sock 7.Thread stoped [23:47:41]accept exits with 9 [23:47:41]New connection [23:47:41]New thread 3067055460 created [23:47:41]Thread 3066912100 joined [23:47:41]Waiting for new connection... [23:47:41] Sock 9.Parse request [23:47:41]Sock 9.Check first char [23:47:41]Sock 9.First char is OK [23:47:41]request: POST /json_proto HTTP/1.0 [23:47:41]Method: POST [23:47:41]URL: /json_proto [23:47:41]Method is POST - this is cgi request [23:47:41]url: /json_proto [23:47:41]query_string will be loaded in cgi processing [23:47:41]execute_cgi json_proto POST (null) [23:47:41]execute_cgi path=json_proto method=POST [23:47:41]POST find Content-Length [23:47:41]Host: 172.17.60.69:8080 [23:47:41]Content-Length: 830 [23:47:41]Content-Type: application/json [23:47:41] [23:47:41]POST finish read [23:47:41]Found Content-Length = 830 [23:47:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73479", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:47:41]execute_script... [23:47:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73479", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:47:41]POST & json_proto [23:47:41]process_json_proto [23:47:41]json parsed OK: [23:47:41]protocol is kg_v1.0 [23:47:41]action value=close_receipt [23:47:41]process_action close_receipt [23:47:41]cmd_close_receipt [23:47:41]MH_GetDate [23:47:41]Write to MH i2c: F0 00 00 1D 00 0C [23:47:41]Write i2c OK [23:47:41]MH_I2C_Read... [23:47:41]Read from MH i2c: F0 [23:47:41]MH_I2C_Read... [23:47:41]Read from MH i2c: F0 09 00 [23:47:41]MH_I2C_Read... [23:47:41]Read from MH i2c: F0 09 00 1D 00 00 1D 56 5E 66 6A 96 4A 66 FC [23:47:41]GetLastDocTimeStamp 1717456969 [23:47:41]current date 1717458461 [23:47:41]FM_GetShiftState [23:47:41]SAM_PROTO_GetShiftState [23:47:41]wFMCommunicate request_size=4 [23:47:41]MH_SAM_APDU [23:47:41]CAPDU: 80 13 01 00 [23:47:41]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [23:47:41]Write i2c OK [23:47:41]MH_I2C_Read... [23:47:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:47:41]Read from MH i2c: E2 [23:47:41]MH_I2C_Read... [23:47:41]Read from MH i2c: E2 0E 00 [23:47:41]MH_I2C_Read... [23:47:41]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 67 [23:47:41]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [23:47:41]wFMCommunicate OK [23:47:41]SAM_PROTO_GetShiftState done [23:47:41]FM_GetShiftState done [23:47:41]opened in 1717373173 [23:47:41]opened+sec_in_day 1717459573 [23:47:41]quantity*price = 5000 [23:47:41]sum+1 = 5001 [23:47:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 50.00 НСП 1% : 0.44 НДС 12% : 5.31 Наличными: 0.00 Безнал.: 50.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 169 03.06.2024 23:47 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000875074 ФД: 63911 ФПД: 12330104681152 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T234741&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63911&fm=12330104681152&tin=02508201610067®Number=0000000000092737&sum=5000 0 [23:47:42]StoreToDocumentArchive [23:47:42]shift 373 fd 63911 [23:47:42]save to /storage/0373/doc_00063911 [23:47:42]save last doc name /storage/0373/doc_00063911 to /storage/kkm_last_doc_name [23:47:42]save OK [23:47:42]Clear old archive folders... [23:47:42]ProcessDocumentItem done err = 0, tmpTLVsize=269 [23:47:42]tlvbuf is 01252210 [23:47:42]SAM_PROTO_ClearQueue [23:47:42]wFMCommunicate request_size=4 [23:47:42]MH_SAM_APDU [23:47:42]CAPDU: 80 09 00 00 [23:47:42]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [23:47:42]Write i2c OK [23:47:42]MH_I2C_Read... [23:47:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:47:42]Read from MH i2c: E2 [23:47:42]MH_I2C_Read... [23:47:42]Read from MH i2c: E2 03 00 [23:47:42]MH_I2C_Read... [23:47:42]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [23:47:42]RAPDU: 90 00 [23:47:42]wFMCommunicate OK [23:47:42]SAM_PROTO_ClearQueue done [23:47:42]KKMCreateOFDPacket [23:47:42]OFDProtocolAddRootSTLVToBuf [23:47:42]FM_MakeSignedData [23:47:42]FM_MakeSignedData [23:47:42]SAM_PROTO_SignData [23:47:42]wFMCommunicate request_size=4 [23:47:42]MH_SAM_APDU [23:47:42]CAPDU: 80 0D 01 02 [23:47:42]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [23:47:42]Write i2c OK [23:47:42]MH_I2C_Read... [23:47:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:47:42]Read from MH i2c: E2 [23:47:42]MH_I2C_Read... [23:47:42]Read from MH i2c: E2 03 00 [23:47:42]MH_I2C_Read... [23:47:42]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [23:47:42]RAPDU: 90 00 [23:47:42]wFMCommunicate OK [23:47:42]wFMCommunicate request_size=255 [23:47:42]MH_SAM_APDU [23:47:42]CAPDU: 80 0D 02 02 FA 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 88 13 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 1D 56 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 [23:47:42]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 88 13 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 1D 56 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 00 00 15 [23:47:42]Write i2c OK [23:47:42]MH_I2C_Read... [23:47:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:47:43]Read from MH i2c: E2 [23:47:43]MH_I2C_Read... [23:47:43]Read from MH i2c: E2 03 00 [23:47:43]MH_I2C_Read... [23:47:43]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [23:47:43]RAPDU: 90 00 [23:47:43]wFMCommunicate OK [23:47:43]wFMCommunicate request_size=28 [23:47:43]MH_SAM_APDU [23:47:43]CAPDU: 80 0D 02 02 17 37 35 30 37 34 10 04 04 00 A7 F9 00 00 35 04 06 00 0B 36 D3 82 72 C0 [23:47:43]Write to MH i2c: E2 1F 00 2E 00 80 0D 02 02 17 00 37 35 30 37 34 10 04 04 00 A7 F9 00 00 35 04 06 00 0B 36 D3 82 72 C0 00 00 9C [23:47:43]Write i2c OK [23:47:43]MH_I2C_Read... [23:47:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:47:43]Read from MH i2c: E2 [23:47:43]MH_I2C_Read... [23:47:43]Read from MH i2c: E2 03 00 [23:47:43]MH_I2C_Read... [23:47:43]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [23:47:43]RAPDU: 90 00 [23:47:43]wFMCommunicate OK [23:47:43]wFMCommunicate request_size=4 [23:47:43]MH_SAM_APDU [23:47:43]CAPDU: 80 0D 03 02 [23:47:43]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [23:47:43]Write i2c OK [23:47:43]MH_I2C_Read... [23:47:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:47:43]Read from MH i2c: E2 [23:47:43]MH_I2C_Read... [23:47:43]Read from MH i2c: E2 0B 00 [23:47:43]MH_I2C_Read... [23:47:43]Read from MH i2c: E2 0B 00 2F 00 00 C5 15 1D DA 9F A3 62 D6 90 00 F6 [23:47:43]RAPDU: C5 15 1D DA 9F A3 62 D6 90 00 [23:47:43]wFMCommunicate OK [23:47:43]SAM_PROTO_SignData done [23:47:43]FM_MakeSignedData done [23:47:43]CreateOFDProtocolMessage [23:47:43]wFMCommunicate request_size=4 [23:47:43]MH_SAM_APDU [23:47:43]CAPDU: 80 11 00 00 [23:47:43]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [23:47:43]Write i2c OK [23:47:43]MH_I2C_Read... [23:47:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:47:43]Read from MH i2c: E2 [23:47:43]MH_I2C_Read... [23:47:43]Read from MH i2c: E2 17 00 [23:47:43]MH_I2C_Read... [23:47:43]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 35 30 37 34 90 00 FC [23:47:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [23:47:43]wFMCommunicate OK [23:47:43]CreateOFDProtocolMessage done [23:47:43]OFDSenderStorePacket 63911 [23:47:43]StoreOFDPacket docnum=63911 [23:47:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 21 01 00 00 D0 C4 19 01 6F 98 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 88 13 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 1D 56 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 A7 F9 00 00 35 04 06 00 0B 36 D3 82 72 C0 C5 15 1D DA 9F A3 62 D6 [23:47:43]CheckFolder [23:47:43]dirname=/storage/ofd_packets [23:47:43]CheckFolder done [23:47:43]ProducePacketName [23:47:43]name=ofd_packets/00063911 [23:47:43]NVStorageSaveData ofd_packets/00063911 [23:47:43]File name is /storage/ofd_packets/00063911 [23:47:43]Write 319 bytes [23:47:43]NVStorageSaveData done [23:47:43]OFDSenderStorePacket done [23:47:43]KKMCreateOFDPacket done [23:47:43]NVStorageSaveData kkm_last_timestamp [23:47:43]File name is /storage/kkm_last_timestamp [23:47:43]Write 4 bytes [23:47:43]NVStorageSaveData done [23:47:43]ExternCall_PrintAddStr [23:47:43]wPrintStart [23:47:43]Write to MH i2c: 01 00 00 31 00 31 [23:47:43]Write i2c OK [23:47:43]MH_I2C_Read... [23:47:43]Read from MH i2c: 01 [23:47:43]MH_I2C_Read... [23:47:43]Read from MH i2c: 01 07 00 [23:47:43]MH_I2C_Read... [23:47:43]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [23:47:43]RasterBufferAndPrint [23:47:43]line Счет N : (3)73479 [23:47:43]line ИНН: 02508201610067 [23:47:43]line Контрольно-Кассовый Чек [23:47:43]line ПРОДАЖА [23:47:43]line Товар: 4700000160358 [23:47:43]line Вода Легенда 1л [23:47:43]line 1.000 * 50.00 [23:47:43]line = 50.00 [23:47:43]line НДС 12% НСП 1% [23:47:43]line > о реализуемом товаре [23:47:43]line ИТОГО: 50.00 [23:47:43]line НСП 1% : 0.44 [23:47:43]line НДС 12% : 5.31 [23:47:43]line Наличными: 0.00 [23:47:43]line Безнал.: 50.00 [23:47:43]line Место: АЗС № 117 "Партнер Нефть" [23:47:43]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [23:47:43]line СНО: Общий режим [23:47:43]line Чек 169 03.06.2024 23:47 [23:47:43]line Смена: 373 ФФД: 1.0 [23:47:43]line ЗНМ: 0300000031 [23:47:43]line РНМ: 0000000000092737 [23:47:43]line Версия ККМ: 001 [23:47:43]line Платежная система: АКБ Кыргызстан [23:47:43]line ФМ: 0000000000875074 [23:47:43]line ФД: 63911 [23:47:43]line ФПД: 12330104681152 [23:47:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T234741&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63911&fm=12330104681152&tin=02508201610067®Number=0000000000092737&sum=5000 [23:47:43]line 0 [23:47:43]written 0, free lines is 4095 [23:47:43]OFD Sender: Processing packet 63911 [packets to send 14, broken 13] [23:47:43]ProducePacketName [23:47:43]name=ofd_packets/00063911 [23:47:43]OFD Sender: To server: pG, [23:47:43]CommunicateWithHost lk.salyk.kg:30040 [23:47:43]ConnectInit lk.salyk.kg [23:47:43]Connected sock=10 [23:47:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 21 01 00 00 D0 C4 19 01 6F 98 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 88 13 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 1D 56 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 A7 F9 00 00 35 04 06 00 0B 36 D3 82 72 C0 C5 15 1D DA 9F A3 62 D6 [23:47:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 6C E1 47 00 13 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 35 30 37 34 10 04 04 00 A7 F9 00 00 F4 03 04 00 ED 01 5E 66 B6 04 01 00 00 21 71 1E 2C 79 A2 44 5B [23:47:43]CommunicateWithHost err = 0 [23:47:43]CheckOFDResponse [23:47:43]1017 (14) - 77093643461234 [23:47:43]1041 (16) - 0000000000875074 [23:47:43]1040 (4) - 63911 [23:47:43]1012 (4) - 03.06.2024 17:48 [23:47:43]1206 (1) - 0 [23:47:43]OFD Sender: Remove packet 63911 [23:47:43]ProducePacketName [23:47:43]name=ofd_packets/00063911 [23:47:43]NVStorageDeleteData [23:47:43]Write to MH i2c: 01 00 00 5B 00 5B [23:47:43]Write i2c OK [23:47:43]MH_I2C_Read... [23:47:43]Read from MH i2c: 01 [23:47:43]MH_I2C_Read... [23:47:43]Read from MH i2c: 01 07 00 [23:47:43]MH_I2C_Read... [23:47:43]Read from MH i2c: 01 07 00 5B 00 00 00 00 00 00 27 0D 96 [23:47:43]RasterBufferAndPrint [23:47:43]line [23:47:43]line [23:47:43]line [23:47:43]line [23:47:43]line [23:47:43]written 0, free lines is 3383 [23:47:43]MH_Cut [23:47:43]Write to MH i2c: D1 01 00 62 00 01 34 [23:47:43]Write i2c OK [23:47:43]MH_I2C_Read... [23:47:43]Read from MH i2c: D1 [23:47:43]MH_I2C_Read... [23:47:43]Read from MH i2c: D1 01 00 [23:47:43]MH_I2C_Read... [23:47:43]Read from MH i2c: D1 01 00 62 00 00 33 [23:47:43]Write to MH i2c: 01 00 00 63 00 63 [23:47:43]Write i2c OK [23:47:43]MH_I2C_Read... [23:47:44]OFD Sender: No OFD packet to send [23:47:44]*** Cut start [23:47:44]*** Partial cut [23:47:44]*** CUTSNS_PIN = 1 [23:47:44]*** CUTSNS_PIN = 0 [23:47:45]*** Brake cut motor [23:47:45]Read from MH i2c: 01 [23:47:45]MH_I2C_Read... [23:47:45]*** Stop cut motor [23:47:45]*** Cut end [23:47:45]Read from MH i2c: 01 07 00 [23:47:45]MH_I2C_Read... [23:47:45]Read from MH i2c: 01 07 00 63 00 00 00 00 00 00 FF 0F 78 [23:47:45]process_action close_receipt done [23:47:45]requested_data is exist [23:47:45]produce_requested_data [23:47:45]requested_item fm.sn is exist - process it [23:47:45]wFMCommunicate request_size=4 [23:47:45]MH_SAM_APDU [23:47:45]CAPDU: 80 11 00 00 [23:47:45]Write to MH i2c: E2 08 00 64 00 80 11 00 00 00 00 00 00 DE [23:47:45]Write i2c OK [23:47:45]MH_I2C_Read... [23:47:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:47:45]Read from MH i2c: E2 [23:47:45]MH_I2C_Read... [23:47:45]Read from MH i2c: E2 17 00 [23:47:45]MH_I2C_Read... [23:47:45]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 35 30 37 34 90 00 30 [23:47:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [23:47:45]wFMCommunicate OK [23:47:45]requested_item fd.num is exist - process it [23:47:45]SAM_PROTO_GetFieldsCounters [23:47:45]wFMCommunicate request_size=4 [23:47:45]MH_SAM_APDU [23:47:45]CAPDU: 80 13 00 00 [23:47:45]Write to MH i2c: E2 08 00 65 00 80 13 00 00 00 00 00 00 E1 [23:47:45]Write i2c OK [23:47:45]MH_I2C_Read... [23:47:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:47:45]Read from MH i2c: E2 [23:47:45]MH_I2C_Read... [23:47:45]Read from MH i2c: E2 62 00 [23:47:45]MH_I2C_Read... [23:47:45]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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 A7 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 A9 00 00 00 5E 04 04 00 A9 00 00 00 57 04 04 00 AA 00 00 00 19 04 04 00 00 00 00 00 90 00 15 [23:47:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 A7 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 A9 00 00 00 5E 04 04 00 A9 00 00 00 57 04 04 00 AA 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:47:45]wFMCommunicate OK [23:47:45]SAM_PROTO_GetFieldsCounters done [23:47:45]requested_item shift.num is exist - process it [23:47:45]requested_item shift.opened is exist - process it [23:47:45]req_shift_opened [23:47:45]FM_GetShiftState [23:47:45]SAM_PROTO_GetShiftState [23:47:45]wFMCommunicate request_size=4 [23:47:45]MH_SAM_APDU [23:47:45]CAPDU: 80 13 01 00 [23:47:45]Write to MH i2c: E2 08 00 66 00 80 13 01 00 00 00 00 00 E3 [23:47:45]Write i2c OK [23:47:45]MH_I2C_Read... [23:47:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:47:45]Read from MH i2c: E2 [23:47:45]MH_I2C_Read... [23:47:45]Read from MH i2c: E2 0E 00 [23:47:45]MH_I2C_Read... [23:47:45]Read from MH i2c: E2 0E 00 66 00 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 AF [23:47:45]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [23:47:45]wFMCommunicate OK [23:47:45]SAM_PROTO_GetShiftState done [23:47:45]FM_GetShiftState done [23:47:45]req_shift_opened done [23:47:45]requested_item shift.open_date is exist - process it [23:47:45]req_shift_open_date [23:47:45]req_shift_open_date done [23:47:45]produce_requested_data done [23:47:45]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63911,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [23:47:45]process_action_free close_receipt [23:47:45]json_value_free [23:47:45]json_value_free done [23:47:45]process_json_proto returns [23:47:45]Send response to host [23:47:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63911,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [23:47:45]free response buf [23:47:45]execute_script done [23:47:45]execute_script returns [23:47:45]free content buf [23:47:45]Sock 9.Close socket [23:47:45]Sock 9.Thread stoped [23:47:47]accept exits with 7 [23:47:47]New connection [23:47:47]New thread 3066912100 created [23:47:47]Thread 3067055460 joined [23:47:47]Waiting for new connection... [23:47:47] Sock 7.Parse request [23:47:47]Sock 7.Check first char [23:47:47]Sock 7.First char is OK [23:47:47]request: POST /json_proto HTTP/1.0 [23:47:47]Method: POST [23:47:47]URL: /json_proto [23:47:47]Method is POST - this is cgi request [23:47:47]url: /json_proto [23:47:47]query_string will be loaded in cgi processing [23:47:47]execute_cgi json_proto POST (null) [23:47:47]execute_cgi path=json_proto method=POST [23:47:47]POST find Content-Length [23:47:47]Host: 172.17.60.69:8080 [23:47:47]Content-Length: 687 [23:47:47]Content-Type: application/json [23:47:47] [23:47:47]POST finish read [23:47:47]Found Content-Length = 687 [23:47:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73480", "tax_sys" : 0, "items" : [ { "code": "4870002325441", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043B\u0438\u043C\u043E\u043D \u041F\u042D\u0422 0,5\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:47:47]execute_script... [23:47:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73480", "tax_sys" : 0, "items" : [ { "code": "4870002325441", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043B\u0438\u043C\u043E\u043D \u041F\u042D\u0422 0,5\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:47:47]POST & json_proto [23:47:47]process_json_proto [23:47:47]json parsed OK: [23:47:47]protocol is kg_v1.0 [23:47:47]action value=close_receipt [23:47:47]process_action close_receipt [23:47:47]cmd_close_receipt [23:47:47]MH_GetDate [23:47:47]Write to MH i2c: F0 00 00 67 00 56 [23:47:47]Write i2c OK [23:47:47]MH_I2C_Read... [23:47:47]Read from MH i2c: F0 [23:47:47]MH_I2C_Read... [23:47:47]Read from MH i2c: F0 09 00 [23:47:47]MH_I2C_Read... [23:47:47]Read from MH i2c: F0 09 00 67 00 00 23 56 5E 66 6A 96 4A 66 4C [23:47:47]GetLastDocTimeStamp 1717458461 [23:47:47]current date 1717458467 [23:47:47]FM_GetShiftState [23:47:47]SAM_PROTO_GetShiftState [23:47:47]wFMCommunicate request_size=4 [23:47:47]MH_SAM_APDU [23:47:47]CAPDU: 80 13 01 00 [23:47:47]Write to MH i2c: E2 08 00 68 00 80 13 01 00 00 00 00 00 E5 [23:47:47]Write i2c OK [23:47:47]MH_I2C_Read... [23:47:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:47:47]Read from MH i2c: E2 [23:47:47]MH_I2C_Read... [23:47:47]Read from MH i2c: E2 0E 00 [23:47:47]MH_I2C_Read... [23:47:47]Read from MH i2c: E2 0E 00 68 00 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 B1 [23:47:47]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [23:47:47]wFMCommunicate OK [23:47:47]SAM_PROTO_GetShiftState done [23:47:47]FM_GetShiftState done [23:47:47]opened in 1717373173 [23:47:47]opened+sec_in_day 1717459573 [23:47:47]quantity*price = 6500 [23:47:47]sum+1 = 6501 [23:47:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 65.00 НСП 1% : 0.57 НДС 12% : 6.90 Наличными: 65.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 170 03.06.2024 23:47 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63912 ФПД: 145406319640550 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T234747&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63912&fm=145406319640550&tin=02508201610067®Number=0000000000092737&sum=6500 0 [23:47:48]StoreToDocumentArchive [23:47:48]shift 373 fd 63912 [23:47:48]save to /storage/0373/doc_00063912 [23:47:48]save last doc name /storage/0373/doc_00063912 to /storage/kkm_last_doc_name [23:47:48]save OK [23:47:48]Clear old archive folders... [23:47:48]ProcessDocumentItem done err = 0, tmpTLVsize=295 [23:47:48]tlvbuf is 012B37A0 [23:47:48]SAM_PROTO_ClearQueue [23:47:48]wFMCommunicate request_size=4 [23:47:48]MH_SAM_APDU [23:47:48]CAPDU: 80 09 00 00 [23:47:48]Write to MH i2c: E2 08 00 75 00 80 09 00 00 00 00 00 00 E7 [23:47:48]Write i2c OK [23:47:48]MH_I2C_Read... [23:47:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:47:48]Read from MH i2c: E2 [23:47:48]MH_I2C_Read... [23:47:48]Read from MH i2c: E2 03 00 [23:47:48]MH_I2C_Read... [23:47:48]Read from MH i2c: E2 03 00 75 00 00 90 00 E9 [23:47:48]RAPDU: 90 00 [23:47:48]wFMCommunicate OK [23:47:48]SAM_PROTO_ClearQueue done [23:47:48]KKMCreateOFDPacket [23:47:48]OFDProtocolAddRootSTLVToBuf [23:47:48]FM_MakeSignedData [23:47:48]FM_MakeSignedData [23:47:48]SAM_PROTO_SignData [23:47:48]wFMCommunicate request_size=4 [23:47:48]MH_SAM_APDU [23:47:48]CAPDU: 80 0D 01 02 [23:47:48]Write to MH i2c: E2 08 00 76 00 80 0D 01 02 00 00 00 00 EF [23:47:48]Write i2c OK [23:47:48]MH_I2C_Read... [23:47:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:47:48]Read from MH i2c: E2 [23:47:48]MH_I2C_Read... [23:47:48]Read from MH i2c: E2 03 00 [23:47:48]MH_I2C_Read... [23:47:48]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [23:47:48]RAPDU: 90 00 [23:47:48]wFMCommunicate OK [23:47:48]wFMCommunicate request_size=255 [23:47:48]MH_SAM_APDU [23:47:48]CAPDU: 80 0D 02 02 FA 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 35 34 34 31 06 04 35 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 23 56 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 [23:47:48]Write to MH i2c: E2 02 01 77 00 80 0D 02 02 FA 00 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 35 34 34 31 06 04 35 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 23 56 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 00 00 8C [23:47:48]Write i2c OK [23:47:48]MH_I2C_Read... [23:47:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:47:48]Read from MH i2c: E2 [23:47:48]MH_I2C_Read... [23:47:48]Read from MH i2c: E2 03 00 [23:47:48]MH_I2C_Read... [23:47:48]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [23:47:48]RAPDU: 90 00 [23:47:48]wFMCommunicate OK [23:47:48]wFMCommunicate request_size=54 [23:47:48]MH_SAM_APDU [23:47:48]CAPDU: 80 0D 02 02 31 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 A8 F9 00 00 35 04 06 00 84 3F 0C 07 BF E6 [23:47:48]Write to MH i2c: E2 39 00 78 00 80 0D 02 02 31 00 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 A8 F9 00 00 35 04 06 00 84 3F 0C 07 BF E6 00 00 37 [23:47:48]Write i2c OK [23:47:48]MH_I2C_Read... [23:47:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:47:48]Read from MH i2c: E2 [23:47:48]MH_I2C_Read... [23:47:48]Read from MH i2c: E2 03 00 [23:47:48]MH_I2C_Read... [23:47:48]Read from MH i2c: E2 03 00 78 00 00 90 00 EC [23:47:48]RAPDU: 90 00 [23:47:48]wFMCommunicate OK [23:47:48]wFMCommunicate request_size=4 [23:47:48]MH_SAM_APDU [23:47:48]CAPDU: 80 0D 03 02 [23:47:48]Write to MH i2c: E2 08 00 79 00 80 0D 03 02 00 00 00 00 F4 [23:47:48]Write i2c OK [23:47:48]MH_I2C_Read... [23:47:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:47:49]Read from MH i2c: E2 [23:47:49]MH_I2C_Read... [23:47:49]Read from MH i2c: E2 0B 00 [23:47:49]MH_I2C_Read... [23:47:49]Read from MH i2c: E2 0B 00 79 00 00 0E 4E FF A3 19 9D 2D 29 90 00 FF [23:47:49]RAPDU: 0E 4E FF A3 19 9D 2D 29 90 00 [23:47:49]wFMCommunicate OK [23:47:49]SAM_PROTO_SignData done [23:47:49]FM_MakeSignedData done [23:47:49]CreateOFDProtocolMessage [23:47:49]wFMCommunicate request_size=4 [23:47:49]MH_SAM_APDU [23:47:49]CAPDU: 80 11 00 00 [23:47:49]Write to MH i2c: E2 08 00 7A 00 80 11 00 00 00 00 00 00 F4 [23:47:49]Write i2c OK [23:47:49]MH_I2C_Read... [23:47:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:47:49]Read from MH i2c: E2 [23:47:49]MH_I2C_Read... [23:47:49]Read from MH i2c: E2 17 00 [23:47:49]MH_I2C_Read... [23:47:49]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 35 30 37 34 90 00 46 [23:47:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [23:47:49]wFMCommunicate OK [23:47:49]CreateOFDProtocolMessage done [23:47:49]OFDSenderStorePacket 63912 [23:47:49]StoreOFDPacket docnum=63912 [23:47:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 3B 01 00 00 99 98 33 01 FA F6 5A 03 01 00 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 35 34 34 31 06 04 35 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 23 56 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 A8 F9 00 00 35 04 06 00 84 3F 0C 07 BF E6 0E 4E FF A3 19 9D 2D 29 [23:47:49]CheckFolder [23:47:49]dirname=/storage/ofd_packets [23:47:49]CheckFolder done [23:47:49]ProducePacketName [23:47:49]name=ofd_packets/00063912 [23:47:49]NVStorageSaveData ofd_packets/00063912 [23:47:49]File name is /storage/ofd_packets/00063912 [23:47:49]Write 345 bytes [23:47:49]NVStorageSaveData done [23:47:49]OFDSenderStorePacket done [23:47:49]KKMCreateOFDPacket done [23:47:49]NVStorageSaveData kkm_last_timestamp [23:47:49]File name is /storage/kkm_last_timestamp [23:47:49]Write 4 bytes [23:47:49]NVStorageSaveData done [23:47:49]ExternCall_PrintAddStr [23:47:49]wPrintStart [23:47:49]Write to MH i2c: 01 00 00 7B 00 7B [23:47:49]Write i2c OK [23:47:49]MH_I2C_Read... [23:47:49]Read from MH i2c: 01 [23:47:49]MH_I2C_Read... [23:47:49]Read from MH i2c: 01 07 00 [23:47:49]MH_I2C_Read... [23:47:49]Read from MH i2c: 01 07 00 7B 00 00 00 00 00 00 FF 0F 90 [23:47:49]RasterBufferAndPrint [23:47:49]line Счет N : (3)73480 [23:47:49]line ИНН: 02508201610067 [23:47:49]line Контрольно-Кассовый Чек [23:47:49]line ПРОДАЖА [23:47:49]line Товар: 4870002325441 [23:47:49]line Вода ASU пит н.газ лимон ПЭТ 0,5л [23:47:49]line 1.000 * 65.00 [23:47:49]line = 65.00 [23:47:49]line НДС 12% НСП 1% [23:47:49]line > о реализуемом товаре [23:47:49]line ИТОГО: 65.00 [23:47:49]line НСП 1% : 0.57 [23:47:49]line НДС 12% : 6.90 [23:47:49]line Наличными: 65.00 [23:47:49]line Безнал.: 0.00 [23:47:49]line Место: АЗС № 117 "Партнер Нефть" [23:47:49]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [23:47:49]line СНО: Общий режим [23:47:49]line Чек 170 03.06.2024 23:47 [23:47:49]line Смена: 373 ФФД: 1.0 [23:47:49]line ЗНМ: 0300000031 [23:47:49]line РНМ: 0000000000092737 [23:47:49]line Версия ККМ: 001 [23:47:49]line ФМ: 0000000000875074 [23:47:49]line ФД: 63912 [23:47:49]line ФПД: 145406319640550 [23:47:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T234747&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63912&fm=145406319640550&tin=02508201610067®Number=0000000000092737&sum=6500 [23:47:49]line 0 [23:47:49]written 0, free lines is 4095 [23:47:49]OFD Sender: Processing packet 63912 [packets to send 14, broken 13] [23:47:49]ProducePacketName [23:47:49]name=ofd_packets/00063912 [23:47:49]OFD Sender: To server: pG, [23:47:49]CommunicateWithHost lk.salyk.kg:30040 [23:47:49]ConnectInit lk.salyk.kg [23:47:49]Connected sock=9 [23:47:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 3B 01 00 00 99 98 33 01 FA F6 5A 03 01 00 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 35 34 34 31 06 04 35 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 23 56 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 A8 F9 00 00 35 04 06 00 84 3F 0C 07 BF E6 0E 4E FF A3 19 9D 2D 29 [23:47:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 26 D3 47 00 15 C6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 A8 F9 00 00 F4 03 04 00 F3 01 5E 66 B6 04 01 00 00 4B 15 AF A7 4A 36 3C A7 [23:47:49]CommunicateWithHost err = 0 [23:47:49]CheckOFDResponse [23:47:49]1017 (14) - 77093643461234 [23:47:49]1041 (16) - 0000000000875074 [23:47:49]1040 (4) - 63912 [23:47:49]1012 (4) - 03.06.2024 17:48 [23:47:49]1206 (1) - 0 [23:47:49]OFD Sender: Remove packet 63912 [23:47:49]ProducePacketName [23:47:49]name=ofd_packets/00063912 [23:47:49]NVStorageDeleteData [23:47:49]Write to MH i2c: 01 00 00 A4 00 A4 [23:47:49]Write i2c OK [23:47:49]MH_I2C_Read... [23:47:49]Read from MH i2c: 01 [23:47:49]MH_I2C_Read... [23:47:49]Read from MH i2c: 01 07 00 [23:47:49]MH_I2C_Read... [23:47:49]Read from MH i2c: 01 07 00 A4 00 00 00 00 00 00 78 0D 30 [23:47:49]RasterBufferAndPrint [23:47:49]line [23:47:49]line [23:47:49]line [23:47:49]line [23:47:49]line [23:47:49]written 0, free lines is 3469 [23:47:49]MH_Cut [23:47:49]Write to MH i2c: D1 01 00 AB 00 01 7D [23:47:49]Write i2c OK [23:47:49]MH_I2C_Read... [23:47:49]Read from MH i2c: D1 [23:47:49]MH_I2C_Read... [23:47:49]Read from MH i2c: D1 01 00 [23:47:49]MH_I2C_Read... [23:47:49]Read from MH i2c: D1 01 00 AB 00 00 7C [23:47:49]Write to MH i2c: 01 00 00 AC 00 AC [23:47:49]Write i2c OK [23:47:49]MH_I2C_Read... [23:47:50]OFD Sender: No OFD packet to send [23:47:50]*** Cut start [23:47:50]*** Partial cut [23:47:50]*** CUTSNS_PIN = 1 [23:47:50]*** CUTSNS_PIN = 0 [23:47:50]*** Brake cut motor [23:47:51]Read from MH i2c: 01 [23:47:51]MH_I2C_Read... [23:47:51]*** Stop cut motor [23:47:51]*** Cut end [23:47:51]Read from MH i2c: 01 07 00 [23:47:51]MH_I2C_Read... [23:47:51]Read from MH i2c: 01 07 00 AC 00 00 00 00 00 00 FF 0F C1 [23:47:51]process_action close_receipt done [23:47:51]requested_data is exist [23:47:51]produce_requested_data [23:47:51]requested_item fm.sn is exist - process it [23:47:51]wFMCommunicate request_size=4 [23:47:51]MH_SAM_APDU [23:47:51]CAPDU: 80 11 00 00 [23:47:51]Write to MH i2c: E2 08 00 AD 00 80 11 00 00 00 00 00 00 27 [23:47:51]Write i2c OK [23:47:51]MH_I2C_Read... [23:47:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:47:51]Read from MH i2c: E2 [23:47:51]MH_I2C_Read... [23:47:51]Read from MH i2c: E2 17 00 [23:47:51]MH_I2C_Read... [23:47:51]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 35 30 37 34 90 00 79 [23:47:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [23:47:51]wFMCommunicate OK [23:47:51]requested_item fd.num is exist - process it [23:47:51]SAM_PROTO_GetFieldsCounters [23:47:51]wFMCommunicate request_size=4 [23:47:51]MH_SAM_APDU [23:47:51]CAPDU: 80 13 00 00 [23:47:51]Write to MH i2c: E2 08 00 AE 00 80 13 00 00 00 00 00 00 2A [23:47:51]Write i2c OK [23:47:51]MH_I2C_Read... [23:47:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:47:51]Read from MH i2c: E2 [23:47:51]MH_I2C_Read... [23:47:51]Read from MH i2c: E2 62 00 [23:47:51]MH_I2C_Read... [23:47:51]Read from MH i2c: E2 62 00 AE 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 A8 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 AA 00 00 00 5E 04 04 00 AA 00 00 00 57 04 04 00 AB 00 00 00 19 04 04 00 00 00 00 00 90 00 62 [23:47: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 A8 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 AA 00 00 00 5E 04 04 00 AA 00 00 00 57 04 04 00 AB 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:47:51]wFMCommunicate OK [23:47:51]SAM_PROTO_GetFieldsCounters done [23:47:51]requested_item shift.num is exist - process it [23:47:51]requested_item shift.opened is exist - process it [23:47:51]req_shift_opened [23:47:51]FM_GetShiftState [23:47:51]SAM_PROTO_GetShiftState [23:47:51]wFMCommunicate request_size=4 [23:47:51]MH_SAM_APDU [23:47:51]CAPDU: 80 13 01 00 [23:47:51]Write to MH i2c: E2 08 00 AF 00 80 13 01 00 00 00 00 00 2C [23:47:51]Write i2c OK [23:47:51]MH_I2C_Read... [23:47:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:47:51]Read from MH i2c: E2 [23:47:51]MH_I2C_Read... [23:47:51]Read from MH i2c: E2 0E 00 [23:47:51]MH_I2C_Read... [23:47:51]Read from MH i2c: E2 0E 00 AF 00 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 F8 [23:47:51]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [23:47:51]wFMCommunicate OK [23:47:51]SAM_PROTO_GetShiftState done [23:47:51]FM_GetShiftState done [23:47:51]req_shift_opened done [23:47:51]requested_item shift.open_date is exist - process it [23:47:51]req_shift_open_date [23:47:51]req_shift_open_date done [23:47:51]produce_requested_data done [23:47:51]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63912,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [23:47:51]process_action_free close_receipt [23:47:51]json_value_free [23:47:51]json_value_free done [23:47:51]process_json_proto returns [23:47:51]Send response to host [23:47:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63912,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [23:47:51]free response buf [23:47:51]execute_script done [23:47:51]execute_script returns [23:47:51]free content buf [23:47:51]Sock 7.Close socket [23:47:51]Sock 7.Thread stoped [23:47:52]accept exits with 10 [23:47:52]New connection [23:47:52]New thread 3067055460 created [23:47:52]Thread 3066912100 joined [23:47:52]Waiting for new connection... [23:47:52] Sock 10.Parse request [23:47:52]Sock 10.Check first char [23:47:52]Sock 10.First char is OK [23:47:52]request: POST /json_proto HTTP/1.0 [23:47:52]Method: POST [23:47:52]URL: /json_proto [23:47:52]Method is POST - this is cgi request [23:47:52]url: /json_proto [23:47:52]query_string will be loaded in cgi processing [23:47:52]execute_cgi json_proto POST (null) [23:47:52]execute_cgi path=json_proto method=POST [23:47:52]POST find Content-Length [23:47:52]Host: 172.17.60.69:8080 [23:47:52]Content-Length: 883 [23:47:52]Content-Type: application/json [23:47:52] [23:47:52]POST finish read [23:47:52]Found Content-Length = 883 [23:47:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73481", "tax_sys" : 0, "items" : [ { "code": "48744683", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Caster+", "price" : 143.00, "quantity" : 1.000, "sum" : 143.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 258.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:47:52]execute_script... [23:47:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73481", "tax_sys" : 0, "items" : [ { "code": "48744683", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Caster+", "price" : 143.00, "quantity" : 1.000, "sum" : 143.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 258.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:47:52]POST & json_proto [23:47:52]process_json_proto [23:47:52]json parsed OK: [23:47:52]protocol is kg_v1.0 [23:47:52]action value=close_receipt [23:47:52]process_action close_receipt [23:47:52]cmd_close_receipt [23:47:52]MH_GetDate [23:47:52]Write to MH i2c: F0 00 00 B0 00 9F [23:47:52]Write i2c OK [23:47:52]MH_I2C_Read... [23:47:52]Read from MH i2c: F0 [23:47:52]MH_I2C_Read... [23:47:52]Read from MH i2c: F0 09 00 [23:47:52]MH_I2C_Read... [23:47:52]Read from MH i2c: F0 09 00 B0 00 00 28 56 5E 66 6A 96 4A 66 9A [23:47:52]GetLastDocTimeStamp 1717458467 [23:47:52]current date 1717458472 [23:47:52]FM_GetShiftState [23:47:52]SAM_PROTO_GetShiftState [23:47:52]wFMCommunicate request_size=4 [23:47:52]MH_SAM_APDU [23:47:52]CAPDU: 80 13 01 00 [23:47:52]Write to MH i2c: E2 08 00 B1 00 80 13 01 00 00 00 00 00 2E [23:47:52]Write i2c OK [23:47:52]MH_I2C_Read... [23:47:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:47:52]Read from MH i2c: E2 [23:47:52]MH_I2C_Read... [23:47:52]Read from MH i2c: E2 0E 00 [23:47:52]MH_I2C_Read... [23:47:52]Read from MH i2c: E2 0E 00 B1 00 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 FA [23:47:52]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [23:47:52]wFMCommunicate OK [23:47:52]SAM_PROTO_GetShiftState done [23:47:52]FM_GetShiftState done [23:47:52]opened in 1717373173 [23:47:52]opened+sec_in_day 1717459573 [23:47:52]quantity*price = 14300 [23:47:52]sum+1 = 14301 [23:47:52]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036210013 Кофе Капучино (GABB TRADE) 1.000 * 115.00 = 115.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 258.00 НСП 1% : 2.28 НДС 12% : 27.40 Наличными: 258.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 171 03.06.2024 23:47 Смена: 373 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63913 ФПД: 206404081848504 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T234752&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63913&fm=206404081848504&tin=02508201610067®Number=0000000000092737&sum=25800 0 [23:47:54]StoreToDocumentArchive [23:47:54]shift 373 fd 63913 [23:47:54]save to /storage/0373/doc_00063913 [23:47:54]save last doc name /storage/0373/doc_00063913 to /storage/kkm_last_doc_name [23:47:54]save OK [23:47:54]Clear old archive folders... [23:47:54]ProcessDocumentItem done err = 0, tmpTLVsize=386 [23:47:54]tlvbuf is 01268940 [23:47:54]SAM_PROTO_ClearQueue [23:47:54]wFMCommunicate request_size=4 [23:47:54]MH_SAM_APDU [23:47:54]CAPDU: 80 09 00 00 [23:47:54]Write to MH i2c: E2 08 00 BE 00 80 09 00 00 00 00 00 00 30 [23:47:54]Write i2c OK [23:47:54]MH_I2C_Read... [23:47:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:47:54]Read from MH i2c: E2 [23:47:54]MH_I2C_Read... [23:47:54]Read from MH i2c: E2 03 00 [23:47:54]MH_I2C_Read... [23:47:54]Read from MH i2c: E2 03 00 BE 00 00 90 00 32 [23:47:54]RAPDU: 90 00 [23:47:54]wFMCommunicate OK [23:47:54]SAM_PROTO_ClearQueue done [23:47:54]KKMCreateOFDPacket [23:47:54]OFDProtocolAddRootSTLVToBuf [23:47:54]FM_MakeSignedData [23:47:54]FM_MakeSignedData [23:47:54]SAM_PROTO_SignData [23:47:54]wFMCommunicate request_size=4 [23:47:54]MH_SAM_APDU [23:47:54]CAPDU: 80 0D 01 02 [23:47:54]Write to MH i2c: E2 08 00 BF 00 80 0D 01 02 00 00 00 00 38 [23:47:54]Write i2c OK [23:47:54]MH_I2C_Read... [23:47:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:47:54]Read from MH i2c: E2 [23:47:54]MH_I2C_Read... [23:47:54]Read from MH i2c: E2 03 00 [23:47:54]MH_I2C_Read... [23:47:54]Read from MH i2c: E2 03 00 BF 00 00 90 00 33 [23:47:54]RAPDU: 90 00 [23:47:54]wFMCommunicate OK [23:47:54]wFMCommunicate request_size=255 [23:47:54]MH_SAM_APDU [23:47:54]CAPDU: 80 0D 02 02 FA 03 00 82 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 34 36 38 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 43 61 73 74 65 72 2B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 37 00 00 00 00 13 04 06 00 DC 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 64 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 [23:47:54]Write to MH i2c: E2 02 01 C0 00 80 0D 02 02 FA 00 03 00 82 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 34 36 38 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 43 61 73 74 65 72 2B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 37 00 00 00 00 13 04 06 00 DC 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 64 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 00 00 EC [23:47:54]Write i2c OK [23:47:54]MH_I2C_Read... [23:47:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:47:54]Read from MH i2c: E2 [23:47:54]MH_I2C_Read... [23:47:54]Read from MH i2c: E2 03 00 [23:47:54]MH_I2C_Read... [23:47:54]Read from MH i2c: E2 03 00 C0 00 00 90 00 34 [23:47:54]RAPDU: 90 00 [23:47:54]wFMCommunicate OK [23:47:54]wFMCommunicate request_size=145 [23:47:54]MH_SAM_APDU [23:47:54]CAPDU: 80 0D 02 02 8C 06 00 E4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 0A 00 00 00 00 07 04 06 00 C8 64 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 28 56 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 A9 F9 00 00 35 04 06 00 BB B9 31 FA 90 B8 [23:47:54]Write to MH i2c: E2 94 00 C1 00 80 0D 02 02 8C 00 06 00 E4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 0A 00 00 00 00 07 04 06 00 C8 64 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 28 56 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 A9 F9 00 00 35 04 06 00 BB B9 31 FA 90 B8 00 00 42 [23:47:55]Write i2c OK [23:47:55]MH_I2C_Read... [23:47:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:47:55]Read from MH i2c: E2 [23:47:55]MH_I2C_Read... [23:47:55]Read from MH i2c: E2 03 00 [23:47:55]MH_I2C_Read... [23:47:55]Read from MH i2c: E2 03 00 C1 00 00 90 00 35 [23:47:55]RAPDU: 90 00 [23:47:55]wFMCommunicate OK [23:47:55]wFMCommunicate request_size=4 [23:47:55]MH_SAM_APDU [23:47:55]CAPDU: 80 0D 03 02 [23:47:55]Write to MH i2c: E2 08 00 C2 00 80 0D 03 02 00 00 00 00 3D [23:47:55]Write i2c OK [23:47:55]MH_I2C_Read... [23:47:55]OFD Sender: No OFD packet to send [23:47:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:47:55]Read from MH i2c: E2 [23:47:55]MH_I2C_Read... [23:47:55]Read from MH i2c: E2 0B 00 [23:47:55]MH_I2C_Read... [23:47:55]Read from MH i2c: E2 0B 00 C2 00 00 78 B9 E5 C7 B7 20 2E 44 90 00 64 [23:47:55]RAPDU: 78 B9 E5 C7 B7 20 2E 44 90 00 [23:47:55]wFMCommunicate OK [23:47:55]SAM_PROTO_SignData done [23:47:55]FM_MakeSignedData done [23:47:55]CreateOFDProtocolMessage [23:47:55]wFMCommunicate request_size=4 [23:47:55]MH_SAM_APDU [23:47:55]CAPDU: 80 11 00 00 [23:47:55]Write to MH i2c: E2 08 00 C3 00 80 11 00 00 00 00 00 00 3D [23:47:55]Write i2c OK [23:47:55]MH_I2C_Read... [23:47:55]Read from MH i2c: E2 [23:47:55]MH_I2C_Read... [23:47:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:47:55]Read from MH i2c: E2 17 00 [23:47:55]MH_I2C_Read... [23:47:55]Read from MH i2c: E2 17 00 C3 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 8F [23:47:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [23:47:55]wFMCommunicate OK [23:47:55]CreateOFDProtocolMessage done [23:47:55]OFDSenderStorePacket 63913 [23:47:55]StoreOFDPacket docnum=63913 [23:47:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 96 01 00 00 62 8A 8E 01 1B 2F 5A 03 01 00 03 00 82 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 34 36 38 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 43 61 73 74 65 72 2B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 37 00 00 00 00 13 04 06 00 DC 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 64 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 0A 00 00 00 00 07 04 06 00 C8 64 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 28 56 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 A9 F9 00 00 35 04 06 00 BB B9 31 FA 90 B8 78 B9 E5 C7 B7 20 2E 44 [23:47:55]CheckFolder [23:47:55]dirname=/storage/ofd_packets [23:47:55]CheckFolder done [23:47:55]ProducePacketName [23:47:55]name=ofd_packets/00063913 [23:47:55]NVStorageSaveData ofd_packets/00063913 [23:47:55]File name is /storage/ofd_packets/00063913 [23:47:55]Write 436 bytes [23:47:55]NVStorageSaveData done [23:47:55]OFDSenderStorePacket done [23:47:55]KKMCreateOFDPacket done [23:47:55]NVStorageSaveData kkm_last_timestamp [23:47:55]File name is /storage/kkm_last_timestamp [23:47:55]Write 4 bytes [23:47:55]NVStorageSaveData done [23:47:55]ExternCall_PrintAddStr [23:47:55]wPrintStart [23:47:55]Write to MH i2c: 01 00 00 C4 00 C4 [23:47:55]Write i2c OK [23:47:55]MH_I2C_Read... [23:47:55]Read from MH i2c: 01 [23:47:55]MH_I2C_Read... [23:47:55]Read from MH i2c: 01 07 00 [23:47:55]MH_I2C_Read... [23:47:55]Read from MH i2c: 01 07 00 C4 00 00 00 00 00 00 FF 0F D9 [23:47:55]RasterBufferAndPrint [23:47:55]line Счет N : (3)73481 [23:47:55]line ИНН: 02508201610067 [23:47:55]line Контрольно-Кассовый Чек [23:47:55]line ПРОДАЖА [23:47:55]line Товар: 48744683 [23:47:55]line Сигареты Winston XStyle Caster+ [23:47:55]line 1.000 * 143.00 [23:47:55]line = 143.00 [23:47:55]line НДС 12% НСП 1% [23:47:55]line > о реализуемом товаре [23:47:55]line Товар: 2000036210013 [23:47:55]line Кофе Капучино (GABB TRADE) [23:47:55]line 1.000 * 115.00 [23:47:55]line = 115.00 [23:47:55]line НДС 12% НСП 1% [23:47:55]line > о реализуемом товаре [23:47:55]line ИТОГО: 258.00 [23:47:55]line НСП 1% : 2.28 [23:47:55]line НДС 12% : 27.40 [23:47:55]line Наличными: 258.00 [23:47:55]line Безнал.: 0.00 [23:47:55]line Место: АЗС № 117 "Партнер Нефть" [23:47:55]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [23:47:55]line СНО: Общий режим [23:47:55]line Чек 171 03.06.2024 23:47 [23:47:55]line Смена: 373 ФФД: 1.0 [23:47:55]line ЗНМ: 0300000031 [23:47:55]line РНМ: 0000000000092737 [23:47:55]line Версия ККМ: 001 [23:47:55]line ФМ: 0000000000875074 [23:47:55]line ФД: 63913 [23:47:55]line ФПД: 206404081848504 [23:47:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T234752&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63913&fm=206404081848504&tin=02508201610067®Number=0000000000092737&sum=25800 [23:47:55]line 0 [23:47:55]written 0, free lines is 4095 [23:47:55]OFD Sender: Processing packet 63913 [packets to send 14, broken 13] [23:47:55]ProducePacketName [23:47:55]name=ofd_packets/00063913 [23:47:55]OFD Sender: To server: pG, [23:47:55]CommunicateWithHost lk.salyk.kg:30040 [23:47:55]ConnectInit lk.salyk.kg [23:47:55]Connected sock=7 [23:47:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 96 01 00 00 62 8A 8E 01 1B 2F 5A 03 01 00 03 00 82 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 34 36 38 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 43 61 73 74 65 72 2B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 37 00 00 00 00 13 04 06 00 DC 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 64 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 0A 00 00 00 00 07 04 06 00 C8 64 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 28 56 5E 66 0E 04 04 00 75 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 A9 F9 00 00 35 04 06 00 BB B9 31 FA 90 B8 78 B9 E5 C7 B7 20 2E 44 [23:47:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 02 31 47 00 09 91 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 A9 F9 00 00 F4 03 04 00 F9 01 5E 66 B6 04 01 00 00 05 02 4D B1 62 95 2C 5F [23:47:56]CommunicateWithHost err = 0 [23:47:56]CheckOFDResponse [23:47:56]1017 (14) - 77093643461234 [23:47:56]1041 (16) - 0000000000875074 [23:47:56]1040 (4) - 63913 [23:47:56]1012 (4) - 03.06.2024 17:48 [23:47:56]1206 (1) - 0 [23:47:56]OFD Sender: Remove packet 63913 [23:47:56]ProducePacketName [23:47:56]name=ofd_packets/00063913 [23:47:56]NVStorageDeleteData [23:47:56]Write to MH i2c: 01 00 00 F3 00 F3 [23:47:56]Write i2c OK [23:47:56]MH_I2C_Read... [23:47:56]Read from MH i2c: 01 [23:47:56]MH_I2C_Read... [23:47:56]Read from MH i2c: 01 07 00 [23:47:56]MH_I2C_Read... [23:47:56]Read from MH i2c: 01 07 00 F3 00 00 00 00 00 00 4C 0D 53 [23:47:56]RasterBufferAndPrint [23:47:56]line [23:47:56]line [23:47:56]line [23:47:56]line [23:47:56]line [23:47:56]written 0, free lines is 3430 [23:47:56]MH_Cut [23:47:56]Write to MH i2c: D1 01 00 FA 00 01 CC [23:47:56]Write i2c OK [23:47:56]MH_I2C_Read... [23:47:56]Read from MH i2c: D1 [23:47:56]MH_I2C_Read... [23:47:56]Read from MH i2c: D1 01 00 [23:47:56]MH_I2C_Read... [23:47:56]Read from MH i2c: D1 01 00 FA 00 00 CB [23:47:56]Write to MH i2c: 01 00 00 FB 00 FB [23:47:56]Write i2c OK [23:47:56]MH_I2C_Read... [23:47:56]OFD Sender: No OFD packet to send [23:47:56]*** Cut start [23:47:56]*** Partial cut [23:47:56]*** CUTSNS_PIN = 1 [23:47:56]*** CUTSNS_PIN = 0 [23:47:57]*** Brake cut motor [23:47:57]Read from MH i2c: 01 [23:47:57]MH_I2C_Read... [23:47:57]*** Stop cut motor [23:47:57]*** Cut end [23:47:57]Read from MH i2c: 01 07 00 [23:47:57]MH_I2C_Read... [23:47:57]Read from MH i2c: 01 07 00 FB 00 00 00 00 00 00 FF 0F 10 [23:47:57]process_action close_receipt done [23:47:57]requested_data is exist [23:47:57]produce_requested_data [23:47:57]requested_item fm.sn is exist - process it [23:47:57]wFMCommunicate request_size=4 [23:47:57]MH_SAM_APDU [23:47:57]CAPDU: 80 11 00 00 [23:47:57]Write to MH i2c: E2 08 00 FC 00 80 11 00 00 00 00 00 00 76 [23:47:57]Write i2c OK [23:47:57]MH_I2C_Read... [23:47:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:47:57]Read from MH i2c: E2 [23:47:57]MH_I2C_Read... [23:47:57]Read from MH i2c: E2 17 00 [23:47:57]MH_I2C_Read... [23:47:57]Read from MH i2c: E2 17 00 FC 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 C8 [23:47:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [23:47:57]wFMCommunicate OK [23:47:57]requested_item fd.num is exist - process it [23:47:57]SAM_PROTO_GetFieldsCounters [23:47:57]wFMCommunicate request_size=4 [23:47:57]MH_SAM_APDU [23:47:57]CAPDU: 80 13 00 00 [23:47:57]Write to MH i2c: E2 08 00 FD 00 80 13 00 00 00 00 00 00 79 [23:47:57]Write i2c OK [23:47:57]MH_I2C_Read... [23:47:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:47:57]Read from MH i2c: E2 [23:47:57]MH_I2C_Read... [23:47:57]Read from MH i2c: E2 62 00 [23:47:57]MH_I2C_Read... [23:47:57]Read from MH i2c: E2 62 00 FD 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 A9 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 AB 00 00 00 5E 04 04 00 AB 00 00 00 57 04 04 00 AC 00 00 00 19 04 04 00 00 00 00 00 90 00 B5 [23:47: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 A9 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 AB 00 00 00 5E 04 04 00 AB 00 00 00 57 04 04 00 AC 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:47:57]wFMCommunicate OK [23:47:57]SAM_PROTO_GetFieldsCounters done [23:47:57]requested_item shift.num is exist - process it [23:47:57]requested_item shift.opened is exist - process it [23:47:57]req_shift_opened [23:47:57]FM_GetShiftState [23:47:57]SAM_PROTO_GetShiftState [23:47:57]wFMCommunicate request_size=4 [23:47:57]MH_SAM_APDU [23:47:57]CAPDU: 80 13 01 00 [23:47:57]Write to MH i2c: E2 08 00 FE 00 80 13 01 00 00 00 00 00 7B [23:47:57]Write i2c OK [23:47:57]MH_I2C_Read... [23:47:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:47:57]Read from MH i2c: E2 [23:47:57]MH_I2C_Read... [23:47:57]Read from MH i2c: E2 0E 00 [23:47:57]MH_I2C_Read... [23:47:57]Read from MH i2c: E2 0E 00 FE 00 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 47 [23:47:57]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [23:47:57]wFMCommunicate OK [23:47:57]SAM_PROTO_GetShiftState done [23:47:57]FM_GetShiftState done [23:47:57]req_shift_opened done [23:47:57]requested_item shift.open_date is exist - process it [23:47:57]req_shift_open_date [23:47:57]req_shift_open_date done [23:47:57]produce_requested_data done [23:47:57]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63913,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [23:47:57]process_action_free close_receipt [23:47:57]json_value_free [23:47:57]json_value_free done [23:47:57]process_json_proto returns [23:47:57]Send response to host [23:47:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63913,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [23:47:57]free response buf [23:47:57]execute_script done [23:47:57]execute_script returns [23:47:57]free content buf [23:47:57]Sock 10.Close socket [23:47:57]Sock 10.Thread stoped [23:48:01]OFD Sender: No OFD packet to send [23:48:06]OFD Sender: No OFD packet to send [23:48:11]OFD Sender: No OFD packet to send [23:48:16]OFD Sender: No OFD packet to send [23:48:21]OFD Sender: No OFD packet to send [23:48:26]OFD Sender: No OFD packet to send [23:48:31]OFD Sender: No OFD packet to send [23:48:36]OFD Sender: No OFD packet to send [23:48:41]OFD Sender: No OFD packet to send [23:48:46]OFD Sender: No OFD packet to send [23:48:51]OFD Sender: No OFD packet to send [23:48:56]OFD Sender: No OFD packet to send [23:49:01]OFD Sender: No OFD packet to send [23:49:06]OFD Sender: No OFD packet to send [23:49:11]OFD Sender: No OFD packet to send [23:49:16]OFD Sender: No OFD packet to send [23:49:21]OFD Sender: No OFD packet to send [23:49:26]OFD Sender: No OFD packet to send [23:49:31]OFD Sender: No OFD packet to send [23:49:36]OFD Sender: No OFD packet to send [23:49:41]OFD Sender: No OFD packet to send [23:49:46]OFD Sender: No OFD packet to send [23:49:51]OFD Sender: No OFD packet to send [23:49:56]OFD Sender: No OFD packet to send [23:50:01]OFD Sender: No OFD packet to send [23:50:06]OFD Sender: No OFD packet to send [23:50:11]OFD Sender: No OFD packet to send [23:50:16]OFD Sender: No OFD packet to send [23:50:21]OFD Sender: No OFD packet to send [23:50:26]OFD Sender: No OFD packet to send [23:50:31]OFD Sender: No OFD packet to send [23:50:36]OFD Sender: No OFD packet to send [23:50:41]OFD Sender: No OFD packet to send [23:50:46]OFD Sender: No OFD packet to send [23:50:51]OFD Sender: No OFD packet to send [23:50:56]OFD Sender: No OFD packet to send [23:51:01]OFD Sender: No OFD packet to send [23:51:06]OFD Sender: No OFD packet to send [23:51:11]OFD Sender: No OFD packet to send [23:51:16]OFD Sender: No OFD packet to send [23:51:21]OFD Sender: No OFD packet to send [23:51:26]OFD Sender: No OFD packet to send [23:51:31]OFD Sender: No OFD packet to send [23:51:36]OFD Sender: No OFD packet to send [23:51:41]OFD Sender: No OFD packet to send [23:51:46]OFD Sender: No OFD packet to send [23:51:51]OFD Sender: No OFD packet to send [23:51:56]OFD Sender: No OFD packet to send [23:52:01]OFD Sender: No OFD packet to send [23:52:06]OFD Sender: No OFD packet to send [23:52:11]OFD Sender: No OFD packet to send [23:52:16]OFD Sender: No OFD packet to send [23:52:21]OFD Sender: No OFD packet to send [23:52:26]OFD Sender: No OFD packet to send [23:52:31]OFD Sender: No OFD packet to send [23:52:36]OFD Sender: No OFD packet to send [23:52:41]OFD Sender: No OFD packet to send [23:52:46]OFD Sender: No OFD packet to send [23:52:51]OFD Sender: No OFD packet to send [23:52:56]OFD Sender: No OFD packet to send [23:53:01]OFD Sender: No OFD packet to send [23:53:06]OFD Sender: No OFD packet to send [23:53:11]OFD Sender: No OFD packet to send [23:53:16]OFD Sender: No OFD packet to send [23:53:21]OFD Sender: No OFD packet to send [23:53:26]OFD Sender: No OFD packet to send [23:53:31]OFD Sender: No OFD packet to send [23:53:36]OFD Sender: No OFD packet to send [23:53:41]OFD Sender: No OFD packet to send [23:53:46]OFD Sender: No OFD packet to send [23:53:51]OFD Sender: No OFD packet to send [23:53:56]OFD Sender: No OFD packet to send [23:54:01]OFD Sender: No OFD packet to send [23:54:06]OFD Sender: No OFD packet to send [23:54:11]OFD Sender: No OFD packet to send [23:54:16]OFD Sender: No OFD packet to send [23:54:21]OFD Sender: No OFD packet to send [23:54:26]OFD Sender: No OFD packet to send [23:54:31]OFD Sender: No OFD packet to send [23:54:36]OFD Sender: No OFD packet to send [23:54:41]OFD Sender: No OFD packet to send [23:54:46]OFD Sender: No OFD packet to send [23:54:51]OFD Sender: No OFD packet to send [23:54:56]OFD Sender: No OFD packet to send [23:55:01]OFD Sender: No OFD packet to send [23:55:06]OFD Sender: No OFD packet to send [23:55:11]OFD Sender: No OFD packet to send [23:55:16]OFD Sender: No OFD packet to send [23:55:21]OFD Sender: No OFD packet to send [23:55:26]OFD Sender: No OFD packet to send [23:55:31]OFD Sender: No OFD packet to send [23:55:36]OFD Sender: No OFD packet to send [23:55:41]OFD Sender: No OFD packet to send [23:55:46]OFD Sender: No OFD packet to send [23:55:51]OFD Sender: No OFD packet to send [23:55:56]OFD Sender: No OFD packet to send [23:56:01]OFD Sender: No OFD packet to send [23:56:06]OFD Sender: No OFD packet to send [23:56:11]OFD Sender: No OFD packet to send [23:56:16]OFD Sender: No OFD packet to send [23:56:21]OFD Sender: No OFD packet to send [23:56:26]OFD Sender: No OFD packet to send [23:56:31]OFD Sender: No OFD packet to send [23:56:36]OFD Sender: No OFD packet to send [23:56: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:27]OFD Sender: No OFD packet to send [23:59:32]OFD Sender: No OFD packet to send [23:59:37]OFD Sender: No OFD packet to send [23:59:42]OFD Sender: No OFD packet to send [23:59:47]OFD Sender: No OFD packet to send [23:59:52]OFD Sender: No OFD packet to send [23:59:57]OFD Sender: No OFD packet to send [00:00:02]OFD Sender: No OFD packet to send [00:00:07]OFD Sender: No OFD packet to send [00:00:12]OFD Sender: No OFD packet to send [00:00:17]OFD Sender: No OFD packet to send [00:00:22]OFD Sender: No OFD packet to send [00:00:27]OFD Sender: No OFD packet to send [00:00:32]OFD Sender: No OFD packet to send [00:00:37]OFD Sender: No OFD packet to send [00:00:42]OFD Sender: No OFD packet to send [00:00:47]OFD Sender: No OFD packet to send [00:00:52]OFD Sender: No OFD packet to send [00:00:57]OFD Sender: No OFD packet to send [00:01:02]OFD Sender: No OFD packet to send [00:01:07]OFD Sender: No OFD packet to send [00:01:09]accept exits with 9 [00:01:09]New connection [00:01:09]New thread 3066912100 created [00:01:09]Thread 3067055460 joined [00:01:09]Waiting for new connection... [00:01:09] Sock 9.Parse request [00:01:09]Sock 9.Check first char [00:01:09]Sock 9.First char is OK [00:01:09]request: POST /json_proto HTTP/1.0 [00:01:09]Method: POST [00:01:09]URL: /json_proto [00:01:09]Method is POST - this is cgi request [00:01:09]url: /json_proto [00:01:09]query_string will be loaded in cgi processing [00:01:09]execute_cgi json_proto POST (null) [00:01:09]execute_cgi path=json_proto method=POST [00:01:09]POST find Content-Length [00:01:09]Host: 172.17.60.69:8080 [00:01:09]Content-Length: 215 [00:01:09]Content-Type: application/json [00:01:09] [00:01:09]POST finish read [00:01:09]Found Content-Length = 215 [00:01: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" ] } } [00:01:09]execute_script... [00:01: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" ] } } [00:01:09]POST & json_proto [00:01:09]process_json_proto [00:01:09]json parsed OK: [00:01:09]protocol is kg_v1.0 [00:01:09]action value=get_value [00:01:09]process_action get_value [00:01:09]cmd_get_value [00:01:09]process_action get_value done [00:01:09]requested_data is exist [00:01:09]produce_requested_data [00:01:09]requested_item kkm.sn is exist - process it [00:01:09]requested_item kkm.ver is exist - process it [00:01:09]requested_item fm.sn is exist - process it [00:01:09]wFMCommunicate request_size=4 [00:01:09]MH_SAM_APDU [00:01:09]CAPDU: 80 11 00 00 [00:01:09]Write to MH i2c: E2 08 00 FF 00 80 11 00 00 00 00 00 00 79 [00:01:09]Write i2c OK [00:01:09]MH_I2C_Read... [00:01:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:01:09]Read from MH i2c: E2 [00:01:09]MH_I2C_Read... [00:01:09]Read from MH i2c: E2 17 00 [00:01:09]MH_I2C_Read... [00:01:09]Read from MH i2c: E2 17 00 FF 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 CB [00:01:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [00:01:09]wFMCommunicate OK [00:01:09]requested_item fd.num is exist - process it [00:01:09]SAM_PROTO_GetFieldsCounters [00:01:09]wFMCommunicate request_size=4 [00:01:09]MH_SAM_APDU [00:01:09]CAPDU: 80 13 00 00 [00:01:09]Write to MH i2c: E2 08 00 00 01 80 13 00 00 00 00 00 00 7D [00:01:09]Write i2c OK [00:01:09]MH_I2C_Read... [00:01:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:01:09]Read from MH i2c: E2 [00:01:09]MH_I2C_Read... [00:01:09]Read from MH i2c: E2 62 00 [00:01:09]MH_I2C_Read... [00:01:09]Read from MH i2c: E2 62 00 00 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 A9 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 AB 00 00 00 5E 04 04 00 AB 00 00 00 57 04 04 00 AC 00 00 00 19 04 04 00 00 00 00 00 90 00 B9 [00:01: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 A9 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 AB 00 00 00 5E 04 04 00 AB 00 00 00 57 04 04 00 AC 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:01:09]wFMCommunicate OK [00:01:09]SAM_PROTO_GetFieldsCounters done [00:01:09]requested_item shift.num is exist - process it [00:01:09]requested_item shift.opened is exist - process it [00:01:09]req_shift_opened [00:01:09]FM_GetShiftState [00:01:09]SAM_PROTO_GetShiftState [00:01:09]wFMCommunicate request_size=4 [00:01:09]MH_SAM_APDU [00:01:09]CAPDU: 80 13 01 00 [00:01:09]Write to MH i2c: E2 08 00 01 01 80 13 01 00 00 00 00 00 7F [00:01:09]Write i2c OK [00:01:09]MH_I2C_Read... [00:01:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:01:09]Read from MH i2c: E2 [00:01:09]MH_I2C_Read... [00:01:09]Read from MH i2c: E2 0E 00 [00:01:09]MH_I2C_Read... [00:01:09]Read from MH i2c: E2 0E 00 01 01 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 4B [00:01:09]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [00:01:09]wFMCommunicate OK [00:01:09]SAM_PROTO_GetShiftState done [00:01:09]FM_GetShiftState done [00:01:09]req_shift_opened done [00:01:09]requested_item shift.open_date is exist - process it [00:01:09]req_shift_open_date [00:01:09]req_shift_open_date done [00:01:09]produce_requested_data done [00:01:09]produce_requested_data return {"kkm.sn":"0300000031","kkm.ver":"001","fm.sn":"0000000000875074","fd.num":63913,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [00:01:09]process_action_free get_value [00:01:09]json_value_free [00:01:09]json_value_free done [00:01:09]process_json_proto returns [00:01:09]Send response to host [00:01:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000031","kkm.ver":"001","fm.sn":"0000000000875074","fd.num":63913,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [00:01:09]free response buf [00:01:09]execute_script done [00:01:09]execute_script returns [00:01:09]free content buf [00:01:09]Sock 9.Close socket [00:01:09]Sock 9.Thread stoped [00:01:09]accept exits with 7 [00:01:09]New connection [00:01:09]New thread 3067055460 created [00:01:09]Thread 3066912100 joined [00:01:09]Waiting for new connection... [00:01:09] Sock 7.Parse request [00:01:09]Sock 7.Check first char [00:01:09]Sock 7.First char is OK [00:01:09]request: POST /json_proto HTTP/1.0 [00:01:09]Method: POST [00:01:09]URL: /json_proto [00:01:09]Method is POST - this is cgi request [00:01:09]url: /json_proto [00:01:09]query_string will be loaded in cgi processing [00:01:09]execute_cgi json_proto POST (null) [00:01:09]execute_cgi path=json_proto method=POST [00:01:09]POST find Content-Length [00:01:09]Host: 172.17.60.69:8080 [00:01:09]Content-Length: 331 [00:01:09]Content-Type: application/json [00:01:09] [00:01:09]POST finish read [00:01:09]Found Content-Length = 331 [00:01: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" ] } } [00:01:09]execute_script... [00:01: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" ] } } [00:01:09]POST & json_proto [00:01:09]process_json_proto [00:01:09]json parsed OK: [00:01:09]protocol is kg_v1.0 [00:01:09]action value=get_value [00:01:09]process_action get_value [00:01:09]cmd_get_value [00:01:09]process_action get_value done [00:01:09]requested_data is exist [00:01:09]produce_requested_data [00:01:09]requested_item fm.sale.total is exist - process it [00:01:09]SAM_PROTO_GetFMData [00:01:09]wFMCommunicate request_size=4 [00:01:09]MH_SAM_APDU [00:01:09]CAPDU: 80 13 03 00 [00:01:09]Write to MH i2c: E2 08 00 02 01 80 13 03 00 00 00 00 00 82 [00:01:09]Write i2c OK [00:01:09]MH_I2C_Read... [00:01:10]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:01:10]Read from MH i2c: E2 [00:01:10]MH_I2C_Read... [00:01:10]Read from MH i2c: E2 FD 00 [00:01:10]MH_I2C_Read... [00:01:10]Read from MH i2c: E2 FD 00 02 01 00 C5 04 85 04 C1 04 6E 04 04 00 BF F6 00 00 69 04 A1 00 6F 04 04 00 5F F4 00 00 B1 04 04 00 B1 00 C4 76 70 04 04 00 96 B7 05 66 72 04 04 00 1B 49 BE 10 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 46 29 9D 0C 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 15 05 0D 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 60 02 00 00 B1 04 04 00 E4 BA 80 03 70 04 04 00 60 5F 65 03 72 04 03 00 84 5B 1B 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 84 3C 5F EF 03 09 90 00 84 [00:01:10]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 BF F6 00 00 69 04 A1 00 6F 04 04 00 5F F4 00 00 B1 04 04 00 B1 00 C4 76 70 04 04 00 96 B7 05 66 72 04 04 00 1B 49 BE 10 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 46 29 9D 0C 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 15 05 0D 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 60 02 00 00 B1 04 04 00 E4 BA 80 03 70 04 04 00 60 5F 65 03 72 04 03 00 84 5B 1B 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 84 3C 5F EF 03 09 90 00 [00:01:10]wFMCommunicate OK [00:01:10]wFMCommunicate request_size=4 [00:01:10]MH_SAM_APDU [00:01:10]CAPDU: 80 17 00 00 [00:01:10]Write to MH i2c: E2 08 00 03 01 80 17 00 00 00 00 00 00 84 [00:01:10]Write i2c OK [00:01:10]MH_I2C_Read... [00:01:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:01:10]Read from MH i2c: E2 [00:01:10]MH_I2C_Read... [00:01:10]Read from MH i2c: E2 FD 00 [00:01:10]MH_I2C_Read... [00:01:10]Read from MH i2c: E2 FD 00 03 01 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 7A EF 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 AA [00:01:10]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 7A EF 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [00:01:10]wFMCommunicate OK [00:01:10]wFMCommunicate request_size=4 [00:01:10]MH_SAM_APDU [00:01:10]CAPDU: 80 17 00 00 [00:01:10]Write to MH i2c: E2 08 00 04 01 80 17 00 00 00 00 00 00 85 [00:01:10]Write i2c OK [00:01:10]MH_I2C_Read... [00:01:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:01:10]Read from MH i2c: E2 [00:01:10]MH_I2C_Read... [00:01:10]Read from MH i2c: E2 FD 00 [00:01:10]MH_I2C_Read... [00:01:10]Read from MH i2c: E2 FD 00 04 01 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 97 [00:01:10]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [00:01:10]wFMCommunicate OK [00:01:10]wFMCommunicate request_size=4 [00:01:10]MH_SAM_APDU [00:01:10]CAPDU: 80 17 00 00 [00:01:10]Write to MH i2c: E2 08 00 05 01 80 17 00 00 00 00 00 00 86 [00:01:10]Write i2c OK [00:01:10]MH_I2C_Read... [00:01:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:01:10]Read from MH i2c: E2 [00:01:10]MH_I2C_Read... [00:01:10]Read from MH i2c: E2 FD 00 [00:01:10]MH_I2C_Read... [00:01:10]Read from MH i2c: E2 FD 00 05 01 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 12 [00:01:10]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [00:01:10]wFMCommunicate OK [00:01:10]wFMCommunicate request_size=4 [00:01:10]MH_SAM_APDU [00:01:10]CAPDU: 80 17 00 00 [00:01:10]Write to MH i2c: E2 08 00 06 01 80 17 00 00 00 00 00 00 87 [00:01:10]Write i2c OK [00:01:10]MH_I2C_Read... [00:01:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:01:11]Read from MH i2c: E2 [00:01:11]MH_I2C_Read... [00:01:11]Read from MH i2c: E2 E2 00 [00:01:11]MH_I2C_Read... [00:01:11]Read from MH i2c: E2 E2 00 06 01 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 65 [00:01:11]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:01:11]wFMCommunicate OK [00:01:11]SAM_PROTO_GetFMData done [00:01:11]requested_item fm.sale_refund.total is exist - process it [00:01:11]requested_item fm.buy.total is exist - process it [00:01:11]requested_item shift.sale.total is exist - process it [00:01:11]SAM_PROTO_GetShiftData [00:01:11]wFMCommunicate request_size=4 [00:01:11]MH_SAM_APDU [00:01:11]CAPDU: 80 13 02 00 [00:01:11]Write to MH i2c: E2 08 00 07 01 80 13 02 00 00 00 00 00 86 [00:01:11]Write i2c OK [00:01:11]MH_I2C_Read... [00:01:11]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:01:11]Read from MH i2c: E2 [00:01:11]MH_I2C_Read... [00:01:11]Read from MH i2c: E2 FD 00 [00:01:11]MH_I2C_Read... [00:01:11]Read from MH i2c: E2 FD 00 07 01 00 B8 04 AA 04 B4 04 6E 04 04 00 AB 00 00 00 69 04 9B 00 6F 04 04 00 A8 00 00 00 B1 04 03 00 C4 0B 4C 70 04 03 00 90 1C 3A 72 04 03 00 34 EF 11 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 96 13 08 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 41 AC EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 03 00 00 00 B1 04 03 00 80 A9 03 70 04 03 00 80 A9 03 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 92 63 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 EE [00:01:11]RAPDU: B8 04 AA 04 B4 04 6E 04 04 00 AB 00 00 00 69 04 9B 00 6F 04 04 00 A8 00 00 00 B1 04 03 00 C4 0B 4C 70 04 03 00 90 1C 3A 72 04 03 00 34 EF 11 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 96 13 08 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 41 AC EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 03 00 00 00 B1 04 03 00 80 A9 03 70 04 03 00 80 A9 03 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 92 63 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 [00:01:11]wFMCommunicate OK [00:01:11]wFMCommunicate request_size=4 [00:01:11]MH_SAM_APDU [00:01:11]CAPDU: 80 17 00 00 [00:01:11]Write to MH i2c: E2 08 00 08 01 80 17 00 00 00 00 00 00 89 [00:01:11]Write i2c OK [00:01:11]MH_I2C_Read... [00:01:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:01:11]Read from MH i2c: E2 [00:01:11]MH_I2C_Read... [00:01:11]Read from MH i2c: E2 FD 00 [00:01:11]MH_I2C_Read... [00:01:11]Read from MH i2c: E2 FD 00 08 01 00 0B 00 F6 03 01 00 01 F7 03 02 00 4C 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 90 00 0E [00:01:11]RAPDU: 0B 00 F6 03 01 00 01 F7 03 02 00 4C 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 90 00 [00:01:11]wFMCommunicate OK [00:01:11]wFMCommunicate request_size=4 [00:01:11]MH_SAM_APDU [00:01:11]CAPDU: 80 17 00 00 [00:01:11]Write to MH i2c: E2 08 00 09 01 80 17 00 00 00 00 00 00 8A [00:01:11]Write i2c OK [00:01:11]MH_I2C_Read... [00:01:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:01:12]Read from MH i2c: E2 [00:01:12]MH_I2C_Read... [00:01:12]Read from MH i2c: E2 FD 00 [00:01:12]MH_I2C_Read... [00:01:12]Read from MH i2c: E2 FD 00 09 01 00 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 90 00 2C [00:01:12]RAPDU: 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 90 00 [00:01:12]wFMCommunicate OK [00:01:12]wFMCommunicate request_size=4 [00:01:12]MH_SAM_APDU [00:01:12]CAPDU: 80 17 00 00 [00:01:12]Write to MH i2c: E2 08 00 0A 01 80 17 00 00 00 00 00 00 8B [00:01:12]Write i2c OK [00:01:12]MH_I2C_Read... [00:01:12]OFD Sender: No OFD packet to send [00:01:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:01:12]Read from MH i2c: E2 [00:01:12]MH_I2C_Read... [00:01:12]Read from MH i2c: E2 FD 00 [00:01:12]MH_I2C_Read... [00:01:12]Read from MH i2c: E2 FD 00 0A 01 00 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 90 00 14 [00:01:12]RAPDU: 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 90 00 [00:01:12]wFMCommunicate OK [00:01:12]wFMCommunicate request_size=4 [00:01:12]MH_SAM_APDU [00:01:12]CAPDU: 80 17 00 00 [00:01:12]Write to MH i2c: E2 08 00 0B 01 80 17 00 00 00 00 00 00 8C [00:01:12]Write i2c OK [00:01:12]MH_I2C_Read... [00:01:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 210! [00:01:12]Read from MH i2c: E2 [00:01:12]MH_I2C_Read... [00:01:12]Read from MH i2c: E2 D5 00 [00:01:12]MH_I2C_Read... [00:01:12]Read from MH i2c: E2 D5 00 0B 01 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 6D [00:01:12]RAPDU: EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:01:12]wFMCommunicate OK [00:01:12]SAM_PROTO_GetShiftData done [00:01:12]requested_item shift.sale.total_cash is exist - process it [00:01:12]requested_item shift.sale_refund.total is exist - process it [00:01:12]requested_item shift.sale_refund.total_cash is exist - process it [00:01:12]requested_item shift.buy.total is exist - process it [00:01:12]requested_item shift.buy.total_cash is exist - process it [00:01:12]produce_requested_data done [00:01:12]produce_requested_data return {"fm.sale.total":19925567.21,"fm.sale_refund.total":587681.00,"fm.buy.total":0.00,"shift.sale.total":49837.48,"shift.sale.total_cash":38084.00,"shift.sale_refund.total":2400.00,"shift.sale_refund.total_cash":2400.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:01:12]process_action_free get_value [00:01:12]json_value_free [00:01:12]json_value_free done [00:01:12]process_json_proto returns [00:01:12]Send response to host [00:01:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":19925567.21,"fm.sale_refund.total":587681.00,"fm.buy.total":0.00,"shift.sale.total":49837.48,"shift.sale.total_cash":38084.00,"shift.sale_refund.total":2400.00,"shift.sale_refund.total_cash":2400.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:01:12]free response buf [00:01:12]execute_script done [00:01:12]execute_script returns [00:01:12]free content buf [00:01:12]Sock 7.Close socket [00:01:12]Sock 7.Thread stoped [00:01:12]accept exits with 9 [00:01:12]New connection [00:01:12]New thread 3066912100 created [00:01:12]Thread 3067055460 joined [00:01:12]Waiting for new connection... [00:01:12] Sock 9.Parse request [00:01:12]Sock 9.Check first char [00:01:12]Sock 9.First char is OK [00:01:12]request: POST /json_proto HTTP/1.0 [00:01:12]Method: POST [00:01:12]URL: /json_proto [00:01:12]Method is POST - this is cgi request [00:01:12]url: /json_proto [00:01:12]query_string will be loaded in cgi processing [00:01:12]execute_cgi json_proto POST (null) [00:01:12]execute_cgi path=json_proto method=POST [00:01:12]POST find Content-Length [00:01:12]Host: 172.17.60.69:8080 [00:01:12]Content-Length: 331 [00:01:12]Content-Type: application/json [00:01:12] [00:01:12]POST finish read [00:01:12]Found Content-Length = 331 [00:01:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:01:12]execute_script... [00:01:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:01:12]POST & json_proto [00:01:12]process_json_proto [00:01:12]json parsed OK: [00:01:12]protocol is kg_v1.0 [00:01:12]action value=get_value [00:01:12]process_action get_value [00:01:12]cmd_get_value [00:01:12]process_action get_value done [00:01:12]requested_data is exist [00:01:12]produce_requested_data [00:01:12]requested_item fm.sale.total is exist - process it [00:01:12]SAM_PROTO_GetFMData [00:01:12]wFMCommunicate request_size=4 [00:01:12]MH_SAM_APDU [00:01:12]CAPDU: 80 13 03 00 [00:01:12]Write to MH i2c: E2 08 00 0C 01 80 13 03 00 00 00 00 00 8C [00:01:12]Write i2c OK [00:01:12]MH_I2C_Read... [00:01:13]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:01:13]Read from MH i2c: E2 [00:01:13]MH_I2C_Read... [00:01:13]Read from MH i2c: E2 FD 00 [00:01:13]MH_I2C_Read... [00:01:13]Read from MH i2c: E2 FD 00 0C 01 00 C5 04 85 04 C1 04 6E 04 04 00 BF F6 00 00 69 04 A1 00 6F 04 04 00 5F F4 00 00 B1 04 04 00 B1 00 C4 76 70 04 04 00 96 B7 05 66 72 04 04 00 1B 49 BE 10 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 46 29 9D 0C 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 15 05 0D 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 60 02 00 00 B1 04 04 00 E4 BA 80 03 70 04 04 00 60 5F 65 03 72 04 03 00 84 5B 1B 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 84 3C 5F EF 03 09 90 00 8E [00:01:13]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 BF F6 00 00 69 04 A1 00 6F 04 04 00 5F F4 00 00 B1 04 04 00 B1 00 C4 76 70 04 04 00 96 B7 05 66 72 04 04 00 1B 49 BE 10 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 46 29 9D 0C 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 15 05 0D 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 60 02 00 00 B1 04 04 00 E4 BA 80 03 70 04 04 00 60 5F 65 03 72 04 03 00 84 5B 1B 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 84 3C 5F EF 03 09 90 00 [00:01:13]wFMCommunicate OK [00:01:13]wFMCommunicate request_size=4 [00:01:13]MH_SAM_APDU [00:01:13]CAPDU: 80 17 00 00 [00:01:13]Write to MH i2c: E2 08 00 0D 01 80 17 00 00 00 00 00 00 8E [00:01:13]Write i2c OK [00:01:13]MH_I2C_Read... [00:01:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:01:13]Read from MH i2c: E2 [00:01:13]MH_I2C_Read... [00:01:13]Read from MH i2c: E2 FD 00 [00:01:13]MH_I2C_Read... [00:01:13]Read from MH i2c: E2 FD 00 0D 01 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 7A EF 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 B4 [00:01:13]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 7A EF 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [00:01:13]wFMCommunicate OK [00:01:13]wFMCommunicate request_size=4 [00:01:13]MH_SAM_APDU [00:01:13]CAPDU: 80 17 00 00 [00:01:13]Write to MH i2c: E2 08 00 0E 01 80 17 00 00 00 00 00 00 8F [00:01:13]Write i2c OK [00:01:13]MH_I2C_Read... [00:01:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:01:13]Read from MH i2c: E2 [00:01:13]MH_I2C_Read... [00:01:13]Read from MH i2c: E2 FD 00 [00:01:13]MH_I2C_Read... [00:01:13]Read from MH i2c: E2 FD 00 0E 01 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 A1 [00:01:13]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [00:01:13]wFMCommunicate OK [00:01:13]wFMCommunicate request_size=4 [00:01:13]MH_SAM_APDU [00:01:13]CAPDU: 80 17 00 00 [00:01:13]Write to MH i2c: E2 08 00 0F 01 80 17 00 00 00 00 00 00 90 [00:01:13]Write i2c OK [00:01:13]MH_I2C_Read... [00:01:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:01:14]Read from MH i2c: E2 [00:01:14]MH_I2C_Read... [00:01:14]Read from MH i2c: E2 FD 00 [00:01:14]MH_I2C_Read... [00:01:14]Read from MH i2c: E2 FD 00 0F 01 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 1C [00:01:14]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [00:01:14]wFMCommunicate OK [00:01:14]wFMCommunicate request_size=4 [00:01:14]MH_SAM_APDU [00:01:14]CAPDU: 80 17 00 00 [00:01:14]Write to MH i2c: E2 08 00 10 01 80 17 00 00 00 00 00 00 91 [00:01:14]Write i2c OK [00:01:14]MH_I2C_Read... [00:01:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:01:14]Read from MH i2c: E2 [00:01:14]MH_I2C_Read... [00:01:14]Read from MH i2c: E2 E2 00 [00:01:14]MH_I2C_Read... [00:01:14]Read from MH i2c: E2 E2 00 10 01 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 6F [00:01:14]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:01:14]wFMCommunicate OK [00:01:14]SAM_PROTO_GetFMData done [00:01:14]requested_item fm.sale_refund.total is exist - process it [00:01:14]requested_item fm.buy.total is exist - process it [00:01:14]requested_item shift.sale.total is exist - process it [00:01:14]SAM_PROTO_GetShiftData [00:01:14]wFMCommunicate request_size=4 [00:01:14]MH_SAM_APDU [00:01:14]CAPDU: 80 13 02 00 [00:01:14]Write to MH i2c: E2 08 00 11 01 80 13 02 00 00 00 00 00 90 [00:01:14]Write i2c OK [00:01:14]MH_I2C_Read... [00:01:15]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:01:15]Read from MH i2c: E2 [00:01:15]MH_I2C_Read... [00:01:15]Read from MH i2c: E2 FD 00 [00:01:15]MH_I2C_Read... [00:01:15]Read from MH i2c: E2 FD 00 11 01 00 B8 04 AA 04 B4 04 6E 04 04 00 AB 00 00 00 69 04 9B 00 6F 04 04 00 A8 00 00 00 B1 04 03 00 C4 0B 4C 70 04 03 00 90 1C 3A 72 04 03 00 34 EF 11 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 96 13 08 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 41 AC EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 03 00 00 00 B1 04 03 00 80 A9 03 70 04 03 00 80 A9 03 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 92 63 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 F8 [00:01:15]RAPDU: B8 04 AA 04 B4 04 6E 04 04 00 AB 00 00 00 69 04 9B 00 6F 04 04 00 A8 00 00 00 B1 04 03 00 C4 0B 4C 70 04 03 00 90 1C 3A 72 04 03 00 34 EF 11 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 96 13 08 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 41 AC EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 03 00 00 00 B1 04 03 00 80 A9 03 70 04 03 00 80 A9 03 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 92 63 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 [00:01:15]wFMCommunicate OK [00:01:15]wFMCommunicate request_size=4 [00:01:15]MH_SAM_APDU [00:01:15]CAPDU: 80 17 00 00 [00:01:15]Write to MH i2c: E2 08 00 12 01 80 17 00 00 00 00 00 00 93 [00:01:15]Write i2c OK [00:01:15]MH_I2C_Read... [00:01:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:01:15]Read from MH i2c: E2 [00:01:15]MH_I2C_Read... [00:01:15]Read from MH i2c: E2 FD 00 [00:01:15]MH_I2C_Read... [00:01:15]Read from MH i2c: E2 FD 00 12 01 00 0B 00 F6 03 01 00 01 F7 03 02 00 4C 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 90 00 18 [00:01:15]RAPDU: 0B 00 F6 03 01 00 01 F7 03 02 00 4C 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 90 00 [00:01:15]wFMCommunicate OK [00:01:15]wFMCommunicate request_size=4 [00:01:15]MH_SAM_APDU [00:01:15]CAPDU: 80 17 00 00 [00:01:15]Write to MH i2c: E2 08 00 13 01 80 17 00 00 00 00 00 00 94 [00:01:15]Write i2c OK [00:01:15]MH_I2C_Read... [00:01:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:01:15]Read from MH i2c: E2 [00:01:15]MH_I2C_Read... [00:01:15]Read from MH i2c: E2 FD 00 [00:01:15]MH_I2C_Read... [00:01:15]Read from MH i2c: E2 FD 00 13 01 00 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 90 00 36 [00:01:16]RAPDU: 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 90 00 [00:01:16]wFMCommunicate OK [00:01:16]wFMCommunicate request_size=4 [00:01:16]MH_SAM_APDU [00:01:16]CAPDU: 80 17 00 00 [00:01:16]Write to MH i2c: E2 08 00 14 01 80 17 00 00 00 00 00 00 95 [00:01:16]Write i2c OK [00:01:16]MH_I2C_Read... [00:01:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:01:16]Read from MH i2c: E2 [00:01:16]MH_I2C_Read... [00:01:16]Read from MH i2c: E2 FD 00 [00:01:16]MH_I2C_Read... [00:01:16]Read from MH i2c: E2 FD 00 14 01 00 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 90 00 1E [00:01:16]RAPDU: 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 90 00 [00:01:16]wFMCommunicate OK [00:01:16]wFMCommunicate request_size=4 [00:01:16]MH_SAM_APDU [00:01:16]CAPDU: 80 17 00 00 [00:01:16]Write to MH i2c: E2 08 00 15 01 80 17 00 00 00 00 00 00 96 [00:01:16]Write i2c OK [00:01:16]MH_I2C_Read... [00:01:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 210! [00:01:16]Read from MH i2c: E2 [00:01:16]MH_I2C_Read... [00:01:16]Read from MH i2c: E2 D5 00 [00:01:16]MH_I2C_Read... [00:01:16]Read from MH i2c: E2 D5 00 15 01 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 77 [00:01:16]RAPDU: EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:01:16]wFMCommunicate OK [00:01:16]SAM_PROTO_GetShiftData done [00:01:16]requested_item shift.sale.total_cash is exist - process it [00:01:16]requested_item shift.sale_refund.total is exist - process it [00:01:16]requested_item shift.sale_refund.total_cash is exist - process it [00:01:16]requested_item shift.buy.total is exist - process it [00:01:16]requested_item shift.buy.total_cash is exist - process it [00:01:16]produce_requested_data done [00:01:16]produce_requested_data return {"fm.sale.total":19925567.21,"fm.sale_refund.total":587681.00,"fm.buy.total":0.00,"shift.sale.total":49837.48,"shift.sale.total_cash":38084.00,"shift.sale_refund.total":2400.00,"shift.sale_refund.total_cash":2400.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:01:16]process_action_free get_value [00:01:16]json_value_free [00:01:16]json_value_free done [00:01:16]process_json_proto returns [00:01:16]Send response to host [00:01:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":19925567.21,"fm.sale_refund.total":587681.00,"fm.buy.total":0.00,"shift.sale.total":49837.48,"shift.sale.total_cash":38084.00,"shift.sale_refund.total":2400.00,"shift.sale_refund.total_cash":2400.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:01:16]free response buf [00:01:16]execute_script done [00:01:16]execute_script returns [00:01:16]free content buf [00:01:16]Sock 9.Close socket [00:01:16]Sock 9.Thread stoped [00:01:16]accept exits with 7 [00:01:16]New connection [00:01:16]New thread 3067055460 created [00:01:16]Thread 3066912100 joined [00:01:16]Waiting for new connection... [00:01:16] Sock 7.Parse request [00:01:16]Sock 7.Check first char [00:01:16]Sock 7.First char is OK [00:01:16]request: POST /json_proto HTTP/1.0 [00:01:16]Method: POST [00:01:16]URL: /json_proto [00:01:16]Method is POST - this is cgi request [00:01:16]url: /json_proto [00:01:16]query_string will be loaded in cgi processing [00:01:16]execute_cgi json_proto POST (null) [00:01:16]execute_cgi path=json_proto method=POST [00:01:16]POST find Content-Length [00:01:16]Host: 172.17.60.69:8080 [00:01:16]Content-Length: 269 [00:01:16]Content-Type: application/json [00:01:16] [00:01:16]POST finish read [00:01:16]Found Content-Length = 269 [00:01:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u041A\u0430\u043B\u044B\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:01:16]execute_script... [00:01:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u041A\u0430\u043B\u044B\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:01:16]POST & json_proto [00:01:16]process_json_proto [00:01:16]json parsed OK: [00:01:16]protocol is kg_v1.0 [00:01:16]action value=x_report [00:01:16]process_action x_report [00:01:16]cmd_x_report [00:01:16]MH_GetDate [00:01:16]Write to MH i2c: F0 00 00 16 01 06 [00:01:16]Write i2c OK [00:01:16]MH_I2C_Read... [00:01:16]Read from MH i2c: F0 [00:01:16]MH_I2C_Read... [00:01:16]Read from MH i2c: F0 09 00 [00:01:16]MH_I2C_Read... [00:01:16]Read from MH i2c: F0 09 00 16 01 00 4C 59 5E 66 6A 96 4A 66 28 [00:01:16]GetLastDocTimeStamp 1717458472 [00:01:16]current date 1717459276 [00:01:16]FM_GetShiftState [00:01:16]SAM_PROTO_GetShiftState [00:01:16]wFMCommunicate request_size=4 [00:01:16]MH_SAM_APDU [00:01:16]CAPDU: 80 13 01 00 [00:01:16]Write to MH i2c: E2 08 00 17 01 80 13 01 00 00 00 00 00 95 [00:01:16]Write i2c OK [00:01:16]MH_I2C_Read... [00:01:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:01:16]Read from MH i2c: E2 [00:01:16]MH_I2C_Read... [00:01:16]Read from MH i2c: E2 0E 00 [00:01:16]MH_I2C_Read... [00:01:16]Read from MH i2c: E2 0E 00 17 01 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 61 [00:01:17]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [00:01:17]wFMCommunicate OK [00:01:17]SAM_PROTO_GetShiftState done [00:01:17]FM_GetShiftState done [00:01:17]KKMCreateXReportDocument [00:01:17]Load OK [00:01:17]Malloc new data [00:01:17]MH_GetDate [00:01:17]Write to MH i2c: F0 00 00 18 01 08 [00:01:17]Write i2c OK [00:01:17]MH_I2C_Read... [00:01:17]Read from MH i2c: F0 [00:01:17]MH_I2C_Read... [00:01:17]Read from MH i2c: F0 09 00 [00:01:17]MH_I2C_Read... [00:01:17]Read from MH i2c: F0 09 00 18 01 00 4D 59 5E 66 6A 96 4A 66 2B [00:01:17]Malloc new data [00:01:17]Malloc new data [00:01:17]wFMCommunicate request_size=4 [00:01:17]MH_SAM_APDU [00:01:17]CAPDU: 80 11 00 00 [00:01:17]Write to MH i2c: E2 08 00 19 01 80 11 00 00 00 00 00 00 94 [00:01:17]Write i2c OK [00:01:17]MH_I2C_Read... [00:01:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:01:17]Read from MH i2c: E2 [00:01:17]MH_I2C_Read... [00:01:17]Read from MH i2c: E2 17 00 [00:01:17]MH_I2C_Read... [00:01:17]Read from MH i2c: E2 17 00 19 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 E6 [00:01:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [00:01:17]wFMCommunicate OK [00:01:17]SAM_PROTO_GetFieldsCounters [00:01:17]wFMCommunicate request_size=4 [00:01:17]MH_SAM_APDU [00:01:17]CAPDU: 80 13 00 00 [00:01:17]Write to MH i2c: E2 08 00 1A 01 80 13 00 00 00 00 00 00 97 [00:01:17]Write i2c OK [00:01:17]MH_I2C_Read... [00:01:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:01:17]Read from MH i2c: E2 [00:01:17]MH_I2C_Read... [00:01:17]Read from MH i2c: E2 62 00 [00:01:17]MH_I2C_Read... [00:01:17]Read from MH i2c: E2 62 00 1A 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 A9 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 AB 00 00 00 5E 04 04 00 AB 00 00 00 57 04 04 00 AC 00 00 00 19 04 04 00 00 00 00 00 90 00 D3 [00:01: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 A9 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 AB 00 00 00 5E 04 04 00 AB 00 00 00 57 04 04 00 AC 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:01:17]wFMCommunicate OK [00:01:17]SAM_PROTO_GetFieldsCounters done [00:01:17]Malloc new data [00:01:17]Malloc new data [00:01:17]Malloc new data [00:01:17]KKMCreateXReportDocument OK [00:01:17]KKMSetXReportData OK [00:01:17]KKMPrepareXReportFMData [00:01:17]SAM_PROTO_GetShiftData [00:01:17]wFMCommunicate request_size=4 [00:01:17]MH_SAM_APDU [00:01:17]CAPDU: 80 13 02 00 [00:01:17]Write to MH i2c: E2 08 00 1B 01 80 13 02 00 00 00 00 00 9A [00:01:17]Write i2c OK [00:01:17]MH_I2C_Read... [00:01:17]OFD Sender: No OFD packet to send [00:01:17]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:01:17]Read from MH i2c: E2 [00:01:17]MH_I2C_Read... [00:01:17]Read from MH i2c: E2 FD 00 [00:01:17]MH_I2C_Read... [00:01:17]Read from MH i2c: E2 FD 00 1B 01 00 B8 04 AA 04 B4 04 6E 04 04 00 AB 00 00 00 69 04 9B 00 6F 04 04 00 A8 00 00 00 B1 04 03 00 C4 0B 4C 70 04 03 00 90 1C 3A 72 04 03 00 34 EF 11 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 96 13 08 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 41 AC EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 03 00 00 00 B1 04 03 00 80 A9 03 70 04 03 00 80 A9 03 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 92 63 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 02 [00:01:17]RAPDU: B8 04 AA 04 B4 04 6E 04 04 00 AB 00 00 00 69 04 9B 00 6F 04 04 00 A8 00 00 00 B1 04 03 00 C4 0B 4C 70 04 03 00 90 1C 3A 72 04 03 00 34 EF 11 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 96 13 08 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 41 AC EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 03 00 00 00 B1 04 03 00 80 A9 03 70 04 03 00 80 A9 03 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 92 63 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 [00:01:17]wFMCommunicate OK [00:01:17]wFMCommunicate request_size=4 [00:01:17]MH_SAM_APDU [00:01:17]CAPDU: 80 17 00 00 [00:01:17]Write to MH i2c: E2 08 00 1C 01 80 17 00 00 00 00 00 00 9D [00:01:17]Write i2c OK [00:01:17]MH_I2C_Read... [00:01:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:01:18]Read from MH i2c: E2 [00:01:18]MH_I2C_Read... [00:01:18]Read from MH i2c: E2 FD 00 [00:01:18]MH_I2C_Read... [00:01:18]Read from MH i2c: E2 FD 00 1C 01 00 0B 00 F6 03 01 00 01 F7 03 02 00 4C 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 90 00 22 [00:01:18]RAPDU: 0B 00 F6 03 01 00 01 F7 03 02 00 4C 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 90 00 [00:01:18]wFMCommunicate OK [00:01:18]wFMCommunicate request_size=4 [00:01:18]MH_SAM_APDU [00:01:18]CAPDU: 80 17 00 00 [00:01:18]Write to MH i2c: E2 08 00 1D 01 80 17 00 00 00 00 00 00 9E [00:01:18]Write i2c OK [00:01:18]MH_I2C_Read... [00:01:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:01:18]Read from MH i2c: E2 [00:01:18]MH_I2C_Read... [00:01:18]Read from MH i2c: E2 FD 00 [00:01:18]MH_I2C_Read... [00:01:18]Read from MH i2c: E2 FD 00 1D 01 00 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 90 00 40 [00:01:18]RAPDU: 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 90 00 [00:01:18]wFMCommunicate OK [00:01:18]wFMCommunicate request_size=4 [00:01:18]MH_SAM_APDU [00:01:18]CAPDU: 80 17 00 00 [00:01:18]Write to MH i2c: E2 08 00 1E 01 80 17 00 00 00 00 00 00 9F [00:01:18]Write i2c OK [00:01:18]MH_I2C_Read... [00:01:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:01:19]Read from MH i2c: E2 [00:01:19]MH_I2C_Read... [00:01:19]Read from MH i2c: E2 FD 00 [00:01:19]MH_I2C_Read... [00:01:19]Read from MH i2c: E2 FD 00 1E 01 00 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 90 00 28 [00:01:19]RAPDU: 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 90 00 [00:01:19]wFMCommunicate OK [00:01:19]wFMCommunicate request_size=4 [00:01:19]MH_SAM_APDU [00:01:19]CAPDU: 80 17 00 00 [00:01:19]Write to MH i2c: E2 08 00 1F 01 80 17 00 00 00 00 00 00 A0 [00:01:19]Write i2c OK [00:01:19]MH_I2C_Read... [00:01:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 210! [00:01:19]Read from MH i2c: E2 [00:01:19]MH_I2C_Read... [00:01:19]Read from MH i2c: E2 D5 00 [00:01:19]MH_I2C_Read... [00:01:19]Read from MH i2c: E2 D5 00 1F 01 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 81 [00:01:19]RAPDU: EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:01:19]wFMCommunicate OK [00:01:19]SAM_PROTO_GetShiftData done [00:01:19]1194 (1204) - счетчики итогов смены [00:01:19] 1134 (4) - 171 - количество чеков со всеми признаками расчетов [00:01:19] 1129 (155) - счетчики операций «приход» [00:01:19] 1135 (4) - 168 - количество чеков по признаку расчетов [00:01:19] 1201 (3) - 49837.48 - общая итоговая сумма в чеках [00:01:19] 1136 (3) - 38084.00 - итоговая сумма в чеках наличными [00:01:19] 1138 (3) - 11753.48 - итоговая сумма в чеках безналичными [00:01:19] 1024 (122) - суммы налогов [00:01:19] 1006 (9) - суммы НДС [00:01:19] 1010 (1) - 0% - код ставки НДС [00:01:19] 1011 (0) - 0.00 - сумма НДС по ставке [00:01:19] 1006 (12) - суммы НДС [00:01:19] 1010 (1) - 12% - код ставки НДС [00:01:19] 1011 (3) - 5293.02 - сумма НДС по ставке [00:01:19] 1007 (9) - суммы НСП [00:01:19] 1014 (1) - 0% - код ставки НСП [00:01:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:01:19] 1007 (11) - суммы НСП [00:01:19] 1014 (1) - 1% - код ставки НСП [00:01:19] 1015 (2) - 440.97 - сумма НСП по ставке [00:01:19] 1007 (9) - суммы НСП [00:01:19] 1014 (1) - 2% - код ставки НСП [00:01:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:01:19] 1007 (9) - суммы НСП [00:01:19] 1014 (1) - 3% - код ставки НСП [00:01:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:01:19] 1007 (9) - суммы НСП [00:01:19] 1014 (1) - 5% - код ставки НСП [00:01:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:01:19] 1007 (9) - суммы НСП [00:01:19] 1014 (1) - 0,50% - код ставки НСП [00:01:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:01:19] 1007 (9) - суммы НСП [00:01:19] 1014 (1) - 1,50% - код ставки НСП [00:01:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:01:19] 1130 (151) - счетчики операций «возврат прихода» [00:01:19] 1135 (4) - 3 - количество чеков по признаку расчетов [00:01:19] 1201 (3) - 2400.00 - общая итоговая сумма в чеках [00:01:19] 1136 (3) - 2400.00 - итоговая сумма в чеках наличными [00:01:19] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:01:19] 1024 (121) - суммы налогов [00:01:19] 1006 (9) - суммы НДС [00:01:19] 1010 (1) - 0% - код ставки НДС [00:01:19] 1011 (0) - 0.00 - сумма НДС по ставке [00:01:19] 1006 (11) - суммы НДС [00:01:19] 1010 (1) - 12% - код ставки НДС [00:01:19] 1011 (2) - 254.90 - сумма НДС по ставке [00:01:19] 1007 (9) - суммы НСП [00:01:19] 1014 (1) - 0% - код ставки НСП [00:01:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:01:19] 1007 (11) - суммы НСП [00:01:19] 1014 (1) - 1% - код ставки НСП [00:01:19] 1015 (2) - 21.24 - сумма НСП по ставке [00:01:19] 1007 (9) - суммы НСП [00:01:19] 1014 (1) - 2% - код ставки НСП [00:01:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:01:19] 1007 (9) - суммы НСП [00:01:19] 1014 (1) - 3% - код ставки НСП [00:01:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:01:19] 1007 (9) - суммы НСП [00:01:19] 1014 (1) - 5% - код ставки НСП [00:01:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:01:19] 1007 (9) - суммы НСП [00:01:19] 1014 (1) - 0,50% - код ставки НСП [00:01:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:01:19] 1007 (9) - суммы НСП [00:01:19] 1014 (1) - 1,50% - код ставки НСП [00:01:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:01:19] 1131 (141) - счетчики операций «расход» [00:01:19] 1135 (4) - 0 - количество чеков по признаку расчетов [00:01:19] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:01:19] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:01:19] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:01:19] 1024 (117) - суммы налогов [00:01:19] 1006 (9) - суммы НДС [00:01:19] 1010 (1) - 0% - код ставки НДС [00:01:19] 1011 (0) - 0.00 - сумма НДС по ставке [00:01:19] 1006 (9) - суммы НДС [00:01:19] 1010 (1) - 12% - код ставки НДС [00:01:19] 1011 (0) - 0.00 - сумма НДС по ставке [00:01:19] 1007 (9) - суммы НСП [00:01:19] 1014 (1) - 0% - код ставки НСП [00:01:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:01:19] 1007 (9) - суммы НСП [00:01:19] 1014 (1) - 1% - код ставки НСП [00:01:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:01:19] 1007 (9) - суммы НСП [00:01:19] 1014 (1) - 2% - код ставки НСП [00:01:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:01:19] 1007 (9) - суммы НСП [00:01:19] 1014 (1) - 3% - код ставки НСП [00:01:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:01:19] 1007 (9) - суммы НСП [00:01:19] 1014 (1) - 5% - код ставки НСП [00:01:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:01:19] 1007 (9) - суммы НСП [00:01:19] 1014 (1) - 0,50% - код ставки НСП [00:01:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:01:19] 1007 (9) - суммы НСП [00:01:19] 1014 (1) - 1,50% - код ставки НСП [00:01:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:01:19] 1132 (141) - счетчики операций «возврат расхода» [00:01:19] 1135 (4) - 0 - количество чеков по признаку расчетов [00:01:19] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:01:19] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:01:19] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:01:19] 1024 (117) - суммы налогов [00:01:19] 1006 (9) - суммы НДС [00:01:19] 1010 (1) - 0% - код ставки НДС [00:01:19] 1011 (0) - 0.00 - сумма НДС по ставке [00:01:19] 1006 (9) - суммы НДС [00:01:19] 1010 (1) - 12% - код ставки НДС [00:01:19] 1011 (0) - 0.00 - сумма НДС по ставке [00:01:19] 1007 (9) - суммы НСП [00:01:19] 1014 (1) - 0% - код ставки НСП [00:01:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:01:19] 1007 (9) - суммы НСП [00:01:19] 1014 (1) - 1% - код ставки НСП [00:01:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:01:19] 1007 (9) - суммы НСП [00:01:19] 1014 (1) - 2% - код ставки НСП [00:01:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:01:19] 1007 (9) - суммы НСП [00:01:19] 1014 (1) - 3% - код ставки НСП [00:01:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:01:19] 1007 (9) - суммы НСП [00:01:19] 1014 (1) - 5% - код ставки НСП [00:01:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:01:19] 1007 (9) - суммы НСП [00:01:19] 1014 (1) - 0,50% - код ставки НСП [00:01:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:01:19] 1007 (9) - суммы НСП [00:01:19] 1014 (1) - 1,50% - код ставки НСП [00:01:19] 1015 (0) - 0.00 - сумма НСП по ставке [00:01:19] 1133 (588) - - счетчики коррекции - не используются [00:01:19]SetTLVBufToDocument [00:01:19]Processing tag 1194 (04AA) [00:01:19]Load OK [00:01:19]SetTLVBufToDocument [00:01:20]Processing tag 1134 (046E) [00:01:20]Malloc new data [00:01:20]Processing tag 1129 (0469) [00:01:20]Load OK [00:01:20]SetTLVBufToDocument [00:01:20]Processing tag 1135 (046F) [00:01:20]Malloc new data [00:01:20]Processing tag 1201 (04B1) [00:01:20]Malloc new data [00:01:20]Processing tag 1136 (0470) [00:01:20]Malloc new data [00:01:20]Processing tag 1138 (0472) [00:01:20]Malloc new data [00:01:20]Processing tag 1024 (0400) [00:01:20]Load OK [00:01:20]SetTLVBufToDocument [00:01:20]Processing tag 1006 (03EE) [00:01:20]Load OK [00:01:20]SetTLVBufToDocument [00:01:20]Processing tag 1010 (03F2) [00:01:20]Malloc new data [00:01:20]Processing tag 1011 (03F3) [00:01:20]Malloc new data [00:01:20]SetTLVBufToDocument err=0 [00:01:20]Processing tag 1006 (03EE) [00:01:20]Load OK [00:01:20]SetTLVBufToDocument [00:01:20]Processing tag 1010 (03F2) [00:01:20]Malloc new data [00:01:20]Processing tag 1011 (03F3) [00:01:20]Malloc new data [00:01:20]SetTLVBufToDocument err=0 [00:01:20]Processing tag 1007 (03EF) [00:01:20]Load OK [00:01:20]SetTLVBufToDocument [00:01:20]Processing tag 1014 (03F6) [00:01:20]Malloc new data [00:01:20]Processing tag 1015 (03F7) [00:01:20]Malloc new data [00:01:20]SetTLVBufToDocument err=0 [00:01:20]Processing tag 1007 (03EF) [00:01:20]Load OK [00:01:20]SetTLVBufToDocument [00:01:20]Processing tag 1014 (03F6) [00:01:20]Malloc new data [00:01:20]Processing tag 1015 (03F7) [00:01:20]Malloc new data [00:01:20]SetTLVBufToDocument err=0 [00:01:20]Processing tag 1007 (03EF) [00:01:20]Load OK [00:01:20]SetTLVBufToDocument [00:01:20]Processing tag 1014 (03F6) [00:01:20]Malloc new data [00:01:20]Processing tag 1015 (03F7) [00:01:20]Malloc new data [00:01:20]SetTLVBufToDocument err=0 [00:01:20]Processing tag 1007 (03EF) [00:01:20]Load OK [00:01:20]SetTLVBufToDocument [00:01:20]Processing tag 1014 (03F6) [00:01:20]Malloc new data [00:01:20]Processing tag 1015 (03F7) [00:01:20]Malloc new data [00:01:20]SetTLVBufToDocument err=0 [00:01:20]Processing tag 1007 (03EF) [00:01:20]Load OK [00:01:20]SetTLVBufToDocument [00:01:20]Processing tag 1014 (03F6) [00:01:20]Malloc new data [00:01:20]Processing tag 1015 (03F7) [00:01:20]Malloc new data [00:01:20]SetTLVBufToDocument err=0 [00:01:20]Processing tag 1007 (03EF) [00:01:20]Load OK [00:01:20]SetTLVBufToDocument [00:01:20]Processing tag 1014 (03F6) [00:01:20]Malloc new data [00:01:20]Processing tag 1015 (03F7) [00:01:20]Malloc new data [00:01:20]SetTLVBufToDocument err=0 [00:01:20]Processing tag 1007 (03EF) [00:01:20]Load OK [00:01:20]SetTLVBufToDocument [00:01:20]Processing tag 1014 (03F6) [00:01:20]Malloc new data [00:01:20]Processing tag 1015 (03F7) [00:01:20]Malloc new data [00:01:20]SetTLVBufToDocument err=0 [00:01:20]SetTLVBufToDocument err=0 [00:01:20]SetTLVBufToDocument err=0 [00:01:20]Processing tag 1130 (046A) [00:01:20]Load OK [00:01:20]SetTLVBufToDocument [00:01:20]Processing tag 1135 (046F) [00:01:20]Malloc new data [00:01:20]Processing tag 1201 (04B1) [00:01:20]Malloc new data [00:01:20]Processing tag 1136 (0470) [00:01:20]Malloc new data [00:01:20]Processing tag 1138 (0472) [00:01:20]Malloc new data [00:01:20]Processing tag 1024 (0400) [00:01:20]Load OK [00:01:20]SetTLVBufToDocument [00:01:20]Processing tag 1006 (03EE) [00:01:20]Load OK [00:01:20]SetTLVBufToDocument [00:01:20]Processing tag 1010 (03F2) [00:01:20]Malloc new data [00:01:20]Processing tag 1011 (03F3) [00:01:20]Malloc new data [00:01:20]SetTLVBufToDocument err=0 [00:01:20]Processing tag 1006 (03EE) [00:01:20]Load OK [00:01:20]SetTLVBufToDocument [00:01:20]Processing tag 1010 (03F2) [00:01:20]Malloc new data [00:01:20]Processing tag 1011 (03F3) [00:01:20]Malloc new data [00:01:20]SetTLVBufToDocument err=0 [00:01:20]Processing tag 1007 (03EF) [00:01:20]Load OK [00:01:20]SetTLVBufToDocument [00:01:20]Processing tag 1014 (03F6) [00:01:20]Malloc new data [00:01:20]Processing tag 1015 (03F7) [00:01:20]Malloc new data [00:01:20]SetTLVBufToDocument err=0 [00:01:20]Processing tag 1007 (03EF) [00:01:20]Load OK [00:01:20]SetTLVBufToDocument [00:01:20]Processing tag 1014 (03F6) [00:01:20]Malloc new data [00:01:20]Processing tag 1015 (03F7) [00:01:20]Malloc new data [00:01:20]SetTLVBufToDocument err=0 [00:01:20]Processing tag 1007 (03EF) [00:01:20]Load OK [00:01:20]SetTLVBufToDocument [00:01:20]Processing tag 1014 (03F6) [00:01:20]Malloc new data [00:01:20]Processing tag 1015 (03F7) [00:01:20]Malloc new data [00:01:20]SetTLVBufToDocument err=0 [00:01:20]Processing tag 1007 (03EF) [00:01:20]Load OK [00:01:20]SetTLVBufToDocument [00:01:20]Processing tag 1014 (03F6) [00:01:20]Malloc new data [00:01:20]Processing tag 1015 (03F7) [00:01:20]Malloc new data [00:01:20]SetTLVBufToDocument err=0 [00:01:20]Processing tag 1007 (03EF) [00:01:20]Load OK [00:01:20]SetTLVBufToDocument [00:01:20]Processing tag 1014 (03F6) [00:01:20]Malloc new data [00:01:20]Processing tag 1015 (03F7) [00:01:20]Malloc new data [00:01:20]SetTLVBufToDocument err=0 [00:01:20]Processing tag 1007 (03EF) [00:01:20]Load OK [00:01:20]SetTLVBufToDocument [00:01:20]Processing tag 1014 (03F6) [00:01:20]Malloc new data [00:01:20]Processing tag 1015 (03F7) [00:01:20]Malloc new data [00:01:20]SetTLVBufToDocument err=0 [00:01:20]Processing tag 1007 (03EF) [00:01:20]Load OK [00:01:20]SetTLVBufToDocument [00:01:20]Processing tag 1014 (03F6) [00:01:20]Malloc new data [00:01:20]Processing tag 1015 (03F7) [00:01:20]Malloc new data [00:01:20]SetTLVBufToDocument err=0 [00:01:20]SetTLVBufToDocument err=0 [00:01:20]SetTLVBufToDocument err=0 [00:01:20]Processing tag 1131 (046B) [00:01:20]Load OK [00:01:20]SetTLVBufToDocument [00:01:20]Processing tag 1135 (046F) [00:01:20]Malloc new data [00:01:20]Processing tag 1201 (04B1) [00:01:20]Malloc new data [00:01:20]Processing tag 1136 (0470) [00:01:20]Malloc new data [00:01:20]Processing tag 1138 (0472) [00:01:20]Malloc new data [00:01:20]Processing tag 1024 (0400) [00:01:20]Load OK [00:01:20]SetTLVBufToDocument [00:01:20]Processing tag 1006 (03EE) [00:01:20]Load OK [00:01:20]SetTLVBufToDocument [00:01:20]Processing tag 1010 (03F2) [00:01:20]Malloc new data [00:01:20]Processing tag 1011 (03F3) [00:01:20]Malloc new data [00:01:20]SetTLVBufToDocument err=0 [00:01:20]Processing tag 1006 (03EE) [00:01:20]Load OK [00:01:20]SetTLVBufToDocument [00:01:20]Processing tag 1010 (03F2) [00:01:20]Malloc new data [00:01:20]Processing tag 1011 (03F3) [00:01:20]Malloc new data [00:01:20]SetTLVBufToDocument err=0 [00:01:20]Processing tag 1007 (03EF) [00:01:20]Load OK [00:01:20]SetTLVBufToDocument [00:01:20]Processing tag 1014 (03F6) [00:01:20]Malloc new data [00:01:20]Processing tag 1015 (03F7) [00:01:20]Malloc new data [00:01:20]SetTLVBufToDocument err=0 [00:01:20]Processing tag 1007 (03EF) [00:01:20]Load OK [00:01:20]SetTLVBufToDocument [00:01:20]Processing tag 1014 (03F6) [00:01:20]Malloc new data [00:01:20]Processing tag 1015 (03F7) [00:01:20]Malloc new data [00:01:20]SetTLVBufToDocument err=0 [00:01:20]Processing tag 1007 (03EF) [00:01:20]Load OK [00:01:20]SetTLVBufToDocument [00:01:20]Processing tag 1014 (03F6) [00:01:20]Malloc new data [00:01:20]Processing tag 1015 (03F7) [00:01:20]Malloc new data [00:01:20]SetTLVBufToDocument err=0 [00:01:20]Processing tag 1007 (03EF) [00:01:20]Load OK [00:01:20]SetTLVBufToDocument [00:01:20]Processing tag 1014 (03F6) [00:01:20]Malloc new data [00:01:20]Processing tag 1015 (03F7) [00:01:20]Malloc new data [00:01:20]SetTLVBufToDocument err=0 [00:01:20]Processing tag 1007 (03EF) [00:01:20]Load OK [00:01:20]SetTLVBufToDocument [00:01:20]Processing tag 1014 (03F6) [00:01:20]Malloc new data [00:01:20]Processing tag 1015 (03F7) [00:01:20]Malloc new data [00:01:20]SetTLVBufToDocument err=0 [00:01:20]Processing tag 1007 (03EF) [00:01:20]Load OK [00:01:20]SetTLVBufToDocument [00:01:20]Processing tag 1014 (03F6) [00:01:20]Malloc new data [00:01:20]Processing tag 1015 (03F7) [00:01:20]Malloc new data [00:01:20]SetTLVBufToDocument err=0 [00:01:20]Processing tag 1007 (03EF) [00:01:20]Load OK [00:01:20]SetTLVBufToDocument [00:01:20]Processing tag 1014 (03F6) [00:01:20]Malloc new data [00:01:20]Processing tag 1015 (03F7) [00:01:20]Malloc new data [00:01:20]SetTLVBufToDocument err=0 [00:01:20]SetTLVBufToDocument err=0 [00:01:20]SetTLVBufToDocument err=0 [00:01:20]Processing tag 1132 (046C) [00:01:20]Load OK [00:01:20]SetTLVBufToDocument [00:01:20]Processing tag 1135 (046F) [00:01:20]Malloc new data [00:01:20]Processing tag 1201 (04B1) [00:01:20]Malloc new data [00:01:20]Processing tag 1136 (0470) [00:01:20]Malloc new data [00:01:20]Processing tag 1138 (0472) [00:01:20]Malloc new data [00:01:20]Processing tag 1024 (0400) [00:01:20]Load OK [00:01:20]SetTLVBufToDocument [00:01:20]Processing tag 1006 (03EE) [00:01:20]Load OK [00:01:20]SetTLVBufToDocument [00:01:20]Processing tag 1010 (03F2) [00:01:20]Malloc new data [00:01:20]Processing tag 1011 (03F3) [00:01:20]Malloc new data [00:01:20]SetTLVBufToDocument err=0 [00:01:20]Processing tag 1006 (03EE) [00:01:20]Load OK [00:01:20]SetTLVBufToDocument [00:01:20]Processing tag 1010 (03F2) [00:01:20]Malloc new data [00:01:20]Processing tag 1011 (03F3) [00:01:20]Malloc new data [00:01:20]SetTLVBufToDocument err=0 [00:01:20]Processing tag 1007 (03EF) [00:01:20]Load OK [00:01:20]SetTLVBufToDocument [00:01:20]Processing tag 1014 (03F6) [00:01:20]Malloc new data [00:01:20]Processing tag 1015 (03F7) [00:01:20]Malloc new data [00:01:20]SetTLVBufToDocument err=0 [00:01:20]Processing tag 1007 (03EF) [00:01:20]Load OK [00:01:20]SetTLVBufToDocument [00:01:20]Processing tag 1014 (03F6) [00:01:20]Malloc new data [00:01:20]Processing tag 1015 (03F7) [00:01:20]Malloc new data [00:01:20]SetTLVBufToDocument err=0 [00:01:20]Processing tag 1007 (03EF) [00:01:20]Load OK [00:01:20]SetTLVBufToDocument [00:01:20]Processing tag 1014 (03F6) [00:01:20]Malloc new data [00:01:20]Processing tag 1015 (03F7) [00:01:20]Malloc new data [00:01:20]SetTLVBufToDocument err=0 [00:01:20]Processing tag 1007 (03EF) [00:01:20]Load OK [00:01:20]SetTLVBufToDocument [00:01:20]Processing tag 1014 (03F6) [00:01:20]Malloc new data [00:01:20]Processing tag 1015 (03F7) [00:01:20]Malloc new data [00:01:20]SetTLVBufToDocument err=0 [00:01:20]Processing tag 1007 (03EF) [00:01:20]Load OK [00:01:20]SetTLVBufToDocument [00:01:20]Processing tag 1014 (03F6) [00:01:20]Malloc new data [00:01:20]Processing tag 1015 (03F7) [00:01:20]Malloc new data [00:01:20]SetTLVBufToDocument err=0 [00:01:20]Processing tag 1007 (03EF) [00:01:20]Load OK [00:01:20]SetTLVBufToDocument [00:01:20]Processing tag 1014 (03F6) [00:01:20]Malloc new data [00:01:20]Processing tag 1015 (03F7) [00:01:20]Malloc new data [00:01:20]SetTLVBufToDocument err=0 [00:01:20]Processing tag 1007 (03EF) [00:01:20]Load OK [00:01:20]SetTLVBufToDocument [00:01:20]Processing tag 1014 (03F6) [00:01:20]Malloc new data [00:01:20]Processing tag 1015 (03F7) [00:01:20]Malloc new data [00:01:20]SetTLVBufToDocument err=0 [00:01:20]SetTLVBufToDocument err=0 [00:01:20]SetTLVBufToDocument err=0 [00:01:20]Processing tag 1133 (046D) [00:01:20]Malloc new data [00:01:20]SetTLVBufToDocument err=0 [00:01:20]SetTLVBufToDocument err=0 [00:01:20]Malloc new data [00:01:20]SAM_PROTO_GetFMData [00:01:20]wFMCommunicate request_size=4 [00:01:20]MH_SAM_APDU [00:01:20]CAPDU: 80 13 03 00 [00:01:20]Write to MH i2c: E2 08 00 20 01 80 13 03 00 00 00 00 00 A0 [00:01:20]Write i2c OK [00:01:20]MH_I2C_Read... [00:01:21]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:01:21]Read from MH i2c: E2 [00:01:21]MH_I2C_Read... [00:01:21]Read from MH i2c: E2 FD 00 [00:01:21]MH_I2C_Read... [00:01:21]Read from MH i2c: E2 FD 00 20 01 00 C5 04 85 04 C1 04 6E 04 04 00 BF F6 00 00 69 04 A1 00 6F 04 04 00 5F F4 00 00 B1 04 04 00 B1 00 C4 76 70 04 04 00 96 B7 05 66 72 04 04 00 1B 49 BE 10 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 46 29 9D 0C 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 15 05 0D 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 60 02 00 00 B1 04 04 00 E4 BA 80 03 70 04 04 00 60 5F 65 03 72 04 03 00 84 5B 1B 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 84 3C 5F EF 03 09 90 00 A2 [00:01:21]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 BF F6 00 00 69 04 A1 00 6F 04 04 00 5F F4 00 00 B1 04 04 00 B1 00 C4 76 70 04 04 00 96 B7 05 66 72 04 04 00 1B 49 BE 10 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 46 29 9D 0C 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 15 05 0D 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 60 02 00 00 B1 04 04 00 E4 BA 80 03 70 04 04 00 60 5F 65 03 72 04 03 00 84 5B 1B 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 84 3C 5F EF 03 09 90 00 [00:01:21]wFMCommunicate OK [00:01:21]wFMCommunicate request_size=4 [00:01:21]MH_SAM_APDU [00:01:21]CAPDU: 80 17 00 00 [00:01:21]Write to MH i2c: E2 08 00 21 01 80 17 00 00 00 00 00 00 A2 [00:01:21]Write i2c OK [00:01:21]MH_I2C_Read... [00:01:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:01:21]Read from MH i2c: E2 [00:01:21]MH_I2C_Read... [00:01:21]Read from MH i2c: E2 FD 00 [00:01:21]MH_I2C_Read... [00:01:21]Read from MH i2c: E2 FD 00 21 01 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 7A EF 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 C8 [00:01:21]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 7A EF 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [00:01:21]wFMCommunicate OK [00:01:21]wFMCommunicate request_size=4 [00:01:21]MH_SAM_APDU [00:01:21]CAPDU: 80 17 00 00 [00:01:21]Write to MH i2c: E2 08 00 22 01 80 17 00 00 00 00 00 00 A3 [00:01:21]Write i2c OK [00:01:21]MH_I2C_Read... [00:01:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:01:22]Read from MH i2c: E2 [00:01:22]MH_I2C_Read... [00:01:22]Read from MH i2c: E2 FD 00 [00:01:22]MH_I2C_Read... [00:01:22]Read from MH i2c: E2 FD 00 22 01 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 B5 [00:01:22]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 OFD Sender: No OFD packet to send [00:01:22]F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [00:01:22]wFMCommunicate OK [00:01:22]wFMCommunicate request_size=4 [00:01:22]MH_SAM_APDU [00:01:22]CAPDU: 80 17 00 00 [00:01:22]Write to MH i2c: E2 08 00 23 01 80 17 00 00 00 00 00 00 A4 [00:01:22]Write i2c OK [00:01:22]MH_I2C_Read... [00:01:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:01:22]Read from MH i2c: E2 [00:01:22]MH_I2C_Read... [00:01:22]Read from MH i2c: E2 FD 00 [00:01:22]MH_I2C_Read... [00:01:22]Read from MH i2c: E2 FD 00 23 01 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 30 [00:01:22]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [00:01:23]wFMCommunicate OK [00:01:23]wFMCommunicate request_size=4 [00:01:23]MH_SAM_APDU [00:01:23]CAPDU: 80 17 00 00 [00:01:23]Write to MH i2c: E2 08 00 24 01 80 17 00 00 00 00 00 00 A5 [00:01:23]Write i2c OK [00:01:23]MH_I2C_Read... [00:01:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:01:23]Read from MH i2c: E2 [00:01:23]MH_I2C_Read... [00:01:23]Read from MH i2c: E2 E2 00 [00:01:23]MH_I2C_Read... [00:01:23]Read from MH i2c: E2 E2 00 24 01 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 83 [00:01:23]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:01:23]wFMCommunicate OK [00:01:23]SAM_PROTO_GetFMData done [00:01:23]FM_GetFMData:85 04 C1 04 6E 04 04 00 BF F6 00 00 69 04 A1 00 6F 04 04 00 5F F4 00 00 B1 04 04 00 B1 00 C4 76 70 04 04 00 96 B7 05 66 72 04 04 00 1B 49 BE 10 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 46 29 9D 0C 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 15 05 0D 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 60 02 00 00 B1 04 04 00 E4 BA 80 03 70 04 04 00 60 5F 65 03 72 04 03 00 84 5B 1B 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 84 3C 5F 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 7A EF 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:01:24]oper:6F 04 04 00 5F F4 00 00 B1 04 04 00 B1 00 C4 76 70 04 04 00 96 B7 05 66 72 04 04 00 1B 49 BE 10 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 46 29 9D 0C 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 15 05 0D 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 [00:01:24]total:B1 00 C4 76 [00:01:24]Malloc new data [00:01:24]oper:6F 04 04 00 60 02 00 00 B1 04 04 00 E4 BA 80 03 70 04 04 00 60 5F 65 03 72 04 03 00 84 5B 1B 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 84 3C 5F 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 7A EF 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:01:24]total:E4 BA 80 03 [00:01:24]Malloc new data [00:01:24]oper:6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:01:24]total: [00:01:24]Malloc new data [00:01:24]oper:6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:01:24]total: [00:01:24]Malloc new data [00:01:24]KKMPrepareXReportFMData err=0 [00:01:24]Х отчет ИНН: 02508201610067 Кассир: Калыгулова Н. 04.06.2024 00:01 Смена: 266 РНМ: 0000000000092737 ЗНМ: 0300000031 СНО: Общий режим Всего чеков: 171 ИТОГИ ПРИХОД Чеков: 168 Общий итог: 49837.48 Итого наличными: 38084.00 Итого безнал.: 11753.48 НДС 0% : 0.00 НДС 12% : 5293.02 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 440.97 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 3 Общий итог: 2400.00 Итого наличными: 2400.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 254.90 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 21.24 ИТОГИ РАСХОД Чеков: 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 Нал. в кассе: 35684.00 НС Приход: 19925567.21 НС Возвр.Прихода: 587681.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000875074 [00:01:24]StoreToDocumentArchive [00:01:24]MH_GetDate [00:01:24]Write to MH i2c: F0 00 00 25 01 15 [00:01:24]Write i2c OK [00:01:24]MH_I2C_Read... [00:01:24]Read from MH i2c: F0 [00:01:24]MH_I2C_Read... [00:01:24]Read from MH i2c: F0 09 00 [00:01:24]MH_I2C_Read... [00:01:24]Read from MH i2c: F0 09 00 25 01 00 54 59 5E 66 6A 96 4A 66 3F [00:01:24]shift 266 fd 1717459284 [00:01:24]Create dir for shift 0266 [00:01:24]save to /storage/0266/doc_1717459284 [00:01:24]save last doc name /storage/0266/doc_1717459284 to /storage/kkm_last_doc_name [00:01:24]save OK [00:01:24]Clear old archive folders... [00:01:24]NVStorageSaveData kkm_last_timestamp [00:01:24]File name is /storage/kkm_last_timestamp [00:01:24]Write 4 bytes [00:01:24]NVStorageSaveData done [00:01:24]ExternCall_PrintAddStr [00:01:24]wPrintStart [00:01:24]Write to MH i2c: 01 00 00 26 01 27 [00:01:24]Write i2c OK [00:01:24]MH_I2C_Read... [00:01:24]Read from MH i2c: 01 [00:01:24]MH_I2C_Read... [00:01:24]Read from MH i2c: 01 07 00 [00:01:24]MH_I2C_Read... [00:01:24]Read from MH i2c: 01 07 00 26 01 00 00 00 00 00 FF 0F 3C [00:01:24]RasterBufferAndPrint [00:01:24]line Х отчет [00:01:24]line ИНН: 02508201610067 [00:01:24]line Кассир: Калыгулова Н. [00:01:24]line 04.06.2024 00:01 [00:01:24]line Смена: 266 [00:01:24]line РНМ: 0000000000092737 [00:01:24]line ЗНМ: 0300000031 [00:01:24]line СНО: Общий режим [00:01:24]line Всего чеков: 171 [00:01:24]line ИТОГИ ПРИХОД [00:01:24]line Чеков: 168 [00:01:24]line Общий итог: 49837.48 [00:01:24]line Итого наличными: 38084.00 [00:01:24]line Итого безнал.: 11753.48 [00:01:24]line НДС 0% : 0.00 [00:01:24]line НДС 12% : 5293.02 [00:01:24]line НСП 0% : 0.00 [00:01:24]line НСП 1,50% : 0.00 [00:01:24]line НСП 0,50% : 0.00 [00:01:24]line НСП 5% : 0.00 [00:01:24]line НСП 3% : 0.00 [00:01:24]line НСП 2% : 0.00 [00:01:24]line НСП 1% : 440.97 [00:01:24]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:01:24]line Чеков: 3 [00:01:24]line Общий итог: 2400.00 [00:01:24]line Итого наличными: 2400.00 [00:01:24]line Итого безнал.: 0.00 [00:01:24]line НДС 0% : 0.00 [00:01:24]line НДС 12% : 254.90 [00:01:24]line НСП 0% : 0.00 [00:01:24]line НСП 1,50% : 0.00 [00:01:24]line НСП 0,50% : 0.00 [00:01:24]line НСП 5% : 0.00 [00:01:24]line НСП 3% : 0.00 [00:01:24]line НСП 2% : 0.00 [00:01:24]line НСП 1% : 21.24 [00:01:24]line ИТОГИ РАСХОД [00:01:24]line Чеков: 0 [00:01:24]line Общий итог: 0.00 [00:01:24]line Итого наличными: 0.00 [00:01:24]line Итого безнал.: 0.00 [00:01:24]line НДС 0% : 0.00 [00:01:24]line НДС 12% : 0.00 [00:01:24]line НСП 0% : 0.00 [00:01:24]line НСП 1,50% : 0.00 [00:01:24]line НСП 0,50% : 0.00 [00:01:24]line НСП 5% : 0.00 [00:01:24]line НСП 3% : 0.00 [00:01:24]line НСП 2% : 0.00 [00:01:24]line НСП 1% : 0.00 [00:01:24]line ИТОГИ ВОЗВРАТ РАСХОДА [00:01:24]line Чеков: 0 [00:01:24]line Общий итог: 0.00 [00:01:24]line Итого наличными: 0.00 [00:01:24]line Итого безнал.: 0.00 [00:01:24]line НДС 0% : 0.00 [00:01:24]line НДС 12% : 0.00 [00:01:24]line НСП 0% : 0.00 [00:01:24]line НСП 1,50% : 0.00 [00:01:24]line НСП 0,50% : 0.00 [00:01:24]line НСП 5% : 0.00 [00:01:24]line НСП 3% : 0.00 [00:01:24]line НСП 2% : 0.00 [00:01:24]line НСП 1% : 0.00 [00:01:24]line Сумма внесений: 0.00 [00:01:24]line Сумма выплат: 0.00 [00:01:24]line Нал. в кассе: 35684.00 [00:01:24]line НС Приход: 19925567.21 [00:01:24]line НС Возвр.Прихода: 587681.00 [00:01:24]line НС Расход: 0.00 [00:01:24]line НС Возвр.Расхода: 0.00 [00:01:24]line ФМ: 0000000000875074 [00:01:24]written 0, free lines is 4095 [00:01:25]Write to MH i2c: 01 00 00 71 01 72 [00:01:25]Write i2c OK [00:01:25]MH_I2C_Read... [00:01:25]Read from MH i2c: 01 [00:01:25]MH_I2C_Read... [00:01:25]Read from MH i2c: 01 07 00 [00:01:25]MH_I2C_Read... [00:01:25]Read from MH i2c: 01 07 00 71 01 00 00 00 00 00 91 0A 14 [00:01:25]RasterBufferAndPrint [00:01:25]line [00:01:25]line [00:01:25]line [00:01:25]line [00:01:25]line [00:01:25]written 0, free lines is 2732 [00:01:25]MH_Cut [00:01:25]Write to MH i2c: D1 01 00 78 01 01 4B [00:01:25]Write i2c OK [00:01:25]MH_I2C_Read... [00:01:25]Read from MH i2c: D1 [00:01:25]MH_I2C_Read... [00:01:25]Read from MH i2c: D1 01 00 [00:01:25]MH_I2C_Read... [00:01:25]Read from MH i2c: D1 01 00 78 01 00 4A [00:01:25]Write to MH i2c: 01 00 00 79 01 7A [00:01:25]Write i2c OK [00:01:25]MH_I2C_Read... [00:01:26]*** Cut start [00:01:26]*** Partial cut [00:01:26]*** CUTSNS_PIN = 1 [00:01:26]*** CUTSNS_PIN = 0 [00:01:26]*** Brake cut motor [00:01:27]Read from MH i2c: 01 [00:01:27]MH_I2C_Read... [00:01:27]*** Stop cut motor [00:01:27]*** Cut end [00:01:27]Read from MH i2c: 01 07 00 [00:01:27]MH_I2C_Read... [00:01:27]Read from MH i2c: 01 07 00 79 01 00 00 00 00 00 FF 0F 8F [00:01:27]process_action x_report done [00:01:27]requested_data is exist [00:01:27]produce_requested_data [00:01:27]requested_item fd.num is exist - process it [00:01:27]SAM_PROTO_GetFieldsCounters [00:01:27]wFMCommunicate request_size=4 [00:01:27]MH_SAM_APDU [00:01:27]CAPDU: 80 13 00 00 [00:01:27]Write to MH i2c: E2 08 00 7A 01 80 13 00 00 00 00 00 00 F7 [00:01:27]Write i2c OK [00:01:27]MH_I2C_Read... [00:01:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:01:27]Read from MH i2c: E2 [00:01:27]MH_I2C_Read... [00:01:27]Read from MH i2c: E2 62 00 [00:01:27]MH_I2C_Read... [00:01:27]Read from MH i2c: E2 62 00 7A 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 A9 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 AB 00 00 00 5E 04 04 00 AB 00 00 00 57 04 04 00 AC 00 00 00 19 04 04 00 00 00 00 00 90 00 33 [00:01:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 A9 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 AB 00 00 00 5E 04 04 00 AB 00 00 00 57 04 04 00 AC 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:01:27]wFMCommunicate OK [00:01:27]SAM_PROTO_GetFieldsCounters done [00:01:27]requested_item shift.num is exist - process it [00:01:27]requested_item shift.opened is exist - process it [00:01:27]req_shift_opened [00:01:27]FM_GetShiftState [00:01:27]SAM_PROTO_GetShiftState [00:01:27]wFMCommunicate request_size=4 [00:01:27]MH_SAM_APDU [00:01:27]CAPDU: 80 13 01 00 [00:01:27]Write to MH i2c: E2 08 00 7B 01 80 13 01 00 00 00 00 00 F9 [00:01:27]Write i2c OK [00:01:27]MH_I2C_Read... [00:01:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:01:27]OFD Sender: No OFD packet to send [00:01:27]Read from MH i2c: E2 [00:01:27]MH_I2C_Read... [00:01:27]Read from MH i2c: E2 0E 00 [00:01:27]MH_I2C_Read... [00:01:27]Read from MH i2c: E2 0E 00 7B 01 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 C5 [00:01:27]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [00:01:27]wFMCommunicate OK [00:01:27]SAM_PROTO_GetShiftState done [00:01:27]FM_GetShiftState done [00:01:27]req_shift_opened done [00:01:27]requested_item shift.open_date is exist - process it [00:01:27]req_shift_open_date [00:01:27]req_shift_open_date done [00:01:27]produce_requested_data done [00:01:27]produce_requested_data return {"fd.num":63913,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [00:01:27]process_action_free x_report [00:01:27]json_value_free [00:01:27]json_value_free done [00:01:27]process_json_proto returns [00:01:27]Send response to host [00:01:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":63913,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [00:01:27]free response buf [00:01:27]execute_script done [00:01:27]execute_script returns [00:01:27]free content buf [00:01:27]Sock 7.Close socket [00:01:27]Sock 7.Thread stoped [00:01:32]OFD Sender: No OFD packet to send [00:01:37]OFD Sender: No OFD packet to send [00:01:42]OFD Sender: No OFD packet to send [00:01:47]OFD Sender: No OFD packet to send [00:01:52]OFD Sender: No OFD packet to send [00:01:57]OFD Sender: No OFD packet to send [00:02:01]accept exits with 9 [00:02:01]New connection [00:02:01]New thread 3066912100 created [00:02:01]Thread 3067055460 joined [00:02:01]Waiting for new connection... [00:02:01] Sock 9.Parse request [00:02:01]Sock 9.Check first char [00:02:01]Sock 9.First char is OK [00:02:01]request: POST /json_proto HTTP/1.0 [00:02:01]Method: POST [00:02:01]URL: /json_proto [00:02:01]Method is POST - this is cgi request [00:02:01]url: /json_proto [00:02:01]query_string will be loaded in cgi processing [00:02:01]execute_cgi json_proto POST (null) [00:02:01]execute_cgi path=json_proto method=POST [00:02:01]POST find Content-Length [00:02:01]Host: 172.17.60.69:8080 [00:02:01]Content-Length: 215 [00:02:01]Content-Type: application/json [00:02:01] [00:02:01]POST finish read [00:02:01]Found Content-Length = 215 [00:02:01]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:02:01]execute_script... [00:02:01]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:02:01]POST & json_proto [00:02:01]process_json_proto [00:02:01]json parsed OK: [00:02:01]protocol is kg_v1.0 [00:02:01]action value=get_value [00:02:01]process_action get_value [00:02:01]cmd_get_value [00:02:01]process_action get_value done [00:02:01]requested_data is exist [00:02:01]produce_requested_data [00:02:01]requested_item kkm.sn is exist - process it [00:02:01]requested_item kkm.ver is exist - process it [00:02:01]requested_item fm.sn is exist - process it [00:02:01]wFMCommunicate request_size=4 [00:02:01]MH_SAM_APDU [00:02:01]CAPDU: 80 11 00 00 [00:02:01]Write to MH i2c: E2 08 00 7C 01 80 11 00 00 00 00 00 00 F7 [00:02:01]Write i2c OK [00:02:01]MH_I2C_Read... [00:02:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:02:01]Read from MH i2c: E2 [00:02:01]MH_I2C_Read... [00:02:01]Read from MH i2c: E2 17 00 [00:02:01]MH_I2C_Read... [00:02:01]Read from MH i2c: E2 17 00 7C 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 49 [00:02:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [00:02:01]wFMCommunicate OK [00:02:01]requested_item fd.num is exist - process it [00:02:01]SAM_PROTO_GetFieldsCounters [00:02:01]wFMCommunicate request_size=4 [00:02:01]MH_SAM_APDU [00:02:01]CAPDU: 80 13 00 00 [00:02:01]Write to MH i2c: E2 08 00 7D 01 80 13 00 00 00 00 00 00 FA [00:02:01]Write i2c OK [00:02:01]MH_I2C_Read... [00:02:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:02:01]Read from MH i2c: E2 [00:02:01]MH_I2C_Read... [00:02:01]Read from MH i2c: E2 62 00 [00:02:01]MH_I2C_Read... [00:02:01]Read from MH i2c: E2 62 00 7D 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 A9 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 AB 00 00 00 5E 04 04 00 AB 00 00 00 57 04 04 00 AC 00 00 00 19 04 04 00 00 00 00 00 90 00 36 [00:02: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 A9 F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 AB 00 00 00 5E 04 04 00 AB 00 00 00 57 04 04 00 AC 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:02:01]wFMCommunicate OK [00:02:01]SAM_PROTO_GetFieldsCounters done [00:02:01]requested_item shift.num is exist - process it [00:02:01]requested_item shift.opened is exist - process it [00:02:01]req_shift_opened [00:02:01]FM_GetShiftState [00:02:01]SAM_PROTO_GetShiftState [00:02:01]wFMCommunicate request_size=4 [00:02:01]MH_SAM_APDU [00:02:01]CAPDU: 80 13 01 00 [00:02:01]Write to MH i2c: E2 08 00 7E 01 80 13 01 00 00 00 00 00 FC [00:02:01]Write i2c OK [00:02:01]MH_I2C_Read... [00:02:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:02:02]Read from MH i2c: E2 [00:02:02]MH_I2C_Read... [00:02:02]Read from MH i2c: E2 0E 00 [00:02:02]MH_I2C_Read... [00:02:02]Read from MH i2c: E2 0E 00 7E 01 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 C8 [00:02:02]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [00:02:02]wFMCommunicate OK [00:02:02]SAM_PROTO_GetShiftState done [00:02:02]FM_GetShiftState done [00:02:02]req_shift_opened done [00:02:02]requested_item shift.open_date is exist - process it [00:02:02]req_shift_open_date [00:02:02]req_shift_open_date done [00:02:02]produce_requested_data done [00:02:02]produce_requested_data return {"kkm.sn":"0300000031","kkm.ver":"001","fm.sn":"0000000000875074","fd.num":63913,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173} [00:02:02]process_action_free get_value [00:02:02]json_value_free [00:02:02]json_value_free done [00:02:02]process_json_proto returns [00:02:02]Send response to host [00:02:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000031","kkm.ver":"001","fm.sn":"0000000000875074","fd.num":63913,"shift.num":373,"shift.opened":1,"shift.open_date":1717373173}}} [00:02:02]free response buf [00:02:02]execute_script done [00:02:02]execute_script returns [00:02:02]free content buf [00:02:02]Sock 9.Close socket [00:02:02]Sock 9.Thread stoped [00:02:02]accept exits with 7 [00:02:02]New connection [00:02:02]New thread 3067055460 created [00:02:02]Thread 3066912100 joined [00:02:02]Waiting for new connection... [00:02:02] Sock 7.Parse request [00:02:02]Sock 7.Check first char [00:02:02]Sock 7.First char is OK [00:02:02]request: POST /json_proto HTTP/1.0 [00:02:02]Method: POST [00:02:02]URL: /json_proto [00:02:02]Method is POST - this is cgi request [00:02:02]url: /json_proto [00:02:02]query_string will be loaded in cgi processing [00:02:02]execute_cgi json_proto POST (null) [00:02:02]execute_cgi path=json_proto method=POST [00:02:02]POST find Content-Length [00:02:02]Host: 172.17.60.69:8080 [00:02:02]Content-Length: 331 [00:02:02]Content-Type: application/json [00:02:02] [00:02:02]POST finish read [00:02:02]Found Content-Length = 331 [00:02:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:02:02]execute_script... [00:02:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:02:02]POST & json_proto [00:02:02]process_json_proto [00:02:02]json parsed OK: [00:02:02]protocol is kg_v1.0 [00:02:02]action value=get_value [00:02:02]process_action get_value [00:02:02]cmd_get_value [00:02:02]process_action get_value done [00:02:02]requested_data is exist [00:02:02]produce_requested_data [00:02:02]requested_item fm.sale.total is exist - process it [00:02:02]SAM_PROTO_GetFMData [00:02:02]wFMCommunicate request_size=4 [00:02:02]MH_SAM_APDU [00:02:02]CAPDU: 80 13 03 00 [00:02:02]Write to MH i2c: E2 08 00 7F 01 80 13 03 00 00 00 00 00 FF [00:02:02]Write i2c OK [00:02:02]MH_I2C_Read... [00:02:02]OFD Sender: No OFD packet to send [00:02:02]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:02:02]Read from MH i2c: E2 [00:02:02]MH_I2C_Read... [00:02:02]Read from MH i2c: E2 FD 00 [00:02:02]MH_I2C_Read... [00:02:02]Read from MH i2c: E2 FD 00 7F 01 00 C5 04 85 04 C1 04 6E 04 04 00 BF F6 00 00 69 04 A1 00 6F 04 04 00 5F F4 00 00 B1 04 04 00 B1 00 C4 76 70 04 04 00 96 B7 05 66 72 04 04 00 1B 49 BE 10 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 46 29 9D 0C 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 15 05 0D 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 60 02 00 00 B1 04 04 00 E4 BA 80 03 70 04 04 00 60 5F 65 03 72 04 03 00 84 5B 1B 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 84 3C 5F EF 03 09 90 00 01 [00:02:02]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 BF F6 00 00 69 04 A1 00 6F 04 04 00 5F F4 00 00 B1 04 04 00 B1 00 C4 76 70 04 04 00 96 B7 05 66 72 04 04 00 1B 49 BE 10 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 46 29 9D 0C 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 15 05 0D 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 60 02 00 00 B1 04 04 00 E4 BA 80 03 70 04 04 00 60 5F 65 03 72 04 03 00 84 5B 1B 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 84 3C 5F EF 03 09 90 00 [00:02:02]wFMCommunicate OK [00:02:02]wFMCommunicate request_size=4 [00:02:02]MH_SAM_APDU [00:02:02]CAPDU: 80 17 00 00 [00:02:02]Write to MH i2c: E2 08 00 80 01 80 17 00 00 00 00 00 00 01 [00:02:02]Write i2c OK [00:02:02]MH_I2C_Read... [00:02:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:02:03]Read from MH i2c: E2 [00:02:03]MH_I2C_Read... [00:02:03]Read from MH i2c: E2 FD 00 [00:02:03]MH_I2C_Read... [00:02:03]Read from MH i2c: E2 FD 00 80 01 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 7A EF 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 27 [00:02:03]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 7A EF 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [00:02:03]wFMCommunicate OK [00:02:03]wFMCommunicate request_size=4 [00:02:03]MH_SAM_APDU [00:02:03]CAPDU: 80 17 00 00 [00:02:03]Write to MH i2c: E2 08 00 81 01 80 17 00 00 00 00 00 00 02 [00:02:03]Write i2c OK [00:02:03]MH_I2C_Read... [00:02:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:02:03]Read from MH i2c: E2 [00:02:03]MH_I2C_Read... [00:02:03]Read from MH i2c: E2 FD 00 [00:02:03]MH_I2C_Read... [00:02:03]Read from MH i2c: E2 FD 00 81 01 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 14 [00:02:03]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [00:02:03]wFMCommunicate OK [00:02:03]wFMCommunicate request_size=4 [00:02:03]MH_SAM_APDU [00:02:03]CAPDU: 80 17 00 00 [00:02:03]Write to MH i2c: E2 08 00 82 01 80 17 00 00 00 00 00 00 03 [00:02:03]Write i2c OK [00:02:03]MH_I2C_Read... [00:02:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:02:03]Read from MH i2c: E2 [00:02:03]MH_I2C_Read... [00:02:03]Read from MH i2c: E2 FD 00 [00:02:03]MH_I2C_Read... [00:02:03]Read from MH i2c: E2 FD 00 82 01 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 8F [00:02:03]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [00:02:03]wFMCommunicate OK [00:02:03]wFMCommunicate request_size=4 [00:02:03]MH_SAM_APDU [00:02:03]CAPDU: 80 17 00 00 [00:02:03]Write to MH i2c: E2 08 00 83 01 80 17 00 00 00 00 00 00 04 [00:02:03]Write i2c OK [00:02:03]MH_I2C_Read... [00:02:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:02:03]Read from MH i2c: E2 [00:02:03]MH_I2C_Read... [00:02:03]Read from MH i2c: E2 E2 00 [00:02:03]MH_I2C_Read... [00:02:03]Read from MH i2c: E2 E2 00 83 01 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 E2 [00:02:03]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:02:03]wFMCommunicate OK [00:02:03]SAM_PROTO_GetFMData done [00:02:03]requested_item fm.sale_refund.total is exist - process it [00:02:03]requested_item fm.buy.total is exist - process it [00:02:03]requested_item shift.sale.total is exist - process it [00:02:03]SAM_PROTO_GetShiftData [00:02:03]wFMCommunicate request_size=4 [00:02:03]MH_SAM_APDU [00:02:03]CAPDU: 80 13 02 00 [00:02:03]Write to MH i2c: E2 08 00 84 01 80 13 02 00 00 00 00 00 03 [00:02:03]Write i2c OK [00:02:03]MH_I2C_Read... [00:02:04]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:02:04]Read from MH i2c: E2 [00:02:04]MH_I2C_Read... [00:02:04]Read from MH i2c: E2 FD 00 [00:02:04]MH_I2C_Read... [00:02:04]Read from MH i2c: E2 FD 00 84 01 00 B8 04 AA 04 B4 04 6E 04 04 00 AB 00 00 00 69 04 9B 00 6F 04 04 00 A8 00 00 00 B1 04 03 00 C4 0B 4C 70 04 03 00 90 1C 3A 72 04 03 00 34 EF 11 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 96 13 08 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 41 AC EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 03 00 00 00 B1 04 03 00 80 A9 03 70 04 03 00 80 A9 03 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 92 63 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 6B [00:02:04]RAPDU: B8 04 AA 04 B4 04 6E 04 04 00 AB 00 00 00 69 04 9B 00 6F 04 04 00 A8 00 00 00 B1 04 03 00 C4 0B 4C 70 04 03 00 90 1C 3A 72 04 03 00 34 EF 11 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 96 13 08 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 41 AC EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 03 00 00 00 B1 04 03 00 80 A9 03 70 04 03 00 80 A9 03 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 92 63 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 [00:02:04]wFMCommunicate OK [00:02:04]wFMCommunicate request_size=4 [00:02:04]MH_SAM_APDU [00:02:04]CAPDU: 80 17 00 00 [00:02:04]Write to MH i2c: E2 08 00 85 01 80 17 00 00 00 00 00 00 06 [00:02:04]Write i2c OK [00:02:04]MH_I2C_Read... [00:02:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:02:04]Read from MH i2c: E2 [00:02:04]MH_I2C_Read... [00:02:04]Read from MH i2c: E2 FD 00 [00:02:04]MH_I2C_Read... [00:02:04]Read from MH i2c: E2 FD 00 85 01 00 0B 00 F6 03 01 00 01 F7 03 02 00 4C 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 90 00 8B [00:02:04]RAPDU: 0B 00 F6 03 01 00 01 F7 03 02 00 4C 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 90 00 [00:02:04]wFMCommunicate OK [00:02:04]wFMCommunicate request_size=4 [00:02:04]MH_SAM_APDU [00:02:04]CAPDU: 80 17 00 00 [00:02:04]Write to MH i2c: E2 08 00 86 01 80 17 00 00 00 00 00 00 07 [00:02:04]Write i2c OK [00:02:04]MH_I2C_Read... [00:02:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:02:05]Read from MH i2c: E2 [00:02:05]MH_I2C_Read... [00:02:05]Read from MH i2c: E2 FD 00 [00:02:05]MH_I2C_Read... [00:02:05]Read from MH i2c: E2 FD 00 86 01 00 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 90 00 A9 [00:02:05]RAPDU: 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 90 00 [00:02:05]wFMCommunicate OK [00:02:05]wFMCommunicate request_size=4 [00:02:05]MH_SAM_APDU [00:02:05]CAPDU: 80 17 00 00 [00:02:05]Write to MH i2c: E2 08 00 87 01 80 17 00 00 00 00 00 00 08 [00:02:05]Write i2c OK [00:02:05]MH_I2C_Read... [00:02:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:02:05]Read from MH i2c: E2 [00:02:05]MH_I2C_Read... [00:02:05]Read from MH i2c: E2 FD 00 [00:02:05]MH_I2C_Read... [00:02:05]Read from MH i2c: E2 FD 00 87 01 00 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 90 00 91 [00:02:05]RAPDU: 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 90 00 [00:02:05]wFMCommunicate OK [00:02:05]wFMCommunicate request_size=4 [00:02:05]MH_SAM_APDU [00:02:05]CAPDU: 80 17 00 00 [00:02:05]Write to MH i2c: E2 08 00 88 01 80 17 00 00 00 00 00 00 09 [00:02:05]Write i2c OK [00:02:05]MH_I2C_Read... [00:02:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 210! [00:02:05]Read from MH i2c: E2 [00:02:05]MH_I2C_Read... [00:02:05]Read from MH i2c: E2 D5 00 [00:02:05]MH_I2C_Read... [00:02:05]Read from MH i2c: E2 D5 00 88 01 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 EA [00:02:05]RAPDU: EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:02:05]wFMCommunicate OK [00:02:05]SAM_PROTO_GetShiftData done [00:02:05]requested_item shift.sale.total_cash is exist - process it [00:02:05]requested_item shift.sale_refund.total is exist - process it [00:02:05]requested_item shift.sale_refund.total_cash is exist - process it [00:02:05]requested_item shift.buy.total is exist - process it [00:02:05]requested_item shift.buy.total_cash is exist - process it [00:02:05]produce_requested_data done [00:02:05]produce_requested_data return {"fm.sale.total":19925567.21,"fm.sale_refund.total":587681.00,"fm.buy.total":0.00,"shift.sale.total":49837.48,"shift.sale.total_cash":38084.00,"shift.sale_refund.total":2400.00,"shift.sale_refund.total_cash":2400.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:02:05]process_action_free get_value [00:02:05]json_value_free [00:02:05]json_value_free done [00:02:05]process_json_proto returns [00:02:05]Send response to host [00:02:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":19925567.21,"fm.sale_refund.total":587681.00,"fm.buy.total":0.00,"shift.sale.total":49837.48,"shift.sale.total_cash":38084.00,"shift.sale_refund.total":2400.00,"shift.sale_refund.total_cash":2400.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:02:05]free response buf [00:02:05]execute_script done [00:02:05]execute_script returns [00:02:05]free content buf [00:02:05]Sock 7.Close socket [00:02:05]Sock 7.Thread stoped [00:02:05]accept exits with 9 [00:02:05]New connection [00:02:05]New thread 3066912100 created [00:02:05]Thread 3067055460 joined [00:02:05]Waiting for new connection... [00:02:05] Sock 9.Parse request [00:02:05]Sock 9.Check first char [00:02:05]Sock 9.First char is OK [00:02:05]request: POST /json_proto HTTP/1.0 [00:02:05]Method: POST [00:02:05]URL: /json_proto [00:02:05]Method is POST - this is cgi request [00:02:05]url: /json_proto [00:02:05]query_string will be loaded in cgi processing [00:02:05]execute_cgi json_proto POST (null) [00:02:05]execute_cgi path=json_proto method=POST [00:02:05]POST find Content-Length [00:02:05]Host: 172.17.60.69:8080 [00:02:05]Content-Length: 331 [00:02:05]Content-Type: application/json [00:02:05] [00:02:05]POST finish read [00:02:05]Found Content-Length = 331 [00:02:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:02:05]execute_script... [00:02:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:02:05]POST & json_proto [00:02:05]process_json_proto [00:02:05]json parsed OK: [00:02:05]protocol is kg_v1.0 [00:02:05]action value=get_value [00:02:05]process_action get_value [00:02:05]cmd_get_value [00:02:05]process_action get_value done [00:02:05]requested_data is exist [00:02:05]produce_requested_data [00:02:05]requested_item fm.sale.total is exist - process it [00:02:05]SAM_PROTO_GetFMData [00:02:05]wFMCommunicate request_size=4 [00:02:05]MH_SAM_APDU [00:02:05]CAPDU: 80 13 03 00 [00:02:05]Write to MH i2c: E2 08 00 89 01 80 13 03 00 00 00 00 00 09 [00:02:05]Write i2c OK [00:02:05]MH_I2C_Read... [00:02:06]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:02:06]Read from MH i2c: E2 [00:02:06]MH_I2C_Read... [00:02:06]Read from MH i2c: E2 FD 00 [00:02:06]MH_I2C_Read... [00:02:06]Read from MH i2c: E2 FD 00 89 01 00 C5 04 85 04 C1 04 6E 04 04 00 BF F6 00 00 69 04 A1 00 6F 04 04 00 5F F4 00 00 B1 04 04 00 B1 00 C4 76 70 04 04 00 96 B7 05 66 72 04 04 00 1B 49 BE 10 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 46 29 9D 0C 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 15 05 0D 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 60 02 00 00 B1 04 04 00 E4 BA 80 03 70 04 04 00 60 5F 65 03 72 04 03 00 84 5B 1B 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 84 3C 5F EF 03 09 90 00 0B [00:02:06]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 BF F6 00 00 69 04 A1 00 6F 04 04 00 5F F4 00 00 B1 04 04 00 B1 00 C4 76 70 04 04 00 96 B7 05 66 72 04 04 00 1B 49 BE 10 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 46 29 9D 0C 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 15 05 0D 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 60 02 00 00 B1 04 04 00 E4 BA 80 03 70 04 04 00 60 5F 65 03 72 04 03 00 84 5B 1B 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 84 3C 5F EF 03 09 90 00 [00:02:06]wFMCommunicate OK [00:02:06]wFMCommunicate request_size=4 [00:02:06]MH_SAM_APDU [00:02:06]CAPDU: 80 17 00 00 [00:02:06]Write to MH i2c: E2 08 00 8A 01 80 17 00 00 00 00 00 00 0B [00:02:06]Write i2c OK [00:02:06]MH_I2C_Read... [00:02:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:02:06]Read from MH i2c: E2 [00:02:06]MH_I2C_Read... [00:02:06]Read from MH i2c: E2 FD 00 [00:02:06]MH_I2C_Read... [00:02:06]Read from MH i2c: E2 FD 00 8A 01 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 7A EF 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 31 [00:02:06]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 7A EF 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [00:02:06]wFMCommunicate OK [00:02:06]wFMCommunicate request_size=4 [00:02:06]MH_SAM_APDU [00:02:06]CAPDU: 80 17 00 00 [00:02:06]Write to MH i2c: E2 08 00 8B 01 80 17 00 00 00 00 00 00 0C [00:02:06]Write i2c OK [00:02:06]MH_I2C_Read... [00:02:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:02:06]Read from MH i2c: E2 [00:02:06]MH_I2C_Read... [00:02:06]Read from MH i2c: E2 FD 00 [00:02:06]MH_I2C_Read... [00:02:06]Read from MH i2c: E2 FD 00 8B 01 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 1E [00:02:07]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [00:02:07]wFMCommunicate OK [00:02:07]wFMCommunicate request_size=4 [00:02:07]MH_SAM_APDU [00:02:07]CAPDU: 80 17 00 00 [00:02:07]Write to MH i2c: E2 08 00 8C 01 80 17 00 00 00 00 00 00 0D [00:02:07]Write i2c OK [00:02:07]MH_I2C_Read... [00:02:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:02:07]Read from MH i2c: E2 [00:02:07]MH_I2C_Read... [00:02:07]Read from MH i2c: E2 FD 00 [00:02:07]MH_I2C_Read... [00:02:07]Read from MH i2c: E2 FD 00 8C 01 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 99 [00:02:07]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [00:02:07]wFMCommunicate OK [00:02:07]wFMCommunicate request_size=4 [00:02:07]MH_SAM_APDU [00:02:07]CAPDU: 80 17 00 00 [00:02:07]Write to MH i2c: E2 08 00 8D 01 80 17 00 00 00 00 00 00 0E [00:02:07]Write i2c OK [00:02:07]MH_I2C_Read... [00:02:07]OFD Sender: No OFD packet to send [00:02:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:02:07]Read from MH i2c: E2 [00:02:07]MH_I2C_Read... [00:02:07]Read from MH i2c: E2 E2 00 [00:02:07]MH_I2C_Read... [00:02:07]Read from MH i2c: E2 E2 00 8D 01 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 EC [00:02:07]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:02:07]wFMCommunicate OK [00:02:07]SAM_PROTO_GetFMData done [00:02:07]requested_item fm.sale_refund.total is exist - process it [00:02:07]requested_item fm.buy.total is exist - process it [00:02:07]requested_item shift.sale.total is exist - process it [00:02:07]SAM_PROTO_GetShiftData [00:02:07]wFMCommunicate request_size=4 [00:02:07]MH_SAM_APDU [00:02:07]CAPDU: 80 13 02 00 [00:02:07]Write to MH i2c: E2 08 00 8E 01 80 13 02 00 00 00 00 00 0D [00:02:07]Write i2c OK [00:02:07]MH_I2C_Read... [00:02:08]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:02:08]Read from MH i2c: E2 [00:02:08]MH_I2C_Read... [00:02:08]Read from MH i2c: E2 FD 00 [00:02:08]MH_I2C_Read... [00:02:08]Read from MH i2c: E2 FD 00 8E 01 00 B8 04 AA 04 B4 04 6E 04 04 00 AB 00 00 00 69 04 9B 00 6F 04 04 00 A8 00 00 00 B1 04 03 00 C4 0B 4C 70 04 03 00 90 1C 3A 72 04 03 00 34 EF 11 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 96 13 08 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 41 AC EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 03 00 00 00 B1 04 03 00 80 A9 03 70 04 03 00 80 A9 03 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 92 63 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 75 [00:02:08]RAPDU: B8 04 AA 04 B4 04 6E 04 04 00 AB 00 00 00 69 04 9B 00 6F 04 04 00 A8 00 00 00 B1 04 03 00 C4 0B 4C 70 04 03 00 90 1C 3A 72 04 03 00 34 EF 11 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 96 13 08 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 41 AC EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 03 00 00 00 B1 04 03 00 80 A9 03 70 04 03 00 80 A9 03 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 92 63 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 [00:02:08]wFMCommunicate OK [00:02:08]wFMCommunicate request_size=4 [00:02:08]MH_SAM_APDU [00:02:08]CAPDU: 80 17 00 00 [00:02:08]Write to MH i2c: E2 08 00 8F 01 80 17 00 00 00 00 00 00 10 [00:02:08]Write i2c OK [00:02:08]MH_I2C_Read... [00:02:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:02:08]Read from MH i2c: E2 [00:02:08]MH_I2C_Read... [00:02:08]Read from MH i2c: E2 FD 00 [00:02:08]MH_I2C_Read... [00:02:08]Read from MH i2c: E2 FD 00 8F 01 00 0B 00 F6 03 01 00 01 F7 03 02 00 4C 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 90 00 95 [00:02:08]RAPDU: 0B 00 F6 03 01 00 01 F7 03 02 00 4C 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 90 00 [00:02:08]wFMCommunicate OK [00:02:08]wFMCommunicate request_size=4 [00:02:08]MH_SAM_APDU [00:02:08]CAPDU: 80 17 00 00 [00:02:08]Write to MH i2c: E2 08 00 90 01 80 17 00 00 00 00 00 00 11 [00:02:08]Write i2c OK [00:02:08]MH_I2C_Read... [00:02:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:02:09]Read from MH i2c: E2 [00:02:09]MH_I2C_Read... [00:02:09]Read from MH i2c: E2 FD 00 [00:02:09]MH_I2C_Read... [00:02:09]Read from MH i2c: E2 FD 00 90 01 00 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 90 00 B3 [00:02:09]RAPDU: 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 90 00 [00:02:09]wFMCommunicate OK [00:02:09]wFMCommunicate request_size=4 [00:02:09]MH_SAM_APDU [00:02:09]CAPDU: 80 17 00 00 [00:02:09]Write to MH i2c: E2 08 00 91 01 80 17 00 00 00 00 00 00 12 [00:02:09]Write i2c OK [00:02:09]MH_I2C_Read... [00:02:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:02:09]Read from MH i2c: E2 [00:02:09]MH_I2C_Read... [00:02:09]Read from MH i2c: E2 FD 00 [00:02:09]MH_I2C_Read... [00:02:09]Read from MH i2c: E2 FD 00 91 01 00 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 90 00 9B [00:02:09]RAPDU: 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 90 00 [00:02:09]wFMCommunicate OK [00:02:09]wFMCommunicate request_size=4 [00:02:09]MH_SAM_APDU [00:02:09]CAPDU: 80 17 00 00 [00:02:09]Write to MH i2c: E2 08 00 92 01 80 17 00 00 00 00 00 00 13 [00:02:09]Write i2c OK [00:02:09]MH_I2C_Read... [00:02:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 210! [00:02:10]Read from MH i2c: E2 [00:02:10]MH_I2C_Read... [00:02:10]Read from MH i2c: E2 D5 00 [00:02:10]MH_I2C_Read... [00:02:10]Read from MH i2c: E2 D5 00 92 01 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 F4 [00:02:10]RAPDU: EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:02:10]wFMCommunicate OK [00:02:10]SAM_PROTO_GetShiftData done [00:02:10]requested_item shift.sale.total_cash is exist - process it [00:02:10]requested_item shift.sale_refund.total is exist - process it [00:02:10]requested_item shift.sale_refund.total_cash is exist - process it [00:02:10]requested_item shift.buy.total is exist - process it [00:02:10]requested_item shift.buy.total_cash is exist - process it [00:02:10]produce_requested_data done [00:02:10]produce_requested_data return {"fm.sale.total":19925567.21,"fm.sale_refund.total":587681.00,"fm.buy.total":0.00,"shift.sale.total":49837.48,"shift.sale.total_cash":38084.00,"shift.sale_refund.total":2400.00,"shift.sale_refund.total_cash":2400.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:02:10]process_action_free get_value [00:02:10]json_value_free [00:02:10]json_value_free done [00:02:10]process_json_proto returns [00:02:10]Send response to host [00:02:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":19925567.21,"fm.sale_refund.total":587681.00,"fm.buy.total":0.00,"shift.sale.total":49837.48,"shift.sale.total_cash":38084.00,"shift.sale_refund.total":2400.00,"shift.sale_refund.total_cash":2400.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:02:10]free response buf [00:02:10]execute_script done [00:02:10]execute_script returns [00:02:10]free content buf [00:02:10]Sock 9.Close socket [00:02:10]Sock 9.Thread stoped [00:02:10]accept exits with 7 [00:02:10]New connection [00:02:10]New thread 3067055460 created [00:02:10]Thread 3066912100 joined [00:02:10]Waiting for new connection... [00:02:10] Sock 7.Parse request [00:02:10]Sock 7.Check first char [00:02:10]Sock 7.First char is OK [00:02:10]request: POST /json_proto HTTP/1.0 [00:02:10]Method: POST [00:02:10]URL: /json_proto [00:02:10]Method is POST - this is cgi request [00:02:10]url: /json_proto [00:02:10]query_string will be loaded in cgi processing [00:02:10]execute_cgi json_proto POST (null) [00:02:10]execute_cgi path=json_proto method=POST [00:02:10]POST find Content-Length [00:02:10]Host: 172.17.60.69:8080 [00:02:10]Content-Length: 272 [00:02:10]Content-Type: application/json [00:02:10] [00:02:10]POST finish read [00:02:10]Found Content-Length = 272 [00:02:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u041A\u0430\u043B\u044B\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:02:10]execute_script... [00:02:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u041A\u0430\u043B\u044B\u0433\u0443\u043B\u043E\u0432\u0430 \u041D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:02:10]POST & json_proto [00:02:10]process_json_proto [00:02:10]json parsed OK: [00:02:10]protocol is kg_v1.0 [00:02:10]action value=close_shift [00:02:10]process_action close_shift [00:02:10]cmd_close_shift [00:02:10]MH_GetDate [00:02:10]Write to MH i2c: F0 00 00 93 01 83 [00:02:10]Write i2c OK [00:02:10]MH_I2C_Read... [00:02:10]Read from MH i2c: F0 [00:02:10]MH_I2C_Read... [00:02:10]Read from MH i2c: F0 09 00 [00:02:10]MH_I2C_Read... [00:02:10]Read from MH i2c: F0 09 00 93 01 00 82 59 5E 66 6A 96 4A 66 DB [00:02:10]GetLastDocTimeStamp 1717459277 [00:02:10]current date 1717459330 [00:02:10]FM_GetShiftState [00:02:10]SAM_PROTO_GetShiftState [00:02:10]wFMCommunicate request_size=4 [00:02:10]MH_SAM_APDU [00:02:10]CAPDU: 80 13 01 00 [00:02:10]Write to MH i2c: E2 08 00 94 01 80 13 01 00 00 00 00 00 12 [00:02:10]Write i2c OK [00:02:10]MH_I2C_Read... [00:02:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:02:10]Read from MH i2c: E2 [00:02:10]MH_I2C_Read... [00:02:10]Read from MH i2c: E2 0E 00 [00:02:10]MH_I2C_Read... [00:02:10]Read from MH i2c: E2 0E 00 94 01 00 09 00 01 F5 08 5D 66 00 00 00 00 90 00 DE [00:02:10]RAPDU: 09 00 01 F5 08 5D 66 00 00 00 00 90 00 [00:02:10]wFMCommunicate OK [00:02:10]SAM_PROTO_GetShiftState done [00:02:10]FM_GetShiftState done [00:02:10]KKMCreateCloseShiftDocument [00:02:10]Load OK [00:02:10]Malloc new data [00:02:10]MH_GetDate [00:02:10]Write to MH i2c: F0 00 00 95 01 85 [00:02:10]Write i2c OK [00:02:10]MH_I2C_Read... [00:02:10]Read from MH i2c: F0 [00:02:10]MH_I2C_Read... [00:02:10]Read from MH i2c: F0 09 00 [00:02:10]MH_I2C_Read... [00:02:10]Read from MH i2c: F0 09 00 95 01 00 82 59 5E 66 6A 96 4A 66 DD [00:02:10]Malloc new data [00:02:10]Malloc new data [00:02:10]Malloc new data [00:02:10]Malloc new data [00:02:10]KKMCreateCloseShiftDocument OK [00:02:10]KKMSetCloseShiftData OK [00:02:10]ProcessDocumentItem done err = 0, tmpTLVsize=75 [00:02:10]tlvbuf is B6EC18A0 [00:02:10]KKMLoadAndSignCloseShiftData [00:02:10]SAM_PROTO_ProcessDocument [00:02:10]wFMCommunicate request_size=9 [00:02:10]MH_SAM_APDU [00:02:10]CAPDU: 80 15 01 00 04 05 00 4B 00 [00:02:10]Write to MH i2c: E2 0C 00 96 01 80 15 01 00 04 00 05 00 4B 00 00 00 6E [00:02:10]Write i2c OK [00:02:10]MH_I2C_Read... [00:02:10]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:02:10]Read from MH i2c: E2 [00:02:10]MH_I2C_Read... [00:02:10]Read from MH i2c: E2 03 00 [00:02:10]MH_I2C_Read... [00:02:10]Read from MH i2c: E2 03 00 96 01 00 90 00 0B [00:02:10]RAPDU: 90 00 [00:02:10]wFMCommunicate OK [00:02:10]wFMCommunicate request_size=23 [00:02:10]MH_SAM_APDU [00:02:10]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:02:10]Write to MH i2c: E2 1A 00 97 01 80 15 02 00 12 00 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 00 00 0D [00:02:10]Write i2c OK [00:02:10]MH_I2C_Read... [00:02:10]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:02:10]Read from MH i2c: E2 [00:02:10]MH_I2C_Read... [00:02:10]Read from MH i2c: E2 03 00 [00:02:10]MH_I2C_Read... [00:02:10]Read from MH i2c: E2 03 00 97 01 00 90 00 0C [00:02:10]RAPDU: 90 00 [00:02:10]wFMCommunicate OK [00:02:10]wFMCommunicate request_size=34 [00:02:10]MH_SAM_APDU [00:02:10]CAPDU: 80 15 02 00 1D FD 03 19 00 D0 9A D0 B0 D0 BB D1 8B D0 B3 D1 83 D0 BB D0 BE D0 B2 D0 B0 20 D0 9D 2E 20 [00:02:10]Write to MH i2c: E2 25 00 98 01 80 15 02 00 1D 00 FD 03 19 00 D0 9A D0 B0 D0 BB D1 8B D0 B3 D1 83 D0 BB D0 BE D0 B2 D0 B0 20 D0 9D 2E 20 00 00 0A [00:02:10]Write i2c OK [00:02:10]MH_I2C_Read... [00:02:10]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:02:10]Read from MH i2c: E2 [00:02:10]MH_I2C_Read... [00:02:10]Read from MH i2c: E2 03 00 [00:02:10]MH_I2C_Read... [00:02:10]Read from MH i2c: E2 03 00 98 01 00 90 00 0D [00:02:10]RAPDU: 90 00 [00:02:10]wFMCommunicate OK [00:02:10]wFMCommunicate request_size=13 [00:02:10]MH_SAM_APDU [00:02:10]CAPDU: 80 15 02 00 08 F4 03 04 00 82 59 5E 66 [00:02:10]Write to MH i2c: E2 10 00 99 01 80 15 02 00 08 00 F4 03 04 00 82 59 5E 66 00 00 C4 [00:02:10]Write i2c OK [00:02:10]MH_I2C_Read... [00:02:10]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:02:10]Read from MH i2c: E2 [00:02:10]MH_I2C_Read... [00:02:10]Read from MH i2c: E2 03 00 [00:02:10]MH_I2C_Read... [00:02:10]Read from MH i2c: E2 03 00 99 01 00 90 00 0E [00:02:10]RAPDU: 90 00 [00:02:10]wFMCommunicate OK [00:02:10]wFMCommunicate request_size=25 [00:02:10]MH_SAM_APDU [00:02:10]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 [00:02:10]Write to MH i2c: E2 1C 00 9A 01 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 00 00 80 [00:02:10]Write i2c OK [00:02:10]MH_I2C_Read... [00:02:10]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:02:10]Read from MH i2c: E2 [00:02:10]MH_I2C_Read... [00:02:10]Read from MH i2c: E2 03 00 [00:02:10]MH_I2C_Read... [00:02:10]Read from MH i2c: E2 03 00 9A 01 00 90 00 0F [00:02:10]RAPDU: 90 00 [00:02:10]wFMCommunicate OK [00:02:10]wFMCommunicate request_size=4 [00:02:10]MH_SAM_APDU [00:02:10]CAPDU: 80 15 03 00 [00:02:10]Write to MH i2c: E2 08 00 9B 01 80 15 03 00 00 00 00 00 1D [00:02:10]Write i2c OK [00:02:10]MH_I2C_Read... [00:02:11]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 250! [00:02:11]Read from MH i2c: E2 [00:02:11]MH_I2C_Read... [00:02:11]Read from MH i2c: E2 FD 00 [00:02:11]MH_I2C_Read... [00:02:11]Read from MH i2c: E2 FD 00 9B 01 00 FB 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 AA F9 00 00 0E 04 04 00 75 01 00 00 5E 04 04 00 AB 00 00 00 57 04 04 00 AD 00 00 00 AA 04 B4 04 6E 04 04 00 AB 00 00 00 69 04 9B 00 6F 04 04 00 A8 00 00 00 B1 04 03 00 C4 0B 4C 70 04 03 00 90 1C 3A 72 04 03 00 34 EF 11 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 96 13 08 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 41 AC EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 03 00 00 00 B1 04 03 00 80 A9 03 70 90 00 5F [00:02:11]RAPDU: FB 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 AA F9 00 00 0E 04 04 00 75 01 00 00 5E 04 04 00 AB 00 00 00 57 04 04 00 AD 00 00 00 AA 04 B4 04 6E 04 04 00 AB 00 00 00 69 04 9B 00 6F 04 04 00 A8 00 00 00 B1 04 03 00 C4 0B 4C 70 04 03 00 90 1C 3A 72 04 03 00 34 EF 11 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 96 13 08 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 41 AC EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 03 00 00 00 B1 04 03 00 80 A9 03 70 90 00 [00:02:11]wFMCommunicate OK [00:02:11]SAM_PROTO_ProcessDocument answer len = 1275 [00:02:11]SAM_PROTO_ProcessDocument remain to read = 1027 [00:02:11]wFMCommunicate request_size=4 [00:02:11]MH_SAM_APDU [00:02:11]CAPDU: 80 17 00 00 [00:02:11]Write to MH i2c: E2 08 00 9C 01 80 17 00 00 00 00 00 00 1D [00:02:11]Write i2c OK [00:02:11]MH_I2C_Read... [00:02:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:02:11]Read from MH i2c: E2 [00:02:11]MH_I2C_Read... [00:02:11]Read from MH i2c: E2 FD 00 [00:02:11]MH_I2C_Read... [00:02:11]Read from MH i2c: E2 FD 00 9C 01 00 04 03 00 80 A9 03 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 92 63 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 4C 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 90 00 00 [00:02:12]RAPDU: 04 03 00 80 A9 03 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 92 63 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 4C 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 90 00 [00:02:12]wFMCommunicate OK [00:02:12]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:02:12]SAM_PROTO_ProcessDocument remain to read = 777 [00:02:12]wFMCommunicate request_size=4 [00:02:12]MH_SAM_APDU [00:02:12]CAPDU: 80 17 00 00 [00:02:12]Write to MH i2c: E2 08 00 9D 01 80 17 00 00 00 00 00 00 1E [00:02:12]Write i2c OK [00:02:12]MH_I2C_Read... [00:02:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:02:12]Read from MH i2c: E2 [00:02:12]MH_I2C_Read... [00:02:12]Read from MH i2c: E2 FD 00 [00:02:12]MH_I2C_Read... [00:02:12]Read from MH i2c: E2 FD 00 9D 01 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 80 [00:02:12]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:02:12]wFMCommunicate OK [00:02:12]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:02:12]SAM_PROTO_ProcessDocument remain to read = 527 [00:02:12]wFMCommunicate request_size=4 [00:02:12]MH_SAM_APDU [00:02:12]CAPDU: 80 17 00 00 [00:02:12]Write to MH i2c: E2 08 00 9E 01 80 17 00 00 00 00 00 00 1F [00:02:12]Write i2c OK [00:02:12]MH_I2C_Read... [00:02:12]OFD Sender: No OFD packet to send [00:02:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:02:12]Read from MH i2c: E2 [00:02:12]MH_I2C_Read... [00:02:12]Read from MH i2c: E2 FD 00 [00:02:12]MH_I2C_Read... [00:02:12]Read from MH i2c: E2 FD 00 9E 01 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 90 00 32 [00:02:13]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 90 00 [00:02:13]wFMCommunicate OK [00:02:13]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:02:13]SAM_PROTO_ProcessDocument remain to read = 277 [00:02:13]wFMCommunicate request_size=4 [00:02:13]MH_SAM_APDU [00:02:13]CAPDU: 80 17 00 00 [00:02:13]Write to MH i2c: E2 08 00 9F 01 80 17 00 00 00 00 00 00 20 [00:02:13]Write i2c OK [00:02:13]MH_I2C_Read... [00:02:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:02:13]Read from MH i2c: E2 [00:02:13]MH_I2C_Read... [00:02:13]Read from MH i2c: E2 FD 00 [00:02:13]MH_I2C_Read... [00:02:13]Read from MH i2c: E2 FD 00 9F 01 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 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 5F [00:02:13]RAPDU: 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 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:02:13]wFMCommunicate OK [00:02:13]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:02:13]SAM_PROTO_ProcessDocument remain to read = 27 [00:02:13]wFMCommunicate request_size=4 [00:02:13]MH_SAM_APDU [00:02:13]CAPDU: 80 17 00 00 [00:02:13]Write to MH i2c: E2 08 00 A0 01 80 17 00 00 00 00 00 00 21 [00:02:13]Write i2c OK [00:02:13]MH_I2C_Read... [00:02:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 27! [00:02:13]Read from MH i2c: E2 [00:02:13]MH_I2C_Read... [00:02:13]Read from MH i2c: E2 1E 00 [00:02:13]MH_I2C_Read... [00:02:13]Read from MH i2c: E2 1E 00 A0 01 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 EB 63 D6 0E 08 E8 90 00 80 [00:02:13]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 EB 63 D6 0E 08 E8 90 00 [00:02:13]wFMCommunicate OK [00:02:13]SAM_PROTO_ProcessDocument received (without SW) 27 bytes [00:02:13]SAM_PROTO_ProcessDocument done [00:02:13]1209 (1) - 1.0 - номер версии ФФД [00:02:13]1041 (16) - 0000000000875074 - номер ФМ [00:02:13]1040 (4) - 63914 - номер ФД [00:02:13]1038 (4) - 373 - номер смены [00:02:13]1118 (4) - 171 - количество кассовых чеков за смену [00:02:13]1111 (4) - 173 - общее количество ФД за смену [00:02:13]1194 (1204) - счетчики итогов смены [00:02:13] 1134 (4) - 171 - количество чеков со всеми признаками расчетов [00:02:13] 1129 (155) - счетчики операций «приход» [00:02:13] 1135 (4) - 168 - количество чеков по признаку расчетов [00:02:13] 1201 (3) - 49837.48 - общая итоговая сумма в чеках [00:02:13] 1136 (3) - 38084.00 - итоговая сумма в чеках наличными [00:02:13] 1138 (3) - 11753.48 - итоговая сумма в чеках безналичными [00:02:13] 1024 (122) - суммы налогов [00:02:13] 1006 (9) - суммы НДС [00:02:13] 1010 (1) - 0% - код ставки НДС [00:02:13] 1011 (0) - 0.00 - сумма НДС по ставке [00:02:13] 1006 (12) - суммы НДС [00:02:13] 1010 (1) - 12% - код ставки НДС [00:02:13] 1011 (3) - 5293.02 - сумма НДС по ставке [00:02:13] 1007 (9) - суммы НСП [00:02:13] 1014 (1) - 0% - код ставки НСП [00:02:13] 1015 (0) - 0.00 - сумма НСП по ставке [00:02:13] 1007 (11) - суммы НСП [00:02:13] 1014 (1) - 1% - код ставки НСП [00:02:13] 1015 (2) - 440.97 - сумма НСП по ставке [00:02:13] 1007 (9) - суммы НСП [00:02:13] 1014 (1) - 2% - код ставки НСП [00:02:13] 1015 (0) - 0.00 - сумма НСП по ставке [00:02:13] 1007 (9) - суммы НСП [00:02:13] 1014 (1) - 3% - код ставки НСП [00:02:13] 1015 (0) - 0.00 - сумма НСП по ставке [00:02:13] 1007 (9) - суммы НСП [00:02:13] 1014 (1) - 5% - код ставки НСП [00:02:13] 1015 (0) - 0.00 - сумма НСП по ставке [00:02:13] 1007 (9) - суммы НСП [00:02:13] 1014 (1) - 0,50% - код ставки НСП [00:02:13] 1015 (0) - 0.00 - сумма НСП по ставке [00:02:13] 1007 (9) - суммы НСП [00:02:13] 1014 (1) - 1,50% - код ставки НСП [00:02:13] 1015 (0) - 0.00 - сумма НСП по ставке [00:02:13] 1130 (151) - счетчики операций «возврат прихода» [00:02:13] 1135 (4) - 3 - количество чеков по признаку расчетов [00:02:13] 1201 (3) - 2400.00 - общая итоговая сумма в чеках [00:02:13] 1136 (3) - 2400.00 - итоговая сумма в чеках наличными [00:02:13] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:02:13] 1024 (121) - суммы налогов [00:02:13] 1006 (9) - суммы НДС [00:02:13] 1010 (1) - 0% - код ставки НДС [00:02:13] 1011 (0) - 0.00 - сумма НДС по ставке [00:02:13] 1006 (11) - суммы НДС [00:02:13] 1010 (1) - 12% - код ставки НДС [00:02:13] 1011 (2) - 254.90 - сумма НДС по ставке [00:02:13] 1007 (9) - суммы НСП [00:02:13] 1014 (1) - 0% - код ставки НСП [00:02:13] 1015 (0) - 0.00 - сумма НСП по ставке [00:02:13] 1007 (11) - суммы НСП [00:02:13] 1014 (1) - 1% - код ставки НСП [00:02:13] 1015 (2) - 21.24 - сумма НСП по ставке [00:02:13] 1007 (9) - суммы НСП [00:02:13] 1014 (1) - 2% - код ставки НСП [00:02:13] 1015 (0) - 0.00 - сумма НСП по ставке [00:02:13] 1007 (9) - суммы НСП [00:02:13] 1014 (1) - 3% - код ставки НСП [00:02:13] 1015 (0) - 0.00 - сумма НСП по ставке [00:02:13] 1007 (9) - суммы НСП [00:02:13] 1014 (1) - 5% - код ставки НСП [00:02:13] 1015 (0) - 0.00 - сумма НСП по ставке [00:02:13] 1007 (9) - суммы НСП [00:02:13] 1014 (1) - 0,50% - код ставки НСП [00:02:13] 1015 (0) - 0.00 - сумма НСП по ставке [00:02:13] 1007 (9) - суммы НСП [00:02:13] 1014 (1) - 1,50% - код ставки НСП [00:02:13] 1015 (0) - 0.00 - сумма НСП по ставке [00:02:13] 1131 (141) - счетчики операций «расход» [00:02:13] 1135 (4) - 0 - количество чеков по признаку расчетов [00:02:13] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:02:13] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:02:13] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:02:14] 1024 (117) - суммы налогов [00:02:14] 1006 (9) - суммы НДС [00:02:14] 1010 (1) - 0% - код ставки НДС [00:02:14] 1011 (0) - 0.00 - сумма НДС по ставке [00:02:14] 1006 (9) - суммы НДС [00:02:14] 1010 (1) - 12% - код ставки НДС [00:02:14] 1011 (0) - 0.00 - сумма НДС по ставке [00:02:14] 1007 (9) - суммы НСП [00:02:14] 1014 (1) - 0% - код ставки НСП [00:02:14] 1015 (0) - 0.00 - сумма НСП по ставке [00:02:14] 1007 (9) - суммы НСП [00:02:14] 1014 (1) - 1% - код ставки НСП [00:02:14] 1015 (0) - 0.00 - сумма НСП по ставке [00:02:14] 1007 (9) - суммы НСП [00:02:14] 1014 (1) - 2% - код ставки НСП [00:02:14] 1015 (0) - 0.00 - сумма НСП по ставке [00:02:14] 1007 (9) - суммы НСП [00:02:14] 1014 (1) - 3% - код ставки НСП [00:02:14] 1015 (0) - 0.00 - сумма НСП по ставке [00:02:14] 1007 (9) - суммы НСП [00:02:14] 1014 (1) - 5% - код ставки НСП [00:02:14] 1015 (0) - 0.00 - сумма НСП по ставке [00:02:14] 1007 (9) - суммы НСП [00:02:14] 1014 (1) - 0,50% - код ставки НСП [00:02:14] 1015 (0) - 0.00 - сумма НСП по ставке [00:02:14] 1007 (9) - суммы НСП [00:02:14] 1014 (1) - 1,50% - код ставки НСП [00:02:14] 1015 (0) - 0.00 - сумма НСП по ставке [00:02:14] 1132 (141) - счетчики операций «возврат расхода» [00:02:14] 1135 (4) - 0 - количество чеков по признаку расчетов [00:02:14] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:02:14] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:02:14] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:02:14] 1024 (117) - суммы налогов [00:02:14] 1006 (9) - суммы НДС [00:02:14] 1010 (1) - 0% - код ставки НДС [00:02:14] 1011 (0) - 0.00 - сумма НДС по ставке [00:02:14] 1006 (9) - суммы НДС [00:02:14] 1010 (1) - 12% - код ставки НДС [00:02:14] 1011 (0) - 0.00 - сумма НДС по ставке [00:02:14] 1007 (9) - суммы НСП [00:02:14] 1014 (1) - 0% - код ставки НСП [00:02:14] 1015 (0) - 0.00 - сумма НСП по ставке [00:02:14] 1007 (9) - суммы НСП [00:02:14] 1014 (1) - 1% - код ставки НСП [00:02:14] 1015 (0) - 0.00 - сумма НСП по ставке [00:02:14] 1007 (9) - суммы НСП [00:02:14] 1014 (1) - 2% - код ставки НСП [00:02:14] 1015 (0) - 0.00 - сумма НСП по ставке [00:02:14] 1007 (9) - суммы НСП [00:02:14] 1014 (1) - 3% - код ставки НСП [00:02:14] 1015 (0) - 0.00 - сумма НСП по ставке [00:02:14] 1007 (9) - суммы НСП [00:02:14] 1014 (1) - 5% - код ставки НСП [00:02:14] 1015 (0) - 0.00 - сумма НСП по ставке [00:02:14] 1007 (9) - суммы НСП [00:02:14] 1014 (1) - 0,50% - код ставки НСП [00:02:14] 1015 (0) - 0.00 - сумма НСП по ставке [00:02:14] 1007 (9) - суммы НСП [00:02:14] 1014 (1) - 1,50% - код ставки НСП [00:02:14] 1015 (0) - 0.00 - сумма НСП по ставке [00:02:14] 1133 (588) - - счетчики коррекции - не используются [00:02:14]1077 (6) - 258814025533672 - ФПД [00:02:14]SetTLVBufToDocument [00:02:14]Processing tag 1209 (04B9) [00:02:14]Malloc new data [00:02:14]Processing tag 1041 (0411) [00:02:14]Processing tag 1040 (0410) [00:02:14]Malloc new data [00:02:14]Processing tag 1038 (040E) [00:02:14]Malloc new data [00:02:14]Processing tag 1118 (045E) [00:02:14]Malloc new data [00:02:14]Processing tag 1111 (0457) [00:02:14]Malloc new data [00:02:14]Processing tag 1194 (04AA) [00:02:14]Load OK [00:02:14]SetTLVBufToDocument [00:02:14]Processing tag 1134 (046E) [00:02:14]Malloc new data [00:02:14]Processing tag 1129 (0469) [00:02:14]Load OK [00:02:14]SetTLVBufToDocument [00:02:14]Processing tag 1135 (046F) [00:02:14]Malloc new data [00:02:14]Processing tag 1201 (04B1) [00:02:14]Malloc new data [00:02:14]Processing tag 1136 (0470) [00:02:14]Malloc new data [00:02:14]Processing tag 1138 (0472) [00:02:14]Malloc new data [00:02:14]Processing tag 1024 (0400) [00:02:14]Load OK [00:02:14]SetTLVBufToDocument [00:02:14]Processing tag 1006 (03EE) [00:02:14]Load OK [00:02:14]SetTLVBufToDocument [00:02:14]Processing tag 1010 (03F2) [00:02:14]Malloc new data [00:02:14]Processing tag 1011 (03F3) [00:02:14]Malloc new data [00:02:14]SetTLVBufToDocument err=0 [00:02:14]Processing tag 1006 (03EE) [00:02:14]Load OK [00:02:14]SetTLVBufToDocument [00:02:14]Processing tag 1010 (03F2) [00:02:14]Malloc new data [00:02:14]Processing tag 1011 (03F3) [00:02:14]Malloc new data [00:02:14]SetTLVBufToDocument err=0 [00:02:14]Processing tag 1007 (03EF) [00:02:14]Load OK [00:02:14]SetTLVBufToDocument [00:02:14]Processing tag 1014 (03F6) [00:02:14]Malloc new data [00:02:14]Processing tag 1015 (03F7) [00:02:14]Malloc new data [00:02:14]SetTLVBufToDocument err=0 [00:02:14]Processing tag 1007 (03EF) [00:02:14]Load OK [00:02:14]SetTLVBufToDocument [00:02:14]Processing tag 1014 (03F6) [00:02:14]Malloc new data [00:02:14]Processing tag 1015 (03F7) [00:02:14]Malloc new data [00:02:14]SetTLVBufToDocument err=0 [00:02:14]Processing tag 1007 (03EF) [00:02:14]Load OK [00:02:14]SetTLVBufToDocument [00:02:14]Processing tag 1014 (03F6) [00:02:14]Malloc new data [00:02:14]Processing tag 1015 (03F7) [00:02:14]Malloc new data [00:02:14]SetTLVBufToDocument err=0 [00:02:14]Processing tag 1007 (03EF) [00:02:14]Load OK [00:02:14]SetTLVBufToDocument [00:02:14]Processing tag 1014 (03F6) [00:02:14]Malloc new data [00:02:14]Processing tag 1015 (03F7) [00:02:14]Malloc new data [00:02:14]SetTLVBufToDocument err=0 [00:02:14]Processing tag 1007 (03EF) [00:02:14]Load OK [00:02:14]SetTLVBufToDocument [00:02:14]Processing tag 1014 (03F6) [00:02:14]Malloc new data [00:02:14]Processing tag 1015 (03F7) [00:02:14]Malloc new data [00:02:14]SetTLVBufToDocument err=0 [00:02:14]Processing tag 1007 (03EF) [00:02:14]Load OK [00:02:14]SetTLVBufToDocument [00:02:14]Processing tag 1014 (03F6) [00:02:14]Malloc new data [00:02:14]Processing tag 1015 (03F7) [00:02:14]Malloc new data [00:02:14]SetTLVBufToDocument err=0 [00:02:14]Processing tag 1007 (03EF) [00:02:14]Load OK [00:02:14]SetTLVBufToDocument [00:02:14]Processing tag 1014 (03F6) [00:02:14]Malloc new data [00:02:14]Processing tag 1015 (03F7) [00:02:14]Malloc new data [00:02:14]SetTLVBufToDocument err=0 [00:02:14]SetTLVBufToDocument err=0 [00:02:14]SetTLVBufToDocument err=0 [00:02:14]Processing tag 1130 (046A) [00:02:14]Load OK [00:02:14]SetTLVBufToDocument [00:02:14]Processing tag 1135 (046F) [00:02:14]Malloc new data [00:02:14]Processing tag 1201 (04B1) [00:02:14]Malloc new data [00:02:14]Processing tag 1136 (0470) [00:02:14]Malloc new data [00:02:14]Processing tag 1138 (0472) [00:02:14]Malloc new data [00:02:14]Processing tag 1024 (0400) [00:02:14]Load OK [00:02:14]SetTLVBufToDocument [00:02:14]Processing tag 1006 (03EE) [00:02:14]Load OK [00:02:14]SetTLVBufToDocument [00:02:14]Processing tag 1010 (03F2) [00:02:14]Malloc new data [00:02:14]Processing tag 1011 (03F3) [00:02:14]Malloc new data [00:02:14]SetTLVBufToDocument err=0 [00:02:14]Processing tag 1006 (03EE) [00:02:14]Load OK [00:02:14]SetTLVBufToDocument [00:02:14]Processing tag 1010 (03F2) [00:02:14]Malloc new data [00:02:14]Processing tag 1011 (03F3) [00:02:14]Malloc new data [00:02:14]SetTLVBufToDocument err=0 [00:02:14]Processing tag 1007 (03EF) [00:02:14]Load OK [00:02:14]SetTLVBufToDocument [00:02:14]Processing tag 1014 (03F6) [00:02:14]Malloc new data [00:02:14]Processing tag 1015 (03F7) [00:02:14]Malloc new data [00:02:14]SetTLVBufToDocument err=0 [00:02:14]Processing tag 1007 (03EF) [00:02:14]Load OK [00:02:14]SetTLVBufToDocument [00:02:14]Processing tag 1014 (03F6) [00:02:14]Malloc new data [00:02:14]Processing tag 1015 (03F7) [00:02:14]Malloc new data [00:02:14]SetTLVBufToDocument err=0 [00:02:14]Processing tag 1007 (03EF) [00:02:14]Load OK [00:02:14]SetTLVBufToDocument [00:02:14]Processing tag 1014 (03F6) [00:02:14]Malloc new data [00:02:14]Processing tag 1015 (03F7) [00:02:14]Malloc new data [00:02:14]SetTLVBufToDocument err=0 [00:02:14]Processing tag 1007 (03EF) [00:02:14]Load OK [00:02:14]SetTLVBufToDocument [00:02:14]Processing tag 1014 (03F6) [00:02:14]Malloc new data [00:02:14]Processing tag 1015 (03F7) [00:02:14]Malloc new data [00:02:14]SetTLVBufToDocument err=0 [00:02:14]Processing tag 1007 (03EF) [00:02:14]Load OK [00:02:14]SetTLVBufToDocument [00:02:14]Processing tag 1014 (03F6) [00:02:14]Malloc new data [00:02:14]Processing tag 1015 (03F7) [00:02:14]Malloc new data [00:02:14]SetTLVBufToDocument err=0 [00:02:14]Processing tag 1007 (03EF) [00:02:14]Load OK [00:02:14]SetTLVBufToDocument [00:02:14]Processing tag 1014 (03F6) [00:02:14]Malloc new data [00:02:14]Processing tag 1015 (03F7) [00:02:14]Malloc new data [00:02:14]SetTLVBufToDocument err=0 [00:02:14]Processing tag 1007 (03EF) [00:02:14]Load OK [00:02:14]SetTLVBufToDocument [00:02:14]Processing tag 1014 (03F6) [00:02:14]Malloc new data [00:02:14]Processing tag 1015 (03F7) [00:02:14]Malloc new data [00:02:14]SetTLVBufToDocument err=0 [00:02:14]SetTLVBufToDocument err=0 [00:02:14]SetTLVBufToDocument err=0 [00:02:14]Processing tag 1131 (046B) [00:02:14]Load OK [00:02:14]SetTLVBufToDocument [00:02:14]Processing tag 1135 (046F) [00:02:14]Malloc new data [00:02:14]Processing tag 1201 (04B1) [00:02:14]Malloc new data [00:02:14]Processing tag 1136 (0470) [00:02:14]Malloc new data [00:02:14]Processing tag 1138 (0472) [00:02:14]Malloc new data [00:02:14]Processing tag 1024 (0400) [00:02:14]Load OK [00:02:14]SetTLVBufToDocument [00:02:14]Processing tag 1006 (03EE) [00:02:14]Load OK [00:02:14]SetTLVBufToDocument [00:02:14]Processing tag 1010 (03F2) [00:02:14]Malloc new data [00:02:14]Processing tag 1011 (03F3) [00:02:14]Malloc new data [00:02:14]SetTLVBufToDocument err=0 [00:02:14]Processing tag 1006 (03EE) [00:02:14]Load OK [00:02:14]SetTLVBufToDocument [00:02:14]Processing tag 1010 (03F2) [00:02:14]Malloc new data [00:02:14]Processing tag 1011 (03F3) [00:02:14]Malloc new data [00:02:14]SetTLVBufToDocument err=0 [00:02:14]Processing tag 1007 (03EF) [00:02:14]Load OK [00:02:14]SetTLVBufToDocument [00:02:14]Processing tag 1014 (03F6) [00:02:14]Malloc new data [00:02:14]Processing tag 1015 (03F7) [00:02:14]Malloc new data [00:02:14]SetTLVBufToDocument err=0 [00:02:14]Processing tag 1007 (03EF) [00:02:14]Load OK [00:02:14]SetTLVBufToDocument [00:02:14]Processing tag 1014 (03F6) [00:02:14]Malloc new data [00:02:14]Processing tag 1015 (03F7) [00:02:14]Malloc new data [00:02:14]SetTLVBufToDocument err=0 [00:02:14]Processing tag 1007 (03EF) [00:02:14]Load OK [00:02:14]SetTLVBufToDocument [00:02:14]Processing tag 1014 (03F6) [00:02:14]Malloc new data [00:02:14]Processing tag 1015 (03F7) [00:02:14]Malloc new data [00:02:14]SetTLVBufToDocument err=0 [00:02:14]Processing tag 1007 (03EF) [00:02:14]Load OK [00:02:14]SetTLVBufToDocument [00:02:14]Processing tag 1014 (03F6) [00:02:14]Malloc new data [00:02:14]Processing tag 1015 (03F7) [00:02:14]Malloc new data [00:02:14]SetTLVBufToDocument err=0 [00:02:14]Processing tag 1007 (03EF) [00:02:14]Load OK [00:02:14]SetTLVBufToDocument [00:02:14]Processing tag 1014 (03F6) [00:02:14]Malloc new data [00:02:14]Processing tag 1015 (03F7) [00:02:14]Malloc new data [00:02:14]SetTLVBufToDocument err=0 [00:02:14]Processing tag 1007 (03EF) [00:02:14]Load OK [00:02:14]SetTLVBufToDocument [00:02:14]Processing tag 1014 (03F6) [00:02:14]Malloc new data [00:02:14]Processing tag 1015 (03F7) [00:02:14]Malloc new data [00:02:14]SetTLVBufToDocument err=0 [00:02:14]Processing tag 1007 (03EF) [00:02:14]Load OK [00:02:14]SetTLVBufToDocument [00:02:14]Processing tag 1014 (03F6) [00:02:14]Malloc new data [00:02:14]Processing tag 1015 (03F7) [00:02:14]Malloc new data [00:02:14]SetTLVBufToDocument err=0 [00:02:14]SetTLVBufToDocument err=0 [00:02:14]SetTLVBufToDocument err=0 [00:02:14]Processing tag 1132 (046C) [00:02:14]Load OK [00:02:14]SetTLVBufToDocument [00:02:14]Processing tag 1135 (046F) [00:02:14]Malloc new data [00:02:14]Processing tag 1201 (04B1) [00:02:14]Malloc new data [00:02:14]Processing tag 1136 (0470) [00:02:14]Malloc new data [00:02:14]Processing tag 1138 (0472) [00:02:14]Malloc new data [00:02:14]Processing tag 1024 (0400) [00:02:14]Load OK [00:02:14]SetTLVBufToDocument [00:02:14]Processing tag 1006 (03EE) [00:02:14]Load OK [00:02:14]SetTLVBufToDocument [00:02:14]Processing tag 1010 (03F2) [00:02:14]Malloc new data [00:02:14]Processing tag 1011 (03F3) [00:02:14]Malloc new data [00:02:14]SetTLVBufToDocument err=0 [00:02:14]Processing tag 1006 (03EE) [00:02:14]Load OK [00:02:14]SetTLVBufToDocument [00:02:14]Processing tag 1010 (03F2) [00:02:14]Malloc new data [00:02:14]Processing tag 1011 (03F3) [00:02:14]Malloc new data [00:02:14]SetTLVBufToDocument err=0 [00:02:14]Processing tag 1007 (03EF) [00:02:14]Load OK [00:02:14]SetTLVBufToDocument [00:02:14]Processing tag 1014 (03F6) [00:02:14]Malloc new data [00:02:14]Processing tag 1015 (03F7) [00:02:14]Malloc new data [00:02:14]SetTLVBufToDocument err=0 [00:02:14]Processing tag 1007 (03EF) [00:02:14]Load OK [00:02:14]SetTLVBufToDocument [00:02:14]Processing tag 1014 (03F6) [00:02:14]Malloc new data [00:02:14]Processing tag 1015 (03F7) [00:02:14]Malloc new data [00:02:14]SetTLVBufToDocument err=0 [00:02:14]Processing tag 1007 (03EF) [00:02:14]Load OK [00:02:14]SetTLVBufToDocument [00:02:14]Processing tag 1014 (03F6) [00:02:14]Malloc new data [00:02:14]Processing tag 1015 (03F7) [00:02:14]Malloc new data [00:02:14]SetTLVBufToDocument err=0 [00:02:14]Processing tag 1007 (03EF) [00:02:14]Load OK [00:02:14]SetTLVBufToDocument [00:02:14]Processing tag 1014 (03F6) [00:02:14]Malloc new data [00:02:14]Processing tag 1015 (03F7) [00:02:14]Malloc new data [00:02:14]SetTLVBufToDocument err=0 [00:02:14]Processing tag 1007 (03EF) [00:02:14]Load OK [00:02:14]SetTLVBufToDocument [00:02:14]Processing tag 1014 (03F6) [00:02:15]Malloc new data [00:02:15]Processing tag 1015 (03F7) [00:02:15]Malloc new data [00:02:15]SetTLVBufToDocument err=0 [00:02:15]Processing tag 1007 (03EF) [00:02:15]Load OK [00:02:15]SetTLVBufToDocument [00:02:15]Processing tag 1014 (03F6) [00:02:15]Malloc new data [00:02:15]Processing tag 1015 (03F7) [00:02:15]Malloc new data [00:02:15]SetTLVBufToDocument err=0 [00:02:15]Processing tag 1007 (03EF) [00:02:15]Load OK [00:02:15]SetTLVBufToDocument [00:02:15]Processing tag 1014 (03F6) [00:02:15]Malloc new data [00:02:15]Processing tag 1015 (03F7) [00:02:15]Malloc new data [00:02:15]SetTLVBufToDocument err=0 [00:02:15]SetTLVBufToDocument err=0 [00:02:15]SetTLVBufToDocument err=0 [00:02:15]Processing tag 1133 (046D) [00:02:15]Malloc new data [00:02:15]SetTLVBufToDocument err=0 [00:02:15]Processing tag 1077 (0435) [00:02:15]Malloc new data [00:02:15]SetTLVBufToDocument err=0 [00:02:15]Malloc new data [00:02:15]SAM_PROTO_GetFMData [00:02:15]wFMCommunicate request_size=4 [00:02:15]MH_SAM_APDU [00:02:15]CAPDU: 80 13 03 00 [00:02:15]Write to MH i2c: E2 08 00 A1 01 80 13 03 00 00 00 00 00 21 [00:02:15]Write i2c OK [00:02:15]MH_I2C_Read... [00:02:15]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:02:15]Read from MH i2c: E2 [00:02:15]MH_I2C_Read... [00:02:15]Read from MH i2c: E2 FD 00 [00:02:15]MH_I2C_Read... [00:02:15]Read from MH i2c: E2 FD 00 A1 01 00 C5 04 85 04 C1 04 6E 04 04 00 BF F6 00 00 69 04 A1 00 6F 04 04 00 5F F4 00 00 B1 04 04 00 B1 00 C4 76 70 04 04 00 96 B7 05 66 72 04 04 00 1B 49 BE 10 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 46 29 9D 0C 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 15 05 0D 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 60 02 00 00 B1 04 04 00 E4 BA 80 03 70 04 04 00 60 5F 65 03 72 04 03 00 84 5B 1B 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 84 3C 5F EF 03 09 90 00 23 [00:02:15]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 BF F6 00 00 69 04 A1 00 6F 04 04 00 5F F4 00 00 B1 04 04 00 B1 00 C4 76 70 04 04 00 96 B7 05 66 72 04 04 00 1B 49 BE 10 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 46 29 9D 0C 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 15 05 0D 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 60 02 00 00 B1 04 04 00 E4 BA 80 03 70 04 04 00 60 5F 65 03 72 04 03 00 84 5B 1B 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 84 3C 5F EF 03 09 90 00 [00:02:15]wFMCommunicate OK [00:02:15]wFMCommunicate request_size=4 [00:02:15]MH_SAM_APDU [00:02:15]CAPDU: 80 17 00 00 [00:02:15]Write to MH i2c: E2 08 00 A2 01 80 17 00 00 00 00 00 00 23 [00:02:15]Write i2c OK [00:02:15]MH_I2C_Read... [00:02:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:02:16]Read from MH i2c: E2 [00:02:16]MH_I2C_Read... [00:02:16]Read from MH i2c: E2 FD 00 [00:02:16]MH_I2C_Read... [00:02:16]Read from MH i2c: E2 FD 00 A2 01 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 7A EF 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 49 [00:02:16]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 7A EF 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [00:02:16]wFMCommunicate OK [00:02:16]wFMCommunicate request_size=4 [00:02:16]MH_SAM_APDU [00:02:16]CAPDU: 80 17 00 00 [00:02:16]Write to MH i2c: E2 08 00 A3 01 80 17 00 00 00 00 00 00 24 [00:02:16]Write i2c OK [00:02:16]MH_I2C_Read... [00:02:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:02:16]Read from MH i2c: E2 [00:02:16]MH_I2C_Read... [00:02:16]Read from MH i2c: E2 FD 00 [00:02:16]MH_I2C_Read... [00:02:16]Read from MH i2c: E2 FD 00 A3 01 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 36 [00:02:16]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [00:02:16]wFMCommunicate OK [00:02:16]wFMCommunicate request_size=4 [00:02:16]MH_SAM_APDU [00:02:16]CAPDU: 80 17 00 00 [00:02:16]Write to MH i2c: E2 08 00 A4 01 80 17 00 00 00 00 00 00 25 [00:02:16]Write i2c OK [00:02:16]MH_I2C_Read... [00:02:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:02:17]Read from MH i2c: E2 [00:02:17]MH_I2C_Read... [00:02:17]Read from MH i2c: E2 FD 00 [00:02:17]MH_I2C_Read... [00:02:17]Read from MH i2c: E2 FD 00 A4 01 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 B1 [00:02:17]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [00:02:17]wFMCommunicate OK [00:02:17]wFMCommunicate request_size=4 [00:02:17]MH_SAM_APDU [00:02:17]CAPDU: 80 17 00 00 [00:02:17]Write to MH i2c: E2 08 00 A5 01 80 17 00 00 00 00 00 00 26 [00:02:17]Write i2c OK [00:02:17]MH_I2C_Read... [00:02:17]OFD Sender: No OFD packet to send [00:02:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:02:17]Read from MH i2c: E2 [00:02:17]MH_I2C_Read... [00:02:17]Read from MH i2c: E2 E2 00 [00:02:17]MH_I2C_Read... [00:02:17]Read from MH i2c: E2 E2 00 A5 01 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 04 [00:02:17]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:02:18]wFMCommunicate OK [00:02:18]SAM_PROTO_GetFMData done [00:02:18]Malloc new data [00:02:18]Malloc new data [00:02:18]Malloc new data [00:02:18]Malloc new data [00:02:18]KKMLoadAndSignCloseShiftData err=0 [00:02:18]Отчет о закрытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Калыгулова Н. 04.06.2024 00:02 Смена: 373 РНМ: 0000000000092737 ЗНМ: 0300000031 СНО: Общий режим Чеков за смену: 171 ФД за смену: 173 Всего чеков: 171 ИТОГИ ПРИХОД Чеков: 168 Общий итог: 49837.48 Итого наличными: 38084.00 Итого безнал.: 11753.48 НДС 0% : 0.00 НДС 12% : 5293.02 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 440.97 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 3 Общий итог: 2400.00 Итого наличными: 2400.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 254.90 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 21.24 ИТОГИ РАСХОД Чеков: 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 Нал. в кассе: 35684.00 НС Приход: 19925567.21 НС Возвр.Прихода: 587681.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФД: 63914 ФМ: 0000000000875074 ФПД: 258814025533672 [00:02:18]StoreToDocumentArchive [00:02:18]shift 373 fd 63914 [00:02:18]save to /storage/0373/doc_00063914 [00:02:18]save last doc name /storage/0373/doc_00063914 to /storage/kkm_last_doc_name [00:02:18]save OK [00:02:18]Clear old archive folders... [00:02:18]Remove dir /storage/0266 [00:02:18]opendir ok [00:02:18]file . [00:02:18]file .. [00:02:18]file doc_1717459284 [00:02:18]remove file /storage/0266/doc_1717459284 [00:02:18]remove dir /storage/0266 [00:02:18]NVStorageSaveData kkm_registers [00:02:18]File name is /storage/kkm_registers [00:02:18]Write 24 bytes [00:02:18]NVStorageSaveData done [00:02:18]NVStorageSaveData kkm_registers [00:02:18]File name is /storage/kkm_registers [00:02:18]Write 24 bytes [00:02:18]NVStorageSaveData done [00:02:18]ProcessDocumentItem done err = 0, tmpTLVsize=1389 [00:02:18]tlvbuf is 012A1090 [00:02:18]SAM_PROTO_ClearQueue [00:02:18]wFMCommunicate request_size=4 [00:02:18]MH_SAM_APDU [00:02:18]CAPDU: 80 09 00 00 [00:02:18]Write to MH i2c: E2 08 00 A6 01 80 09 00 00 00 00 00 00 19 [00:02:18]Write i2c OK [00:02:18]MH_I2C_Read... [00:02:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:02:18]Read from MH i2c: E2 [00:02:18]MH_I2C_Read... [00:02:18]Read from MH i2c: E2 03 00 [00:02:18]MH_I2C_Read... [00:02:18]Read from MH i2c: E2 03 00 A6 01 00 90 00 1B [00:02:18]RAPDU: 90 00 [00:02:18]wFMCommunicate OK [00:02:18]SAM_PROTO_ClearQueue done [00:02:18]KKMCreateOFDPacket [00:02:18]OFDProtocolAddRootSTLVToBuf [00:02:18]FM_MakeSignedData [00:02:18]FM_MakeSignedData [00:02:18]SAM_PROTO_SignData [00:02:18]wFMCommunicate request_size=4 [00:02:18]MH_SAM_APDU [00:02:18]CAPDU: 80 0D 01 02 [00:02:18]Write to MH i2c: E2 08 00 A7 01 80 0D 01 02 00 00 00 00 21 [00:02:18]Write i2c OK [00:02:18]MH_I2C_Read... [00:02:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:02:18]Read from MH i2c: E2 [00:02:18]MH_I2C_Read... [00:02:18]Read from MH i2c: E2 03 00 [00:02:18]MH_I2C_Read... [00:02:18]Read from MH i2c: E2 03 00 A7 01 00 90 00 1C [00:02:18]RAPDU: 90 00 [00:02:18]wFMCommunicate OK [00:02:18]wFMCommunicate request_size=255 [00:02:18]MH_SAM_APDU [00:02:18]CAPDU: 80 0D 02 02 FA 05 00 6D 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 19 00 D0 9A D0 B0 D0 BB D1 8B D0 B3 D1 83 D0 BB D0 BE D0 B2 D0 B0 20 D0 9D 2E 20 F4 03 04 00 82 59 5E 66 0E 04 04 00 75 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 5E 04 04 00 AB 00 00 00 57 04 04 00 AD 00 00 00 AA 04 DB 04 6E 04 04 00 AB 00 00 00 69 04 A2 00 6F 04 04 00 A8 00 00 00 B1 04 03 00 C4 0B 4C 70 04 03 00 90 1C 3A 72 04 03 00 34 EF 11 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 96 13 08 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:02:18]Write to MH i2c: E2 02 01 A8 01 80 0D 02 02 FA 00 05 00 6D 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 19 00 D0 9A D0 B0 D0 BB D1 8B D0 B3 D1 83 D0 BB D0 BE D0 B2 D0 B0 20 D0 9D 2E 20 F4 03 04 00 82 59 5E 66 0E 04 04 00 75 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 5E 04 04 00 AB 00 00 00 57 04 04 00 AD 00 00 00 AA 04 DB 04 6E 04 04 00 AB 00 00 00 69 04 A2 00 6F 04 04 00 A8 00 00 00 B1 04 03 00 C4 0B 4C 70 04 03 00 90 1C 3A 72 04 03 00 34 EF 11 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 96 13 08 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 00 E3 [00:02:18]Write i2c OK [00:02:18]MH_I2C_Read... [00:02:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:02:18]Read from MH i2c: E2 [00:02:18]MH_I2C_Read... [00:02:18]Read from MH i2c: E2 03 00 [00:02:18]MH_I2C_Read... [00:02:18]Read from MH i2c: E2 03 00 A8 01 00 90 00 1D [00:02:18]RAPDU: 90 00 [00:02:18]wFMCommunicate OK [00:02:18]wFMCommunicate request_size=255 [00:02:18]MH_SAM_APDU [00:02:18]CAPDU: 80 0D 02 02 FA 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 41 AC 6A 04 9F 00 6F 04 04 00 03 00 00 00 B1 04 03 00 80 A9 03 70 04 03 00 80 A9 03 72 04 01 00 00 00 04 80 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 92 63 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 4C 08 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 [00:02:19]Write to MH i2c: E2 02 01 A9 01 80 0D 02 02 FA 00 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 41 AC 6A 04 9F 00 6F 04 04 00 03 00 00 00 B1 04 03 00 80 A9 03 70 04 03 00 80 A9 03 72 04 01 00 00 00 04 80 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 92 63 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 4C 08 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 00 00 39 [00:02:19]Write i2c OK [00:02:19]MH_I2C_Read... [00:02:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:02:19]Read from MH i2c: E2 [00:02:19]MH_I2C_Read... [00:02:19]Read from MH i2c: E2 03 00 [00:02:19]MH_I2C_Read... [00:02:19]Read from MH i2c: E2 03 00 A9 01 00 90 00 1E [00:02:19]RAPDU: 90 00 [00:02:19]wFMCommunicate OK [00:02:19]wFMCommunicate request_size=255 [00:02:19]MH_SAM_APDU [00:02:19]CAPDU: 80 0D 02 02 FA 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF [00:02:19]Write to MH i2c: E2 02 01 AA 01 80 0D 02 02 FA 00 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 00 00 DD [00:02:19]Write i2c OK [00:02:19]MH_I2C_Read... [00:02:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:02:20]Read from MH i2c: E2 [00:02:20]MH_I2C_Read... [00:02:20]Read from MH i2c: E2 03 00 [00:02:20]MH_I2C_Read... [00:02:20]Read from MH i2c: E2 03 00 AA 01 00 90 00 1F [00:02:20]RAPDU: 90 00 [00:02:20]wFMCommunicate OK [00:02:20]wFMCommunicate request_size=255 [00:02:20]MH_SAM_APDU [00:02:20]CAPDU: 80 0D 02 02 FA 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 [00:02:20]Write to MH i2c: E2 02 01 AB 01 80 0D 02 02 FA 00 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 00 00 FD [00:02:20]Write i2c OK [00:02:20]MH_I2C_Read... [00:02:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:02:20]Read from MH i2c: E2 [00:02:20]MH_I2C_Read... [00:02:20]Read from MH i2c: E2 03 00 [00:02:20]MH_I2C_Read... [00:02:20]Read from MH i2c: E2 03 00 AB 01 00 90 00 20 [00:02:20]RAPDU: 90 00 [00:02:20]wFMCommunicate OK [00:02:20]wFMCommunicate request_size=255 [00:02:20]MH_SAM_APDU [00:02:20]CAPDU: 80 0D 02 02 FA EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 [00:02:20]Write to MH i2c: E2 02 01 AC 01 80 0D 02 02 FA 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 00 B7 [00:02:21]Write i2c OK [00:02:21]MH_I2C_Read... [00:02:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:02:21]Read from MH i2c: E2 [00:02:21]MH_I2C_Read... [00:02:21]Read from MH i2c: E2 03 00 [00:02:21]MH_I2C_Read... [00:02:21]Read from MH i2c: E2 03 00 AC 01 00 90 00 21 [00:02:21]RAPDU: 90 00 [00:02:21]wFMCommunicate OK [00:02:21]wFMCommunicate request_size=148 [00:02:21]MH_SAM_APDU [00:02:21]CAPDU: 80 0D 02 02 8F 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 AA F9 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 35 04 06 00 EB 63 D6 0E 08 E8 [00:02:21]Write to MH i2c: E2 97 00 AD 01 80 0D 02 02 8F 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 AA F9 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 35 04 06 00 EB 63 D6 0E 08 E8 00 00 2B [00:02:21]Write i2c OK [00:02:21]MH_I2C_Read... [00:02:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:02:21]Read from MH i2c: E2 [00:02:21]MH_I2C_Read... [00:02:21]Read from MH i2c: E2 03 00 [00:02:21]MH_I2C_Read... [00:02:21]Read from MH i2c: E2 03 00 AD 01 00 90 00 22 [00:02:21]RAPDU: 90 00 [00:02:21]wFMCommunicate OK [00:02:21]wFMCommunicate request_size=4 [00:02:21]MH_SAM_APDU [00:02:21]CAPDU: 80 0D 03 02 [00:02:21]Write to MH i2c: E2 08 00 AE 01 80 0D 03 02 00 00 00 00 2A [00:02:21]Write i2c OK [00:02:21]MH_I2C_Read... [00:02:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:02:21]Read from MH i2c: E2 [00:02:21]MH_I2C_Read... [00:02:21]Read from MH i2c: E2 0B 00 [00:02:21]MH_I2C_Read... [00:02:21]Read from MH i2c: E2 0B 00 AE 01 00 18 CA B9 3B 85 FE D9 7D 90 00 DA [00:02:21]RAPDU: 18 CA B9 3B 85 FE D9 7D 90 00 [00:02:21]wFMCommunicate OK [00:02:21]SAM_PROTO_SignData done [00:02:21]FM_MakeSignedData done [00:02:21]CreateOFDProtocolMessage [00:02:21]wFMCommunicate request_size=4 [00:02:21]MH_SAM_APDU [00:02:21]CAPDU: 80 11 00 00 [00:02:21]Write to MH i2c: E2 08 00 AF 01 80 11 00 00 00 00 00 00 2A [00:02:21]Write i2c OK [00:02:21]MH_I2C_Read... [00:02:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:02:21]Read from MH i2c: E2 [00:02:21]MH_I2C_Read... [00:02:21]Read from MH i2c: E2 17 00 [00:02:21]MH_I2C_Read... [00:02:21]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 35 30 37 34 90 00 7C [00:02:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [00:02:22]wFMCommunicate OK [00:02:22]CreateOFDProtocolMessage done [00:02:22]OFDSenderStorePacket 63914 [00:02:22]StoreOFDPacket docnum=63914 [00:02:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 81 05 00 00 7D 4F 79 05 83 47 5A 05 01 00 05 00 6D 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 19 00 D0 9A D0 B0 D0 BB D1 8B D0 B3 D1 83 D0 BB D0 BE D0 B2 D0 B0 20 D0 9D 2E 20 F4 03 04 00 82 59 5E 66 0E 04 04 00 75 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 5E 04 04 00 AB 00 00 00 57 04 04 00 AD 00 00 00 AA 04 DB 04 6E 04 04 00 AB 00 00 00 69 04 A2 00 6F 04 04 00 A8 00 00 00 B1 04 03 00 C4 0B 4C 70 04 03 00 90 1C 3A 72 04 03 00 34 EF 11 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 96 13 08 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 41 AC 6A 04 9F 00 6F 04 04 00 03 00 00 00 B1 04 03 00 80 A9 03 70 04 03 00 80 A9 03 72 04 01 00 00 00 04 80 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 92 63 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 4C 08 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 AA F9 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 35 04 06 00 EB 63 D6 0E 08 E8 18 CA B9 3B 85 FE D9 7D [00:02:22]CheckFolder [00:02:22]dirname=/storage/ofd_packets [00:02:22]CheckFolder done [00:02:22]ProducePacketName [00:02:22]name=ofd_packets/00063914 [00:02:22]NVStorageSaveData ofd_packets/00063914 [00:02:22]File name is /storage/ofd_packets/00063914 [00:02:22]Write 1439 bytes [00:02:22]NVStorageSaveData done [00:02:22]OFDSenderStorePacket done [00:02:22]KKMCreateOFDPacket done [00:02:22]NVStorageSaveData kkm_last_timestamp [00:02:22]File name is /storage/kkm_last_timestamp [00:02:22]Write 4 bytes [00:02:22]NVStorageSaveData done [00:02:22]ExternCall_PrintAddStr [00:02:22]wPrintStart [00:02:22]Write to MH i2c: 01 00 00 B0 01 B1 [00:02:22]Write i2c OK [00:02:22]MH_I2C_Read... [00:02:22]Read from MH i2c: 01 [00:02:22]MH_I2C_Read... [00:02:22]Read from MH i2c: 01 07 00 [00:02:22]MH_I2C_Read... [00:02:22]Read from MH i2c: 01 07 00 B0 01 00 00 00 00 00 FF 0F C6 [00:02:22]RasterBufferAndPrint [00:02:22]line Отчет о закрытии смены [00:02:22]line ФФД: 1.0 [00:02:22]line ИНН: 02508201610067 [00:02:22]line Кассир: Калыгулова Н. [00:02:22]line 04.06.2024 00:02 [00:02:22]line Смена: 373 [00:02:22]line РНМ: 0000000000092737 [00:02:22]line ЗНМ: 0300000031 [00:02:22]line СНО: Общий режим [00:02:22]line Чеков за смену: 171 [00:02:22]line ФД за смену: 173 [00:02:22]line Всего чеков: 171 [00:02:22]line ИТОГИ ПРИХОД [00:02:22]line Чеков: 168 [00:02:22]line Общий итог: 49837.48 [00:02:22]line Итого наличными: 38084.00 [00:02:22]line Итого безнал.: 11753.48 [00:02:22]line НДС 0% : 0.00 [00:02:22]line НДС 12% : 5293.02 [00:02:22]line НСП 0% : 0.00 [00:02:22]line НСП 1,50% : 0.00 [00:02:22]line НСП 0,50% : 0.00 [00:02:22]line НСП 5% : 0.00 [00:02:22]line НСП 3% : 0.00 [00:02:22]line НСП 2% : 0.00 [00:02:22]line НСП 1% : 440.97 [00:02:22]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:02:22]line Чеков: 3 [00:02:22]line Общий итог: 2400.00 [00:02:22]line Итого наличными: 2400.00 [00:02:22]line Итого безнал.: 0.00 [00:02:22]line НДС 0% : 0.00 [00:02:22]line НДС 12% : 254.90 [00:02:22]line НСП 0% : 0.00 [00:02:22]line НСП 1,50% : 0.00 [00:02:22]line НСП 0,50% : 0.00 [00:02:22]line НСП 5% : 0.00 [00:02:22]line НСП 3% : 0.00 [00:02:22]line НСП 2% : 0.00 [00:02:22]line НСП 1% : 21.24 [00:02:22]line ИТОГИ РАСХОД [00:02:22]line Чеков: 0 [00:02:22]line Общий итог: 0.00 [00:02:22]line Итого наличными: 0.00 [00:02:22]line Итого безнал.: 0.00 [00:02:22]line НДС 0% : 0.00 [00:02:22]line НДС 12% : 0.00 [00:02:22]line НСП 0% : 0.00 [00:02:22]line НСП 1,50% : 0.00 [00:02:22]line НСП 0,50% : 0.00 [00:02:22]line НСП 5% : 0.00 [00:02:22]line НСП 3% : 0.00 [00:02:22]line НСП 2% : 0.00 [00:02:22]line НСП 1% : 0.00 [00:02:22]line ИТОГИ ВОЗВРАТ РАСХОДА [00:02:22]line Чеков: 0 [00:02:22]line Общий итог: 0.00 [00:02:22]line Итого наличными: 0.00 [00:02:22]line Итого безнал.: 0.00 [00:02:22]line НДС 0% : 0.00 [00:02:22]line НДС 12% : 0.00 [00:02:22]line НСП 0% : 0.00 [00:02:22]line НСП 1,50% : 0.00 [00:02:22]line НСП 0,50% : 0.00 [00:02:22]line НСП 5% : 0.00 [00:02:22]line НСП 3% : 0.00 [00:02:22]line НСП 2% : 0.00 [00:02:22]line НСП 1% : 0.00 [00:02:22]line Сумма внесений: 0.00 [00:02:22]line Сумма выплат: 0.00 [00:02:22]line Нал. в кассе: 35684.00 [00:02:22]line НС Приход: 19925567.21 [00:02:22]line НС Возвр.Прихода: 587681.00 [00:02:22]OFD Sender: Processing packet 63914 [packets to send 14, broken 13] [00:02:22]ProducePacketName [00:02:22]name=ofd_packets/00063914 [00:02:22]OFD Sender: To server: pG, [00:02:22]CommunicateWithHost lk.salyk.kg:30040 [00:02:22]ConnectInit lk.salyk.kg [00:02:22]line НС Расход: 0.00 [00:02:22]line НС Возвр.Расхода: 0.00 [00:02:22]line ФД: 63914 [00:02:22]line ФМ: 0000000000875074 [00:02:22]line ФПД: 258814025533672 [00:02:22]written 0, free lines is 4095 [00:02:22]Connected sock=10 [00:02:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 81 05 00 00 7D 4F 79 05 83 47 5A 05 01 00 05 00 6D 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 19 00 D0 9A D0 B0 D0 BB D1 8B D0 B3 D1 83 D0 BB D0 BE D0 B2 D0 B0 20 D0 9D 2E 20 F4 03 04 00 82 59 5E 66 0E 04 04 00 75 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 5E 04 04 00 AB 00 00 00 57 04 04 00 AD 00 00 00 AA 04 DB 04 6E 04 04 00 AB 00 00 00 69 04 A2 00 6F 04 04 00 A8 00 00 00 B1 04 03 00 C4 0B 4C 70 04 03 00 90 1C 3A 72 04 03 00 34 EF 11 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 96 13 08 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 41 AC 6A 04 9F 00 6F 04 04 00 03 00 00 00 B1 04 03 00 80 A9 03 70 04 03 00 80 A9 03 72 04 01 00 00 00 04 80 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 92 63 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 4C 08 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 Write to MH i2c: 00 01 F6 00 00 03 00 01 02 00 02 06 [00:02:23]F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 Write i2c OK [00:02:23]B1 MH_I2C_Read... [00:02:23]04 Read from MH i2c: 00 01 00 [00:02:23]70 MH_I2C_Read... [00:02:23]04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 Read from MH i2c: 03 01 01 07 00 00 00 [00:02:23]F3 MH_I2C_Read... [00:02:23]03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF Read from MH i2c: 03 01 09 07 00 00 00 F6 02 03 00 01 00 00 00 00 00 F7 00 03 81 0B 00 95 00 [00:02:23]EF RasterBufferAndPrint [00:02:23]03 line [00:02:23]09 line [00:02:23]00 line [00:02:23]F6 line [00:02:23]03 line [00:02:23]01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 written 0, free lines is 3075 [00:02:23]00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF MH_Cut [00:02:23]03 Write to MH i2c: 09 D1 00 01 F6 00 03 07 01 02 00 01 04 DB F7 [00:02:23]03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF Write i2c OK [00:02:23]03 MH_I2C_Read... [00:02:23]09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 Read from MH i2c: 00 D1 F6 [00:02:23]03 MH_I2C_Read... [00:02:23]01 Read from MH i2c: 00 D1 01 01 F7 00 03 [00:02:23]00 MH_I2C_Read... [00:02:23]00 Read from MH i2c: EF D1 03 01 09 00 00 07 F6 02 03 00 01 DA 00 [00:02:23]02 Write to MH i2c: F7 01 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 00 EF 00 03 08 09 02 00 0A F6 [00:02:23]03 01 00 04 Write i2c OK [00:02:23]F7 MH_I2C_Read... [00:02:23]03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 AA F9 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 35 04 06 00 EB 63 D6 0E 08 E8 18 CA B9 3B 85 FE D9 7D [00:02:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 A7 C8 47 00 DB 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 35 30 37 34 10 04 04 00 AA F9 00 00 F4 03 04 00 5D 05 5E 66 B6 04 01 00 00 8E 76 B8 F3 EA C6 89 D8 [00:02:24]CommunicateWithHost err = 0 [00:02:24]CheckOFDResponse [00:02:24]1017 (14) - 77093643461234 [00:02:24]1041 (16) - 0000000000875074 [00:02:24]1040 (4) - 63914 [00:02:24]1012 (4) - 03.06.2024 18:03 [00:02:24]1206 (1) - 0 [00:02:24]OFD Sender: Remove packet 63914 [00:02:24]ProducePacketName [00:02:24]name=ofd_packets/00063914 [00:02:24]NVStorageDeleteData [00:02:24]*** Cut start [00:02:24]*** Partial cut [00:02:24]*** CUTSNS_PIN = 1 [00:02:24]*** CUTSNS_PIN = 0 [00:02:24]*** Brake cut motor [00:02:24]OFD Sender: No OFD packet to send [00:02:25]Read from MH i2c: 01 [00:02:25]MH_I2C_Read... [00:02:25]*** Stop cut motor [00:02:25]*** Cut end [00:02:25]Read from MH i2c: 01 07 00 [00:02:25]MH_I2C_Read... [00:02:25]Read from MH i2c: 01 07 00 08 02 00 00 00 00 00 FF 0F 1F [00:02:25]process_action close_shift done [00:02:25]requested_data is exist [00:02:25]produce_requested_data [00:02:25]requested_item fd.num is exist - process it [00:02:25]SAM_PROTO_GetFieldsCounters [00:02:25]wFMCommunicate request_size=4 [00:02:25]MH_SAM_APDU [00:02:25]CAPDU: 80 13 00 00 [00:02:25]Write to MH i2c: E2 08 00 09 02 80 13 00 00 00 00 00 00 87 [00:02:25]Write i2c OK [00:02:25]MH_I2C_Read... [00:02:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:02:25]Read from MH i2c: E2 [00:02:25]MH_I2C_Read... [00:02:25]Read from MH i2c: E2 62 00 [00:02:25]MH_I2C_Read... [00:02:25]Read from MH i2c: E2 62 00 09 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 AA F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 AB 00 00 00 5E 04 04 00 AB 00 00 00 57 04 04 00 AD 00 00 00 19 04 04 00 00 00 00 00 90 00 C5 [00:02: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 AA F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 AB 00 00 00 5E 04 04 00 AB 00 00 00 57 04 04 00 AD 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:02:25]wFMCommunicate OK [00:02:25]SAM_PROTO_GetFieldsCounters done [00:02:25]requested_item shift.num is exist - process it [00:02:25]requested_item shift.opened is exist - process it [00:02:25]req_shift_opened [00:02:25]FM_GetShiftState [00:02:25]SAM_PROTO_GetShiftState [00:02:25]wFMCommunicate request_size=4 [00:02:25]MH_SAM_APDU [00:02:25]CAPDU: 80 13 01 00 [00:02:25]Write to MH i2c: E2 08 00 0A 02 80 13 01 00 00 00 00 00 89 [00:02:25]Write i2c OK [00:02:25]MH_I2C_Read... [00:02:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:02:25]Read from MH i2c: E2 [00:02:25]MH_I2C_Read... [00:02:25]Read from MH i2c: E2 0E 00 [00:02:25]MH_I2C_Read... [00:02:25]Read from MH i2c: E2 0E 00 0A 02 00 09 00 00 00 00 00 00 00 00 00 00 90 00 94 [00:02:25]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:02:25]wFMCommunicate OK [00:02:25]SAM_PROTO_GetShiftState done [00:02:25]FM_GetShiftState done [00:02:25]req_shift_opened done [00:02:25]requested_item shift.open_date is exist - process it [00:02:25]req_shift_open_date [00:02:25]FM_GetShiftState [00:02:25]SAM_PROTO_GetShiftState [00:02:25]wFMCommunicate request_size=4 [00:02:25]MH_SAM_APDU [00:02:25]CAPDU: 80 13 01 00 [00:02:25]Write to MH i2c: E2 08 00 0B 02 80 13 01 00 00 00 00 00 8A [00:02:25]Write i2c OK [00:02:25]MH_I2C_Read... [00:02:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:02:25]Read from MH i2c: E2 [00:02:25]MH_I2C_Read... [00:02:25]Read from MH i2c: E2 0E 00 [00:02:25]MH_I2C_Read... [00:02:25]Read from MH i2c: E2 0E 00 0B 02 00 09 00 00 00 00 00 00 00 00 00 00 90 00 95 [00:02:25]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:02:25]wFMCommunicate OK [00:02:25]SAM_PROTO_GetShiftState done [00:02:25]FM_GetShiftState done [00:02:25]req_shift_open_date done [00:02:25]produce_requested_data done [00:02:25]produce_requested_data return {"fd.num":63914,"shift.num":373,"shift.opened":0,"shift.open_date":0} [00:02:25]process_action_free close_shift [00:02:25]json_value_free [00:02:25]json_value_free done [00:02:25]process_json_proto returns [00:02:25]Send response to host [00:02:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":63914,"shift.num":373,"shift.opened":0,"shift.open_date":0}}} [00:02:25]free response buf [00:02:25]execute_script done [00:02:25]execute_script returns [00:02:25]free content buf [00:02:25]Sock 7.Close socket [00:02:25]Sock 7.Thread stoped [00:02:29]OFD Sender: No OFD packet to send [00:02:34]OFD Sender: No OFD packet to send [00:02:39]OFD Sender: No OFD packet to send [00:02:44]OFD Sender: No OFD packet to send [00:02:49]OFD Sender: No OFD packet to send [00:02:54]OFD Sender: No OFD packet to send [00:02:59]OFD Sender: No OFD packet to send [00:03:04]OFD Sender: No OFD packet to send [00:03:09]OFD Sender: No OFD packet to send [00:03:14]OFD Sender: No OFD packet to send [00:03:19]OFD Sender: No OFD packet to send [00:03:24]OFD Sender: No OFD packet to send [00:03:29]OFD Sender: No OFD packet to send [00:03:34]OFD Sender: No OFD packet to send [00:03:39]OFD Sender: No OFD packet to send [00:03:44]OFD Sender: No OFD packet to send [00:03:49]OFD Sender: No OFD packet to send [00:03:54]OFD Sender: No OFD packet to send [00:03:59]OFD Sender: No OFD packet to send [00:04:04]OFD Sender: No OFD packet to send [00:04:09]OFD Sender: No OFD packet to send [00:04:14]OFD Sender: No OFD packet to send [00:04:19]OFD Sender: No OFD packet to send [00:04:24]OFD Sender: No OFD packet to send [00:04:29]OFD Sender: No OFD packet to send [00:04:34]OFD Sender: No OFD packet to send [00:04:39]OFD Sender: No OFD packet to send [00:04:44]OFD Sender: No OFD packet to send [00:04:49]OFD Sender: No OFD packet to send [00:04:54]OFD Sender: No OFD packet to send [00:04:59]OFD Sender: No OFD packet to send [00:05:04]OFD Sender: No OFD packet to send [00:05:09]OFD Sender: No OFD packet to send [00:05:14]OFD Sender: No OFD packet to send [00:05:19]OFD Sender: No OFD packet to send [00:05:24]OFD Sender: No OFD packet to send [00:05:29]OFD Sender: No OFD packet to send [00:05:34]OFD Sender: No OFD packet to send [00:05:39]OFD Sender: No OFD packet to send [00:05:44]OFD Sender: No OFD packet to send [00:05:49]OFD Sender: No OFD packet to send [00:05:54]OFD Sender: No OFD packet to send [00:05:59]OFD Sender: No OFD packet to send [00:06:04]OFD Sender: No OFD packet to send [00:06:09]OFD Sender: No OFD packet to send [00:06:10]accept exits with 9 [00:06:10]New connection [00:06:10]New thread 3066912100 created [00:06:10]Thread 3067055460 joined [00:06:10]Waiting for new connection... [00:06:10] Sock 9.Parse request [00:06:10]Sock 9.Check first char [00:06:10]Sock 9.First char is OK [00:06:10]request: POST /json_proto HTTP/1.0 [00:06:10]Method: POST [00:06:10]URL: /json_proto [00:06:10]Method is POST - this is cgi request [00:06:10]url: /json_proto [00:06:10]query_string will be loaded in cgi processing [00:06:10]execute_cgi json_proto POST (null) [00:06:10]execute_cgi path=json_proto method=POST [00:06:10]POST find Content-Length [00:06:10]Host: 172.17.60.69:8080 [00:06:10]Content-Length: 215 [00:06:10]Content-Type: application/json [00:06:10] [00:06:10]POST finish read [00:06:10]Found Content-Length = 215 [00:06: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:06:10]execute_script... [00:06: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:06:10]POST & json_proto [00:06:10]process_json_proto [00:06:10]json parsed OK: [00:06:10]protocol is kg_v1.0 [00:06:10]action value=get_value [00:06:10]process_action get_value [00:06:10]cmd_get_value [00:06:10]process_action get_value done [00:06:10]requested_data is exist [00:06:10]produce_requested_data [00:06:10]requested_item kkm.sn is exist - process it [00:06:10]requested_item kkm.ver is exist - process it [00:06:10]requested_item fm.sn is exist - process it [00:06:10]wFMCommunicate request_size=4 [00:06:10]MH_SAM_APDU [00:06:10]CAPDU: 80 11 00 00 [00:06:10]Write to MH i2c: E2 08 00 0C 02 80 11 00 00 00 00 00 00 88 [00:06:10]Write i2c OK [00:06:10]MH_I2C_Read... [00:06:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:06:10]Read from MH i2c: E2 [00:06:10]MH_I2C_Read... [00:06:10]Read from MH i2c: E2 17 00 [00:06:10]MH_I2C_Read... [00:06:10]Read from MH i2c: E2 17 00 0C 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 DA [00:06:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [00:06:10]wFMCommunicate OK [00:06:10]requested_item fd.num is exist - process it [00:06:10]SAM_PROTO_GetFieldsCounters [00:06:10]wFMCommunicate request_size=4 [00:06:10]MH_SAM_APDU [00:06:10]CAPDU: 80 13 00 00 [00:06:10]Write to MH i2c: E2 08 00 0D 02 80 13 00 00 00 00 00 00 8B [00:06:10]Write i2c OK [00:06:10]MH_I2C_Read... [00:06:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:06:10]Read from MH i2c: E2 [00:06:10]MH_I2C_Read... [00:06:10]Read from MH i2c: E2 62 00 [00:06:10]MH_I2C_Read... [00:06:10]Read from MH i2c: E2 62 00 0D 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 AA F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 AB 00 00 00 5E 04 04 00 AB 00 00 00 57 04 04 00 AD 00 00 00 19 04 04 00 00 00 00 00 90 00 C9 [00:06: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 AA F9 00 00 0E 04 04 00 75 01 00 00 12 04 04 00 AB 00 00 00 5E 04 04 00 AB 00 00 00 57 04 04 00 AD 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:06:10]wFMCommunicate OK [00:06:10]SAM_PROTO_GetFieldsCounters done [00:06:10]requested_item shift.num is exist - process it [00:06:10]requested_item shift.opened is exist - process it [00:06:10]req_shift_opened [00:06:10]FM_GetShiftState [00:06:10]SAM_PROTO_GetShiftState [00:06:10]wFMCommunicate request_size=4 [00:06:10]MH_SAM_APDU [00:06:10]CAPDU: 80 13 01 00 [00:06:10]Write to MH i2c: E2 08 00 0E 02 80 13 01 00 00 00 00 00 8D [00:06:10]Write i2c OK [00:06:10]MH_I2C_Read... [00:06:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:06:10]Read from MH i2c: E2 [00:06:10]MH_I2C_Read... [00:06:10]Read from MH i2c: E2 0E 00 [00:06:10]MH_I2C_Read... [00:06:10]Read from MH i2c: E2 0E 00 0E 02 00 09 00 00 00 00 00 00 00 00 00 00 90 00 98 [00:06:10]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:06:10]wFMCommunicate OK [00:06:10]SAM_PROTO_GetShiftState done [00:06:10]FM_GetShiftState done [00:06:10]req_shift_opened done [00:06:10]requested_item shift.open_date is exist - process it [00:06:10]req_shift_open_date [00:06:10]FM_GetShiftState [00:06:10]SAM_PROTO_GetShiftState [00:06:10]wFMCommunicate request_size=4 [00:06:10]MH_SAM_APDU [00:06:10]CAPDU: 80 13 01 00 [00:06:10]Write to MH i2c: E2 08 00 0F 02 80 13 01 00 00 00 00 00 8E [00:06:10]Write i2c OK [00:06:10]MH_I2C_Read... [00:06:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:06:11]Read from MH i2c: E2 [00:06:11]MH_I2C_Read... [00:06:11]Read from MH i2c: E2 0E 00 [00:06:11]MH_I2C_Read... [00:06:11]Read from MH i2c: E2 0E 00 0F 02 00 09 00 00 00 00 00 00 00 00 00 00 90 00 99 [00:06:11]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:06:11]wFMCommunicate OK [00:06:11]SAM_PROTO_GetShiftState done [00:06:11]FM_GetShiftState done [00:06:11]req_shift_open_date done [00:06:11]produce_requested_data done [00:06:11]produce_requested_data return {"kkm.sn":"0300000031","kkm.ver":"001","fm.sn":"0000000000875074","fd.num":63914,"shift.num":373,"shift.opened":0,"shift.open_date":0} [00:06:11]process_action_free get_value [00:06:11]json_value_free [00:06:11]json_value_free done [00:06:11]process_json_proto returns [00:06:11]Send response to host [00:06:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000031","kkm.ver":"001","fm.sn":"0000000000875074","fd.num":63914,"shift.num":373,"shift.opened":0,"shift.open_date":0}}} [00:06:11]free response buf [00:06:11]execute_script done [00:06:11]execute_script returns [00:06:11]free content buf [00:06:11]Sock 9.Close socket [00:06:11]Sock 9.Thread stoped [00:06:11]accept exits with 7 [00:06:11]New connection [00:06:11]New thread 3067055460 created [00:06:11]Thread 3066912100 joined [00:06:11]Waiting for new connection... [00:06:11] Sock 7.Parse request [00:06:11]Sock 7.Check first char [00:06:11]Sock 7.First char is OK [00:06:11]request: POST /json_proto HTTP/1.0 [00:06:11]Method: POST [00:06:11]URL: /json_proto [00:06:11]Method is POST - this is cgi request [00:06:11]url: /json_proto [00:06:11]query_string will be loaded in cgi processing [00:06:11]execute_cgi json_proto POST (null) [00:06:11]execute_cgi path=json_proto method=POST [00:06:11]POST find Content-Length [00:06:11]Host: 172.17.60.69:8080 [00:06:11]Content-Length: 331 [00:06:11]Content-Type: application/json [00:06:11] [00:06:11]POST finish read [00:06:11]Found Content-Length = 331 [00:06:11]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:06:11]execute_script... [00:06:11]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:06:11]POST & json_proto [00:06:11]process_json_proto [00:06:11]json parsed OK: [00:06:11]protocol is kg_v1.0 [00:06:11]action value=get_value [00:06:11]process_action get_value [00:06:11]cmd_get_value [00:06:11]process_action get_value done [00:06:11]requested_data is exist [00:06:11]produce_requested_data [00:06:11]requested_item fm.sale.total is exist - process it [00:06:11]SAM_PROTO_GetFMData [00:06:11]wFMCommunicate request_size=4 [00:06:11]MH_SAM_APDU [00:06:11]CAPDU: 80 13 03 00 [00:06:11]Write to MH i2c: E2 08 00 10 02 80 13 03 00 00 00 00 00 91 [00:06:11]Write i2c OK [00:06:11]MH_I2C_Read... [00:06:11]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:06:11]Read from MH i2c: E2 [00:06:11]MH_I2C_Read... [00:06:11]Read from MH i2c: E2 FD 00 [00:06:11]MH_I2C_Read... [00:06:11]Read from MH i2c: E2 FD 00 10 02 00 C5 04 85 04 C1 04 6E 04 04 00 BF F6 00 00 69 04 A1 00 6F 04 04 00 5F F4 00 00 B1 04 04 00 B1 00 C4 76 70 04 04 00 96 B7 05 66 72 04 04 00 1B 49 BE 10 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 46 29 9D 0C 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 15 05 0D 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 60 02 00 00 B1 04 04 00 E4 BA 80 03 70 04 04 00 60 5F 65 03 72 04 03 00 84 5B 1B 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 84 3C 5F EF 03 09 90 00 93 [00:06:11]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 BF F6 00 00 69 04 A1 00 6F 04 04 00 5F F4 00 00 B1 04 04 00 B1 00 C4 76 70 04 04 00 96 B7 05 66 72 04 04 00 1B 49 BE 10 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 46 29 9D 0C 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 15 05 0D 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 60 02 00 00 B1 04 04 00 E4 BA 80 03 70 04 04 00 60 5F 65 03 72 04 03 00 84 5B 1B 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 84 3C 5F EF 03 09 90 00 [00:06:11]wFMCommunicate OK [00:06:11]wFMCommunicate request_size=4 [00:06:11]MH_SAM_APDU [00:06:11]CAPDU: 80 17 00 00 [00:06:11]Write to MH i2c: E2 08 00 11 02 80 17 00 00 00 00 00 00 93 [00:06:11]Write i2c OK [00:06:11]MH_I2C_Read... [00:06:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:12]Read from MH i2c: E2 [00:06:12]MH_I2C_Read... [00:06:12]Read from MH i2c: E2 FD 00 [00:06:12]MH_I2C_Read... [00:06:12]Read from MH i2c: E2 FD 00 11 02 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 7A EF 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 B9 [00:06:12]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 7A EF 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [00:06:12]wFMCommunicate OK [00:06:12]wFMCommunicate request_size=4 [00:06:12]MH_SAM_APDU [00:06:12]CAPDU: 80 17 00 00 [00:06:12]Write to MH i2c: E2 08 00 12 02 80 17 00 00 00 00 00 00 94 [00:06:12]Write i2c OK [00:06:12]MH_I2C_Read... [00:06:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:12]Read from MH i2c: E2 [00:06:12]MH_I2C_Read... [00:06:12]Read from MH i2c: E2 FD 00 [00:06:12]MH_I2C_Read... [00:06:12]Read from MH i2c: E2 FD 00 12 02 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 A6 [00:06:12]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [00:06:12]wFMCommunicate OK [00:06:12]wFMCommunicate request_size=4 [00:06:12]MH_SAM_APDU [00:06:12]CAPDU: 80 17 00 00 [00:06:12]Write to MH i2c: E2 08 00 13 02 80 17 00 00 00 00 00 00 95 [00:06:12]Write i2c OK [00:06:12]MH_I2C_Read... [00:06:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:12]Read from MH i2c: E2 [00:06:12]MH_I2C_Read... [00:06:12]Read from MH i2c: E2 FD 00 [00:06:12]MH_I2C_Read... [00:06:12]Read from MH i2c: E2 FD 00 13 02 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 21 [00:06:12]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [00:06:12]wFMCommunicate OK [00:06:12]wFMCommunicate request_size=4 [00:06:12]MH_SAM_APDU [00:06:12]CAPDU: 80 17 00 00 [00:06:12]Write to MH i2c: E2 08 00 14 02 80 17 00 00 00 00 00 00 96 [00:06:12]Write i2c OK [00:06:12]MH_I2C_Read... [00:06:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:06:12]Read from MH i2c: E2 [00:06:12]MH_I2C_Read... [00:06:12]Read from MH i2c: E2 E2 00 [00:06:12]MH_I2C_Read... [00:06:12]Read from MH i2c: E2 E2 00 14 02 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 74 [00:06:12]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:06:12]wFMCommunicate OK [00:06:12]SAM_PROTO_GetFMData done [00:06:12]requested_item fm.sale_refund.total is exist - process it [00:06:12]requested_item fm.buy.total is exist - process it [00:06:12]requested_item shift.sale.total is exist - process it [00:06:12]SAM_PROTO_GetShiftData [00:06:12]wFMCommunicate request_size=4 [00:06:12]MH_SAM_APDU [00:06:12]CAPDU: 80 13 02 00 [00:06:12]Write to MH i2c: E2 08 00 15 02 80 13 02 00 00 00 00 00 95 [00:06:12]Write i2c OK [00:06:12]MH_I2C_Read... [00:06:13]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:06:13]Read from MH i2c: E2 [00:06:13]MH_I2C_Read... [00:06:13]Read from MH i2c: E2 FD 00 [00:06:13]MH_I2C_Read... [00:06:13]Read from MH i2c: E2 FD 00 15 02 00 B8 04 AA 04 B4 04 6E 04 04 00 AB 00 00 00 69 04 9B 00 6F 04 04 00 A8 00 00 00 B1 04 03 00 C4 0B 4C 70 04 03 00 90 1C 3A 72 04 03 00 34 EF 11 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 96 13 08 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 41 AC EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 03 00 00 00 B1 04 03 00 80 A9 03 70 04 03 00 80 A9 03 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 92 63 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 FD [00:06:13]RAPDU: B8 04 AA 04 B4 04 6E 04 04 00 AB 00 00 00 69 04 9B 00 6F 04 04 00 A8 00 00 00 B1 04 03 00 C4 0B 4C 70 04 03 00 90 1C 3A 72 04 03 00 34 EF 11 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 96 13 08 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 41 AC EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 03 00 00 00 B1 04 03 00 80 A9 03 70 04 03 00 80 A9 03 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 92 63 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 [00:06:13]wFMCommunicate OK [00:06:13]wFMCommunicate request_size=4 [00:06:13]MH_SAM_APDU [00:06:13]CAPDU: 80 17 00 00 [00:06:13]Write to MH i2c: E2 08 00 16 02 80 17 00 00 00 00 00 00 98 [00:06:13]Write i2c OK [00:06:13]MH_I2C_Read... [00:06:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:13]Read from MH i2c: E2 [00:06:13]MH_I2C_Read... [00:06:13]Read from MH i2c: E2 FD 00 [00:06:13]MH_I2C_Read... [00:06:13]Read from MH i2c: E2 FD 00 16 02 00 0B 00 F6 03 01 00 01 F7 03 02 00 4C 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 90 00 1D [00:06:13]RAPDU: 0B 00 F6 03 01 00 01 F7 03 02 00 4C 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 90 00 [00:06:13]wFMCommunicate OK [00:06:13]wFMCommunicate request_size=4 [00:06:13]MH_SAM_APDU [00:06:13]CAPDU: 80 17 00 00 [00:06:13]Write to MH i2c: E2 08 00 17 02 80 17 00 00 00 00 00 00 99 [00:06:13]Write i2c OK [00:06:13]MH_I2C_Read... [00:06:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:13]Read from MH i2c: E2 [00:06:13]MH_I2C_Read... [00:06:13]Read from MH i2c: E2 FD 00 [00:06:13]MH_I2C_Read... [00:06:13]Read from MH i2c: E2 FD 00 17 02 00 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 90 00 3B [00:06:13]RAPDU: 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 90 00 [00:06:13]wFMCommunicate OK [00:06:13]wFMCommunicate request_size=4 [00:06:13]MH_SAM_APDU [00:06:13]CAPDU: 80 17 00 00 [00:06:13]Write to MH i2c: E2 08 00 18 02 80 17 00 00 00 00 00 00 9A [00:06:13]Write i2c OK [00:06:13]MH_I2C_Read... [00:06:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:14]Read from MH i2c: E2 [00:06:14]MH_I2C_Read... [00:06:14]Read from MH i2c: E2 FD 00 [00:06:14]MH_I2C_Read... [00:06:14]Read from MH i2c: E2 FD 00 18 02 00 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 90 00 23 [00:06:14]RAPDU: 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 90 00 [00:06:14]wFMCommunicate OK [00:06:14]wFMCommunicate request_size=4 [00:06:14]MH_SAM_APDU [00:06:14]CAPDU: 80 17 00 00 [00:06:14]Write to MH i2c: E2 08 00 19 02 80 17 00 00 00 00 00 00 9B [00:06:14]Write i2c OK [00:06:14]MH_I2C_Read... [00:06:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 210! [00:06:14]Read from MH i2c: E2 [00:06:14]MH_I2C_Read... [00:06:14]Read from MH i2c: E2 D5 00 [00:06:14]MH_I2C_Read... [00:06:14]Read from MH i2c: E2 D5 00 19 02 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 7C [00:06:14]RAPDU: EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:06:14]wFMCommunicate OK [00:06:14]SAM_PROTO_GetShiftData done [00:06:14]requested_item shift.sale.total_cash is exist - process it [00:06:14]requested_item shift.sale_refund.total is exist - process it [00:06:14]requested_item shift.sale_refund.total_cash is exist - process it [00:06:14]requested_item shift.buy.total is exist - process it [00:06:14]requested_item shift.buy.total_cash is exist - process it [00:06:14]produce_requested_data done [00:06:14]produce_requested_data return {"fm.sale.total":19925567.21,"fm.sale_refund.total":587681.00,"fm.buy.total":0.00,"shift.sale.total":49837.48,"shift.sale.total_cash":38084.00,"shift.sale_refund.total":2400.00,"shift.sale_refund.total_cash":2400.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:06:14]process_action_free get_value [00:06:14]json_value_free [00:06:14]json_value_free done [00:06:14]process_json_proto returns [00:06:14]Send response to host [00:06:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":19925567.21,"fm.sale_refund.total":587681.00,"fm.buy.total":0.00,"shift.sale.total":49837.48,"shift.sale.total_cash":38084.00,"shift.sale_refund.total":2400.00,"shift.sale_refund.total_cash":2400.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:06:14]free response buf [00:06:14]execute_script done [00:06:14]execute_script returns [00:06:14]free content buf [00:06:14]Sock 7.Close socket [00:06:14]Sock 7.Thread stoped [00:06:14]accept exits with 9 [00:06:14]New connection [00:06:14]New thread 3066912100 created [00:06:14]Thread 3067055460 joined [00:06:14]Waiting for new connection... [00:06:14] Sock 9.Parse request [00:06:14]Sock 9.Check first char [00:06:14]Sock 9.First char is OK [00:06:14]request: POST /json_proto HTTP/1.0 [00:06:14]Method: POST [00:06:14]URL: /json_proto [00:06:14]Method is POST - this is cgi request [00:06:14]url: /json_proto [00:06:14]query_string will be loaded in cgi processing [00:06:14]execute_cgi json_proto POST (null) [00:06:14]execute_cgi path=json_proto method=POST [00:06:14]POST find Content-Length [00:06:14]Host: 172.17.60.69:8080 [00:06:14]Content-Length: 247 [00:06:14]Content-Type: application/json [00:06:14] [00:06:14]POST finish read [00:06:14]Found Content-Length = 247 [00:06:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0421\u0438\u043A\u0441\u0430\u0439 \u041A. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:06:14]execute_script... [00:06:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0421\u0438\u043A\u0441\u0430\u0439 \u041A. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:06:14]POST & json_proto [00:06:14]process_json_proto [00:06:14]json parsed OK: [00:06:14]protocol is kg_v1.0 [00:06:14]action value=open_shift [00:06:14]process_action open_shift [00:06:14]cmd_open_shift [00:06:14]MH_GetDate [00:06:14]Write to MH i2c: F0 00 00 1A 02 0B [00:06:14]Write i2c OK [00:06:14]MH_I2C_Read... [00:06:14]Read from MH i2c: F0 [00:06:14]MH_I2C_Read... [00:06:14]Read from MH i2c: F0 09 00 [00:06:14]MH_I2C_Read... [00:06:14]Read from MH i2c: F0 09 00 1A 02 00 76 5A 5E 66 6A 96 4A 66 58 [00:06:14]GetLastDocTimeStamp 1717459330 [00:06:14]current date 1717459574 [00:06:14]FM_GetShiftState [00:06:14]SAM_PROTO_GetShiftState [00:06:14]wFMCommunicate request_size=4 [00:06:14]MH_SAM_APDU [00:06:14]CAPDU: 80 13 01 00 [00:06:14]Write to MH i2c: E2 08 00 1B 02 80 13 01 00 00 00 00 00 9A [00:06:14]Write i2c OK [00:06:14]MH_I2C_Read... [00:06:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:06:14]Read from MH i2c: E2 [00:06:14]MH_I2C_Read... [00:06:14]Read from MH i2c: E2 0E 00 [00:06:14]MH_I2C_Read... [00:06:14]Read from MH i2c: E2 0E 00 1B 02 00 09 00 00 00 00 00 00 00 00 00 00 90 00 A5 [00:06:14]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:06:14]wFMCommunicate OK [00:06:14]SAM_PROTO_GetShiftState done [00:06:14]FM_GetShiftState done [00:06:14]KKMCreateOpenShiftDocument [00:06:14]Load OK [00:06:14]Malloc new data [00:06:14]MH_GetDate [00:06:14]Write to MH i2c: F0 00 00 1C 02 0D [00:06:14]Write i2c OK [00:06:14]MH_I2C_Read... [00:06:14]Read from MH i2c: F0 [00:06:14]MH_I2C_Read... [00:06:14]Read from MH i2c: F0 09 00 [00:06:14]MH_I2C_Read... [00:06:14]Read from MH i2c: F0 09 00 1C 02 00 76 5A 5E 66 6A 96 4A 66 5A [00:06:14]Malloc new data [00:06:14]KKMCreateOpenShiftDocument OK [00:06:14]KKMSetOpenShiftData OK [00:06:14]ProcessDocumentItem done err = 0, tmpTLVsize=222 [00:06:14]tlvbuf is 012C9880 [00:06:14]KKMLoadAndSignOpenShiftData [00:06:14]SAM_PROTO_ProcessDocument [00:06:14]wFMCommunicate request_size=9 [00:06:14]MH_SAM_APDU [00:06:14]CAPDU: 80 15 01 00 04 02 00 DE 00 [00:06:14]Write to MH i2c: E2 0C 00 1D 02 80 15 01 00 04 00 02 00 DE 00 00 00 86 [00:06:14]Write i2c OK [00:06:14]MH_I2C_Read... [00:06:14]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:06:14]Read from MH i2c: E2 [00:06:14]MH_I2C_Read... [00:06:14]Read from MH i2c: E2 03 00 [00:06:14]MH_I2C_Read... [00:06:14]Read from MH i2c: E2 03 00 1D 02 00 90 00 93 [00:06:14]RAPDU: 90 00 [00:06:14]wFMCommunicate OK [00:06:14]wFMCommunicate request_size=23 [00:06:14]MH_SAM_APDU [00:06: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:06:14]Write to MH i2c: E2 1A 00 1E 02 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 95 [00:06:14]Write i2c OK [00:06:14]MH_I2C_Read... [00:06:14]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:06:14]Read from MH i2c: E2 [00:06:14]MH_I2C_Read... [00:06:14]Read from MH i2c: E2 03 00 [00:06:14]MH_I2C_Read... [00:06:14]Read from MH i2c: E2 03 00 1E 02 00 90 00 94 [00:06:14]RAPDU: 90 00 [00:06:14]wFMCommunicate OK [00:06:14]wFMCommunicate request_size=26 [00:06:14]MH_SAM_APDU [00:06:14]CAPDU: 80 15 02 00 15 FD 03 11 00 D0 A1 D0 B8 D0 BA D1 81 D0 B0 D0 B9 20 D0 9A 2E 20 [00:06:14]Write to MH i2c: E2 1D 00 1F 02 80 15 02 00 15 00 FD 03 11 00 D0 A1 D0 B8 D0 BA D1 81 D0 B0 D0 B9 20 D0 9A 2E 20 00 00 92 [00:06:14]Write i2c OK [00:06:14]MH_I2C_Read... [00:06:14]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:06:14]Read from MH i2c: E2 [00:06:14]MH_I2C_Read... [00:06:14]Read from MH i2c: E2 03 00 [00:06:14]MH_I2C_Read... [00:06:14]Read from MH i2c: E2 03 00 1F 02 00 90 00 95 [00:06:14]RAPDU: 90 00 [00:06:14]wFMCommunicate OK [00:06:14]wFMCommunicate request_size=114 [00:06:14]MH_SAM_APDU [00:06:14]CAPDU: 80 15 02 00 6D F1 03 69 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 9A D0 B0 D1 80 D0 B0 D0 BA D0 BE D0 BB 2C 20 D1 83 D0 BB 2E 20 D0 9F D1 80 D0 B5 D0 B6 D0 B5 D0 B2 D0 B0 D0 BB D1 8C D1 81 D0 BA D0 BE D0 B3 D0 BE 20 31 30 31 2F 31 20 28 D0 BA D0 BE D0 BB D1 8C D1 86 D0 BE 29 2C 20 34 32 2E 35 30 30 31 34 30 2C 20 37 38 2E 33 38 36 35 39 37 [00:06:14]Write to MH i2c: E2 75 00 20 02 80 15 02 00 6D 00 F1 03 69 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 9A D0 B0 D1 80 D0 B0 D0 BA D0 BE D0 BB 2C 20 D1 83 D0 BB 2E 20 D0 9F D1 80 D0 B5 D0 B6 D0 B5 D0 B2 D0 B0 D0 BB D1 8C D1 81 D0 BA D0 BE D0 B3 D0 BE 20 31 30 31 2F 31 20 28 D0 BA D0 BE D0 BB D1 8C D1 86 D0 BE 29 2C 20 34 32 2E 35 30 30 31 34 30 2C 20 37 38 2E 33 38 36 35 39 37 00 00 4D [00:06:14]Write i2c OK [00:06:14]MH_I2C_Read... [00:06:14]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:06:14]Read from MH i2c: E2 [00:06:14]MH_I2C_Read... [00:06:14]Read from MH i2c: E2 03 00 [00:06:14]MH_I2C_Read... [00:06:14]Read from MH i2c: E2 03 00 20 02 00 90 00 96 [00:06:14]RAPDU: 90 00 [00:06:14]wFMCommunicate OK [00:06:14]wFMCommunicate request_size=51 [00:06:14]MH_SAM_APDU [00:06:14]CAPDU: 80 15 02 00 2E A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 31 37 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 [00:06:15]Write to MH i2c: E2 36 00 21 02 80 15 02 00 2E 00 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 31 37 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 00 00 4E [00:06:15]Write i2c OK [00:06:15]MH_I2C_Read... [00:06:15]OFD Sender: No OFD packet to send [00:06:15]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:06:15]Read from MH i2c: E2 [00:06:15]MH_I2C_Read... [00:06:15]Read from MH i2c: E2 03 00 [00:06:15]MH_I2C_Read... [00:06:15]Read from MH i2c: E2 03 00 21 02 00 90 00 97 [00:06:15]RAPDU: 90 00 [00:06:15]wFMCommunicate OK [00:06:15]wFMCommunicate request_size=13 [00:06:15]MH_SAM_APDU [00:06:15]CAPDU: 80 15 02 00 08 F4 03 04 00 76 5A 5E 66 [00:06:15]Write to MH i2c: E2 10 00 22 02 80 15 02 00 08 00 F4 03 04 00 76 5A 5E 66 00 00 43 [00:06:15]Write i2c OK [00:06:15]MH_I2C_Read... [00:06:15]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:06:15]Read from MH i2c: E2 [00:06:15]MH_I2C_Read... [00:06:15]Read from MH i2c: E2 03 00 [00:06:15]MH_I2C_Read... [00:06:15]Read from MH i2c: E2 03 00 22 02 00 90 00 98 [00:06:15]RAPDU: 90 00 [00:06:15]wFMCommunicate OK [00:06:15]wFMCommunicate request_size=25 [00:06:15]MH_SAM_APDU [00:06:15]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 [00:06:15]Write to MH i2c: E2 1C 00 23 02 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 00 00 0A [00:06:15]Write i2c OK [00:06:15]MH_I2C_Read... [00:06:15]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:06:15]Read from MH i2c: E2 [00:06:15]MH_I2C_Read... [00:06:15]Read from MH i2c: E2 03 00 [00:06:15]MH_I2C_Read... [00:06:15]Read from MH i2c: E2 03 00 23 02 00 90 00 99 [00:06:15]RAPDU: 90 00 [00:06:15]wFMCommunicate OK [00:06:15]wFMCommunicate request_size=4 [00:06:15]MH_SAM_APDU [00:06:15]CAPDU: 80 15 03 00 [00:06:15]Write to MH i2c: E2 08 00 24 02 80 15 03 00 00 00 00 00 A7 [00:06:15]Write i2c OK [00:06:15]MH_I2C_Read... [00:06:15]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 53! [00:06:15]Read from MH i2c: E2 [00:06:15]MH_I2C_Read... [00:06:15]Read from MH i2c: E2 38 00 [00:06:15]MH_I2C_Read... [00:06:15]Read from MH i2c: E2 38 00 24 02 00 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 AB F9 00 00 0E 04 04 00 76 01 00 00 35 04 06 00 28 8E D5 32 56 3B 90 00 DB [00:06:15]RAPDU: 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 AB F9 00 00 0E 04 04 00 76 01 00 00 35 04 06 00 28 8E D5 32 56 3B 90 00 [00:06:15]wFMCommunicate OK [00:06:15]SAM_PROTO_ProcessDocument answer len = 51 [00:06:15]SAM_PROTO_ProcessDocument done [00:06:15]SetTLVBufToDocument [00:06:15]Processing tag 1209 (04B9) [00:06:15]Malloc new data [00:06:15]Processing tag 1041 (0411) [00:06:15]Processing tag 1040 (0410) [00:06:15]Malloc new data [00:06:15]Processing tag 1038 (040E) [00:06:15]Malloc new data [00:06:15]Processing tag 1077 (0435) [00:06:15]Malloc new data [00:06:15]SetTLVBufToDocument err=0 [00:06:15]KKMLoadAndSignOpenShiftData store KKM data [00:06:15]KKMLoadAndSignOpenShiftData err=0 [00:06:15]Отчет об открытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Сиксай К. Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 Место: АЗС № 117 "Партнер Нефть" 04.06.2024 00:06 Смена: 374 РНМ: 0000000000092737 ЗНМ: 0300000031 ФД: 63915 ФМ: 0000000000875074 ФПД: 44593927312955 [00:06:15]StoreToDocumentArchive [00:06:15]shift 374 fd 63915 [00:06:15]Create dir for shift 0374 [00:06:15]save to /storage/0374/doc_00063915 [00:06:15]save last doc name /storage/0374/doc_00063915 to /storage/kkm_last_doc_name [00:06:15]save OK [00:06:15]Clear old archive folders... [00:06:15]Remove dir /storage/0373 [00:06:15]opendir ok [00:06:15]file . [00:06:15]file .. [00:06:15]file doc_00063742 [00:06:15]remove file /storage/0373/doc_00063742 [00:06:15]file doc_00063743 [00:06:15]remove file /storage/0373/doc_00063743 [00:06:15]file doc_00063744 [00:06:15]remove file /storage/0373/doc_00063744 [00:06:15]file doc_00063745 [00:06:15]remove file /storage/0373/doc_00063745 [00:06:15]file doc_00063746 [00:06:15]remove file /storage/0373/doc_00063746 [00:06:15]file doc_00063747 [00:06:15]remove file /storage/0373/doc_00063747 [00:06:15]file doc_00063748 [00:06:15]remove file /storage/0373/doc_00063748 [00:06:15]file doc_00063749 [00:06:15]remove file /storage/0373/doc_00063749 [00:06:15]file doc_00063750 [00:06:15]remove file /storage/0373/doc_00063750 [00:06:15]file doc_00063751 [00:06:15]remove file /storage/0373/doc_00063751 [00:06:15]file doc_00063752 [00:06:15]remove file /storage/0373/doc_00063752 [00:06:15]file doc_00063753 [00:06:15]remove file /storage/0373/doc_00063753 [00:06:15]file doc_00063754 [00:06:15]remove file /storage/0373/doc_00063754 [00:06:15]file doc_00063755 [00:06:15]remove file /storage/0373/doc_00063755 [00:06:15]file doc_00063756 [00:06:15]remove file /storage/0373/doc_00063756 [00:06:15]file doc_00063757 [00:06:15]remove file /storage/0373/doc_00063757 [00:06:15]file doc_00063758 [00:06:15]remove file /storage/0373/doc_00063758 [00:06:15]file doc_00063759 [00:06:15]remove file /storage/0373/doc_00063759 [00:06:15]file doc_00063760 [00:06:15]remove file /storage/0373/doc_00063760 [00:06:15]file doc_00063761 [00:06:15]remove file /storage/0373/doc_00063761 [00:06:15]file doc_00063762 [00:06:15]remove file /storage/0373/doc_00063762 [00:06:15]file doc_00063763 [00:06:15]remove file /storage/0373/doc_00063763 [00:06:15]file doc_00063764 [00:06:15]remove file /storage/0373/doc_00063764 [00:06:15]file doc_00063765 [00:06:15]remove file /storage/0373/doc_00063765 [00:06:15]file doc_00063766 [00:06:15]remove file /storage/0373/doc_00063766 [00:06:15]file doc_00063767 [00:06:15]remove file /storage/0373/doc_00063767 [00:06:15]file doc_00063768 [00:06:15]remove file /storage/0373/doc_00063768 [00:06:15]file doc_00063769 [00:06:15]remove file /storage/0373/doc_00063769 [00:06:15]file doc_00063770 [00:06:15]remove file /storage/0373/doc_00063770 [00:06:15]file doc_00063771 [00:06:15]remove file /storage/0373/doc_00063771 [00:06:15]file doc_00063772 [00:06:15]remove file /storage/0373/doc_00063772 [00:06:15]file doc_00063773 [00:06:15]remove file /storage/0373/doc_00063773 [00:06:15]file doc_00063774 [00:06:15]remove file /storage/0373/doc_00063774 [00:06:15]file doc_00063775 [00:06:15]remove file /storage/0373/doc_00063775 [00:06:15]file doc_00063776 [00:06:15]remove file /storage/0373/doc_00063776 [00:06:15]file doc_00063777 [00:06:15]remove file /storage/0373/doc_00063777 [00:06:15]file doc_00063778 [00:06:15]remove file /storage/0373/doc_00063778 [00:06:15]file doc_00063779 [00:06:15]remove file /storage/0373/doc_00063779 [00:06:15]file doc_00063780 [00:06:15]remove file /storage/0373/doc_00063780 [00:06:15]file doc_00063781 [00:06:15]remove file /storage/0373/doc_00063781 [00:06:15]file doc_00063782 [00:06:15]remove file /storage/0373/doc_00063782 [00:06:15]file doc_00063783 [00:06:15]remove file /storage/0373/doc_00063783 [00:06:15]file doc_00063784 [00:06:15]remove file /storage/0373/doc_00063784 [00:06:15]file doc_00063785 [00:06:15]remove file /storage/0373/doc_00063785 [00:06:15]file doc_00063786 [00:06:15]remove file /storage/0373/doc_00063786 [00:06:15]file doc_00063787 [00:06:15]remove file /storage/0373/doc_00063787 [00:06:15]file doc_00063788 [00:06:15]remove file /storage/0373/doc_00063788 [00:06:15]file doc_00063789 [00:06:15]remove file /storage/0373/doc_00063789 [00:06:15]file doc_00063790 [00:06:15]remove file /storage/0373/doc_00063790 [00:06:15]file doc_00063791 [00:06:15]remove file /storage/0373/doc_00063791 [00:06:15]file doc_00063792 [00:06:15]remove file /storage/0373/doc_00063792 [00:06:15]file doc_00063793 [00:06:15]remove file /storage/0373/doc_00063793 [00:06:15]file doc_00063794 [00:06:15]remove file /storage/0373/doc_00063794 [00:06:15]file doc_00063795 [00:06:15]remove file /storage/0373/doc_00063795 [00:06:15]file doc_00063796 [00:06:15]remove file /storage/0373/doc_00063796 [00:06:15]file doc_00063797 [00:06:15]remove file /storage/0373/doc_00063797 [00:06:15]file doc_00063798 [00:06:15]remove file /storage/0373/doc_00063798 [00:06:15]file doc_00063799 [00:06:15]remove file /storage/0373/doc_00063799 [00:06:15]file doc_00063800 [00:06:15]remove file /storage/0373/doc_00063800 [00:06:15]file doc_00063801 [00:06:15]remove file /storage/0373/doc_00063801 [00:06:15]file doc_00063802 [00:06:15]remove file /storage/0373/doc_00063802 [00:06:15]file doc_00063803 [00:06:15]remove file /storage/0373/doc_00063803 [00:06:16]file doc_00063804 [00:06:16]remove file /storage/0373/doc_00063804 [00:06:16]file doc_00063805 [00:06:16]remove file /storage/0373/doc_00063805 [00:06:16]file doc_00063806 [00:06:16]remove file /storage/0373/doc_00063806 [00:06:16]file doc_00063807 [00:06:16]remove file /storage/0373/doc_00063807 [00:06:16]file doc_00063808 [00:06:16]remove file /storage/0373/doc_00063808 [00:06:16]file doc_00063809 [00:06:16]remove file /storage/0373/doc_00063809 [00:06:16]file doc_00063810 [00:06:16]remove file /storage/0373/doc_00063810 [00:06:16]file doc_00063811 [00:06:16]remove file /storage/0373/doc_00063811 [00:06:16]file doc_00063812 [00:06:16]remove file /storage/0373/doc_00063812 [00:06:16]file doc_00063813 [00:06:16]remove file /storage/0373/doc_00063813 [00:06:16]file doc_00063814 [00:06:16]remove file /storage/0373/doc_00063814 [00:06:16]file doc_00063815 [00:06:16]remove file /storage/0373/doc_00063815 [00:06:16]file doc_00063816 [00:06:16]remove file /storage/0373/doc_00063816 [00:06:16]file doc_00063817 [00:06:16]remove file /storage/0373/doc_00063817 [00:06:16]file doc_00063818 [00:06:16]remove file /storage/0373/doc_00063818 [00:06:16]file doc_00063819 [00:06:16]remove file /storage/0373/doc_00063819 [00:06:16]file doc_00063820 [00:06:16]remove file /storage/0373/doc_00063820 [00:06:16]file doc_00063821 [00:06:16]remove file /storage/0373/doc_00063821 [00:06:16]file doc_00063822 [00:06:16]remove file /storage/0373/doc_00063822 [00:06:16]file doc_00063823 [00:06:16]remove file /storage/0373/doc_00063823 [00:06:16]file doc_00063824 [00:06:16]remove file /storage/0373/doc_00063824 [00:06:16]file doc_00063825 [00:06:16]remove file /storage/0373/doc_00063825 [00:06:16]file doc_00063826 [00:06:16]remove file /storage/0373/doc_00063826 [00:06:16]file doc_00063827 [00:06:16]remove file /storage/0373/doc_00063827 [00:06:16]file doc_00063828 [00:06:16]remove file /storage/0373/doc_00063828 [00:06:16]file doc_00063829 [00:06:16]remove file /storage/0373/doc_00063829 [00:06:16]file doc_00063830 [00:06:16]remove file /storage/0373/doc_00063830 [00:06:16]file doc_00063831 [00:06:16]remove file /storage/0373/doc_00063831 [00:06:16]file doc_00063832 [00:06:16]remove file /storage/0373/doc_00063832 [00:06:16]file doc_00063833 [00:06:16]remove file /storage/0373/doc_00063833 [00:06:16]file doc_00063834 [00:06:16]remove file /storage/0373/doc_00063834 [00:06:16]file doc_00063835 [00:06:16]remove file /storage/0373/doc_00063835 [00:06:16]file doc_00063836 [00:06:16]remove file /storage/0373/doc_00063836 [00:06:16]file doc_00063837 [00:06:16]remove file /storage/0373/doc_00063837 [00:06:16]file doc_00063838 [00:06:16]remove file /storage/0373/doc_00063838 [00:06:16]file doc_00063839 [00:06:16]remove file /storage/0373/doc_00063839 [00:06:16]file doc_00063840 [00:06:16]remove file /storage/0373/doc_00063840 [00:06:16]file doc_00063841 [00:06:16]remove file /storage/0373/doc_00063841 [00:06:16]file doc_00063842 [00:06:16]remove file /storage/0373/doc_00063842 [00:06:16]file doc_00063843 [00:06:16]remove file /storage/0373/doc_00063843 [00:06:16]file doc_00063844 [00:06:16]remove file /storage/0373/doc_00063844 [00:06:16]file doc_00063845 [00:06:16]remove file /storage/0373/doc_00063845 [00:06:16]file doc_00063846 [00:06:16]remove file /storage/0373/doc_00063846 [00:06:16]file doc_00063847 [00:06:16]remove file /storage/0373/doc_00063847 [00:06:16]file doc_00063848 [00:06:16]remove file /storage/0373/doc_00063848 [00:06:16]file doc_00063849 [00:06:16]remove file /storage/0373/doc_00063849 [00:06:16]file doc_00063850 [00:06:16]remove file /storage/0373/doc_00063850 [00:06:16]file doc_00063851 [00:06:16]remove file /storage/0373/doc_00063851 [00:06:16]file doc_00063852 [00:06:16]remove file /storage/0373/doc_00063852 [00:06:16]file doc_00063853 [00:06:16]remove file /storage/0373/doc_00063853 [00:06:16]file doc_00063854 [00:06:16]remove file /storage/0373/doc_00063854 [00:06:16]file doc_00063855 [00:06:16]remove file /storage/0373/doc_00063855 [00:06:16]file doc_00063856 [00:06:16]remove file /storage/0373/doc_00063856 [00:06:16]file doc_00063857 [00:06:16]remove file /storage/0373/doc_00063857 [00:06:16]file doc_00063858 [00:06:16]remove file /storage/0373/doc_00063858 [00:06:16]file doc_00063859 [00:06:16]remove file /storage/0373/doc_00063859 [00:06:16]file doc_00063860 [00:06:16]remove file /storage/0373/doc_00063860 [00:06:16]file doc_00063861 [00:06:16]remove file /storage/0373/doc_00063861 [00:06:16]file doc_00063862 [00:06:16]remove file /storage/0373/doc_00063862 [00:06:16]file doc_00063863 [00:06:16]remove file /storage/0373/doc_00063863 [00:06:16]file doc_00063864 [00:06:16]remove file /storage/0373/doc_00063864 [00:06:16]file doc_00063865 [00:06:16]remove file /storage/0373/doc_00063865 [00:06:16]file doc_00063866 [00:06:16]remove file /storage/0373/doc_00063866 [00:06:16]file doc_00063867 [00:06:16]remove file /storage/0373/doc_00063867 [00:06:16]file doc_00063868 [00:06:16]remove file /storage/0373/doc_00063868 [00:06:16]file doc_00063869 [00:06:16]remove file /storage/0373/doc_00063869 [00:06:16]file doc_00063870 [00:06:16]remove file /storage/0373/doc_00063870 [00:06:16]file doc_00063871 [00:06:16]remove file /storage/0373/doc_00063871 [00:06:16]file doc_00063872 [00:06:16]remove file /storage/0373/doc_00063872 [00:06:16]file doc_00063873 [00:06:16]remove file /storage/0373/doc_00063873 [00:06:16]file doc_00063874 [00:06:16]remove file /storage/0373/doc_00063874 [00:06:16]file doc_00063875 [00:06:16]remove file /storage/0373/doc_00063875 [00:06:16]file doc_00063876 [00:06:16]remove file /storage/0373/doc_00063876 [00:06:16]file doc_00063877 [00:06:16]remove file /storage/0373/doc_00063877 [00:06:16]file doc_00063878 [00:06:16]remove file /storage/0373/doc_00063878 [00:06:16]file doc_00063879 [00:06:16]remove file /storage/0373/doc_00063879 [00:06:16]file doc_00063880 [00:06:16]remove file /storage/0373/doc_00063880 [00:06:16]file doc_00063881 [00:06:16]remove file /storage/0373/doc_00063881 [00:06:16]file doc_00063882 [00:06:16]remove file /storage/0373/doc_00063882 [00:06:16]file doc_00063883 [00:06:16]remove file /storage/0373/doc_00063883 [00:06:16]file doc_00063884 [00:06:16]remove file /storage/0373/doc_00063884 [00:06:16]file doc_00063885 [00:06:16]remove file /storage/0373/doc_00063885 [00:06:16]file doc_00063886 [00:06:16]remove file /storage/0373/doc_00063886 [00:06:16]file doc_00063887 [00:06:16]remove file /storage/0373/doc_00063887 [00:06:16]file doc_00063888 [00:06:16]remove file /storage/0373/doc_00063888 [00:06:16]file doc_00063889 [00:06:16]remove file /storage/0373/doc_00063889 [00:06:16]file doc_00063890 [00:06:16]remove file /storage/0373/doc_00063890 [00:06:16]file doc_00063891 [00:06:16]remove file /storage/0373/doc_00063891 [00:06:16]file doc_00063892 [00:06:16]remove file /storage/0373/doc_00063892 [00:06:16]file doc_00063893 [00:06:16]remove file /storage/0373/doc_00063893 [00:06:16]file doc_00063894 [00:06:16]remove file /storage/0373/doc_00063894 [00:06:16]file doc_00063895 [00:06:16]remove file /storage/0373/doc_00063895 [00:06:16]file doc_00063896 [00:06:16]remove file /storage/0373/doc_00063896 [00:06:16]file doc_00063897 [00:06:16]remove file /storage/0373/doc_00063897 [00:06:16]file doc_00063898 [00:06:16]remove file /storage/0373/doc_00063898 [00:06:16]file doc_00063899 [00:06:16]remove file /storage/0373/doc_00063899 [00:06:16]file doc_00063900 [00:06:16]remove file /storage/0373/doc_00063900 [00:06:16]file doc_00063901 [00:06:16]remove file /storage/0373/doc_00063901 [00:06:16]file doc_00063902 [00:06:16]remove file /storage/0373/doc_00063902 [00:06:16]file doc_00063903 [00:06:16]remove file /storage/0373/doc_00063903 [00:06:16]file doc_00063904 [00:06:16]remove file /storage/0373/doc_00063904 [00:06:16]file doc_00063905 [00:06:16]remove file /storage/0373/doc_00063905 [00:06:16]file doc_00063906 [00:06:16]remove file /storage/0373/doc_00063906 [00:06:16]file doc_00063907 [00:06:16]remove file /storage/0373/doc_00063907 [00:06:16]file doc_00063908 [00:06:16]remove file /storage/0373/doc_00063908 [00:06:16]file doc_00063909 [00:06:16]remove file /storage/0373/doc_00063909 [00:06:16]file doc_00063910 [00:06:16]remove file /storage/0373/doc_00063910 [00:06:16]file doc_00063911 [00:06:16]remove file /storage/0373/doc_00063911 [00:06:16]file doc_00063912 [00:06:16]remove file /storage/0373/doc_00063912 [00:06:16]file doc_00063913 [00:06:16]remove file /storage/0373/doc_00063913 [00:06:16]file doc_00063914 [00:06:16]remove file /storage/0373/doc_00063914 [00:06:16]remove dir /storage/0373 [00:06:16]ProcessDocumentItem done err = 0, tmpTLVsize=273 [00:06:16]tlvbuf is 012CD3A0 [00:06:16]SAM_PROTO_ClearQueue [00:06:16]wFMCommunicate request_size=4 [00:06:16]MH_SAM_APDU [00:06:16]CAPDU: 80 09 00 00 [00:06:16]Write to MH i2c: E2 08 00 25 02 80 09 00 00 00 00 00 00 99 [00:06:16]Write i2c OK [00:06:16]MH_I2C_Read... [00:06:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:06:16]Read from MH i2c: E2 [00:06:16]MH_I2C_Read... [00:06:16]Read from MH i2c: E2 03 00 [00:06:16]MH_I2C_Read... [00:06:16]Read from MH i2c: E2 03 00 25 02 00 90 00 9B [00:06:16]RAPDU: 90 00 [00:06:16]wFMCommunicate OK [00:06:16]SAM_PROTO_ClearQueue done [00:06:16]KKMCreateOFDPacket [00:06:16]OFDProtocolAddRootSTLVToBuf [00:06:16]FM_MakeSignedData [00:06:16]FM_MakeSignedData [00:06:16]SAM_PROTO_SignData [00:06:16]wFMCommunicate request_size=4 [00:06:16]MH_SAM_APDU [00:06:16]CAPDU: 80 0D 01 02 [00:06:16]Write to MH i2c: E2 08 00 26 02 80 0D 01 02 00 00 00 00 A1 [00:06:16]Write i2c OK [00:06:16]MH_I2C_Read... [00:06:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:06:16]Read from MH i2c: E2 [00:06:16]MH_I2C_Read... [00:06:16]Read from MH i2c: E2 03 00 [00:06:16]MH_I2C_Read... [00:06:16]Read from MH i2c: E2 03 00 26 02 00 90 00 9C [00:06:16]RAPDU: 90 00 [00:06:16]wFMCommunicate OK [00:06:16]wFMCommunicate request_size=255 [00:06:16]MH_SAM_APDU [00:06:16]CAPDU: 80 0D 02 02 FA 02 00 11 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 11 00 D0 A1 D0 B8 D0 BA D1 81 D0 B0 D0 B9 20 D0 9A 2E 20 F1 03 69 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 9A D0 B0 D1 80 D0 B0 D0 BA D0 BE D0 BB 2C 20 D1 83 D0 BB 2E 20 D0 9F D1 80 D0 B5 D0 B6 D0 B5 D0 B2 D0 B0 D0 BB D1 8C D1 81 D0 BA D0 BE D0 B3 D0 BE 20 31 30 31 2F 31 20 28 D0 BA D0 BE D0 BB D1 8C D1 86 D0 BE 29 2C 20 34 32 2E 35 30 30 31 34 30 2C 20 37 38 2E 33 38 36 35 39 37 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 31 37 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 76 5A 5E 66 0E 04 04 00 76 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 AB F9 00 00 11 04 10 [00:06:16]Write to MH i2c: E2 02 01 27 02 80 0D 02 02 FA 00 02 00 11 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 11 00 D0 A1 D0 B8 D0 BA D1 81 D0 B0 D0 B9 20 D0 9A 2E 20 F1 03 69 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 9A D0 B0 D1 80 D0 B0 D0 BA D0 BE D0 BB 2C 20 D1 83 D0 BB 2E 20 D0 9F D1 80 D0 B5 D0 B6 D0 B5 D0 B2 D0 B0 D0 BB D1 8C D1 81 D0 BA D0 BE D0 B3 D0 BE 20 31 30 31 2F 31 20 28 D0 BA D0 BE D0 BB D1 8C D1 86 D0 BE 29 2C 20 34 32 2E 35 30 30 31 34 30 2C 20 37 38 2E 33 38 36 35 39 37 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 31 37 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 76 5A 5E 66 0E 04 04 00 76 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 AB F9 00 00 11 04 10 00 00 5D [00:06:16]Write i2c OK [00:06:16]MH_I2C_Read... [00:06:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:06:17]Read from MH i2c: E2 [00:06:17]MH_I2C_Read... [00:06:17]Read from MH i2c: E2 03 00 [00:06:17]MH_I2C_Read... [00:06:17]Read from MH i2c: E2 03 00 27 02 00 90 00 9D [00:06:17]RAPDU: 90 00 [00:06:17]wFMCommunicate OK [00:06:17]wFMCommunicate request_size=32 [00:06:17]MH_SAM_APDU [00:06:17]CAPDU: 80 0D 02 02 1B 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 35 04 06 00 28 8E D5 32 56 3B [00:06:17]Write to MH i2c: E2 23 00 28 02 80 0D 02 02 1B 00 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 35 04 06 00 28 8E D5 32 56 3B 00 00 86 [00:06:17]Write i2c OK [00:06:17]MH_I2C_Read... [00:06:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:06:17]Read from MH i2c: E2 [00:06:17]MH_I2C_Read... [00:06:17]Read from MH i2c: E2 03 00 [00:06:17]MH_I2C_Read... [00:06:17]Read from MH i2c: E2 03 00 28 02 00 90 00 9E [00:06:17]RAPDU: 90 00 [00:06:17]wFMCommunicate OK [00:06:17]wFMCommunicate request_size=4 [00:06:17]MH_SAM_APDU [00:06:17]CAPDU: 80 0D 03 02 [00:06:17]Write to MH i2c: E2 08 00 29 02 80 0D 03 02 00 00 00 00 A6 [00:06:17]Write i2c OK [00:06:17]MH_I2C_Read... [00:06:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:06:17]Read from MH i2c: E2 [00:06:17]MH_I2C_Read... [00:06:17]Read from MH i2c: E2 0B 00 [00:06:17]MH_I2C_Read... [00:06:17]Read from MH i2c: E2 0B 00 29 02 00 46 77 C1 12 07 FE 76 C0 90 00 72 [00:06:17]RAPDU: 46 77 C1 12 07 FE 76 C0 90 00 [00:06:17]wFMCommunicate OK [00:06:17]SAM_PROTO_SignData done [00:06:17]FM_MakeSignedData done [00:06:17]CreateOFDProtocolMessage [00:06:17]wFMCommunicate request_size=4 [00:06:17]MH_SAM_APDU [00:06:17]CAPDU: 80 11 00 00 [00:06:17]Write to MH i2c: E2 08 00 2A 02 80 11 00 00 00 00 00 00 A6 [00:06:17]Write i2c OK [00:06:17]MH_I2C_Read... [00:06:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:06:17]Read from MH i2c: E2 [00:06:17]MH_I2C_Read... [00:06:17]Read from MH i2c: E2 17 00 [00:06:17]MH_I2C_Read... [00:06:17]Read from MH i2c: E2 17 00 2A 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 F8 [00:06:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [00:06:17]wFMCommunicate OK [00:06:17]CreateOFDProtocolMessage done [00:06:17]OFDSenderStorePacket 63915 [00:06:17]StoreOFDPacket docnum=63915 [00:06:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 25 01 00 00 CD E1 1D 01 B4 0E 5A 02 01 00 02 00 11 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 11 00 D0 A1 D0 B8 D0 BA D1 81 D0 B0 D0 B9 20 D0 9A 2E 20 F1 03 69 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 9A D0 B0 D1 80 D0 B0 D0 BA D0 BE D0 BB 2C 20 D1 83 D0 BB 2E 20 D0 9F D1 80 D0 B5 D0 B6 D0 B5 D0 B2 D0 B0 D0 BB D1 8C D1 81 D0 BA D0 BE D0 B3 D0 BE 20 31 30 31 2F 31 20 28 D0 BA D0 BE D0 BB D1 8C D1 86 D0 BE 29 2C 20 34 32 2E 35 30 30 31 34 30 2C 20 37 38 2E 33 38 36 35 39 37 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 31 37 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 76 5A 5E 66 0E 04 04 00 76 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 AB F9 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 35 04 06 00 28 8E D5 32 56 3B 46 77 C1 12 07 FE 76 C0 [00:06:17]CheckFolder [00:06:17]dirname=/storage/ofd_packets [00:06:17]CheckFolder done [00:06:17]ProducePacketName [00:06:17]name=ofd_packets/00063915 [00:06:17]NVStorageSaveData ofd_packets/00063915 [00:06:17]File name is /storage/ofd_packets/00063915 [00:06:17]Write 323 bytes [00:06:17]NVStorageSaveData done [00:06:17]OFDSenderStorePacket done [00:06:17]KKMCreateOFDPacket done [00:06:17]NVStorageSaveData kkm_last_timestamp [00:06:17]File name is /storage/kkm_last_timestamp [00:06:17]Write 4 bytes [00:06:17]OFD Sender: Processing packet 63915 [packets to send 14, broken 13] [00:06:17]ProducePacketName [00:06:17]name=ofd_packets/00063915 [00:06:17]OFD Sender: To server: pG, [00:06:17]CommunicateWithHost lk.salyk.kg:30040 [00:06:17]ConnectInit lk.salyk.kg [00:06:17]NVStorageSaveData done [00:06:17]ExternCall_PrintAddStr [00:06:17]wPrintStart [00:06:17]Write to MH i2c: 01 00 00 2B 02 2D [00:06:17]Write i2c OK [00:06:17]MH_I2C_Read... [00:06:17]Read from MH i2c: 01 [00:06:17]MH_I2C_Read... [00:06:17]Read from MH i2c: 01 07 00 [00:06:17]MH_I2C_Read... [00:06:17]Read from MH i2c: 01 07 00 2B 02 00 00 00 00 00 FF 0F 42 [00:06:17]RasterBufferAndPrint [00:06:17]line Отчет об открытии смены [00:06:17]line ФФД: 1.0 [00:06:17]line ИНН: 02508201610067 [00:06:17]line Кассир: Сиксай К. [00:06:17]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [00:06:17]line Место: АЗС № 117 "Партнер Нефть" [00:06:17]line 04.06.2024 00:06 [00:06:17]line Смена: 374 [00:06:17]line РНМ: 0000000000092737 [00:06:17]line ЗНМ: 0300000031 [00:06:17]line ФД: 63915 [00:06:17]line ФМ: 0000000000875074 [00:06:17]line ФПД: 44593927312955 [00:06:17]written 0, free lines is 4095 [00:06:17]Connected sock=10 [00:06:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 25 01 00 00 CD E1 1D 01 B4 0E 5A 02 01 00 02 00 11 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 11 00 D0 A1 D0 B8 D0 BA D1 81 D0 B0 D0 B9 20 D0 9A 2E 20 F1 03 69 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 9A D0 B0 D1 80 D0 B0 D0 BA D0 BE D0 BB 2C 20 D1 83 D0 BB 2E 20 D0 9F D1 80 D0 B5 D0 B6 D0 B5 D0 B2 D0 B0 D0 BB D1 8C D1 81 D0 BA D0 BE D0 B3 D0 BE 20 31 30 31 2F 31 20 28 D0 BA D0 BE D0 BB D1 8C D1 86 D0 BE 29 2C 20 34 32 2E 35 30 30 31 34 30 2C 20 37 38 2E 33 38 36 35 39 37 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 31 37 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 76 5A 5E 66 0E 04 04 00 76 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 AB F9 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 35 04 06 00 28 8E D5 32 56 3B 46 77 C1 12 07 FE 76 C0 [00:06:17]Write to MH i2c: 01 00 00 3D 02 3F [00:06:17]Write i2c OK [00:06:17]MH_I2C_Read... [00:06:17]Read from MH i2c: 01 [00:06:17]MH_I2C_Read... [00:06:17]Read from MH i2c: 01 07 00 [00:06:17]MH_I2C_Read... [00:06:17]Read from MH i2c: 01 07 00 3D 02 00 00 00 00 00 60 0E B4 [00:06:17]RasterBufferAndPrint [00:06:17]line [00:06:17]line [00:06:17]line [00:06:17]line [00:06:17]line [00:06:17]written 0, free lines is 3694 [00:06:17]MH_Cut [00:06:17]Write to MH i2c: D1 01 00 44 02 01 18 [00:06:17]Write i2c OK [00:06:17]MH_I2C_Read... [00:06:17]Read from MH i2c: D1 [00:06:17]MH_I2C_Read... [00:06:17]Read from MH i2c: D1 01 00 [00:06:17]MH_I2C_Read... [00:06:17]Read from MH i2c: D1 01 00 44 02 00 17 [00:06:17]Write to MH i2c: 01 00 00 45 02 47 [00:06:17]Write i2c OK [00:06:17]MH_I2C_Read... [00:06:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 96 35 47 00 51 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 35 30 37 34 10 04 04 00 AB F9 00 00 F4 03 04 00 47 06 5E 66 B6 04 01 00 00 05 39 40 2D D0 57 90 6A [00:06:17]CommunicateWithHost err = 0 [00:06:17]CheckOFDResponse [00:06:17]1017 (14) - 77093643461234 [00:06:17]1041 (16) - 0000000000875074 [00:06:17]1040 (4) - 63915 [00:06:17]1012 (4) - 03.06.2024 18:07 [00:06:17]1206 (1) - 0 [00:06:17]OFD Sender: Remove packet 63915 [00:06:17]ProducePacketName [00:06:17]name=ofd_packets/00063915 [00:06:17]NVStorageDeleteData [00:06:18]*** Cut start [00:06:18]*** Partial cut [00:06:18]*** CUTSNS_PIN = 1 [00:06:18]*** CUTSNS_PIN = 0 [00:06:18]OFD Sender: No OFD packet to send [00:06:18]*** Brake cut motor [00:06:18]Read from MH i2c: 01 [00:06:18]MH_I2C_Read... [00:06:18]*** Stop cut motor [00:06:18]*** Cut end [00:06:18]Read from MH i2c: 01 07 00 [00:06:18]MH_I2C_Read... [00:06:18]Read from MH i2c: 01 07 00 45 02 00 00 00 00 00 FF 0F 5C [00:06:18]process_action open_shift done [00:06:18]requested_data is exist [00:06:18]produce_requested_data [00:06:18]requested_item fd.num is exist - process it [00:06:18]SAM_PROTO_GetFieldsCounters [00:06:18]wFMCommunicate request_size=4 [00:06:18]MH_SAM_APDU [00:06:18]CAPDU: 80 13 00 00 [00:06:18]Write to MH i2c: E2 08 00 46 02 80 13 00 00 00 00 00 00 C4 [00:06:18]Write i2c OK [00:06:18]MH_I2C_Read... [00:06:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:06:18]Read from MH i2c: E2 [00:06:18]MH_I2C_Read... [00:06:18]Read from MH i2c: E2 62 00 [00:06:18]MH_I2C_Read... [00:06:18]Read from MH i2c: E2 62 00 46 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 AB F9 00 00 0E 04 04 00 76 01 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 02 [00:06: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 AB F9 00 00 0E 04 04 00 76 01 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:06:18]wFMCommunicate OK [00:06:18]SAM_PROTO_GetFieldsCounters done [00:06:18]requested_item shift.num is exist - process it [00:06:18]requested_item shift.opened is exist - process it [00:06:18]req_shift_opened [00:06:18]FM_GetShiftState [00:06:18]SAM_PROTO_GetShiftState [00:06:18]wFMCommunicate request_size=4 [00:06:18]MH_SAM_APDU [00:06:18]CAPDU: 80 13 01 00 [00:06:18]Write to MH i2c: E2 08 00 47 02 80 13 01 00 00 00 00 00 C6 [00:06:18]Write i2c OK [00:06:18]MH_I2C_Read... [00:06:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:06:18]Read from MH i2c: E2 [00:06:18]MH_I2C_Read... [00:06:18]Read from MH i2c: E2 0E 00 [00:06:18]MH_I2C_Read... [00:06:18]Read from MH i2c: E2 0E 00 47 02 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 66 [00:06:18]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [00:06:18]wFMCommunicate OK [00:06:18]SAM_PROTO_GetShiftState done [00:06:18]FM_GetShiftState done [00:06:18]req_shift_opened done [00:06:18]requested_item shift.open_date is exist - process it [00:06:18]req_shift_open_date [00:06:18]req_shift_open_date done [00:06:18]produce_requested_data done [00:06:18]produce_requested_data return {"fd.num":63915,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [00:06:18]process_action_free open_shift [00:06:18]json_value_free [00:06:18]json_value_free done [00:06:18]process_json_proto returns [00:06:18]Send response to host [00:06:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":63915,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [00:06:18]free response buf [00:06:18]execute_script done [00:06:18]execute_script returns [00:06:18]free content buf [00:06:18]Sock 9.Close socket [00:06:18]Sock 9.Thread stoped [00:06:18]accept exits with 7 [00:06:18]New connection [00:06:18]New thread 3067055460 created [00:06:18]Thread 3066912100 joined [00:06:18]Waiting for new connection... [00:06:18] Sock 7.Parse request [00:06:18]Sock 7.Check first char [00:06:18]Sock 7.First char is OK [00:06:18]request: POST /json_proto HTTP/1.0 [00:06:18]Method: POST [00:06:18]URL: /json_proto [00:06:18]Method is POST - this is cgi request [00:06:18]url: /json_proto [00:06:18]query_string will be loaded in cgi processing [00:06:18]execute_cgi json_proto POST (null) [00:06:18]execute_cgi path=json_proto method=POST [00:06:18]POST find Content-Length [00:06:18]Host: 172.17.60.69:8080 [00:06:18]Content-Length: 331 [00:06:18]Content-Type: application/json [00:06:18] [00:06:18]POST finish read [00:06:18]Found Content-Length = 331 [00:06: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:06:18]execute_script... [00:06: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:06:18]POST & json_proto [00:06:18]process_json_proto [00:06:18]json parsed OK: [00:06:18]protocol is kg_v1.0 [00:06:18]action value=get_value [00:06:18]process_action get_value [00:06:18]cmd_get_value [00:06:18]process_action get_value done [00:06:18]requested_data is exist [00:06:18]produce_requested_data [00:06:18]requested_item fm.sale.total is exist - process it [00:06:18]SAM_PROTO_GetFMData [00:06:18]wFMCommunicate request_size=4 [00:06:18]MH_SAM_APDU [00:06:18]CAPDU: 80 13 03 00 [00:06:18]Write to MH i2c: E2 08 00 48 02 80 13 03 00 00 00 00 00 C9 [00:06:18]Write i2c OK [00:06:18]MH_I2C_Read... [00:06:19]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:06:19]Read from MH i2c: E2 [00:06:19]MH_I2C_Read... [00:06:19]Read from MH i2c: E2 FD 00 [00:06:19]MH_I2C_Read... [00:06:19]Read from MH i2c: E2 FD 00 48 02 00 C5 04 85 04 C1 04 6E 04 04 00 BF F6 00 00 69 04 A1 00 6F 04 04 00 5F F4 00 00 B1 04 04 00 B1 00 C4 76 70 04 04 00 96 B7 05 66 72 04 04 00 1B 49 BE 10 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 46 29 9D 0C 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 15 05 0D 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 60 02 00 00 B1 04 04 00 E4 BA 80 03 70 04 04 00 60 5F 65 03 72 04 03 00 84 5B 1B 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 84 3C 5F EF 03 09 90 00 CB [00:06:19]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 BF F6 00 00 69 04 A1 00 6F 04 04 00 5F F4 00 00 B1 04 04 00 B1 00 C4 76 70 04 04 00 96 B7 05 66 72 04 04 00 1B 49 BE 10 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 46 29 9D 0C 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 15 05 0D 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 60 02 00 00 B1 04 04 00 E4 BA 80 03 70 04 04 00 60 5F 65 03 72 04 03 00 84 5B 1B 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 84 3C 5F EF 03 09 90 00 [00:06:19]wFMCommunicate OK [00:06:19]wFMCommunicate request_size=4 [00:06:19]MH_SAM_APDU [00:06:19]CAPDU: 80 17 00 00 [00:06:19]Write to MH i2c: E2 08 00 49 02 80 17 00 00 00 00 00 00 CB [00:06:19]Write i2c OK [00:06:19]MH_I2C_Read... [00:06:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:19]Read from MH i2c: E2 [00:06:19]MH_I2C_Read... [00:06:19]Read from MH i2c: E2 FD 00 [00:06:19]MH_I2C_Read... [00:06:19]Read from MH i2c: E2 FD 00 49 02 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 7A EF 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 F1 [00:06:19]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 7A EF 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [00:06:19]wFMCommunicate OK [00:06:19]wFMCommunicate request_size=4 [00:06:19]MH_SAM_APDU [00:06:19]CAPDU: 80 17 00 00 [00:06:19]Write to MH i2c: E2 08 00 4A 02 80 17 00 00 00 00 00 00 CC [00:06:19]Write i2c OK [00:06:19]MH_I2C_Read... [00:06:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:20]Read from MH i2c: E2 [00:06:20]MH_I2C_Read... [00:06:20]Read from MH i2c: E2 FD 00 [00:06:20]MH_I2C_Read... [00:06:20]Read from MH i2c: E2 FD 00 4A 02 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 DE [00:06:20]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [00:06:20]wFMCommunicate OK [00:06:20]wFMCommunicate request_size=4 [00:06:20]MH_SAM_APDU [00:06:20]CAPDU: 80 17 00 00 [00:06:20]Write to MH i2c: E2 08 00 4B 02 80 17 00 00 00 00 00 00 CD [00:06:20]Write i2c OK [00:06:20]MH_I2C_Read... [00:06:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:20]Read from MH i2c: E2 [00:06:20]MH_I2C_Read... [00:06:20]Read from MH i2c: E2 FD 00 [00:06:20]MH_I2C_Read... [00:06:20]Read from MH i2c: E2 FD 00 4B 02 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 59 [00:06:20]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [00:06:20]wFMCommunicate OK [00:06:20]wFMCommunicate request_size=4 [00:06:20]MH_SAM_APDU [00:06:20]CAPDU: 80 17 00 00 [00:06:20]Write to MH i2c: E2 08 00 4C 02 80 17 00 00 00 00 00 00 CE [00:06:20]Write i2c OK [00:06:20]MH_I2C_Read... [00:06:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:06:20]Read from MH i2c: E2 [00:06:20]MH_I2C_Read... [00:06:20]Read from MH i2c: E2 E2 00 [00:06:20]MH_I2C_Read... [00:06:20]Read from MH i2c: E2 E2 00 4C 02 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 AC [00:06:20]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:06:21]wFMCommunicate OK [00:06:21]SAM_PROTO_GetFMData done [00:06:21]requested_item fm.sale_refund.total is exist - process it [00:06:21]requested_item fm.buy.total is exist - process it [00:06:21]requested_item shift.sale.total is exist - process it [00:06:21]SAM_PROTO_GetShiftData [00:06:21]wFMCommunicate request_size=4 [00:06:21]MH_SAM_APDU [00:06:21]CAPDU: 80 13 02 00 [00:06:21]Write to MH i2c: E2 08 00 4D 02 80 13 02 00 00 00 00 00 CD [00:06:21]Write i2c OK [00:06:21]MH_I2C_Read... [00:06:21]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:06:21]Read from MH i2c: E2 [00:06:21]MH_I2C_Read... [00:06:21]Read from MH i2c: E2 FD 00 [00:06:21]MH_I2C_Read... [00:06:21]Read from MH i2c: E2 FD 00 4D 02 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 40 [00:06:21]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:06:21]wFMCommunicate OK [00:06:21]wFMCommunicate request_size=4 [00:06:21]MH_SAM_APDU [00:06:21]CAPDU: 80 17 00 00 [00:06:21]Write to MH i2c: E2 08 00 4E 02 80 17 00 00 00 00 00 00 D0 [00:06:21]Write i2c OK [00:06:21]MH_I2C_Read... [00:06:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:21]Read from MH i2c: E2 [00:06:21]MH_I2C_Read... [00:06:21]Read from MH i2c: E2 FD 00 [00:06:21]MH_I2C_Read... [00:06:21]Read from MH i2c: E2 FD 00 4E 02 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 D8 [00:06:22]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:06:22]wFMCommunicate OK [00:06:22]wFMCommunicate request_size=4 [00:06:22]MH_SAM_APDU [00:06:22]CAPDU: 80 17 00 00 [00:06:22]Write to MH i2c: E2 08 00 4F 02 80 17 00 00 00 00 00 00 D1 [00:06:22]Write i2c OK [00:06:22]MH_I2C_Read... [00:06:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:22]Read from MH i2c: E2 [00:06:22]MH_I2C_Read... [00:06:22]Read from MH i2c: E2 FD 00 [00:06:22]MH_I2C_Read... [00:06:22]Read from MH i2c: E2 FD 00 4F 02 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 A3 [00:06:22]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:06:22]wFMCommunicate OK [00:06:22]wFMCommunicate request_size=4 [00:06:22]MH_SAM_APDU [00:06:22]CAPDU: 80 17 00 00 [00:06:22]Write to MH i2c: E2 08 00 50 02 80 17 00 00 00 00 00 00 D2 [00:06:22]Write i2c OK [00:06:22]MH_I2C_Read... [00:06:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:22]Read from MH i2c: E2 [00:06:22]MH_I2C_Read... [00:06:22]Read from MH i2c: E2 FD 00 [00:06:22]MH_I2C_Read... [00:06:22]Read from MH i2c: E2 FD 00 50 02 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 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 44 [00:06: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:06:23]wFMCommunicate OK [00:06:23]wFMCommunicate request_size=4 [00:06:23]MH_SAM_APDU [00:06:23]CAPDU: 80 17 00 00 [00:06:23]Write to MH i2c: E2 08 00 51 02 80 17 00 00 00 00 00 00 D3 [00:06:23]Write i2c OK [00:06:23]MH_I2C_Read... [00:06:23]OFD Sender: No OFD packet to send [00:06:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:06:23]Read from MH i2c: E2 [00:06:23]MH_I2C_Read... [00:06:23]Read from MH i2c: E2 BD 00 [00:06:23]MH_I2C_Read... [00:06:23]Read from MH i2c: E2 BD 00 51 02 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 B9 [00:06:23]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:06:23]wFMCommunicate OK [00:06:23]SAM_PROTO_GetShiftData done [00:06:23]requested_item shift.sale.total_cash is exist - process it [00:06:23]requested_item shift.sale_refund.total is exist - process it [00:06:23]requested_item shift.sale_refund.total_cash is exist - process it [00:06:23]requested_item shift.buy.total is exist - process it [00:06:23]requested_item shift.buy.total_cash is exist - process it [00:06:23]produce_requested_data done [00:06:23]produce_requested_data return {"fm.sale.total":19925567.21,"fm.sale_refund.total":587681.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:06:23]process_action_free get_value [00:06:23]json_value_free [00:06:23]json_value_free done [00:06:23]process_json_proto returns [00:06:23]Send response to host [00:06:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":19925567.21,"fm.sale_refund.total":587681.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:06:23]free response buf [00:06:23]execute_script done [00:06:23]execute_script returns [00:06:23]free content buf [00:06:23]Sock 7.Close socket [00:06:23]Sock 7.Thread stoped [00:06:28]OFD Sender: No OFD packet to send [00:06:33]OFD Sender: No OFD packet to send [00:06:38]OFD Sender: No OFD packet to send [00:06:43]OFD Sender: No OFD packet to send [00:06:48]OFD Sender: No OFD packet to send [00:06:53]OFD Sender: No OFD packet to send [00:06:58]OFD Sender: No OFD packet to send [00:07:03]OFD Sender: No OFD packet to send [00:07:08]OFD Sender: No OFD packet to send [00:07:13]OFD Sender: No OFD packet to send [00:07:18]OFD Sender: No OFD packet to send [00:07:23]OFD Sender: No OFD packet to send [00:07:28]OFD Sender: No OFD packet to send [00:07:33]OFD Sender: No OFD packet to send [00:07:38]OFD Sender: No OFD packet to send [00:07:43]OFD Sender: No OFD packet to send [00:07:48]OFD Sender: No OFD packet to send [00:07:53]OFD Sender: No OFD packet to send [00:07:58]OFD Sender: No OFD packet to send [00:08:03]OFD Sender: No OFD packet to send [00:08:08]OFD Sender: No OFD packet to send [00:08:10]accept exits with 9 [00:08:10]New connection [00:08:10]New thread 3066912100 created [00:08:10]Thread 3067055460 joined [00:08:10]Waiting for new connection... [00:08:10] Sock 9.Parse request [00:08:10]Sock 9.Check first char [00:08:10]Sock 9.First char is OK [00:08:10]request: POST /json_proto HTTP/1.0 [00:08:10]Method: POST [00:08:10]URL: /json_proto [00:08:10]Method is POST - this is cgi request [00:08:10]url: /json_proto [00:08:10]query_string will be loaded in cgi processing [00:08:10]execute_cgi json_proto POST (null) [00:08:10]execute_cgi path=json_proto method=POST [00:08:10]POST find Content-Length [00:08:10]Host: 172.17.60.69:8080 [00:08:10]Content-Length: 215 [00:08:10]Content-Type: application/json [00:08:10] [00:08:10]POST finish read [00:08:10]Found Content-Length = 215 [00:08: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:08:10]execute_script... [00:08: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:08:10]POST & json_proto [00:08:10]process_json_proto [00:08:10]json parsed OK: [00:08:10]protocol is kg_v1.0 [00:08:10]action value=get_value [00:08:10]process_action get_value [00:08:10]cmd_get_value [00:08:10]process_action get_value done [00:08:10]requested_data is exist [00:08:10]produce_requested_data [00:08:10]requested_item kkm.sn is exist - process it [00:08:10]requested_item kkm.ver is exist - process it [00:08:10]requested_item fm.sn is exist - process it [00:08:10]wFMCommunicate request_size=4 [00:08:10]MH_SAM_APDU [00:08:10]CAPDU: 80 11 00 00 [00:08:10]Write to MH i2c: E2 08 00 52 02 80 11 00 00 00 00 00 00 CE [00:08:10]Write i2c OK [00:08:10]MH_I2C_Read... [00:08:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:08:10]Read from MH i2c: E2 [00:08:10]MH_I2C_Read... [00:08:10]Read from MH i2c: E2 17 00 [00:08:10]MH_I2C_Read... [00:08:10]Read from MH i2c: E2 17 00 52 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 20 [00:08:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [00:08:10]wFMCommunicate OK [00:08:10]requested_item fd.num is exist - process it [00:08:10]SAM_PROTO_GetFieldsCounters [00:08:10]wFMCommunicate request_size=4 [00:08:10]MH_SAM_APDU [00:08:10]CAPDU: 80 13 00 00 [00:08:10]Write to MH i2c: E2 08 00 53 02 80 13 00 00 00 00 00 00 D1 [00:08:10]Write i2c OK [00:08:10]MH_I2C_Read... [00:08:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:08:10]Read from MH i2c: E2 [00:08:10]MH_I2C_Read... [00:08:10]Read from MH i2c: E2 62 00 [00:08:10]MH_I2C_Read... [00:08:10]Read from MH i2c: E2 62 00 53 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 AB F9 00 00 0E 04 04 00 76 01 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 0F [00:08: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 AB F9 00 00 0E 04 04 00 76 01 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:08:10]wFMCommunicate OK [00:08:10]SAM_PROTO_GetFieldsCounters done [00:08:10]requested_item shift.num is exist - process it [00:08:10]requested_item shift.opened is exist - process it [00:08:10]req_shift_opened [00:08:10]FM_GetShiftState [00:08:10]SAM_PROTO_GetShiftState [00:08:10]wFMCommunicate request_size=4 [00:08:10]MH_SAM_APDU [00:08:10]CAPDU: 80 13 01 00 [00:08:10]Write to MH i2c: E2 08 00 54 02 80 13 01 00 00 00 00 00 D3 [00:08:10]Write i2c OK [00:08:10]MH_I2C_Read... [00:08:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:08:10]Read from MH i2c: E2 [00:08:10]MH_I2C_Read... [00:08:10]Read from MH i2c: E2 0E 00 [00:08:10]MH_I2C_Read... [00:08:10]Read from MH i2c: E2 0E 00 54 02 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 73 [00:08:10]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [00:08:10]wFMCommunicate OK [00:08:10]SAM_PROTO_GetShiftState done [00:08:10]FM_GetShiftState done [00:08:10]req_shift_opened done [00:08:10]requested_item shift.open_date is exist - process it [00:08:10]req_shift_open_date [00:08:10]req_shift_open_date done [00:08:10]produce_requested_data done [00:08:10]produce_requested_data return {"kkm.sn":"0300000031","kkm.ver":"001","fm.sn":"0000000000875074","fd.num":63915,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [00:08:10]process_action_free get_value [00:08:10]json_value_free [00:08:10]json_value_free done [00:08:10]process_json_proto returns [00:08:10]Send response to host [00:08:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000031","kkm.ver":"001","fm.sn":"0000000000875074","fd.num":63915,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [00:08:10]free response buf [00:08:10]execute_script done [00:08:10]execute_script returns [00:08:10]free content buf [00:08:10]Sock 9.Close socket [00:08:10]Sock 9.Thread stoped [00:08:13]OFD Sender: No OFD packet to send [00:08:13]accept exits with 7 [00:08:13]New connection [00:08:13]New thread 3067055460 created [00:08:13]Thread 3066912100 joined [00:08:13]Waiting for new connection... [00:08:13] Sock 7.Parse request [00:08:13]Sock 7.Check first char [00:08:13]Sock 7.First char is OK [00:08:13]request: POST /json_proto HTTP/1.0 [00:08:13]Method: POST [00:08:13]URL: /json_proto [00:08:13]Method is POST - this is cgi request [00:08:13]url: /json_proto [00:08:13]query_string will be loaded in cgi processing [00:08:13]execute_cgi json_proto POST (null) [00:08:13]execute_cgi path=json_proto method=POST [00:08:13]POST find Content-Length [00:08:13]Host: 172.17.60.69:8080 [00:08:13]Content-Length: 331 [00:08:13]Content-Type: application/json [00:08:13] [00:08:13]POST finish read [00:08:13]Found Content-Length = 331 [00:08:13]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:08:13]execute_script... [00:08:13]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:08:13]POST & json_proto [00:08:13]process_json_proto [00:08:13]json parsed OK: [00:08:13]protocol is kg_v1.0 [00:08:13]action value=get_value [00:08:13]process_action get_value [00:08:13]cmd_get_value [00:08:13]process_action get_value done [00:08:13]requested_data is exist [00:08:13]produce_requested_data [00:08:13]requested_item fm.sale.total is exist - process it [00:08:13]SAM_PROTO_GetFMData [00:08:13]wFMCommunicate request_size=4 [00:08:13]MH_SAM_APDU [00:08:13]CAPDU: 80 13 03 00 [00:08:13]Write to MH i2c: E2 08 00 55 02 80 13 03 00 00 00 00 00 D6 [00:08:13]Write i2c OK [00:08:13]MH_I2C_Read... [00:08:14]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:08:14]Read from MH i2c: E2 [00:08:14]MH_I2C_Read... [00:08:14]Read from MH i2c: E2 FD 00 [00:08:14]MH_I2C_Read... [00:08:14]Read from MH i2c: E2 FD 00 55 02 00 C5 04 85 04 C1 04 6E 04 04 00 BF F6 00 00 69 04 A1 00 6F 04 04 00 5F F4 00 00 B1 04 04 00 B1 00 C4 76 70 04 04 00 96 B7 05 66 72 04 04 00 1B 49 BE 10 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 46 29 9D 0C 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 15 05 0D 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 60 02 00 00 B1 04 04 00 E4 BA 80 03 70 04 04 00 60 5F 65 03 72 04 03 00 84 5B 1B 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 84 3C 5F EF 03 09 90 00 D8 [00:08:14]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 BF F6 00 00 69 04 A1 00 6F 04 04 00 5F F4 00 00 B1 04 04 00 B1 00 C4 76 70 04 04 00 96 B7 05 66 72 04 04 00 1B 49 BE 10 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 46 29 9D 0C 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 15 05 0D 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 60 02 00 00 B1 04 04 00 E4 BA 80 03 70 04 04 00 60 5F 65 03 72 04 03 00 84 5B 1B 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 84 3C 5F EF 03 09 90 00 [00:08:14]wFMCommunicate OK [00:08:14]wFMCommunicate request_size=4 [00:08:14]MH_SAM_APDU [00:08:14]CAPDU: 80 17 00 00 [00:08:14]Write to MH i2c: E2 08 00 56 02 80 17 00 00 00 00 00 00 D8 [00:08:14]Write i2c OK [00:08:14]MH_I2C_Read... [00:08:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:14]Read from MH i2c: E2 [00:08:14]MH_I2C_Read... [00:08:14]Read from MH i2c: E2 FD 00 [00:08:14]MH_I2C_Read... [00:08:14]Read from MH i2c: E2 FD 00 56 02 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 7A EF 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 FE [00:08:14]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 7A EF 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [00:08:14]wFMCommunicate OK [00:08:14]wFMCommunicate request_size=4 [00:08:14]MH_SAM_APDU [00:08:14]CAPDU: 80 17 00 00 [00:08:14]Write to MH i2c: E2 08 00 57 02 80 17 00 00 00 00 00 00 D9 [00:08:14]Write i2c OK [00:08:14]MH_I2C_Read... [00:08:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:14]Read from MH i2c: E2 [00:08:14]MH_I2C_Read... [00:08:14]Read from MH i2c: E2 FD 00 [00:08:14]MH_I2C_Read... [00:08:14]Read from MH i2c: E2 FD 00 57 02 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 EB [00:08:14]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [00:08:14]wFMCommunicate OK [00:08:14]wFMCommunicate request_size=4 [00:08:14]MH_SAM_APDU [00:08:14]CAPDU: 80 17 00 00 [00:08:14]Write to MH i2c: E2 08 00 58 02 80 17 00 00 00 00 00 00 DA [00:08:14]Write i2c OK [00:08:14]MH_I2C_Read... [00:08:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:14]Read from MH i2c: E2 [00:08:14]MH_I2C_Read... [00:08:14]Read from MH i2c: E2 FD 00 [00:08:14]MH_I2C_Read... [00:08:14]Read from MH i2c: E2 FD 00 58 02 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 66 [00:08:14]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [00:08:14]wFMCommunicate OK [00:08:14]wFMCommunicate request_size=4 [00:08:14]MH_SAM_APDU [00:08:14]CAPDU: 80 17 00 00 [00:08:14]Write to MH i2c: E2 08 00 59 02 80 17 00 00 00 00 00 00 DB [00:08:14]Write i2c OK [00:08:14]MH_I2C_Read... [00:08:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:08:15]Read from MH i2c: E2 [00:08:15]MH_I2C_Read... [00:08:15]Read from MH i2c: E2 E2 00 [00:08:15]MH_I2C_Read... [00:08:15]Read from MH i2c: E2 E2 00 59 02 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 B9 [00:08:15]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:08:15]wFMCommunicate OK [00:08:15]SAM_PROTO_GetFMData done [00:08:15]requested_item fm.sale_refund.total is exist - process it [00:08:15]requested_item fm.buy.total is exist - process it [00:08:15]requested_item shift.sale.total is exist - process it [00:08:15]SAM_PROTO_GetShiftData [00:08:15]wFMCommunicate request_size=4 [00:08:15]MH_SAM_APDU [00:08:15]CAPDU: 80 13 02 00 [00:08:15]Write to MH i2c: E2 08 00 5A 02 80 13 02 00 00 00 00 00 DA [00:08:15]Write i2c OK [00:08:15]MH_I2C_Read... [00:08:15]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:08:15]Read from MH i2c: E2 [00:08:15]MH_I2C_Read... [00:08:15]Read from MH i2c: E2 FD 00 [00:08:15]MH_I2C_Read... [00:08:15]Read from MH i2c: E2 FD 00 5A 02 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 4D [00:08:15]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:08:15]wFMCommunicate OK [00:08:15]wFMCommunicate request_size=4 [00:08:15]MH_SAM_APDU [00:08:15]CAPDU: 80 17 00 00 [00:08:15]Write to MH i2c: E2 08 00 5B 02 80 17 00 00 00 00 00 00 DD [00:08:15]Write i2c OK [00:08:15]MH_I2C_Read... [00:08:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:15]Read from MH i2c: E2 [00:08:15]MH_I2C_Read... [00:08:15]Read from MH i2c: E2 FD 00 [00:08:15]MH_I2C_Read... [00:08:15]Read from MH i2c: E2 FD 00 5B 02 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 E5 [00:08:15]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:08:15]wFMCommunicate OK [00:08:15]wFMCommunicate request_size=4 [00:08:15]MH_SAM_APDU [00:08:15]CAPDU: 80 17 00 00 [00:08:15]Write to MH i2c: E2 08 00 5C 02 80 17 00 00 00 00 00 00 DE [00:08:15]Write i2c OK [00:08:15]MH_I2C_Read... [00:08:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:16]Read from MH i2c: E2 [00:08:16]MH_I2C_Read... [00:08:16]Read from MH i2c: E2 FD 00 [00:08:16]MH_I2C_Read... [00:08:16]Read from MH i2c: E2 FD 00 5C 02 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 B0 [00:08:16]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:08:16]wFMCommunicate OK [00:08:16]wFMCommunicate request_size=4 [00:08:16]MH_SAM_APDU [00:08:16]CAPDU: 80 17 00 00 [00:08:16]Write to MH i2c: E2 08 00 5D 02 80 17 00 00 00 00 00 00 DF [00:08:16]Write i2c OK [00:08:16]MH_I2C_Read... [00:08:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:16]Read from MH i2c: E2 [00:08:16]MH_I2C_Read... [00:08:16]Read from MH i2c: E2 FD 00 [00:08:16]MH_I2C_Read... [00:08:16]Read from MH i2c: E2 FD 00 5D 02 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 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 51 [00:08:16]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:08:16]wFMCommunicate OK [00:08:16]wFMCommunicate request_size=4 [00:08:16]MH_SAM_APDU [00:08:16]CAPDU: 80 17 00 00 [00:08:16]Write to MH i2c: E2 08 00 5E 02 80 17 00 00 00 00 00 00 E0 [00:08:16]Write i2c OK [00:08:16]MH_I2C_Read... [00:08:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:08:16]Read from MH i2c: E2 [00:08:16]MH_I2C_Read... [00:08:16]Read from MH i2c: E2 BD 00 [00:08:16]MH_I2C_Read... [00:08:16]Read from MH i2c: E2 BD 00 5E 02 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 C6 [00:08:16]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:08:16]wFMCommunicate OK [00:08:16]SAM_PROTO_GetShiftData done [00:08:16]requested_item shift.sale.total_cash is exist - process it [00:08:16]requested_item shift.sale_refund.total is exist - process it [00:08:16]requested_item shift.sale_refund.total_cash is exist - process it [00:08:16]requested_item shift.buy.total is exist - process it [00:08:16]requested_item shift.buy.total_cash is exist - process it [00:08:16]produce_requested_data done [00:08:16]produce_requested_data return {"fm.sale.total":19925567.21,"fm.sale_refund.total":587681.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:08:16]process_action_free get_value [00:08:16]json_value_free [00:08:16]json_value_free done [00:08:16]process_json_proto returns [00:08:16]Send response to host [00:08:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":19925567.21,"fm.sale_refund.total":587681.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:08:16]free response buf [00:08:16]execute_script done [00:08:16]execute_script returns [00:08:16]free content buf [00:08:16]Sock 7.Close socket [00:08:16]Sock 7.Thread stoped [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:14]OFD Sender: No OFD packet to send [00:21:19]OFD Sender: No OFD packet to send [00:21:24]OFD Sender: No OFD packet to send [00:21:29]OFD Sender: No OFD packet to send [00:21:34]OFD Sender: No OFD packet to send [00:21:39]OFD Sender: No OFD packet to send [00:21:44]OFD Sender: No OFD packet to send [00:21:49]OFD Sender: No OFD packet to send [00:21:54]OFD Sender: No OFD packet to send [00:21:59]OFD Sender: No OFD packet to send [00:22:04]OFD Sender: No OFD packet to send [00:22:09]OFD Sender: No OFD packet to send [00:22:14]OFD Sender: No OFD packet to send [00:22:19]OFD Sender: No OFD packet to send [00:22:24]OFD Sender: No OFD packet to send [00:22:29]OFD Sender: No OFD packet to send [00:22:34]OFD Sender: No OFD packet to send [00:22:39]OFD Sender: No OFD packet to send [00:22:44]OFD Sender: No OFD packet to send [00:22:46]accept exits with 9 [00:22:46]New connection [00:22:46]New thread 3066912100 created [00:22:46]Thread 3067055460 joined [00:22:46]Waiting for new connection... [00:22:46] Sock 9.Parse request [00:22:46]Sock 9.Check first char [00:22:46]Sock 9.First char is OK [00:22:46]request: POST /json_proto HTTP/1.0 [00:22:46]Method: POST [00:22:46]URL: /json_proto [00:22:46]Method is POST - this is cgi request [00:22:46]url: /json_proto [00:22:46]query_string will be loaded in cgi processing [00:22:46]execute_cgi json_proto POST (null) [00:22:46]execute_cgi path=json_proto method=POST [00:22:46]POST find Content-Length [00:22:46]Host: 172.17.60.69:8080 [00:22:46]Content-Length: 215 [00:22:46]Content-Type: application/json [00:22:46] [00:22:46]POST finish read [00:22:46]Found Content-Length = 215 [00:22:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:22:46]execute_script... [00:22:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:22:46]POST & json_proto [00:22:46]process_json_proto [00:22:46]json parsed OK: [00:22:46]protocol is kg_v1.0 [00:22:46]action value=get_value [00:22:46]process_action get_value [00:22:46]cmd_get_value [00:22:46]process_action get_value done [00:22:46]requested_data is exist [00:22:46]produce_requested_data [00:22:46]requested_item kkm.sn is exist - process it [00:22:46]requested_item kkm.ver is exist - process it [00:22:46]requested_item fm.sn is exist - process it [00:22:46]wFMCommunicate request_size=4 [00:22:46]MH_SAM_APDU [00:22:46]CAPDU: 80 11 00 00 [00:22:46]Write to MH i2c: E2 08 00 5F 02 80 11 00 00 00 00 00 00 DB [00:22:46]Write i2c OK [00:22:46]MH_I2C_Read... [00:22:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:22:46]Read from MH i2c: E2 [00:22:46]MH_I2C_Read... [00:22:46]Read from MH i2c: E2 17 00 [00:22:46]MH_I2C_Read... [00:22:46]Read from MH i2c: E2 17 00 5F 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 2D [00:22:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [00:22:46]wFMCommunicate OK [00:22:46]requested_item fd.num is exist - process it [00:22:46]SAM_PROTO_GetFieldsCounters [00:22:46]wFMCommunicate request_size=4 [00:22:46]MH_SAM_APDU [00:22:46]CAPDU: 80 13 00 00 [00:22:46]Write to MH i2c: E2 08 00 60 02 80 13 00 00 00 00 00 00 DE [00:22:46]Write i2c OK [00:22:46]MH_I2C_Read... [00:22:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:22:46]Read from MH i2c: E2 [00:22:46]MH_I2C_Read... [00:22:46]Read from MH i2c: E2 62 00 [00:22:46]MH_I2C_Read... [00:22:46]Read from MH i2c: E2 62 00 60 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 AB F9 00 00 0E 04 04 00 76 01 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 1C [00:22: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 AB F9 00 00 0E 04 04 00 76 01 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:22:46]wFMCommunicate OK [00:22:46]SAM_PROTO_GetFieldsCounters done [00:22:46]requested_item shift.num is exist - process it [00:22:46]requested_item shift.opened is exist - process it [00:22:46]req_shift_opened [00:22:46]FM_GetShiftState [00:22:46]SAM_PROTO_GetShiftState [00:22:46]wFMCommunicate request_size=4 [00:22:46]MH_SAM_APDU [00:22:46]CAPDU: 80 13 01 00 [00:22:46]Write to MH i2c: E2 08 00 61 02 80 13 01 00 00 00 00 00 E0 [00:22:46]Write i2c OK [00:22:46]MH_I2C_Read... [00:22:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:22:46]Read from MH i2c: E2 [00:22:46]MH_I2C_Read... [00:22:46]Read from MH i2c: E2 0E 00 [00:22:46]MH_I2C_Read... [00:22:46]Read from MH i2c: E2 0E 00 61 02 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 80 [00:22:46]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [00:22:46]wFMCommunicate OK [00:22:46]SAM_PROTO_GetShiftState done [00:22:46]FM_GetShiftState done [00:22:46]req_shift_opened done [00:22:46]requested_item shift.open_date is exist - process it [00:22:46]req_shift_open_date [00:22:46]req_shift_open_date done [00:22:46]produce_requested_data done [00:22:46]produce_requested_data return {"kkm.sn":"0300000031","kkm.ver":"001","fm.sn":"0000000000875074","fd.num":63915,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [00:22:46]process_action_free get_value [00:22:46]json_value_free [00:22:46]json_value_free done [00:22:46]process_json_proto returns [00:22:46]Send response to host [00:22:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000031","kkm.ver":"001","fm.sn":"0000000000875074","fd.num":63915,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [00:22:46]free response buf [00:22:46]execute_script done [00:22:46]execute_script returns [00:22:46]free content buf [00:22:46]Sock 9.Close socket [00:22:46]Sock 9.Thread stoped [00:22:49]OFD Sender: No OFD packet to send [00:22:49]accept exits with 7 [00:22:49]New connection [00:22:49]New thread 3067055460 created [00:22:49]Thread 3066912100 joined [00:22:49]Waiting for new connection... [00:22:49] Sock 7.Parse request [00:22:49]Sock 7.Check first char [00:22:49]Sock 7.First char is OK [00:22:49]request: POST /json_proto HTTP/1.0 [00:22:49]Method: POST [00:22:49]URL: /json_proto [00:22:49]Method is POST - this is cgi request [00:22:49]url: /json_proto [00:22:49]query_string will be loaded in cgi processing [00:22:49]execute_cgi json_proto POST (null) [00:22:49]execute_cgi path=json_proto method=POST [00:22:49]POST find Content-Length [00:22:49]Host: 172.17.60.69:8080 [00:22:49]Content-Length: 331 [00:22:49]Content-Type: application/json [00:22:49] [00:22:49]POST finish read [00:22:49]Found Content-Length = 331 [00:22:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:22:49]execute_script... [00:22:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:22:49]POST & json_proto [00:22:49]process_json_proto [00:22:49]json parsed OK: [00:22:49]protocol is kg_v1.0 [00:22:49]action value=get_value [00:22:49]process_action get_value [00:22:49]cmd_get_value [00:22:49]process_action get_value done [00:22:49]requested_data is exist [00:22:49]produce_requested_data [00:22:49]requested_item fm.sale.total is exist - process it [00:22:49]SAM_PROTO_GetFMData [00:22:49]wFMCommunicate request_size=4 [00:22:49]MH_SAM_APDU [00:22:49]CAPDU: 80 13 03 00 [00:22:49]Write to MH i2c: E2 08 00 62 02 80 13 03 00 00 00 00 00 E3 [00:22:49]Write i2c OK [00:22:49]MH_I2C_Read... [00:22:49]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:22:49]Read from MH i2c: E2 [00:22:49]MH_I2C_Read... [00:22:49]Read from MH i2c: E2 FD 00 [00:22:49]MH_I2C_Read... [00:22:49]Read from MH i2c: E2 FD 00 62 02 00 C5 04 85 04 C1 04 6E 04 04 00 BF F6 00 00 69 04 A1 00 6F 04 04 00 5F F4 00 00 B1 04 04 00 B1 00 C4 76 70 04 04 00 96 B7 05 66 72 04 04 00 1B 49 BE 10 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 46 29 9D 0C 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 15 05 0D 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 60 02 00 00 B1 04 04 00 E4 BA 80 03 70 04 04 00 60 5F 65 03 72 04 03 00 84 5B 1B 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 84 3C 5F EF 03 09 90 00 E5 [00:22:49]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 BF F6 00 00 69 04 A1 00 6F 04 04 00 5F F4 00 00 B1 04 04 00 B1 00 C4 76 70 04 04 00 96 B7 05 66 72 04 04 00 1B 49 BE 10 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 46 29 9D 0C 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 15 05 0D 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 60 02 00 00 B1 04 04 00 E4 BA 80 03 70 04 04 00 60 5F 65 03 72 04 03 00 84 5B 1B 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 84 3C 5F EF 03 09 90 00 [00:22:50]wFMCommunicate OK [00:22:50]wFMCommunicate request_size=4 [00:22:50]MH_SAM_APDU [00:22:50]CAPDU: 80 17 00 00 [00:22:50]Write to MH i2c: E2 08 00 63 02 80 17 00 00 00 00 00 00 E5 [00:22:50]Write i2c OK [00:22:50]MH_I2C_Read... [00:22:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:22:50]Read from MH i2c: E2 [00:22:50]MH_I2C_Read... [00:22:50]Read from MH i2c: E2 FD 00 [00:22:50]MH_I2C_Read... [00:22:50]Read from MH i2c: E2 FD 00 63 02 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 7A EF 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 0B [00:22:50]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 7A EF 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [00:22:50]wFMCommunicate OK [00:22:50]wFMCommunicate request_size=4 [00:22:50]MH_SAM_APDU [00:22:50]CAPDU: 80 17 00 00 [00:22:50]Write to MH i2c: E2 08 00 64 02 80 17 00 00 00 00 00 00 E6 [00:22:50]Write i2c OK [00:22:50]MH_I2C_Read... [00:22:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:22:50]Read from MH i2c: E2 [00:22:50]MH_I2C_Read... [00:22:50]Read from MH i2c: E2 FD 00 [00:22:50]MH_I2C_Read... [00:22:50]Read from MH i2c: E2 FD 00 64 02 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 F8 [00:22:50]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [00:22:50]wFMCommunicate OK [00:22:50]wFMCommunicate request_size=4 [00:22:50]MH_SAM_APDU [00:22:50]CAPDU: 80 17 00 00 [00:22:50]Write to MH i2c: E2 08 00 65 02 80 17 00 00 00 00 00 00 E7 [00:22:50]Write i2c OK [00:22:50]MH_I2C_Read... [00:22:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:22:50]Read from MH i2c: E2 [00:22:50]MH_I2C_Read... [00:22:50]Read from MH i2c: E2 FD 00 [00:22:50]MH_I2C_Read... [00:22:50]Read from MH i2c: E2 FD 00 65 02 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 73 [00:22:50]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [00:22:50]wFMCommunicate OK [00:22:50]wFMCommunicate request_size=4 [00:22:50]MH_SAM_APDU [00:22:50]CAPDU: 80 17 00 00 [00:22:50]Write to MH i2c: E2 08 00 66 02 80 17 00 00 00 00 00 00 E8 [00:22:50]Write i2c OK [00:22:50]MH_I2C_Read... [00:22:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:22:51]Read from MH i2c: E2 [00:22:51]MH_I2C_Read... [00:22:51]Read from MH i2c: E2 E2 00 [00:22:51]MH_I2C_Read... [00:22:51]Read from MH i2c: E2 E2 00 66 02 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 C6 [00:22:51]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:22:51]wFMCommunicate OK [00:22:51]SAM_PROTO_GetFMData done [00:22:51]requested_item fm.sale_refund.total is exist - process it [00:22:51]requested_item fm.buy.total is exist - process it [00:22:51]requested_item shift.sale.total is exist - process it [00:22:51]SAM_PROTO_GetShiftData [00:22:51]wFMCommunicate request_size=4 [00:22:51]MH_SAM_APDU [00:22:51]CAPDU: 80 13 02 00 [00:22:51]Write to MH i2c: E2 08 00 67 02 80 13 02 00 00 00 00 00 E7 [00:22:51]Write i2c OK [00:22:51]MH_I2C_Read... [00:22:51]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:22:51]Read from MH i2c: E2 [00:22:51]MH_I2C_Read... [00:22:51]Read from MH i2c: E2 FD 00 [00:22:51]MH_I2C_Read... [00:22:51]Read from MH i2c: E2 FD 00 67 02 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 5A [00:22:51]RAPDU: A0 04 AA 04 9C 04 6E 04 04 00 00 00 00 00 69 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 [00:22:51]wFMCommunicate OK [00:22:51]wFMCommunicate request_size=4 [00:22:51]MH_SAM_APDU [00:22:51]CAPDU: 80 17 00 00 [00:22:51]Write to MH i2c: E2 08 00 68 02 80 17 00 00 00 00 00 00 EA [00:22:51]Write i2c OK [00:22:51]MH_I2C_Read... [00:22:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:22:51]Read from MH i2c: E2 [00:22:51]MH_I2C_Read... [00:22:51]Read from MH i2c: E2 FD 00 [00:22:51]MH_I2C_Read... [00:22:51]Read from MH i2c: E2 FD 00 68 02 00 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 90 00 F2 [00:22:51]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 90 00 [00:22:51]wFMCommunicate OK [00:22:51]wFMCommunicate request_size=4 [00:22:51]MH_SAM_APDU [00:22:51]CAPDU: 80 17 00 00 [00:22:51]Write to MH i2c: E2 08 00 69 02 80 17 00 00 00 00 00 00 EB [00:22:51]Write i2c OK [00:22:51]MH_I2C_Read... [00:22:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:22:52]Read from MH i2c: E2 [00:22:52]MH_I2C_Read... [00:22:52]Read from MH i2c: E2 FD 00 [00:22:52]MH_I2C_Read... [00:22:52]Read from MH i2c: E2 FD 00 69 02 00 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 90 00 BD [00:22:52]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 90 00 [00:22:52]wFMCommunicate OK [00:22:52]wFMCommunicate request_size=4 [00:22:52]MH_SAM_APDU [00:22:52]CAPDU: 80 17 00 00 [00:22:52]Write to MH i2c: E2 08 00 6A 02 80 17 00 00 00 00 00 00 EC [00:22:52]Write i2c OK [00:22:52]MH_I2C_Read... [00:22:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:22:52]Read from MH i2c: E2 [00:22:52]MH_I2C_Read... [00:22:52]Read from MH i2c: E2 FD 00 [00:22:52]MH_I2C_Read... [00:22:52]Read from MH i2c: E2 FD 00 6A 02 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 5E [00:22:52]RAPDU: 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 [00:22:52]wFMCommunicate OK [00:22:52]wFMCommunicate request_size=4 [00:22:52]MH_SAM_APDU [00:22:52]CAPDU: 80 17 00 00 [00:22:52]Write to MH i2c: E2 08 00 6B 02 80 17 00 00 00 00 00 00 ED [00:22:52]Write i2c OK [00:22:52]MH_I2C_Read... [00:22:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:22:52]Read from MH i2c: E2 [00:22:52]MH_I2C_Read... [00:22:52]Read from MH i2c: E2 BD 00 [00:22:52]MH_I2C_Read... [00:22:52]Read from MH i2c: E2 BD 00 6B 02 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 D3 [00:22:52]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:22:52]wFMCommunicate OK [00:22:52]SAM_PROTO_GetShiftData done [00:22:52]requested_item shift.sale.total_cash is exist - process it [00:22:52]requested_item shift.sale_refund.total is exist - process it [00:22:52]requested_item shift.sale_refund.total_cash is exist - process it [00:22:52]requested_item shift.buy.total is exist - process it [00:22:52]requested_item shift.buy.total_cash is exist - process it [00:22:52]produce_requested_data done [00:22:52]produce_requested_data return {"fm.sale.total":19925567.21,"fm.sale_refund.total":587681.00,"fm.buy.total":0.00,"shift.sale.total":0.00,"shift.sale.total_cash":0.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:22:52]process_action_free get_value [00:22:52]json_value_free [00:22:52]json_value_free done [00:22:52]process_json_proto returns [00:22:52]Send response to host [00:22:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":19925567.21,"fm.sale_refund.total":587681.00,"fm.buy.total":0.00,"shift.sale.total":0.00,"shift.sale.total_cash":0.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:22:52]free response buf [00:22:52]execute_script done [00:22:52]execute_script returns [00:22:52]free content buf [00:22:52]Sock 7.Close socket [00:22:52]Sock 7.Thread stoped [00:22:54]OFD Sender: No OFD packet to send [00:22:59]OFD Sender: No OFD packet to send [00:23:04]OFD Sender: No OFD packet to send [00:23:09]OFD Sender: No OFD packet to send [00:23:14]OFD Sender: No OFD packet to send [00:23:19]OFD Sender: No OFD packet to send [00:23:24]OFD Sender: No OFD packet to send [00:23:29]OFD Sender: No OFD packet to send [00:23:34]OFD Sender: No OFD packet to send [00:23:39]OFD Sender: No OFD packet to send [00:23:44]OFD Sender: No OFD packet to send [00:23:49]OFD Sender: No OFD packet to send [00:23:54]OFD Sender: No OFD packet to send [00:23:59]OFD Sender: No OFD packet to send [00:24:04]OFD Sender: No OFD packet to send [00:24:09]OFD Sender: No OFD packet to send [00:24:14]OFD Sender: No OFD packet to send [00:24:19]OFD Sender: No OFD packet to send [00:24:24]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:51]accept exits with 10 [00:26:51]New connection [00:26:51]New thread 3066912100 created [00:26:51]Thread 3067055460 joined [00:26:51]Waiting for new connection... [00:26:51] Sock 10.Parse request [00:26:51]Sock 10.Check first char [00:26:51]Sock 10.First char is OK [00:26:51]request: POST /json_proto HTTP/1.0 [00:26:51]Method: POST [00:26:51]URL: /json_proto [00:26:51]Method is POST - this is cgi request [00:26:51]url: /json_proto [00:26:51]query_string will be loaded in cgi processing [00:26:51]execute_cgi json_proto POST (null) [00:26:51]execute_cgi path=json_proto method=POST [00:26:51]POST find Content-Length [00:26:51]Host: 172.17.60.69:8080 [00:26:51]Content-Length: 620 [00:26:51]Content-Type: application/json [00:26:51] [00:26:51]POST finish read [00:26:51]Found Content-Length = 620 [00:26:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73483", "tax_sys" : 0, "items" : [ { "code": "48747066", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston True Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:26:51]execute_script... [00:26:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73483", "tax_sys" : 0, "items" : [ { "code": "48747066", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston True Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:26:51]POST & json_proto [00:26:51]process_json_proto [00:26:51]json parsed OK: [00:26:51]protocol is kg_v1.0 [00:26:51]action value=close_receipt [00:26:51]process_action close_receipt [00:26:51]cmd_close_receipt [00:26:51]MH_GetDate [00:26:51]Write to MH i2c: F0 00 00 6C 02 5D [00:26:51]Write i2c OK [00:26:51]MH_I2C_Read... [00:26:51]Read from MH i2c: F0 [00:26:51]MH_I2C_Read... [00:26:51]Read from MH i2c: F0 09 00 [00:26:51]MH_I2C_Read... [00:26:51]Read from MH i2c: F0 09 00 6C 02 00 4B 5F 5E 66 6A 96 4A 66 84 [00:26:51]GetLastDocTimeStamp 1717459574 [00:26:51]current date 1717460811 [00:26:51]FM_GetShiftState [00:26:51]SAM_PROTO_GetShiftState [00:26:51]wFMCommunicate request_size=4 [00:26:51]MH_SAM_APDU [00:26:51]CAPDU: 80 13 01 00 [00:26:51]Write to MH i2c: E2 08 00 6D 02 80 13 01 00 00 00 00 00 EC [00:26:51]Write i2c OK [00:26:51]MH_I2C_Read... [00:26:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:26:51]Read from MH i2c: E2 [00:26:51]MH_I2C_Read... [00:26:51]Read from MH i2c: E2 0E 00 [00:26:51]MH_I2C_Read... [00:26:51]Read from MH i2c: E2 0E 00 6D 02 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 8C [00:26:51]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [00:26:51]wFMCommunicate OK [00:26:51]SAM_PROTO_GetShiftState done [00:26:51]FM_GetShiftState done [00:26:51]opened in 1717459574 [00:26:51]opened+sec_in_day 1717545974 [00:26:51]quantity*price = 14000 [00:26:51]sum+1 = 14001 [00:26:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 1 04.06.2024 00:26 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63916 ФПД: 204799210206738 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T002651&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63916&fm=204799210206738&tin=02508201610067®Number=0000000000092737&sum=14000 0 [00:26:52]StoreToDocumentArchive [00:26:52]shift 374 fd 63916 [00:26:52]save to /storage/0374/doc_00063916 [00:26:52]save last doc name /storage/0374/doc_00063916 to /storage/kkm_last_doc_name [00:26:52]save OK [00:26:52]Clear old archive folders... [00:26:52]ProcessDocumentItem done err = 0, tmpTLVsize=273 [00:26:52]tlvbuf is 01253C50 [00:26:52]SAM_PROTO_ClearQueue [00:26:52]wFMCommunicate request_size=4 [00:26:52]MH_SAM_APDU [00:26:52]CAPDU: 80 09 00 00 [00:26:52]Write to MH i2c: E2 08 00 7A 02 80 09 00 00 00 00 00 00 EE [00:26:52]Write i2c OK [00:26:52]MH_I2C_Read... [00:26:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:26:52]Read from MH i2c: E2 [00:26:52]MH_I2C_Read... [00:26:52]Read from MH i2c: E2 03 00 [00:26:52]MH_I2C_Read... [00:26:52]Read from MH i2c: E2 03 00 7A 02 00 90 00 F0 [00:26:52]RAPDU: 90 00 [00:26:52]wFMCommunicate OK [00:26:52]SAM_PROTO_ClearQueue done [00:26:52]KKMCreateOFDPacket [00:26:52]OFDProtocolAddRootSTLVToBuf [00:26:52]FM_MakeSignedData [00:26:52]FM_MakeSignedData [00:26:52]SAM_PROTO_SignData [00:26:52]wFMCommunicate request_size=4 [00:26:52]MH_SAM_APDU [00:26:52]CAPDU: 80 0D 01 02 [00:26:52]Write to MH i2c: E2 08 00 7B 02 80 0D 01 02 00 00 00 00 F6 [00:26:52]Write i2c OK [00:26:52]MH_I2C_Read... [00:26:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:26:52]Read from MH i2c: E2 [00:26:52]MH_I2C_Read... [00:26:52]Read from MH i2c: E2 03 00 [00:26:52]MH_I2C_Read... [00:26:52]Read from MH i2c: E2 03 00 7B 02 00 90 00 F1 [00:26:52]RAPDU: 90 00 [00:26:52]wFMCommunicate OK [00:26:52]wFMCommunicate request_size=255 [00:26:52]MH_SAM_APDU [00:26:52]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 36 36 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 54 72 75 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 4B 5F 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 [00:26:52]Write to MH i2c: E2 02 01 7C 02 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 36 36 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 54 72 75 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 4B 5F 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 00 00 FC [00:26:52]Write i2c OK [00:26:52]MH_I2C_Read... [00:26:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:26:53]Read from MH i2c: E2 [00:26:53]MH_I2C_Read... [00:26:53]Read from MH i2c: E2 03 00 [00:26:53]MH_I2C_Read... [00:26:53]Read from MH i2c: E2 03 00 7C 02 00 90 00 F2 [00:26:53]RAPDU: 90 00 [00:26:53]wFMCommunicate OK [00:26:53]wFMCommunicate request_size=32 [00:26:53]MH_SAM_APDU [00:26:53]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 35 30 37 34 10 04 04 00 AC F9 00 00 35 04 06 00 BA 43 88 2C B6 12 [00:26:53]Write to MH i2c: E2 23 00 7D 02 80 0D 02 02 1B 00 30 30 30 38 37 35 30 37 34 10 04 04 00 AC F9 00 00 35 04 06 00 BA 43 88 2C B6 12 00 00 73 [00:26:53]Write i2c OK [00:26:53]MH_I2C_Read... [00:26:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:26:53]Read from MH i2c: E2 [00:26:53]MH_I2C_Read... [00:26:53]Read from MH i2c: E2 03 00 [00:26:53]MH_I2C_Read... [00:26:53]Read from MH i2c: E2 03 00 7D 02 00 90 00 F3 [00:26:53]RAPDU: 90 00 [00:26:53]wFMCommunicate OK [00:26:53]wFMCommunicate request_size=4 [00:26:53]MH_SAM_APDU [00:26:53]CAPDU: 80 0D 03 02 [00:26:53]Write to MH i2c: E2 08 00 7E 02 80 0D 03 02 00 00 00 00 FB [00:26:53]Write i2c OK [00:26:53]MH_I2C_Read... [00:26:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:26:53]Read from MH i2c: E2 [00:26:53]MH_I2C_Read... [00:26:53]Read from MH i2c: E2 0B 00 [00:26:53]MH_I2C_Read... [00:26:53]Read from MH i2c: E2 0B 00 7E 02 00 CD 17 B1 E0 F4 3F 9B 7E 90 00 BD [00:26:53]RAPDU: CD 17 B1 E0 F4 3F 9B 7E 90 00 [00:26:53]wFMCommunicate OK [00:26:53]SAM_PROTO_SignData done [00:26:53]FM_MakeSignedData done [00:26:53]CreateOFDProtocolMessage [00:26:53]wFMCommunicate request_size=4 [00:26:53]MH_SAM_APDU [00:26:53]CAPDU: 80 11 00 00 [00:26:53]Write to MH i2c: E2 08 00 7F 02 80 11 00 00 00 00 00 00 FB [00:26:53]Write i2c OK [00:26:53]MH_I2C_Read... [00:26:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:26:53]Read from MH i2c: E2 [00:26:53]MH_I2C_Read... [00:26:53]Read from MH i2c: E2 17 00 [00:26:53]MH_I2C_Read... [00:26:53]Read from MH i2c: E2 17 00 7F 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 4D [00:26:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [00:26:53]wFMCommunicate OK [00:26:53]CreateOFDProtocolMessage done [00:26:53]OFDSenderStorePacket 63916 [00:26:53]StoreOFDPacket docnum=63916 [00:26:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 25 01 00 00 79 FC 1D 01 DD 96 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 36 36 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 54 72 75 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 4B 5F 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 AC F9 00 00 35 04 06 00 BA 43 88 2C B6 12 CD 17 B1 E0 F4 3F 9B 7E [00:26:53]CheckFolder [00:26:53]dirname=/storage/ofd_packets [00:26:53]CheckFolder done [00:26:53]ProducePacketName [00:26:53]name=ofd_packets/00063916 [00:26:53]NVStorageSaveData ofd_packets/00063916 [00:26:53]File name is /storage/ofd_packets/00063916 [00:26:53]Write 323 bytes [00:26:53]NVStorageSaveData done [00:26:53]OFDSenderStorePacket done [00:26:53]KKMCreateOFDPacket done [00:26:53]NVStorageSaveData kkm_last_timestamp [00:26:53]File name is /storage/kkm_last_timestamp [00:26:53]Write 4 bytes [00:26:53]NVStorageSaveData done [00:26:53]ExternCall_PrintAddStr [00:26:53]wPrintStart [00:26:53]Write to MH i2c: 01 00 00 80 02 82 [00:26:53]Write i2c OK [00:26:53]MH_I2C_Read... [00:26:53]Read from MH i2c: 01 [00:26:53]MH_I2C_Read... [00:26:53]Read from MH i2c: 01 07 00 [00:26:53]MH_I2C_Read... [00:26:53]Read from MH i2c: 01 07 00 80 02 00 00 00 00 00 FF 0F 97 [00:26:53]RasterBufferAndPrint [00:26:53]line Счет N : (3)73483 [00:26:53]line ИНН: 02508201610067 [00:26:53]line Контрольно-Кассовый Чек [00:26:53]line ПРОДАЖА [00:26:53]line Товар: 48747066 [00:26:53]line Сигареты Winston True Silver [00:26:53]line 1.000 * 140.00 [00:26:53]line = 140.00 [00:26:53]line НДС 12% НСП 1% [00:26:53]line > о реализуемом товаре [00:26:53]line ИТОГО: 140.00 [00:26:53]line НСП 1% : 1.24 [00:26:53]line НДС 12% : 14.87 [00:26:53]line Наличными: 140.00 [00:26:53]line Безнал.: 0.00 [00:26:53]line Место: АЗС № 117 "Партнер Нефть" [00:26:53]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [00:26:53]line СНО: Общий режим [00:26:53]line Чек 1 04.06.2024 00:26 [00:26:53]line Смена: 374 ФФД: 1.0 [00:26:53]line ЗНМ: 0300000031 [00:26:53]line РНМ: 0000000000092737 [00:26:53]line Версия ККМ: 001 [00:26:53]line ФМ: 0000000000875074 [00:26:53]line ФД: 63916 [00:26:53]line ФПД: 204799210206738 [00:26:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T002651&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63916&fm=204799210206738&tin=02508201610067®Number=0000000000092737&sum=14000 [00:26:53]line 0 [00:26:53]OFD Sender: Processing packet 63916 [packets to send 14, broken 13] [00:26:53]ProducePacketName [00:26:53]name=ofd_packets/00063916 [00:26:53]OFD Sender: To server: pG, [00:26:53]CommunicateWithHost lk.salyk.kg:30040 [00:26:53]ConnectInit lk.salyk.kg [00:26:53]written 0, free lines is 4095 [00:26:53]Connected sock=9 [00:26:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 25 01 00 00 79 FC 1D 01 DD 96 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 36 36 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 54 72 75 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 4B 5F 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 AC F9 00 00 35 04 06 00 BA 43 88 2C B6 12 CD 17 B1 E0 F4 3F 9B 7E [00:26:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 4E 72 47 00 AE 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 35 30 37 34 10 04 04 00 AC F9 00 00 F4 03 04 00 1B 0B 5E 66 B6 04 01 00 00 6B 9A F6 C4 67 6C 52 BC [00:26:54]CommunicateWithHost err = 0 [00:26:54]CheckOFDResponse [00:26:54]1017 (14) - 77093643461234 [00:26:54]1041 (16) - 0000000000875074 [00:26:54]1040 (4) - 63916 [00:26:54]1012 (4) - 03.06.2024 18:27 [00:26:54]1206 (1) - 0 [00:26:54]OFD Sender: Remove packet 63916 [00:26:54]ProducePacketName [00:26:54]name=ofd_packets/00063916 [00:26:54]NVStorageDeleteData [00:26:54]Write to MH i2c: 01 00 00 A8 02 AA [00:26:54]Write i2c OK [00:26:54]MH_I2C_Read... [00:26:54]Read from MH i2c: 01 [00:26:54]MH_I2C_Read... [00:26:54]Read from MH i2c: 01 07 00 [00:26:54]MH_I2C_Read... [00:26:54]Read from MH i2c: 01 07 00 A8 02 00 00 00 00 00 F6 0C B3 [00:26:54]RasterBufferAndPrint [00:26:54]line [00:26:54]line [00:26:54]line [00:26:54]line [00:26:54]line [00:26:54]written 0, free lines is 3322 [00:26:54]MH_Cut [00:26:54]Write to MH i2c: D1 01 00 AF 02 01 83 [00:26:54]Write i2c OK [00:26:54]MH_I2C_Read... [00:26:54]Read from MH i2c: D1 [00:26:54]MH_I2C_Read... [00:26:54]Read from MH i2c: D1 01 00 [00:26:54]MH_I2C_Read... [00:26:54]Read from MH i2c: D1 01 00 AF 02 00 82 [00:26:54]Write to MH i2c: 01 00 00 B0 02 B2 [00:26:54]Write i2c OK [00:26:54]MH_I2C_Read... [00:26:54]OFD Sender: No OFD packet to send [00:26:54]*** Cut start [00:26:54]*** Partial cut [00:26:54]*** CUTSNS_PIN = 1 [00:26:54]*** CUTSNS_PIN = 0 [00:26:55]*** Brake cut motor [00:26:55]Read from MH i2c: 01 [00:26:55]MH_I2C_Read... [00:26:55]*** Stop cut motor [00:26:55]*** Cut end [00:26:55]Read from MH i2c: 01 07 00 [00:26:55]MH_I2C_Read... [00:26:55]Read from MH i2c: 01 07 00 B0 02 00 00 00 00 00 FF 0F C7 [00:26:55]process_action close_receipt done [00:26:55]requested_data is exist [00:26:55]produce_requested_data [00:26:55]requested_item fm.sn is exist - process it [00:26:55]wFMCommunicate request_size=4 [00:26:55]MH_SAM_APDU [00:26:55]CAPDU: 80 11 00 00 [00:26:55]Write to MH i2c: E2 08 00 B1 02 80 11 00 00 00 00 00 00 2D [00:26:55]Write i2c OK [00:26:55]MH_I2C_Read... [00:26:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:26:55]Read from MH i2c: E2 [00:26:55]MH_I2C_Read... [00:26:55]Read from MH i2c: E2 17 00 [00:26:55]MH_I2C_Read... [00:26:55]Read from MH i2c: E2 17 00 B1 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 7F [00:26:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [00:26:55]wFMCommunicate OK [00:26:55]requested_item fd.num is exist - process it [00:26:55]SAM_PROTO_GetFieldsCounters [00:26:55]wFMCommunicate request_size=4 [00:26:55]MH_SAM_APDU [00:26:55]CAPDU: 80 13 00 00 [00:26:55]Write to MH i2c: E2 08 00 B2 02 80 13 00 00 00 00 00 00 30 [00:26:55]Write i2c OK [00:26:55]MH_I2C_Read... [00:26:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:26:55]Read from MH i2c: E2 [00:26:55]MH_I2C_Read... [00:26:55]Read from MH i2c: E2 62 00 [00:26:55]MH_I2C_Read... [00:26:55]Read from MH i2c: E2 62 00 B2 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 AC F9 00 00 0E 04 04 00 76 01 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 72 [00:26: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 AC F9 00 00 0E 04 04 00 76 01 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:26:55]wFMCommunicate OK [00:26:55]SAM_PROTO_GetFieldsCounters done [00:26:55]requested_item shift.num is exist - process it [00:26:55]requested_item shift.opened is exist - process it [00:26:55]req_shift_opened [00:26:55]FM_GetShiftState [00:26:55]SAM_PROTO_GetShiftState [00:26:55]wFMCommunicate request_size=4 [00:26:55]MH_SAM_APDU [00:26:55]CAPDU: 80 13 01 00 [00:26:55]Write to MH i2c: E2 08 00 B3 02 80 13 01 00 00 00 00 00 32 [00:26:55]Write i2c OK [00:26:55]MH_I2C_Read... [00:26:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:26:55]Read from MH i2c: E2 [00:26:55]MH_I2C_Read... [00:26:55]Read from MH i2c: E2 0E 00 [00:26:55]MH_I2C_Read... [00:26:55]Read from MH i2c: E2 0E 00 B3 02 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 D2 [00:26:55]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [00:26:55]wFMCommunicate OK [00:26:55]SAM_PROTO_GetShiftState done [00:26:55]FM_GetShiftState done [00:26:55]req_shift_opened done [00:26:55]requested_item shift.open_date is exist - process it [00:26:55]req_shift_open_date [00:26:55]req_shift_open_date done [00:26:55]produce_requested_data done [00:26:55]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63916,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [00:26:55]process_action_free close_receipt [00:26:55]json_value_free [00:26:55]json_value_free done [00:26:55]process_json_proto returns [00:26:55]Send response to host [00:26:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63916,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [00:26:55]free response buf [00:26:55]execute_script done [00:26:55]execute_script returns [00:26:55]free content buf [00:26:55]Sock 10.Close socket [00:26:55]Sock 10.Thread stoped [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:29:09]OFD Sender: No OFD packet to send [00:29:14]OFD Sender: No OFD packet to send [00:29:19]OFD Sender: No OFD packet to send [00:29:24]OFD Sender: No OFD packet to send [00:29:29]OFD Sender: No OFD packet to send [00:29:34]OFD Sender: No OFD packet to send [00:29:39]OFD Sender: No OFD packet to send [00:29:44]OFD Sender: No OFD packet to send [00:29:49]OFD Sender: No OFD packet to send [00:29:54]accept exits with 7 [00:29:54]New connection [00:29:54]New thread 3067055460 created [00:29:54]Thread 3066912100 joined [00:29:54]Waiting for new connection... [00:29:54] Sock 7.Parse request [00:29:54]Sock 7.Check first char [00:29:54]Sock 7.First char is OK [00:29:54]request: POST /json_proto HTTP/1.0 [00:29:54]Method: POST [00:29:54]URL: /json_proto [00:29:54]Method is POST - this is cgi request [00:29:54]url: /json_proto [00:29:54]query_string will be loaded in cgi processing [00:29:54]execute_cgi json_proto POST (null) [00:29:54]execute_cgi path=json_proto method=POST [00:29:54]POST find Content-Length [00:29:54]Host: 172.17.60.69:8080 [00:29:54]Content-Length: 631 [00:29:54]Content-Type: application/json [00:29:54] [00:29:54]POST finish read [00:29:54]Found Content-Length = 631 [00:29:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73484", "tax_sys" : 0, "items" : [ { "code": "4700000160204", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1,5\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:29:54]execute_script... [00:29:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73484", "tax_sys" : 0, "items" : [ { "code": "4700000160204", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1,5\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:29:54]POST & json_proto [00:29:54]process_json_proto [00:29:54]json parsed OK: [00:29:54]protocol is kg_v1.0 [00:29:54]action value=close_receipt [00:29:54]process_action close_receipt [00:29:54]cmd_close_receipt [00:29:54]MH_GetDate [00:29:54]Write to MH i2c: F0 00 00 B4 02 A5 [00:29:54]Write i2c OK [00:29:54]MH_I2C_Read... [00:29:54]Read from MH i2c: F0 [00:29:54]MH_I2C_Read... [00:29:54]Read from MH i2c: F0 09 00 [00:29:54]MH_I2C_Read... [00:29:54]Read from MH i2c: F0 09 00 B4 02 00 02 60 5E 66 6A 96 4A 66 84 [00:29:54]GetLastDocTimeStamp 1717460811 [00:29:54]current date 1717460994 [00:29:54]FM_GetShiftState [00:29:54]SAM_PROTO_GetShiftState [00:29:54]wFMCommunicate request_size=4 [00:29:54]MH_SAM_APDU [00:29:54]CAPDU: 80 13 01 00 [00:29:54]Write to MH i2c: E2 08 00 B5 02 80 13 01 00 00 00 00 00 34 [00:29:54]Write i2c OK [00:29:54]MH_I2C_Read... [00:29:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:29:54]Read from MH i2c: E2 [00:29:54]MH_I2C_Read... [00:29:54]Read from MH i2c: E2 0E 00 [00:29:54]MH_I2C_Read... [00:29:54]Read from MH i2c: E2 0E 00 B5 02 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 D4 [00:29:54]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [00:29:54]wFMCommunicate OK [00:29:54]SAM_PROTO_GetShiftState done [00:29:54]FM_GetShiftState done [00:29:54]opened in 1717459574 [00:29:54]opened+sec_in_day 1717545974 [00:29:54]quantity*price = 6000 [00:29:54]sum+1 = 6001 [00:29:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 60.00 НСП 1% : 0.53 НДС 12% : 6.37 Наличными: 60.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 2 04.06.2024 00:29 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63917 ФПД: 131709569303840 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T002954&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63917&fm=131709569303840&tin=02508201610067®Number=0000000000092737&sum=6000 0 [00:29:55]StoreToDocumentArchive [00:29:55]shift 374 fd 63917 [00:29:55]save to /storage/0374/doc_00063917 [00:29:55]save last doc name /storage/0374/doc_00063917 to /storage/kkm_last_doc_name [00:29:55]save OK [00:29:55]Clear old archive folders... [00:29:55]ProcessDocumentItem done err = 0, tmpTLVsize=271 [00:29:55]tlvbuf is 012A3630 [00:29:55]SAM_PROTO_ClearQueue [00:29:55]wFMCommunicate request_size=4 [00:29:55]MH_SAM_APDU [00:29:55]CAPDU: 80 09 00 00 [00:29:55]Write to MH i2c: E2 08 00 C2 02 80 09 00 00 00 00 00 00 36 [00:29:55]Write i2c OK [00:29:55]MH_I2C_Read... [00:29:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:29:55]Read from MH i2c: E2 [00:29:55]MH_I2C_Read... [00:29:55]Read from MH i2c: E2 03 00 [00:29:55]MH_I2C_Read... [00:29:55]Read from MH i2c: E2 03 00 C2 02 00 90 00 38 [00:29:55]RAPDU: 90 00 [00:29:55]wFMCommunicate OK [00:29:55]SAM_PROTO_ClearQueue done [00:29:55]KKMCreateOFDPacket [00:29:55]OFDProtocolAddRootSTLVToBuf [00:29:55]FM_MakeSignedData [00:29:55]FM_MakeSignedData [00:29:55]SAM_PROTO_SignData [00:29:55]wFMCommunicate request_size=4 [00:29:55]MH_SAM_APDU [00:29:55]CAPDU: 80 0D 01 02 [00:29:55]Write to MH i2c: E2 08 00 C3 02 80 0D 01 02 00 00 00 00 3E [00:29:55]Write i2c OK [00:29:55]MH_I2C_Read... [00:29:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:29:55]Read from MH i2c: E2 [00:29:55]MH_I2C_Read... [00:29:55]Read from MH i2c: E2 03 00 [00:29:55]MH_I2C_Read... [00:29:55]Read from MH i2c: E2 03 00 C3 02 00 90 00 39 [00:29:55]RAPDU: 90 00 [00:29:55]wFMCommunicate OK [00:29:55]wFMCommunicate request_size=255 [00:29:55]MH_SAM_APDU [00:29:55]CAPDU: 80 0D 02 02 FA 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 02 60 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 [00:29:55]Write to MH i2c: E2 02 01 C4 02 80 0D 02 02 FA 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 02 60 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 0F [00:29:55]Write i2c OK [00:29:55]MH_I2C_Read... [00:29:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:29:56]Read from MH i2c: E2 [00:29:56]MH_I2C_Read... [00:29:56]Read from MH i2c: E2 03 00 [00:29:56]MH_I2C_Read... [00:29:56]Read from MH i2c: E2 03 00 C4 02 00 90 00 3A [00:29:56]RAPDU: 90 00 [00:29:56]wFMCommunicate OK [00:29:56]wFMCommunicate request_size=30 [00:29:56]MH_SAM_APDU [00:29:56]CAPDU: 80 0D 02 02 19 30 38 37 35 30 37 34 10 04 04 00 AD F9 00 00 35 04 06 00 77 CA 06 17 85 20 [00:29:56]Write to MH i2c: E2 21 00 C5 02 80 0D 02 02 19 00 30 38 37 35 30 37 34 10 04 04 00 AD F9 00 00 35 04 06 00 77 CA 06 17 85 20 00 00 E2 [00:29:56]Write i2c OK [00:29:56]MH_I2C_Read... [00:29:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:29:56]Read from MH i2c: E2 [00:29:56]MH_I2C_Read... [00:29:56]Read from MH i2c: E2 03 00 [00:29:56]MH_I2C_Read... [00:29:56]Read from MH i2c: E2 03 00 C5 02 00 90 00 3B [00:29:56]RAPDU: 90 00 [00:29:56]wFMCommunicate OK [00:29:56]wFMCommunicate request_size=4 [00:29:56]MH_SAM_APDU [00:29:56]CAPDU: 80 0D 03 02 [00:29:56]Write to MH i2c: E2 08 00 C6 02 80 0D 03 02 00 00 00 00 43 [00:29:56]Write i2c OK [00:29:56]MH_I2C_Read... [00:29:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:29:56]Read from MH i2c: E2 [00:29:56]MH_I2C_Read... [00:29:56]Read from MH i2c: E2 0B 00 [00:29:56]MH_I2C_Read... [00:29:56]Read from MH i2c: E2 0B 00 C6 02 00 F8 C1 2A 27 10 C2 0A 93 90 00 BD [00:29:56]RAPDU: F8 C1 2A 27 10 C2 0A 93 90 00 [00:29:56]wFMCommunicate OK [00:29:56]SAM_PROTO_SignData done [00:29:56]FM_MakeSignedData done [00:29:56]CreateOFDProtocolMessage [00:29:56]wFMCommunicate request_size=4 [00:29:56]MH_SAM_APDU [00:29:56]CAPDU: 80 11 00 00 [00:29:56]Write to MH i2c: E2 08 00 C7 02 80 11 00 00 00 00 00 00 43 [00:29:56]Write i2c OK [00:29:56]MH_I2C_Read... [00:29:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:29:56]Read from MH i2c: E2 [00:29:56]MH_I2C_Read... [00:29:56]Read from MH i2c: E2 17 00 [00:29:56]MH_I2C_Read... [00:29:56]Read from MH i2c: E2 17 00 C7 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 95 [00:29:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [00:29:56]wFMCommunicate OK [00:29:56]CreateOFDProtocolMessage done [00:29:56]OFDSenderStorePacket 63917 [00:29:56]StoreOFDPacket docnum=63917 [00:29:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 23 01 00 00 A2 6F 1B 01 26 5C 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 02 60 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 AD F9 00 00 35 04 06 00 77 CA 06 17 85 20 F8 C1 2A 27 10 C2 0A 93 [00:29:56]CheckFolder [00:29:56]dirname=/storage/ofd_packets [00:29:56]CheckFolder done [00:29:56]ProducePacketName [00:29:56]name=ofd_packets/00063917 [00:29:56]NVStorageSaveData ofd_packets/00063917 [00:29:56]File name is /storage/ofd_packets/00063917 [00:29:56]Write 321 bytes [00:29:56]NVStorageSaveData done [00:29:56]OFDSenderStorePacket done [00:29:56]KKMCreateOFDPacket done [00:29:56]NVStorageSaveData kkm_last_timestamp [00:29:56]File name is /storage/kkm_last_timestamp [00:29:56]Write 4 bytes [00:29:56]NVStorageSaveData done [00:29:56]ExternCall_PrintAddStr [00:29:56]wPrintStart [00:29:56]Write to MH i2c: 01 00 00 C8 02 CA [00:29:56]Write i2c OK [00:29:56]MH_I2C_Read... [00:29:56]Read from MH i2c: 01 [00:29:56]MH_I2C_Read... [00:29:56]Read from MH i2c: 01 07 00 [00:29:56]MH_I2C_Read... [00:29:56]Read from MH i2c: 01 07 00 C8 02 00 00 00 00 00 FF 0F DF [00:29:56]RasterBufferAndPrint [00:29:56]line Счет N : (3)73484 [00:29:56]line ИНН: 02508201610067 [00:29:56]line Контрольно-Кассовый Чек [00:29:56]line ПРОДАЖА [00:29:56]line Товар: 4700000160204 [00:29:56]line Вода Легенда 1,5л [00:29:56]line 1.000 * 60.00 [00:29:56]line = 60.00 [00:29:56]line НДС 12% НСП 1% [00:29:56]line > о реализуемом товаре [00:29:56]line ИТОГО: 60.00 [00:29:56]line НСП 1% : 0.53 [00:29:56]line НДС 12% : 6.37 [00:29:56]line Наличными: 60.00 [00:29:56]line Безнал.: 0.00 [00:29:56]line Место: АЗС № 117 "Партнер Нефть" [00:29:56]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [00:29:56]line СНО: Общий режим [00:29:56]line Чек 2 04.06.2024 00:29 [00:29:56]line Смена: 374 ФФД: 1.0 [00:29:56]line ЗНМ: 0300000031 [00:29:56]line РНМ: 0000000000092737 [00:29:56]line Версия ККМ: 001 [00:29:56]line ФМ: 0000000000875074 [00:29:56]line ФД: 63917 [00:29:56]line ФПД: 131709569303840 [00:29:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T002954&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63917&fm=131709569303840&tin=02508201610067®Number=0000000000092737&sum=6000 [00:29:56]line 0 [00:29:56]OFD Sender: Processing packet 63917 [packets to send 14, broken 13] [00:29:56]ProducePacketName [00:29:56]name=ofd_packets/00063917 [00:29:56]OFD Sender: To server: pG, [00:29:56]CommunicateWithHost lk.salyk.kg:30040 [00:29:56]ConnectInit lk.salyk.kg [00:29:56]written 0, free lines is 4095 [00:29:56]Connected sock=10 [00:29:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 23 01 00 00 A2 6F 1B 01 26 5C 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 02 60 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 AD F9 00 00 35 04 06 00 77 CA 06 17 85 20 F8 C1 2A 27 10 C2 0A 93 [00:29:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 D5 0B 47 00 12 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 35 30 37 34 10 04 04 00 AD F9 00 00 F4 03 04 00 D2 0B 5E 66 B6 04 01 00 00 11 12 9B 94 16 70 63 E5 [00:29:56]CommunicateWithHost err = 0 [00:29:56]CheckOFDResponse [00:29:56]1017 (14) - 77093643461234 [00:29:56]1041 (16) - 0000000000875074 [00:29:56]1040 (4) - 63917 [00:29:56]1012 (4) - 03.06.2024 18:30 [00:29:56]1206 (1) - 0 [00:29:56]OFD Sender: Remove packet 63917 [00:29:56]ProducePacketName [00:29:56]name=ofd_packets/00063917 [00:29:56]NVStorageDeleteData [00:29:57]Write to MH i2c: 01 00 00 F0 02 F2 [00:29:57]Write i2c OK [00:29:57]MH_I2C_Read... [00:29:57]Read from MH i2c: 01 [00:29:57]MH_I2C_Read... [00:29:57]Read from MH i2c: 01 07 00 [00:29:57]MH_I2C_Read... [00:29:57]Read from MH i2c: 01 07 00 F0 02 00 00 00 00 00 03 0D 09 [00:29:57]RasterBufferAndPrint [00:29:57]line [00:29:57]line [00:29:57]line [00:29:57]line [00:29:57]line [00:29:57]written 0, free lines is 3340 [00:29:57]MH_Cut [00:29:57]Write to MH i2c: D1 01 00 F7 02 01 CB [00:29:57]Write i2c OK [00:29:57]MH_I2C_Read... [00:29:57]Read from MH i2c: D1 [00:29:57]MH_I2C_Read... [00:29:57]Read from MH i2c: D1 01 00 [00:29:57]MH_I2C_Read... [00:29:57]Read from MH i2c: D1 01 00 F7 02 00 CA [00:29:57]Write to MH i2c: 01 00 00 F8 02 FA [00:29:57]Write i2c OK [00:29:57]MH_I2C_Read... [00:29:57]OFD Sender: No OFD packet to send [00:29:57]*** Cut start [00:29:57]*** Partial cut [00:29:57]*** CUTSNS_PIN = 1 [00:29:57]*** CUTSNS_PIN = 0 [00:29:58]*** Brake cut motor [00:29:58]Read from MH i2c: 01 [00:29:58]MH_I2C_Read... [00:29:58]*** Stop cut motor [00:29:58]*** Cut end [00:29:58]Read from MH i2c: 01 07 00 [00:29:58]MH_I2C_Read... [00:29:58]Read from MH i2c: 01 07 00 F8 02 00 00 00 00 00 FF 0F 0F [00:29:58]process_action close_receipt done [00:29:58]requested_data is exist [00:29:58]produce_requested_data [00:29:58]requested_item fm.sn is exist - process it [00:29:58]wFMCommunicate request_size=4 [00:29:58]MH_SAM_APDU [00:29:58]CAPDU: 80 11 00 00 [00:29:58]Write to MH i2c: E2 08 00 F9 02 80 11 00 00 00 00 00 00 75 [00:29:58]Write i2c OK [00:29:58]MH_I2C_Read... [00:29:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:29:58]Read from MH i2c: E2 [00:29:58]MH_I2C_Read... [00:29:58]Read from MH i2c: E2 17 00 [00:29:58]MH_I2C_Read... [00:29:58]Read from MH i2c: E2 17 00 F9 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 C7 [00:29:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [00:29:58]wFMCommunicate OK [00:29:58]requested_item fd.num is exist - process it [00:29:58]SAM_PROTO_GetFieldsCounters [00:29:58]wFMCommunicate request_size=4 [00:29:58]MH_SAM_APDU [00:29:58]CAPDU: 80 13 00 00 [00:29:58]Write to MH i2c: E2 08 00 FA 02 80 13 00 00 00 00 00 00 78 [00:29:58]Write i2c OK [00:29:58]MH_I2C_Read... [00:29:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:29:58]Read from MH i2c: E2 [00:29:58]MH_I2C_Read... [00:29:58]Read from MH i2c: E2 62 00 [00:29:58]MH_I2C_Read... [00:29:58]Read from MH i2c: E2 62 00 FA 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 AD F9 00 00 0E 04 04 00 76 01 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 BE [00: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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 AD F9 00 00 0E 04 04 00 76 01 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:29:58]wFMCommunicate OK [00:29:58]SAM_PROTO_GetFieldsCounters done [00:29:58]requested_item shift.num is exist - process it [00:29:58]requested_item shift.opened is exist - process it [00:29:58]req_shift_opened [00:29:58]FM_GetShiftState [00:29:58]SAM_PROTO_GetShiftState [00:29:58]wFMCommunicate request_size=4 [00:29:58]MH_SAM_APDU [00:29:58]CAPDU: 80 13 01 00 [00:29:58]Write to MH i2c: E2 08 00 FB 02 80 13 01 00 00 00 00 00 7A [00:29:58]Write i2c OK [00:29:58]MH_I2C_Read... [00:29:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:29:58]Read from MH i2c: E2 [00:29:58]MH_I2C_Read... [00:29:58]Read from MH i2c: E2 0E 00 [00:29:58]MH_I2C_Read... [00:29:58]Read from MH i2c: E2 0E 00 FB 02 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 1A [00:29:58]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [00:29:58]wFMCommunicate OK [00:29:58]SAM_PROTO_GetShiftState done [00:29:58]FM_GetShiftState done [00:29:58]req_shift_opened done [00:29:58]requested_item shift.open_date is exist - process it [00:29:58]req_shift_open_date [00:29:58]req_shift_open_date done [00:29:58]produce_requested_data done [00:29:58]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63917,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [00:29:58]process_action_free close_receipt [00:29:58]json_value_free [00:29:58]json_value_free done [00:29:58]process_json_proto returns [00:29:58]Send response to host [00:29:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63917,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [00:29:58]free response buf [00:29:58]execute_script done [00:29:58]execute_script returns [00:29:58]free content buf [00:29:58]Sock 7.Close socket [00:29:58]Sock 7.Thread stoped [00:30:02]OFD Sender: No OFD packet to send [00:30:07]OFD Sender: No OFD packet to send [00:30:12]OFD Sender: No OFD packet to send [00:30:17]OFD Sender: No OFD packet to send [00:30:22]OFD Sender: No OFD packet to send [00:30:27]OFD Sender: No OFD packet to send [00:30:32]OFD Sender: No OFD packet to send [00:30:37]OFD Sender: No OFD packet to send [00:30:42]OFD Sender: No OFD packet to send [00:30:47]OFD Sender: No OFD packet to send [00:30:52]OFD Sender: No OFD packet to send [00:30:57]OFD Sender: No OFD packet to send [00:31:02]OFD Sender: No OFD packet to send [00:31:07]OFD Sender: No OFD packet to send [00:31:12]OFD Sender: No OFD packet to send [00:31:17]OFD Sender: No OFD packet to send [00:31:22]OFD Sender: No OFD packet to send [00:31:27]OFD Sender: No OFD packet to send [00:31:32]OFD Sender: No OFD packet to send [00:31:37]OFD Sender: No OFD packet to send [00:31:42]OFD Sender: No OFD packet to send [00:31:47]OFD Sender: No OFD packet to send [00:31:52]OFD Sender: No OFD packet to send [00:31:57]OFD Sender: No OFD packet to send [00:32:02]OFD Sender: No OFD packet to send [00:32:07]OFD Sender: No OFD packet to send [00:32:12]OFD Sender: No OFD packet to send [00:32:17]OFD Sender: No OFD packet to send [00:32:22]OFD Sender: No OFD packet to send [00:32:27]OFD Sender: No OFD packet to send [00:32:32]OFD Sender: No OFD packet to send [00:32:37]OFD Sender: No OFD packet to send [00:32:42]OFD Sender: No OFD packet to send [00:32:47]OFD Sender: No OFD packet to send [00:32:52]OFD Sender: No OFD packet to send [00:32:57]OFD Sender: No OFD packet to send [00:33:02]OFD Sender: No OFD packet to send [00:33:07]OFD Sender: No OFD packet to send [00:33:12]OFD Sender: No OFD packet to send [00:33:17]OFD Sender: No OFD packet to send [00:33:22]OFD Sender: No OFD packet to send [00:33:27]OFD Sender: No OFD packet to send [00:33:32]OFD Sender: No OFD packet to send [00:33:37]OFD Sender: No OFD packet to send [00:33:42]OFD Sender: No OFD packet to send [00:33:47]OFD Sender: No OFD packet to send [00:33:52]OFD Sender: No OFD packet to send [00:33:57]OFD Sender: No OFD packet to send [00:34:02]OFD Sender: No OFD packet to send [00:34:07]OFD Sender: No OFD packet to send [00:34:12]OFD Sender: No OFD packet to send [00:34:17]OFD Sender: No OFD packet to send [00:34:22]OFD Sender: No OFD packet to send [00:34:27]OFD Sender: No OFD packet to send [00:34:32]OFD Sender: No OFD packet to send [00:34:37]OFD Sender: No OFD packet to send [00:34:42]OFD Sender: No OFD packet to send [00:34:47]OFD Sender: No OFD packet to send [00:34:52]OFD Sender: No OFD packet to send [00:34:57]OFD Sender: No OFD packet to send [00:35:02]OFD Sender: No OFD packet to send [00:35:07]OFD Sender: No OFD packet to send [00:35:12]OFD Sender: No OFD packet to send [00:35:17]OFD Sender: No OFD packet to send [00:35:22]OFD Sender: No OFD packet to send [00:35:27]OFD Sender: No OFD packet to send [00:35:32]OFD Sender: No OFD packet to send [00:35:37]OFD Sender: No OFD packet to send [00:35:42]OFD Sender: No OFD packet to send [00:35:47]OFD Sender: No OFD packet to send [00:35:52]OFD Sender: No OFD packet to send [00:35:57]OFD Sender: No OFD packet to send [00:36:02]OFD Sender: No OFD packet to send [00:36:07]OFD Sender: No OFD packet to send [00:36:12]OFD Sender: No OFD packet to send [00:36:17]OFD Sender: No OFD packet to send [00:36:22]OFD Sender: No OFD packet to send [00:36:27]OFD Sender: No OFD packet to send [00:36:32]OFD Sender: No OFD packet to send [00:36:37]OFD Sender: No OFD packet to send [00:36:42]OFD Sender: No OFD packet to send [00:36:47]OFD Sender: No OFD packet to send [00:36:52]OFD Sender: No OFD packet to send [00:36:57]OFD Sender: No OFD packet to send [00:37:02]OFD Sender: No OFD packet to send [00:37:07]OFD Sender: No OFD packet to send [00:37:12]OFD Sender: No OFD packet to send [00:37:17]OFD Sender: No OFD packet to send [00:37:22]OFD Sender: No OFD packet to send [00:37:27]OFD Sender: No OFD packet to send [00:37:32]OFD Sender: No OFD packet to send [00:37:37]OFD Sender: No OFD packet to send [00:37:42]OFD Sender: No OFD packet to send [00:37:47]OFD Sender: No OFD packet to send [00:37:52]OFD Sender: No OFD packet to send [00:37:57]OFD Sender: No OFD packet to send [00:38:02]OFD Sender: No OFD packet to send [00:38:07]OFD Sender: No OFD packet to send [00:38:12]OFD Sender: No OFD packet to send [00:38:17]OFD Sender: No OFD packet to send [00:38:22]OFD Sender: No OFD packet to send [00:38:27]OFD Sender: No OFD packet to send [00:38:32]OFD Sender: No OFD packet to send [00:38:37]OFD Sender: No OFD packet to send [00:38:42]OFD Sender: No OFD packet to send [00:38:47]OFD Sender: No OFD packet to send [00:38:52]OFD Sender: No OFD packet to send [00:38:57]OFD Sender: No OFD packet to send [00:39:02]OFD Sender: No OFD packet to send [00:39:07]OFD Sender: No OFD packet to send [00:39:12]OFD Sender: No OFD packet to send [00:39:17]OFD Sender: No OFD packet to send [00:39:22]OFD Sender: No OFD packet to send [00:39:27]OFD Sender: No OFD packet to send [00:39:32]OFD Sender: No OFD packet to send [00:39:37]OFD Sender: No OFD packet to send [00:39:42]OFD Sender: No OFD packet to send [00:39:47]OFD Sender: No OFD packet to send [00:39:52]OFD Sender: No OFD packet to send [00:39:57]OFD Sender: No OFD packet to send [00:40:02]OFD Sender: No OFD packet to send [00:40:07]OFD Sender: No OFD packet to send [00:40:12]OFD Sender: No OFD packet to send [00:40:17]OFD Sender: No OFD packet to send [00:40:22]OFD Sender: No OFD packet to send [00:40:27]OFD Sender: No OFD packet to send [00:40:32]OFD Sender: No OFD packet to send [00:40:37]OFD Sender: No OFD packet to send [00:40:42]OFD Sender: No OFD packet to send [00:40:47]OFD Sender: No OFD packet to send [00:40:52]OFD Sender: No OFD packet to send [00:40:57]OFD Sender: No OFD packet to send [00:41:03]OFD Sender: No OFD packet to send [00:41:08]OFD Sender: No OFD packet to send [00:41:13]OFD Sender: No OFD packet to send [00:41:18]OFD Sender: No OFD packet to send [00:41:23]OFD Sender: No OFD packet to send [00:41:28]OFD Sender: No OFD packet to send [00:41:33]OFD Sender: No OFD packet to send [00:41:38]OFD Sender: No OFD packet to send [00:41:43]OFD Sender: No OFD packet to send [00:41:48]OFD Sender: No OFD packet to send [00:41:53]OFD Sender: No OFD packet to send [00:41:58]OFD Sender: No OFD packet to send [00:42:03]OFD Sender: No OFD packet to send [00:42:08]OFD Sender: No OFD packet to send [00:42:13]OFD Sender: No OFD packet to send [00:42:18]OFD Sender: No OFD packet to send [00:42:23]OFD Sender: No OFD packet to send [00:42:28]OFD Sender: No OFD packet to send [00:42:33]OFD Sender: No OFD packet to send [00:42:38]OFD Sender: No OFD packet to send [00:42:43]OFD Sender: No OFD packet to send [00:42:48]OFD Sender: No OFD packet to send [00:42:53]OFD Sender: No OFD packet to send [00:42:58]OFD Sender: No OFD packet to send [00:43:03]OFD Sender: No OFD packet to send [00:43:08]OFD Sender: No OFD packet to send [00:43:13]OFD Sender: No OFD packet to send [00:43:18]OFD Sender: No OFD packet to send [00:43:23]OFD Sender: No OFD packet to send [00:43:28]OFD Sender: No OFD packet to send [00:43:33]OFD Sender: No OFD packet to send [00:43:38]OFD Sender: No OFD packet to send [00:43:43]OFD Sender: No OFD packet to send [00:43:48]OFD Sender: No OFD packet to send [00:43:53]OFD Sender: No OFD packet to send [00:43:58]OFD Sender: No OFD packet to send [00:44:03]OFD Sender: No OFD packet to send [00:44:08]OFD Sender: No OFD packet to send [00:44:13]OFD Sender: No OFD packet to send [00:44:18]OFD Sender: No OFD packet to send [00:44:23]OFD Sender: No OFD packet to send [00:44:28]OFD Sender: No OFD packet to send [00:44:33]OFD Sender: No OFD packet to send [00:44:38]OFD Sender: No OFD packet to send [00:44:43]OFD Sender: No OFD packet to send [00:44:48]OFD Sender: No OFD packet to send [00:44:53]OFD Sender: No OFD packet to send [00:44:58]OFD Sender: No OFD packet to send [00:45:03]OFD Sender: No OFD packet to send [00:45:08]OFD Sender: No OFD packet to send [00:45:13]OFD Sender: No OFD packet to send [00:45:18]OFD Sender: No OFD packet to send [00:45:23]OFD Sender: No OFD packet to send [00:45:28]OFD Sender: No OFD packet to send [00:45:33]OFD Sender: No OFD packet to send [00:45:38]OFD Sender: No OFD packet to send [00:45:43]OFD Sender: No OFD packet to send [00:45:48]OFD Sender: No OFD packet to send [00:45:53]OFD Sender: No OFD packet to send [00:45:58]OFD Sender: No OFD packet to send [00:46:03]OFD Sender: No OFD packet to send [00:46:08]OFD Sender: No OFD packet to send [00:46:13]OFD Sender: No OFD packet to send [00:46:18]OFD Sender: No OFD packet to send [00:46:23]OFD Sender: No OFD packet to send [00:46:28]OFD Sender: No OFD packet to send [00:46:33]OFD Sender: No OFD packet to send [00:46:38]OFD Sender: No OFD packet to send [00:46:43]OFD Sender: No OFD packet to send [00:46:48]OFD Sender: No OFD packet to send [00:46:53]OFD Sender: No OFD packet to send [00:46:58]OFD Sender: No OFD packet to send [00:47:03]OFD Sender: No OFD packet to send [00:47:08]OFD Sender: No OFD packet to send [00:47:13]OFD Sender: No OFD packet to send [00:47:18]OFD Sender: No OFD packet to send [00:47:23]OFD Sender: No OFD packet to send [00:47:28]OFD Sender: No OFD packet to send [00:47:33]OFD Sender: No OFD packet to send [00:47:38]OFD Sender: No OFD packet to send [00:47:43]OFD Sender: No OFD packet to send [00:47:48]OFD Sender: No OFD packet to send [00:47:53]OFD Sender: No OFD packet to send [00:47:58]OFD Sender: No OFD packet to send [00:48:03]OFD Sender: No OFD packet to send [00:48:08]OFD Sender: No OFD packet to send [00:48:13]OFD Sender: No OFD packet to send [00:48:18]OFD Sender: No OFD packet to send [00:48:23]OFD Sender: No OFD packet to send [00:48:28]OFD Sender: No OFD packet to send [00:48:33]OFD Sender: No OFD packet to send [00:48:38]OFD Sender: No OFD packet to send [00:48:43]OFD Sender: No OFD packet to send [00:48:48]OFD Sender: No OFD packet to send [00:48:53]OFD Sender: No OFD packet to send [00:48:58]OFD Sender: No OFD packet to send [00:49:03]OFD Sender: No OFD packet to send [00:49:08]OFD Sender: No OFD packet to send [00:49:13]OFD Sender: No OFD packet to send [00:49:18]OFD Sender: No OFD packet to send [00:49:23]OFD Sender: No OFD packet to send [00:49:28]OFD Sender: No OFD packet to send [00:49:33]OFD Sender: No OFD packet to send [00:49:38]OFD Sender: No OFD packet to send [00:49:43]OFD Sender: No OFD packet to send [00:49:48]OFD Sender: No OFD packet to send [00:49:53]OFD Sender: No OFD packet to send [00:49:58]OFD Sender: No OFD packet to send [00:50:03]OFD Sender: No OFD packet to send [00:50:08]OFD Sender: No OFD packet to send [00:50:13]OFD Sender: No OFD packet to send [00:50:18]OFD Sender: No OFD packet to send [00:50:23]OFD Sender: No OFD packet to send [00:50:28]OFD Sender: No OFD packet to send [00:50:33]OFD Sender: No OFD packet to send [00:50:38]OFD Sender: No OFD packet to send [00:50:43]OFD Sender: No OFD packet to send [00:50:48]OFD Sender: No OFD packet to send [00:50:53]OFD Sender: No OFD packet to send [00:50:58]OFD Sender: No OFD packet to send [00:51:03]OFD Sender: No OFD packet to send [00:51:08]OFD Sender: No OFD packet to send [00:51:13]OFD Sender: No OFD packet to send [00:51:18]OFD Sender: No OFD packet to send [00:51:23]OFD Sender: No OFD packet to send [00:51:28]OFD Sender: No OFD packet to send [00:51:33]OFD Sender: No OFD packet to send [00:51:38]OFD Sender: No OFD packet to send [00:51:43]OFD Sender: No OFD packet to send [00:51:48]OFD Sender: No OFD packet to send [00:51:53]OFD Sender: No OFD packet to send [00:51:58]OFD Sender: No OFD packet to send [00:52:03]OFD Sender: No OFD packet to send [00:52:08]OFD Sender: No OFD packet to send [00:52:13]OFD Sender: No OFD packet to send [00:52:18]OFD Sender: No OFD packet to send [00:52:23]OFD Sender: No OFD packet to send [00:52:28]OFD Sender: No OFD packet to send [00:52:33]OFD Sender: No OFD packet to send [00:52:38]OFD Sender: No OFD packet to send [00:52:43]OFD Sender: No OFD packet to send [00:52:48]OFD Sender: No OFD packet to send [00:52:53]OFD Sender: No OFD packet to send [00:52:58]OFD Sender: No OFD packet to send [00:53:03]OFD Sender: No OFD packet to send [00:53:08]OFD Sender: No OFD packet to send [00:53:13]OFD Sender: No OFD packet to send [00:53:18]OFD Sender: No OFD packet to send [00:53:23]OFD Sender: No OFD packet to send [00:53:28]OFD Sender: No OFD packet to send [00:53:33]OFD Sender: No OFD packet to send [00:53:38]OFD Sender: No OFD packet to send [00:53:43]OFD Sender: No OFD packet to send [00:53:48]OFD Sender: No OFD packet to send [00:53:53]OFD Sender: No OFD packet to send [00:53:58]OFD Sender: No OFD packet to send [00:54:03]OFD Sender: No OFD packet to send [00:54:08]OFD Sender: No OFD packet to send [00:54:13]OFD Sender: No OFD packet to send [00:54:18]OFD Sender: No OFD packet to send [00:54:23]OFD Sender: No OFD packet to send [00:54:28]OFD Sender: No OFD packet to send [00:54:33]OFD Sender: No OFD packet to send [00:54:38]OFD Sender: No OFD packet to send [00:54:43]OFD Sender: No OFD packet to send [00:54:48]OFD Sender: No OFD packet to send [00:54:53]OFD Sender: No OFD packet to send [00:54:58]OFD Sender: No OFD packet to send [00:55:03]OFD Sender: No OFD packet to send [00:55:08]OFD Sender: No OFD packet to send [00:55:13]OFD Sender: No OFD packet to send [00:55:18]OFD Sender: No OFD packet to send [00:55:23]OFD Sender: No OFD packet to send [00:55:28]OFD Sender: No OFD packet to send [00:55:33]OFD Sender: No OFD packet to send [00:55:38]OFD Sender: No OFD packet to send [00:55:43]OFD Sender: No OFD packet to send [00:55:48]OFD Sender: No OFD packet to send [00:55:53]OFD Sender: No OFD packet to send [00:55:58]OFD Sender: No OFD packet to send [00:56:03]OFD Sender: No OFD packet to send [00:56:08]OFD Sender: No OFD packet to send [00:56:13]OFD Sender: No OFD packet to send [00:56:18]OFD Sender: No OFD packet to send [00:56:23]OFD Sender: No OFD packet to send [00:56:28]OFD Sender: No OFD packet to send [00:56:33]OFD Sender: No OFD packet to send [00:56:38]OFD Sender: No OFD packet to send [00:56:43]OFD Sender: No OFD packet to send [00:56:48]OFD Sender: No OFD packet to send [00:56:53]OFD Sender: No OFD packet to send [00:56:58]OFD Sender: No OFD packet to send [00:57:03]OFD Sender: No OFD packet to send [00:57:08]OFD Sender: No OFD packet to send [00:57:13]OFD Sender: No OFD packet to send [00:57:18]OFD Sender: No OFD packet to send [00:57:23]OFD Sender: No OFD packet to send [00:57:28]OFD Sender: No OFD packet to send [00:57:33]OFD Sender: No OFD packet to send [00:57:38]OFD Sender: No OFD packet to send [00:57:43]OFD Sender: No OFD packet to send [00:57:48]OFD Sender: No OFD packet to send [00:57:53]OFD Sender: No OFD packet to send [00:57:58]OFD Sender: No OFD packet to send [00:58:03]OFD Sender: No OFD packet to send [00:58:08]OFD Sender: No OFD packet to send [00:58:13]OFD Sender: No OFD packet to send [00:58:18]OFD Sender: No OFD packet to send [00:58:23]OFD Sender: No OFD packet to send [00:58:28]OFD Sender: No OFD packet to send [00:58:33]OFD Sender: No OFD packet to send [00:58:38]OFD Sender: No OFD packet to send [00:58:43]OFD Sender: No OFD packet to send [00:58:48]OFD Sender: No OFD packet to send [00:58:53]OFD Sender: No OFD packet to send [00:58:58]OFD Sender: No OFD packet to send [00:59:03]OFD Sender: No OFD packet to send [00:59:08]OFD Sender: No OFD packet to send [00:59:13]OFD Sender: No OFD packet to send [00:59:18]OFD Sender: No OFD packet to send [00:59:23]OFD Sender: No OFD packet to send [00:59:28]OFD Sender: No OFD packet to send [00:59:33]OFD Sender: No OFD packet to send [00:59:38]OFD Sender: No OFD packet to send [00:59:43]OFD Sender: No OFD packet to send [00:59:48]OFD Sender: No OFD packet to send [00:59:53]OFD Sender: No OFD packet to send [00:59:58]OFD Sender: No OFD packet to send [01:00:03]OFD Sender: No OFD packet to send [01:00:08]OFD Sender: No OFD packet to send [01:00:13]OFD Sender: No OFD packet to send [01:00:18]OFD Sender: No OFD packet to send [01:00:23]OFD Sender: No OFD packet to send [01:00:28]OFD Sender: No OFD packet to send [01:00:33]OFD Sender: No OFD packet to send [01:00:38]OFD Sender: No OFD packet to send [01:00:43]OFD Sender: No OFD packet to send [01:00:48]OFD Sender: No OFD packet to send [01:00:53]OFD Sender: No OFD packet to send [01:00:58]OFD Sender: No OFD packet to send [01:01:03]OFD Sender: No OFD packet to send [01:01:08]OFD Sender: No OFD packet to send [01:01:13]OFD Sender: No OFD packet to send [01:01:18]OFD Sender: No OFD packet to send [01:01:23]OFD Sender: No OFD packet to send [01:01:28]OFD Sender: No OFD packet to send [01:01:33]OFD Sender: No OFD packet to send [01:01:38]OFD Sender: No OFD packet to send [01:01:43]OFD Sender: No OFD packet to send [01:01:49]OFD Sender: No OFD packet to send [01:01:54]OFD Sender: No OFD packet to send [01:01:59]OFD Sender: No OFD packet to send [01:02:04]OFD Sender: No OFD packet to send [01:02:09]OFD Sender: No OFD packet to send [01:02:14]OFD Sender: No OFD packet to send [01:02:19]OFD Sender: No OFD packet to send [01:02:24]OFD Sender: No OFD packet to send [01:02:29]OFD Sender: No OFD packet to send [01:02:34]OFD Sender: No OFD packet to send [01:02:39]OFD Sender: No OFD packet to send [01:02:44]OFD Sender: No OFD packet to send [01:02:49]OFD Sender: No OFD packet to send [01:02:54]OFD Sender: No OFD packet to send [01:02:59]OFD Sender: No OFD packet to send [01:03:04]OFD Sender: No OFD packet to send [01:03:09]OFD Sender: No OFD packet to send [01:03:14]OFD Sender: No OFD packet to send [01:03:19]OFD Sender: No OFD packet to send [01:03:24]OFD Sender: No OFD packet to send [01:03:29]OFD Sender: No OFD packet to send [01:03:34]OFD Sender: No OFD packet to send [01:03:39]OFD Sender: No OFD packet to send [01:03:44]OFD Sender: No OFD packet to send [01:03:49]OFD Sender: No OFD packet to send [01:03:54]OFD Sender: No OFD packet to send [01:03:59]OFD Sender: No OFD packet to send [01:04:04]OFD Sender: No OFD packet to send [01:04:09]OFD Sender: No OFD packet to send [01:04:14]OFD Sender: No OFD packet to send [01:04:19]OFD Sender: No OFD packet to send [01:04:24]OFD Sender: No OFD packet to send [01:04:29]OFD Sender: No OFD packet to send [01:04:34]OFD Sender: No OFD packet to send [01:04:39]OFD Sender: No OFD packet to send [01:04:44]OFD Sender: No OFD packet to send [01:04:49]OFD Sender: No OFD packet to send [01:04:54]OFD Sender: No OFD packet to send [01:04:59]OFD Sender: No OFD packet to send [01:05:04]OFD Sender: No OFD packet to send [01:05:09]OFD Sender: No OFD packet to send [01:05:14]OFD Sender: No OFD packet to send [01:05:19]OFD Sender: No OFD packet to send [01:05:24]OFD Sender: No OFD packet to send [01:05:29]OFD Sender: No OFD packet to send [01:05:34]OFD Sender: No OFD packet to send [01:05:39]OFD Sender: No OFD packet to send [01:05:44]OFD Sender: No OFD packet to send [01:05:49]OFD Sender: No OFD packet to send [01:05:54]OFD Sender: No OFD packet to send [01:05:59]OFD Sender: No OFD packet to send [01:06:04]OFD Sender: No OFD packet to send [01:06:09]OFD Sender: No OFD packet to send [01:06:14]OFD Sender: No OFD packet to send [01:06:19]OFD Sender: No OFD packet to send [01:06:24]OFD Sender: No OFD packet to send [01:06:29]OFD Sender: No OFD packet to send [01:06:34]OFD Sender: No OFD packet to send [01:06:39]OFD Sender: No OFD packet to send [01:06:44]OFD Sender: No OFD packet to send [01:06:49]OFD Sender: No OFD packet to send [01:06:54]OFD Sender: No OFD packet to send [01:06:59]OFD Sender: No OFD packet to send [01:07:04]OFD Sender: No OFD packet to send [01:07:09]OFD Sender: No OFD packet to send [01:07:14]OFD Sender: No OFD packet to send [01:07:19]OFD Sender: No OFD packet to send [01:07:24]OFD Sender: No OFD packet to send [01:07:29]OFD Sender: No OFD packet to send [01:07:34]OFD Sender: No OFD packet to send [01:07:39]OFD Sender: No OFD packet to send [01:07:44]OFD Sender: No OFD packet to send [01:07:49]OFD Sender: No OFD packet to send [01:07:54]OFD Sender: No OFD packet to send [01:07:59]OFD Sender: No OFD packet to send [01:08:04]OFD Sender: No OFD packet to send [01:08:09]OFD Sender: No OFD packet to send [01:08:14]OFD Sender: No OFD packet to send [01:08:19]OFD Sender: No OFD packet to send [01:08:24]OFD Sender: No OFD packet to send [01:08:29]OFD Sender: No OFD packet to send [01:08:34]OFD Sender: No OFD packet to send [01:08:39]OFD Sender: No OFD packet to send [01:08:44]OFD Sender: No OFD packet to send [01:08:49]OFD Sender: No OFD packet to send [01:08:54]OFD Sender: No OFD packet to send [01:08:59]OFD Sender: No OFD packet to send [01:09:04]OFD Sender: No OFD packet to send [01:09:09]OFD Sender: No OFD packet to send [01:09:14]OFD Sender: No OFD packet to send [01:09:19]OFD Sender: No OFD packet to send [01:09:24]OFD Sender: No OFD packet to send [01:09:29]OFD Sender: No OFD packet to send [01:09:34]OFD Sender: No OFD packet to send [01:09:39]OFD Sender: No OFD packet to send [01:09:44]OFD Sender: No OFD packet to send [01:09:49]OFD Sender: No OFD packet to send [01:09:54]OFD Sender: No OFD packet to send [01:09:59]OFD Sender: No OFD packet to send [01:10:04]OFD Sender: No OFD packet to send [01:10:09]OFD Sender: No OFD packet to send [01:10:14]OFD Sender: No OFD packet to send [01:10:19]OFD Sender: No OFD packet to send [01:10:24]OFD Sender: No OFD packet to send [01:10:29]OFD Sender: No OFD packet to send [01:10:34]OFD Sender: No OFD packet to send [01:10:39]OFD Sender: No OFD packet to send [01:10:44]OFD Sender: No OFD packet to send [01:10:49]OFD Sender: No OFD packet to send [01:10:54]OFD Sender: No OFD packet to send [01:10:59]OFD Sender: No OFD packet to send [01:11:04]OFD Sender: No OFD packet to send [01:11:09]OFD Sender: No OFD packet to send [01:11:14]OFD Sender: No OFD packet to send [01:11:19]OFD Sender: No OFD packet to send [01:11:24]OFD Sender: No OFD packet to send [01:11:29]OFD Sender: No OFD packet to send [01:11:34]OFD Sender: No OFD packet to send [01:11:39]OFD Sender: No OFD packet to send [01:11:44]OFD Sender: No OFD packet to send [01:11:49]OFD Sender: No OFD packet to send [01:11:54]OFD Sender: No OFD packet to send [01:11:59]OFD Sender: No OFD packet to send [01:12:04]OFD Sender: No OFD packet to send [01:12:09]OFD Sender: No OFD packet to send [01:12:14]OFD Sender: No OFD packet to send [01:12:19]OFD Sender: No OFD packet to send [01:12:24]OFD Sender: No OFD packet to send [01:12:29]OFD Sender: No OFD packet to send [01:12:34]OFD Sender: No OFD packet to send [01:12:39]OFD Sender: No OFD packet to send [01:12:44]OFD Sender: No OFD packet to send [01:12:49]OFD Sender: No OFD packet to send [01:12:54]OFD Sender: No OFD packet to send [01:12:59]OFD Sender: No OFD packet to send [01:13:04]OFD Sender: No OFD packet to send [01:13:09]OFD Sender: No OFD packet to send [01:13:14]OFD Sender: No OFD packet to send [01:13:19]OFD Sender: No OFD packet to send [01:13:24]OFD Sender: No OFD packet to send [01:13:29]OFD Sender: No OFD packet to send [01:13:34]OFD Sender: No OFD packet to send [01:13:39]OFD Sender: No OFD packet to send [01:13:44]OFD Sender: No OFD packet to send [01:13:49]OFD Sender: No OFD packet to send [01:13:54]OFD Sender: No OFD packet to send [01:13:59]OFD Sender: No OFD packet to send [01:14:04]OFD Sender: No OFD packet to send [01:14:09]OFD Sender: No OFD packet to send [01:14:14]OFD Sender: No OFD packet to send [01:14:19]OFD Sender: No OFD packet to send [01:14:24]OFD Sender: No OFD packet to send [01:14:29]OFD Sender: No OFD packet to send [01:14:34]OFD Sender: No OFD packet to send [01:14:39]OFD Sender: No OFD packet to send [01:14:44]OFD Sender: No OFD packet to send [01:14:49]OFD Sender: No OFD packet to send [01:14:54]OFD Sender: No OFD packet to send [01:14:59]OFD Sender: No OFD packet to send [01:15:04]OFD Sender: No OFD packet to send [01:15:09]OFD Sender: No OFD packet to send [01:15:14]OFD Sender: No OFD packet to send [01:15:19]OFD Sender: No OFD packet to send [01:15:24]OFD Sender: No OFD packet to send [01:15:29]OFD Sender: No OFD packet to send [01:15:34]OFD Sender: No OFD packet to send [01:15:39]OFD Sender: No OFD packet to send [01:15:44]OFD Sender: No OFD packet to send [01:15:49]OFD Sender: No OFD packet to send [01:15:54]OFD Sender: No OFD packet to send [01:15:59]OFD Sender: No OFD packet to send [01:16:04]OFD Sender: No OFD packet to send [01:16:09]OFD Sender: No OFD packet to send [01:16:14]OFD Sender: No OFD packet to send [01:16:19]OFD Sender: No OFD packet to send [01:16:24]OFD Sender: No OFD packet to send [01:16:29]OFD Sender: No OFD packet to send [01:16:34]OFD Sender: No OFD packet to send [01:16:39]OFD Sender: No OFD packet to send [01:16:44]OFD Sender: No OFD packet to send [01:16:49]OFD Sender: No OFD packet to send [01:16:54]OFD Sender: No OFD packet to send [01:16:59]OFD Sender: No OFD packet to send [01:17:04]OFD Sender: No OFD packet to send [01:17:09]OFD Sender: No OFD packet to send [01:17:14]OFD Sender: No OFD packet to send [01:17:19]OFD Sender: No OFD packet to send [01:17:24]OFD Sender: No OFD packet to send [01:17:29]OFD Sender: No OFD packet to send [01:17:34]OFD Sender: No OFD packet to send [01:17:39]OFD Sender: No OFD packet to send [01:17:44]OFD Sender: No OFD packet to send [01:17:49]OFD Sender: No OFD packet to send [01:17:54]OFD Sender: No OFD packet to send [01:17:59]OFD Sender: No OFD packet to send [01:18:04]OFD Sender: No OFD packet to send [01:18:09]OFD Sender: No OFD packet to send [01:18:14]OFD Sender: No OFD packet to send [01:18:19]OFD Sender: No OFD packet to send [01:18:24]OFD Sender: No OFD packet to send [01:18:29]OFD Sender: No OFD packet to send [01:18:34]OFD Sender: No OFD packet to send [01:18:39]OFD Sender: No OFD packet to send [01:18:44]OFD Sender: No OFD packet to send [01:18:49]OFD Sender: No OFD packet to send [01:18:54]OFD Sender: No OFD packet to send [01:18:59]OFD Sender: No OFD packet to send [01:19:04]OFD Sender: No OFD packet to send [01:19:09]OFD Sender: No OFD packet to send [01:19:14]OFD Sender: No OFD packet to send [01:19:19]OFD Sender: No OFD packet to send [01:19:24]OFD Sender: No OFD packet to send [01:19:29]OFD Sender: No OFD packet to send [01:19:34]OFD Sender: No OFD packet to send [01:19:39]OFD Sender: No OFD packet to send [01:19:44]OFD Sender: No OFD packet to send [01:19:49]OFD Sender: No OFD packet to send [01:19:54]OFD Sender: No OFD packet to send [01:19:59]OFD Sender: No OFD packet to send [01:20:04]OFD Sender: No OFD packet to send [01:20:09]OFD Sender: No OFD packet to send [01:20:14]OFD Sender: No OFD packet to send [01:20:19]OFD Sender: No OFD packet to send [01:20:24]OFD Sender: No OFD packet to send [01:20:29]OFD Sender: No OFD packet to send [01:20:34]OFD Sender: No OFD packet to send [01:20:39]OFD Sender: No OFD packet to send [01:20:44]OFD Sender: No OFD packet to send [01:20:49]OFD Sender: No OFD packet to send [01:20:54]OFD Sender: No OFD packet to send [01:20:59]OFD Sender: No OFD packet to send [01:21:04]OFD Sender: No OFD packet to send [01:21:09]OFD Sender: No OFD packet to send [01:21:14]OFD Sender: No OFD packet to send [01:21:19]OFD Sender: No OFD packet to send [01:21:24]OFD Sender: No OFD packet to send [01:21:29]OFD Sender: No OFD packet to send [01:21:34]OFD Sender: No OFD packet to send [01:21:39]OFD Sender: No OFD packet to send [01:21:44]OFD Sender: No OFD packet to send [01:21:49]OFD Sender: No OFD packet to send [01:21:54]OFD Sender: No OFD packet to send [01:21:59]OFD Sender: No OFD packet to send [01:22:04]OFD Sender: No OFD packet to send [01:22:09]OFD Sender: No OFD packet to send [01:22:14]OFD Sender: No OFD packet to send [01:22:19]OFD Sender: No OFD packet to send [01:22:24]OFD Sender: No OFD packet to send [01:22:29]OFD Sender: No OFD packet to send [01:22:35]OFD Sender: No OFD packet to send [01:22:40]OFD Sender: No OFD packet to send [01:22:45]OFD Sender: No OFD packet to send [01:22:50]OFD Sender: No OFD packet to send [01:22:55]OFD Sender: No OFD packet to send [01:23:00]OFD Sender: No OFD packet to send [01:23:05]OFD Sender: No OFD packet to send [01:23:10]OFD Sender: No OFD packet to send [01:23:15]OFD Sender: No OFD packet to send [01:23:20]OFD Sender: No OFD packet to send [01:23:25]OFD Sender: No OFD packet to send [01:23:30]OFD Sender: No OFD packet to send [01:23:35]OFD Sender: No OFD packet to send [01:23:40]OFD Sender: No OFD packet to send [01:23:45]OFD Sender: No OFD packet to send [01:23:50]OFD Sender: No OFD packet to send [01:23:55]OFD Sender: No OFD packet to send [01:24:00]OFD Sender: No OFD packet to send [01:24:05]OFD Sender: No OFD packet to send [01:24:10]OFD Sender: No OFD packet to send [01:24:15]OFD Sender: No OFD packet to send [01:24:20]OFD Sender: No OFD packet to send [01:24:25]OFD Sender: No OFD packet to send [01:24:30]OFD Sender: No OFD packet to send [01:24:35]OFD Sender: No OFD packet to send [01:24:40]OFD Sender: No OFD packet to send [01:24:45]OFD Sender: No OFD packet to send [01:24:50]OFD Sender: No OFD packet to send [01:24:55]OFD Sender: No OFD packet to send [01:25:00]OFD Sender: No OFD packet to send [01:25:05]OFD Sender: No OFD packet to send [01:25:10]OFD Sender: No OFD packet to send [01:25:15]OFD Sender: No OFD packet to send [01:25:20]OFD Sender: No OFD packet to send [01:25:25]OFD Sender: No OFD packet to send [01:25:30]OFD Sender: No OFD packet to send [01:25:35]OFD Sender: No OFD packet to send [01:25:40]OFD Sender: No OFD packet to send [01:25:45]OFD Sender: No OFD packet to send [01:25:50]OFD Sender: No OFD packet to send [01:25:55]OFD Sender: No OFD packet to send [01:26:00]OFD Sender: No OFD packet to send [01:26:05]OFD Sender: No OFD packet to send [01:26:10]OFD Sender: No OFD packet to send [01:26:15]OFD Sender: No OFD packet to send [01:26:20]OFD Sender: No OFD packet to send [01:26:25]OFD Sender: No OFD packet to send [01:26:30]OFD Sender: No OFD packet to send [01:26:35]OFD Sender: No OFD packet to send [01:26:40]OFD Sender: No OFD packet to send [01:26:45]OFD Sender: No OFD packet to send [01:26:50]OFD Sender: No OFD packet to send [01:26:55]OFD Sender: No OFD packet to send [01:27:00]OFD Sender: No OFD packet to send [01:27:05]OFD Sender: No OFD packet to send [01:27:10]OFD Sender: No OFD packet to send [01:27:15]OFD Sender: No OFD packet to send [01:27:20]OFD Sender: No OFD packet to send [01:27:25]OFD Sender: No OFD packet to send [01:27:30]OFD Sender: No OFD packet to send [01:27:35]OFD Sender: No OFD packet to send [01:27:40]OFD Sender: No OFD packet to send [01:27:45]OFD Sender: No OFD packet to send [01:27:50]OFD Sender: No OFD packet to send [01:27:55]OFD Sender: No OFD packet to send [01:28:00]OFD Sender: No OFD packet to send [01:28:05]OFD Sender: No OFD packet to send [01:28:10]OFD Sender: No OFD packet to send [01:28:15]OFD Sender: No OFD packet to send [01:28:20]OFD Sender: No OFD packet to send [01:28:25]OFD Sender: No OFD packet to send [01:28:30]OFD Sender: No OFD packet to send [01:28:35]OFD Sender: No OFD packet to send [01:28:40]OFD Sender: No OFD packet to send [01:28:45]OFD Sender: No OFD packet to send [01:28:50]OFD Sender: No OFD packet to send [01:28:55]OFD Sender: No OFD packet to send [01:29:00]OFD Sender: No OFD packet to send [01:29:05]OFD Sender: No OFD packet to send [01:29:10]OFD Sender: No OFD packet to send [01:29:15]OFD Sender: No OFD packet to send [01:29:20]OFD Sender: No OFD packet to send [01:29:25]OFD Sender: No OFD packet to send [01:29:30]OFD Sender: No OFD packet to send [01:29:35]OFD Sender: No OFD packet to send [01:29:40]OFD Sender: No OFD packet to send [01:29:45]OFD Sender: No OFD packet to send [01:29:50]OFD Sender: No OFD packet to send [01:29:55]OFD Sender: No OFD packet to send [01:30:00]OFD Sender: No OFD packet to send [01:30:05]OFD Sender: No OFD packet to send [01:30:10]OFD Sender: No OFD packet to send [01:30:15]OFD Sender: No OFD packet to send [01:30:20]OFD Sender: No OFD packet to send [01:30:25]OFD Sender: No OFD packet to send [01:30:30]OFD Sender: No OFD packet to send [01:30:35]OFD Sender: No OFD packet to send [01:30:40]OFD Sender: No OFD packet to send [01:30:45]OFD Sender: No OFD packet to send [01:30:50]OFD Sender: No OFD packet to send [01:30:55]OFD Sender: No OFD packet to send [01:31:00]OFD Sender: No OFD packet to send [01:31:05]OFD Sender: No OFD packet to send [01:31:10]OFD Sender: No OFD packet to send [01:31:15]OFD Sender: No OFD packet to send [01:31:20]OFD Sender: No OFD packet to send [01:31:25]OFD Sender: No OFD packet to send [01:31:30]OFD Sender: No OFD packet to send [01:31:35]OFD Sender: No OFD packet to send [01:31:40]OFD Sender: No OFD packet to send [01:31:45]OFD Sender: No OFD packet to send [01:31:50]OFD Sender: No OFD packet to send [01:31:55]OFD Sender: No OFD packet to send [01:32:00]OFD Sender: No OFD packet to send [01:32:05]OFD Sender: No OFD packet to send [01:32:10]OFD Sender: No OFD packet to send [01:32:15]OFD Sender: No OFD packet to send [01:32:20]OFD Sender: No OFD packet to send [01:32:25]OFD Sender: No OFD packet to send [01:32:30]OFD Sender: No OFD packet to send [01:32:35]OFD Sender: No OFD packet to send [01:32:40]OFD Sender: No OFD packet to send [01:32:45]OFD Sender: No OFD packet to send [01:32:50]OFD Sender: No OFD packet to send [01:32:55]OFD Sender: No OFD packet to send [01:33:00]OFD Sender: No OFD packet to send [01:33:05]OFD Sender: No OFD packet to send [01:33:10]OFD Sender: No OFD packet to send [01:33:15]OFD Sender: No OFD packet to send [01:33:20]OFD Sender: No OFD packet to send [01:33:25]OFD Sender: No OFD packet to send [01:33:30]OFD Sender: No OFD packet to send [01:33:35]OFD Sender: No OFD packet to send [01:33:40]OFD Sender: No OFD packet to send [01:33:45]OFD Sender: No OFD packet to send [01:33:50]OFD Sender: No OFD packet to send [01:33:55]OFD Sender: No OFD packet to send [01:34:00]OFD Sender: No OFD packet to send [01:34:05]OFD Sender: No OFD packet to send [01:34:10]OFD Sender: No OFD packet to send [01:34:15]OFD Sender: No OFD packet to send [01:34:20]OFD Sender: No OFD packet to send [01:34:25]OFD Sender: No OFD packet to send [01:34:30]OFD Sender: No OFD packet to send [01:34:35]OFD Sender: No OFD packet to send [01:34:40]OFD Sender: No OFD packet to send [01:34:45]OFD Sender: No OFD packet to send [01:34:50]OFD Sender: No OFD packet to send [01:34:55]OFD Sender: No OFD packet to send [01:35:00]OFD Sender: No OFD packet to send [01:35:05]OFD Sender: No OFD packet to send [01:35:10]OFD Sender: No OFD packet to send [01:35:15]OFD Sender: No OFD packet to send [01:35:20]OFD Sender: No OFD packet to send [01:35:25]OFD Sender: No OFD packet to send [01:35:30]OFD Sender: No OFD packet to send [01:35:35]OFD Sender: No OFD packet to send [01:35:40]OFD Sender: No OFD packet to send [01:35:45]OFD Sender: No OFD packet to send [01:35:50]OFD Sender: No OFD packet to send [01:35:55]OFD Sender: No OFD packet to send [01:36:00]OFD Sender: No OFD packet to send [01:36:05]OFD Sender: No OFD packet to send [01:36:10]OFD Sender: No OFD packet to send [01:36:15]OFD Sender: No OFD packet to send [01:36:20]OFD Sender: No OFD packet to send [01:36:25]OFD Sender: No OFD packet to send [01:36:30]OFD Sender: No OFD packet to send [01:36:35]OFD Sender: No OFD packet to send [01:36:40]OFD Sender: No OFD packet to send [01:36:45]OFD Sender: No OFD packet to send [01:36:50]OFD Sender: No OFD packet to send [01:36:55]OFD Sender: No OFD packet to send [01:37:00]OFD Sender: No OFD packet to send [01:37:05]OFD Sender: No OFD packet to send [01:37:10]OFD Sender: No OFD packet to send [01:37:15]OFD Sender: No OFD packet to send [01:37:20]OFD Sender: No OFD packet to send [01:37:25]OFD Sender: No OFD packet to send [01:37:30]OFD Sender: No OFD packet to send [01:37:35]OFD Sender: No OFD packet to send [01:37:40]OFD Sender: No OFD packet to send [01:37:45]OFD Sender: No OFD packet to send [01:37:46]accept exits with 9 [01:37:46]New connection [01:37:46]New thread 3066912100 created [01:37:46]Thread 3067055460 joined [01:37:46]Waiting for new connection... [01:37:46] Sock 9.Parse request [01:37:46]Sock 9.Check first char [01:37:46]Sock 9.First char is OK [01:37:46]request: POST /json_proto HTTP/1.0 [01:37:46]Method: POST [01:37:46]URL: /json_proto [01:37:46]Method is POST - this is cgi request [01:37:46]url: /json_proto [01:37:46]query_string will be loaded in cgi processing [01:37:46]execute_cgi json_proto POST (null) [01:37:46]execute_cgi path=json_proto method=POST [01:37:46]POST find Content-Length [01:37:46]Host: 172.17.60.69:8080 [01:37:46]Content-Length: 643 [01:37:46]Content-Type: application/json [01:37:46] [01:37:46]POST finish read [01:37:46]Found Content-Length = 643 [01:37:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73485", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 115.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:37:46]execute_script... [01:37:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73485", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 115.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:37:46]POST & json_proto [01:37:46]process_json_proto [01:37:46]json parsed OK: [01:37:46]protocol is kg_v1.0 [01:37:46]action value=close_receipt [01:37:46]process_action close_receipt [01:37:46]cmd_close_receipt [01:37:46]MH_GetDate [01:37:46]Write to MH i2c: F0 00 00 FC 02 ED [01:37:46]Write i2c OK [01:37:46]MH_I2C_Read... [01:37:46]Read from MH i2c: F0 [01:37:46]MH_I2C_Read... [01:37:46]Read from MH i2c: F0 09 00 [01:37:46]MH_I2C_Read... [01:37:46]Read from MH i2c: F0 09 00 FC 02 00 EA 6F 5E 66 6A 96 4A 66 C3 [01:37:46]GetLastDocTimeStamp 1717460994 [01:37:46]current date 1717465066 [01:37:46]FM_GetShiftState [01:37:46]SAM_PROTO_GetShiftState [01:37:46]wFMCommunicate request_size=4 [01:37:46]MH_SAM_APDU [01:37:46]CAPDU: 80 13 01 00 [01:37:46]Write to MH i2c: E2 08 00 FD 02 80 13 01 00 00 00 00 00 7C [01:37:46]Write i2c OK [01:37:46]MH_I2C_Read... [01:37:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:37:46]Read from MH i2c: E2 [01:37:46]MH_I2C_Read... [01:37:46]Read from MH i2c: E2 0E 00 [01:37:46]MH_I2C_Read... [01:37:46]Read from MH i2c: E2 0E 00 FD 02 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 1C [01:37:46]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [01:37:46]wFMCommunicate OK [01:37:46]SAM_PROTO_GetShiftState done [01:37:46]FM_GetShiftState done [01:37:46]opened in 1717459574 [01:37:46]opened+sec_in_day 1717545974 [01:37:46]quantity*price = 11500 [01:37:46]sum+1 = 11501 [01:37:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 115.00 НСП 1% : 1.02 НДС 12% : 12.21 Наличными: 115.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 3 04.06.2024 01:37 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63918 ФПД: 237833543471557 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T013747&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63918&fm=237833543471557&tin=02508201610067®Number=0000000000092737&sum=11500 0 [01:37:47]StoreToDocumentArchive [01:37:47]shift 374 fd 63918 [01:37:47]save to /storage/0374/doc_00063918 [01:37:47]save last doc name /storage/0374/doc_00063918 to /storage/kkm_last_doc_name [01:37:47]save OK [01:37:47]Clear old archive folders... [01:37:47]ProcessDocumentItem done err = 0, tmpTLVsize=280 [01:37:47]tlvbuf is 012A3280 [01:37:47]SAM_PROTO_ClearQueue [01:37:47]wFMCommunicate request_size=4 [01:37:47]MH_SAM_APDU [01:37:47]CAPDU: 80 09 00 00 [01:37:47]Write to MH i2c: E2 08 00 0A 03 80 09 00 00 00 00 00 00 7F [01:37:47]Write i2c OK [01:37:47]MH_I2C_Read... [01:37:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:37:47]Read from MH i2c: E2 [01:37:47]MH_I2C_Read... [01:37:47]Read from MH i2c: E2 03 00 [01:37:47]MH_I2C_Read... [01:37:47]Read from MH i2c: E2 03 00 0A 03 00 90 00 81 [01:37:47]RAPDU: 90 00 [01:37:47]wFMCommunicate OK [01:37:47]SAM_PROTO_ClearQueue done [01:37:47]KKMCreateOFDPacket [01:37:47]OFDProtocolAddRootSTLVToBuf [01:37:47]FM_MakeSignedData [01:37:47]FM_MakeSignedData [01:37:47]SAM_PROTO_SignData [01:37:47]wFMCommunicate request_size=4 [01:37:47]MH_SAM_APDU [01:37:47]CAPDU: 80 0D 01 02 [01:37:47]Write to MH i2c: E2 08 00 0B 03 80 0D 01 02 00 00 00 00 87 [01:37:47]Write i2c OK [01:37:47]MH_I2C_Read... [01:37:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:37:47]Read from MH i2c: E2 [01:37:47]MH_I2C_Read... [01:37:47]Read from MH i2c: E2 03 00 [01:37:47]MH_I2C_Read... [01:37:47]Read from MH i2c: E2 03 00 0B 03 00 90 00 82 [01:37:47]RAPDU: 90 00 [01:37:47]wFMCommunicate OK [01:37:47]wFMCommunicate request_size=255 [01:37:47]MH_SAM_APDU [01:37:47]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 EB 6F 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 [01:37:47]Write to MH i2c: E2 02 01 0C 03 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 EB 6F 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 00 00 62 [01:37:47]Write i2c OK [01:37:47]MH_I2C_Read... [01:37:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:37:48]Read from MH i2c: E2 [01:37:48]MH_I2C_Read... [01:37:48]Read from MH i2c: E2 03 00 [01:37:48]MH_I2C_Read... [01:37:48]Read from MH i2c: E2 03 00 0C 03 00 90 00 83 [01:37:48]RAPDU: 90 00 [01:37:48]wFMCommunicate OK [01:37:48]wFMCommunicate request_size=39 [01:37:48]MH_SAM_APDU [01:37:48]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 AE F9 00 00 35 04 06 00 D8 4E EF DF D1 C5 [01:37:48]Write to MH i2c: E2 2A 00 0D 03 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 AE F9 00 00 35 04 06 00 D8 4E EF DF D1 C5 00 00 75 [01:37:48]Write i2c OK [01:37:48]MH_I2C_Read... [01:37:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:37:48]Read from MH i2c: E2 [01:37:48]MH_I2C_Read... [01:37:48]Read from MH i2c: E2 03 00 [01:37:48]MH_I2C_Read... [01:37:48]Read from MH i2c: E2 03 00 0D 03 00 90 00 84 [01:37:48]RAPDU: 90 00 [01:37:48]wFMCommunicate OK [01:37:48]wFMCommunicate request_size=4 [01:37:48]MH_SAM_APDU [01:37:48]CAPDU: 80 0D 03 02 [01:37:48]Write to MH i2c: E2 08 00 0E 03 80 0D 03 02 00 00 00 00 8C [01:37:48]Write i2c OK [01:37:48]MH_I2C_Read... [01:37:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:37:48]Read from MH i2c: E2 [01:37:48]MH_I2C_Read... [01:37:48]Read from MH i2c: E2 0B 00 [01:37:48]MH_I2C_Read... [01:37:48]Read from MH i2c: E2 0B 00 0E 03 00 2C D9 0E 61 51 AA 60 CD 90 00 29 [01:37:48]RAPDU: 2C D9 0E 61 51 AA 60 CD 90 00 [01:37:48]wFMCommunicate OK [01:37:48]SAM_PROTO_SignData done [01:37:48]FM_MakeSignedData done [01:37:48]CreateOFDProtocolMessage [01:37:48]wFMCommunicate request_size=4 [01:37:48]MH_SAM_APDU [01:37:48]CAPDU: 80 11 00 00 [01:37:48]Write to MH i2c: E2 08 00 0F 03 80 11 00 00 00 00 00 00 8C [01:37:48]Write i2c OK [01:37:48]MH_I2C_Read... [01:37:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:37:48]Read from MH i2c: E2 [01:37:48]MH_I2C_Read... [01:37:48]Read from MH i2c: E2 17 00 [01:37:48]MH_I2C_Read... [01:37:48]Read from MH i2c: E2 17 00 0F 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 DE [01:37:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [01:37:48]wFMCommunicate OK [01:37:48]CreateOFDProtocolMessage done [01:37:48]OFDSenderStorePacket 63918 [01:37:48]StoreOFDPacket docnum=63918 [01:37:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 2C 01 00 00 2D EC 24 01 B2 09 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 EB 6F 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 AE F9 00 00 35 04 06 00 D8 4E EF DF D1 C5 2C D9 0E 61 51 AA 60 CD [01:37:48]CheckFolder [01:37:48]dirname=/storage/ofd_packets [01:37:48]CheckFolder done [01:37:48]ProducePacketName [01:37:48]name=ofd_packets/00063918 [01:37:48]NVStorageSaveData ofd_packets/00063918 [01:37:48]File name is /storage/ofd_packets/00063918 [01:37:48]Write 330 bytes [01:37:48]NVStorageSaveData done [01:37:48]OFDSenderStorePacket done [01:37:48]KKMCreateOFDPacket done [01:37:48]NVStorageSaveData kkm_last_timestamp [01:37:48]File name is /storage/kkm_last_timestamp [01:37:48]Write 4 bytes [01:37:48]NVStorageSaveData done [01:37:48]ExternCall_PrintAddStr [01:37:48]wPrintStart [01:37:48]Write to MH i2c: 01 00 00 10 03 13 [01:37:48]Write i2c OK [01:37:48]MH_I2C_Read... [01:37:48]Read from MH i2c: 01 [01:37:48]MH_I2C_Read... [01:37:48]Read from MH i2c: 01 07 00 [01:37:48]MH_I2C_Read... [01:37:48]Read from MH i2c: 01 07 00 10 03 00 00 00 00 00 FF 0F 28 [01:37:48]RasterBufferAndPrint [01:37:48]line Счет N : (3)73485 [01:37:48]line ИНН: 02508201610067 [01:37:48]line Контрольно-Кассовый Чек [01:37:48]line ПРОДАЖА [01:37:48]line Товар: 2000036210013 [01:37:48]line Кофе Капучино (GABB TRADE) [01:37:48]line 1.000 * 115.00 [01:37:48]line = 115.00 [01:37:48]line НДС 12% НСП 1% [01:37:48]line > о реализуемом товаре [01:37:48]line ИТОГО: 115.00 [01:37:48]line НСП 1% : 1.02 [01:37:48]line НДС 12% : 12.21 [01:37:48]line Наличными: 115.00 [01:37:48]line Безнал.: 0.00 [01:37:48]line Место: АЗС № 117 "Партнер Нефть" [01:37:48]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [01:37:48]line СНО: Общий режим [01:37:48]line Чек 3 04.06.2024 01:37 [01:37:48]line Смена: 374 ФФД: 1.0 [01:37:48]line ЗНМ: 0300000031 [01:37:48]line РНМ: 0000000000092737 [01:37:48]line Версия ККМ: 001 [01:37:48]line ФМ: 0000000000875074 [01:37:48]line ФД: 63918 [01:37:48]line ФПД: 237833543471557 [01:37:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T013747&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63918&fm=237833543471557&tin=02508201610067®Number=0000000000092737&sum=11500 [01:37:48]line 0 [01:37:48]OFD Sender: Processing packet 63918 [packets to send 14, broken 13] [01:37:48]ProducePacketName [01:37:48]name=ofd_packets/00063918 [01:37:48]OFD Sender: To server: pG, [01:37:48]CommunicateWithHost lk.salyk.kg:30040 [01:37:48]ConnectInit lk.salyk.kg [01:37:48]written 0, free lines is 4095 [01:37:48]Connected sock=10 [01:37:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 2C 01 00 00 2D EC 24 01 B2 09 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 EB 6F 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 AE F9 00 00 35 04 06 00 D8 4E EF DF D1 C5 2C D9 0E 61 51 AA 60 CD [01:37:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 05 AC 47 00 0B 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 35 30 37 34 10 04 04 00 AE F9 00 00 F4 03 04 00 BA 1B 5E 66 B6 04 01 00 00 6B 34 EA A2 FA A5 0D D2 [01:37:48]CommunicateWithHost err = 0 [01:37:48]CheckOFDResponse [01:37:48]1017 (14) - 77093643461234 [01:37:48]1041 (16) - 0000000000875074 [01:37:48]1040 (4) - 63918 [01:37:48]1012 (4) - 03.06.2024 19:38 [01:37:48]1206 (1) - 0 [01:37:48]OFD Sender: Remove packet 63918 [01:37:48]ProducePacketName [01:37:48]name=ofd_packets/00063918 [01:37:48]NVStorageDeleteData [01:37:49]Write to MH i2c: 01 00 00 38 03 3B [01:37:49]Write i2c OK [01:37:49]MH_I2C_Read... [01:37:49]Read from MH i2c: 01 [01:37:49]MH_I2C_Read... [01:37:49]Read from MH i2c: 01 07 00 [01:37:49]MH_I2C_Read... [01:37:49]Read from MH i2c: 01 07 00 38 03 00 00 00 00 00 02 0D 51 [01:37:49]RasterBufferAndPrint [01:37:49]line [01:37:49]line [01:37:49]line [01:37:49]line [01:37:49]line [01:37:49]written 0, free lines is 3337 [01:37:49]MH_Cut [01:37:49]Write to MH i2c: D1 01 00 3F 03 01 14 [01:37:49]Write i2c OK [01:37:49]MH_I2C_Read... [01:37:49]Read from MH i2c: D1 [01:37:49]MH_I2C_Read... [01:37:49]Read from MH i2c: D1 01 00 [01:37:49]MH_I2C_Read... [01:37:49]Read from MH i2c: D1 01 00 3F 03 00 13 [01:37:49]Write to MH i2c: 01 00 00 40 03 43 [01:37:49]Write i2c OK [01:37:49]MH_I2C_Read... [01:37:49]OFD Sender: No OFD packet to send [01:37:49]*** Cut start [01:37:49]*** Partial cut [01:37:49]*** CUTSNS_PIN = 1 [01:37:49]*** CUTSNS_PIN = 0 [01:37:50]*** Brake cut motor [01:37:50]Read from MH i2c: 01 [01:37:50]MH_I2C_Read... [01:37:50]*** Stop cut motor [01:37:50]*** Cut end [01:37:50]Read from MH i2c: 01 07 00 [01:37:50]MH_I2C_Read... [01:37:50]Read from MH i2c: 01 07 00 40 03 00 00 00 00 00 FF 0F 58 [01:37:50]process_action close_receipt done [01:37:50]requested_data is exist [01:37:50]produce_requested_data [01:37:50]requested_item fm.sn is exist - process it [01:37:50]wFMCommunicate request_size=4 [01:37:50]MH_SAM_APDU [01:37:50]CAPDU: 80 11 00 00 [01:37:50]Write to MH i2c: E2 08 00 41 03 80 11 00 00 00 00 00 00 BE [01:37:50]Write i2c OK [01:37:50]MH_I2C_Read... [01:37:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:37:50]Read from MH i2c: E2 [01:37:50]MH_I2C_Read... [01:37:50]Read from MH i2c: E2 17 00 [01:37:50]MH_I2C_Read... [01:37:50]Read from MH i2c: E2 17 00 41 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 10 [01:37:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [01:37:50]wFMCommunicate OK [01:37:50]requested_item fd.num is exist - process it [01:37:50]SAM_PROTO_GetFieldsCounters [01:37:50]wFMCommunicate request_size=4 [01:37:50]MH_SAM_APDU [01:37:50]CAPDU: 80 13 00 00 [01:37:50]Write to MH i2c: E2 08 00 42 03 80 13 00 00 00 00 00 00 C1 [01:37:50]Write i2c OK [01:37:50]MH_I2C_Read... [01:37:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:37:50]Read from MH i2c: E2 [01:37:50]MH_I2C_Read... [01:37:50]Read from MH i2c: E2 62 00 [01:37:50]MH_I2C_Read... [01:37:50]Read from MH i2c: E2 62 00 42 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 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 AE F9 00 00 0E 04 04 00 76 01 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 0B [01:37:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 AE F9 00 00 0E 04 04 00 76 01 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:37:50]wFMCommunicate OK [01:37:50]SAM_PROTO_GetFieldsCounters done [01:37:50]requested_item shift.num is exist - process it [01:37:50]requested_item shift.opened is exist - process it [01:37:50]req_shift_opened [01:37:50]FM_GetShiftState [01:37:50]SAM_PROTO_GetShiftState [01:37:50]wFMCommunicate request_size=4 [01:37:50]MH_SAM_APDU [01:37:50]CAPDU: 80 13 01 00 [01:37:50]Write to MH i2c: E2 08 00 43 03 80 13 01 00 00 00 00 00 C3 [01:37:50]Write i2c OK [01:37:50]MH_I2C_Read... [01:37:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:37:50]Read from MH i2c: E2 [01:37:50]MH_I2C_Read... [01:37:50]Read from MH i2c: E2 0E 00 [01:37:50]MH_I2C_Read... [01:37:50]Read from MH i2c: E2 0E 00 43 03 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 63 [01:37:50]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [01:37:50]wFMCommunicate OK [01:37:50]SAM_PROTO_GetShiftState done [01:37:50]FM_GetShiftState done [01:37:50]req_shift_opened done [01:37:50]requested_item shift.open_date is exist - process it [01:37:50]req_shift_open_date [01:37:50]req_shift_open_date done [01:37:50]produce_requested_data done [01:37:50]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63918,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [01:37:50]process_action_free close_receipt [01:37:50]json_value_free [01:37:50]json_value_free done [01:37:50]process_json_proto returns [01:37:50]Send response to host [01:37:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63918,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [01:37:50]free response buf [01:37:50]execute_script done [01:37:50]execute_script returns [01:37:50]free content buf [01:37:50]Sock 9.Close socket [01:37:50]Sock 9.Thread stoped [01:37:54]OFD Sender: No OFD packet to send [01:37:59]OFD Sender: No OFD packet to send [01:38:04]OFD Sender: No OFD packet to send [01:38:09]OFD Sender: No OFD packet to send [01:38:14]OFD Sender: No OFD packet to send [01:38:19]OFD Sender: No OFD packet to send [01:38:24]OFD Sender: No OFD packet to send [01:38:29]OFD Sender: No OFD packet to send [01:38:34]OFD Sender: No OFD packet to send [01:38:39]OFD Sender: No OFD packet to send [01:38:44]OFD Sender: No OFD packet to send [01:38:49]OFD Sender: No OFD packet to send [01:38:54]OFD Sender: No OFD packet to send [01:38:59]OFD Sender: No OFD packet to send [01:39:04]OFD Sender: No OFD packet to send [01:39:09]OFD Sender: No OFD packet to send [01:39:14]OFD Sender: No OFD packet to send [01:39:19]OFD Sender: No OFD packet to send [01:39:24]OFD Sender: No OFD packet to send [01:39:29]OFD Sender: No OFD packet to send [01:39:34]OFD Sender: No OFD packet to send [01:39:39]OFD Sender: No OFD packet to send [01:39:44]OFD Sender: No OFD packet to send [01:39:49]OFD Sender: No OFD packet to send [01:39:54]OFD Sender: No OFD packet to send [01:39:59]OFD Sender: No OFD packet to send [01:40:04]OFD Sender: No OFD packet to send [01:40:09]OFD Sender: No OFD packet to send [01:40:14]OFD Sender: No OFD packet to send [01:40:19]OFD Sender: No OFD packet to send [01:40:24]OFD Sender: No OFD packet to send [01:40:29]OFD Sender: No OFD packet to send [01:40:34]OFD Sender: No OFD packet to send [01:40:39]OFD Sender: No OFD packet to send [01:40:44]OFD Sender: No OFD packet to send [01:40:49]OFD Sender: No OFD packet to send [01:40:54]OFD Sender: No OFD packet to send [01:40:59]OFD Sender: No OFD packet to send [01:41:04]OFD Sender: No OFD packet to send [01:41:09]OFD Sender: No OFD packet to send [01:41:14]OFD Sender: No OFD packet to send [01:41:19]OFD Sender: No OFD packet to send [01:41:24]OFD Sender: No OFD packet to send [01:41:29]OFD Sender: No OFD packet to send [01:41:34]OFD Sender: No OFD packet to send [01:41:39]OFD Sender: No OFD packet to send [01:41:44]OFD Sender: No OFD packet to send [01:41:49]OFD Sender: No OFD packet to send [01:41:54]OFD Sender: No OFD packet to send [01:41:59]OFD Sender: No OFD packet to send [01:42:04]OFD Sender: No OFD packet to send [01:42:09]OFD Sender: No OFD packet to send [01:42:14]OFD Sender: No OFD packet to send [01:42:19]OFD Sender: No OFD packet to send [01:42:24]OFD Sender: No OFD packet to send [01:42:29]OFD Sender: No OFD packet to send [01:42:34]OFD Sender: No OFD packet to send [01:42:39]OFD Sender: No OFD packet to send [01:42:44]OFD Sender: No OFD packet to send [01:42:49]OFD Sender: No OFD packet to send [01:42:54]OFD Sender: No OFD packet to send [01:42:59]OFD Sender: No OFD packet to send [01:43:04]OFD Sender: No OFD packet to send [01:43:09]OFD Sender: No OFD packet to send [01:43:14]OFD Sender: No OFD packet to send [01:43:19]OFD Sender: No OFD packet to send [01:43:24]OFD Sender: No OFD packet to send [01:43:29]OFD Sender: No OFD packet to send [01:43:34]OFD Sender: No OFD packet to send [01:43:39]OFD Sender: No OFD packet to send [01:43:44]OFD Sender: No OFD packet to send [01:43:49]OFD Sender: No OFD packet to send [01:43:54]OFD Sender: No OFD packet to send [01:43:59]OFD Sender: No OFD packet to send [01:44:04]OFD Sender: No OFD packet to send [01:44:09]OFD Sender: No OFD packet to send [01:44:14]OFD Sender: No OFD packet to send [01:44:19]OFD Sender: No OFD packet to send [01:44: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:50:00]OFD Sender: No OFD packet to send [01:50:05]OFD Sender: No OFD packet to send [01:50:10]OFD Sender: No OFD packet to send [01:50:15]OFD Sender: No OFD packet to send [01:50:20]OFD Sender: No OFD packet to send [01:50:25]OFD Sender: No OFD packet to send [01:50:30]OFD Sender: No OFD packet to send [01:50:35]OFD Sender: No OFD packet to send [01:50:40]OFD Sender: No OFD packet to send [01:50:45]OFD Sender: No OFD packet to send [01:50:50]OFD Sender: No OFD packet to send [01:50:55]OFD Sender: No OFD packet to send [01:51:00]OFD Sender: No OFD packet to send [01:51:05]OFD Sender: No OFD packet to send [01:51:10]OFD Sender: No OFD packet to send [01:51:15]OFD Sender: No OFD packet to send [01:51:20]OFD Sender: No OFD packet to send [01:51:25]OFD Sender: No OFD packet to send [01:51:30]OFD Sender: No OFD packet to send [01:51:35]OFD Sender: No OFD packet to send [01:51:40]OFD Sender: No OFD packet to send [01:51:45]OFD Sender: No OFD packet to send [01:51:50]OFD Sender: No OFD packet to send [01:51:55]OFD Sender: No OFD packet to send [01:52:00]OFD Sender: No OFD packet to send [01:52:05]OFD Sender: No OFD packet to send [01:52:10]OFD Sender: No OFD packet to send [01:52:15]OFD Sender: No OFD packet to send [01:52:20]OFD Sender: No OFD packet to send [01:52:25]OFD Sender: No OFD packet to send [01:52:30]OFD Sender: No OFD packet to send [01:52:35]OFD Sender: No OFD packet to send [01:52:40]OFD Sender: No OFD packet to send [01:52:45]OFD Sender: No OFD packet to send [01:52:50]OFD Sender: No OFD packet to send [01:52:55]OFD Sender: No OFD packet to send [01:53:00]OFD Sender: No OFD packet to send [01:53:05]OFD Sender: No OFD packet to send [01:53:10]OFD Sender: No OFD packet to send [01:53:15]OFD Sender: No OFD packet to send [01:53:20]OFD Sender: No OFD packet to send [01:53:25]OFD Sender: No OFD packet to send [01:53:30]OFD Sender: No OFD packet to send [01:53:35]OFD Sender: No OFD packet to send [01:53:40]OFD Sender: No OFD packet to send [01:53:45]OFD Sender: No OFD packet to send [01:53:50]OFD Sender: No OFD packet to send [01:53:55]OFD Sender: No OFD packet to send [01:54:00]OFD Sender: No OFD packet to send [01:54:05]OFD Sender: No OFD packet to send [01:54:10]OFD Sender: No OFD packet to send [01:54:15]OFD Sender: No OFD packet to send [01:54:20]OFD Sender: No OFD packet to send [01:54:25]OFD Sender: No OFD packet to send [01:54:30]OFD Sender: No OFD packet to send [01:54:35]OFD Sender: No OFD packet to send [01:54:40]OFD Sender: No OFD packet to send [01:54:45]OFD Sender: No OFD packet to send [01:54:50]OFD Sender: No OFD packet to send [01:54:55]OFD Sender: No OFD packet to send [01:55:00]OFD Sender: No OFD packet to send [01:55:05]OFD Sender: No OFD packet to send [01:55:10]OFD Sender: No OFD packet to send [01:55:15]OFD Sender: No OFD packet to send [01:55:20]OFD Sender: No OFD packet to send [01:55:25]OFD Sender: No OFD packet to send [01:55:30]OFD Sender: No OFD packet to send [01:55:35]OFD Sender: No OFD packet to send [01:55:40]OFD Sender: No OFD packet to send [01:55:45]OFD Sender: No OFD packet to send [01:55:50]OFD Sender: No OFD packet to send [01:55:55]OFD Sender: No OFD packet to send [01:56:00]OFD Sender: No OFD packet to send [01:56:05]OFD Sender: No OFD packet to send [01:56:10]OFD Sender: No OFD packet to send [01:56:15]OFD Sender: No OFD packet to send [01:56:20]OFD Sender: No OFD packet to send [01:56:25]OFD Sender: No OFD packet to send [01:56:30]OFD Sender: No OFD packet to send [01:56:35]OFD Sender: No OFD packet to send [01:56:40]OFD Sender: No OFD packet to send [01:56:45]OFD Sender: No OFD packet to send [01:56:50]OFD Sender: No OFD packet to send [01:56:55]OFD Sender: No OFD packet to send [01:57:00]OFD Sender: No OFD packet to send [01:57:05]OFD Sender: No OFD packet to send [01:57:10]OFD Sender: No OFD packet to send [01:57:15]OFD Sender: No OFD packet to send [01:57:20]OFD Sender: No OFD packet to send [01:57:25]OFD Sender: No OFD packet to send [01:57:30]OFD Sender: No OFD packet to send [01:57:35]OFD Sender: No OFD packet to send [01:57:40]OFD Sender: No OFD packet to send [01:57:45]OFD Sender: No OFD packet to send [01:57:50]OFD Sender: No OFD packet to send [01:57:55]OFD Sender: No OFD packet to send [01:58:00]OFD Sender: No OFD packet to send [01:58:05]OFD Sender: No OFD packet to send [01:58:10]OFD Sender: No OFD packet to send [01:58:15]OFD Sender: No OFD packet to send [01:58:20]OFD Sender: No OFD packet to send [01:58:25]OFD Sender: No OFD packet to send [01:58:30]OFD Sender: No OFD packet to send [01:58:35]OFD Sender: No OFD packet to send [01:58:40]OFD Sender: No OFD packet to send [01:58:45]OFD Sender: No OFD packet to send [01:58:50]OFD Sender: No OFD packet to send [01:58:55]OFD Sender: No OFD packet to send [01:59:00]OFD Sender: No OFD packet to send [01:59:05]OFD Sender: No OFD packet to send [01:59:10]OFD Sender: No OFD packet to send [01:59:15]OFD Sender: No OFD packet to send [01:59:20]OFD Sender: No OFD packet to send [01:59:25]OFD Sender: No OFD packet to send [01:59:30]OFD Sender: No OFD packet to send [01:59:35]OFD Sender: No OFD packet to send [01:59:40]OFD Sender: No OFD packet to send [01:59:45]OFD Sender: No OFD packet to send [01:59:50]OFD Sender: No OFD packet to send [01:59:55]OFD Sender: No OFD packet to send [02:00:00]OFD Sender: No OFD packet to send [02:00:05]OFD Sender: No OFD packet to send [02:00:10]OFD Sender: No OFD packet to send [02:00:15]OFD Sender: No OFD packet to send [02:00:20]OFD Sender: No OFD packet to send [02:00: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:41]OFD Sender: No OFD packet to send [02:10:46]OFD Sender: No OFD packet to send [02:10:51]OFD Sender: No OFD packet to send [02:10:56]OFD Sender: No OFD packet to send [02:11:01]OFD Sender: No OFD packet to send [02:11:06]OFD Sender: No OFD packet to send [02:11:11]OFD Sender: No OFD packet to send [02:11:16]OFD Sender: No OFD packet to send [02:11:21]OFD Sender: No OFD packet to send [02:11:26]OFD Sender: No OFD packet to send [02:11:31]OFD Sender: No OFD packet to send [02:11:36]OFD Sender: No OFD packet to send [02:11:41]OFD Sender: No OFD packet to send [02:11:46]OFD Sender: No OFD packet to send [02:11:51]OFD Sender: No OFD packet to send [02:11:56]OFD Sender: No OFD packet to send [02:12:01]OFD Sender: No OFD packet to send [02:12:06]OFD Sender: No OFD packet to send [02:12:11]OFD Sender: No OFD packet to send [02:12:16]OFD Sender: No OFD packet to send [02:12:21]OFD Sender: No OFD packet to send [02:12:26]OFD Sender: No OFD packet to send [02:12:31]OFD Sender: No OFD packet to send [02:12:36]OFD Sender: No OFD packet to send [02:12:41]OFD Sender: No OFD packet to send [02:12:46]OFD Sender: No OFD packet to send [02:12:51]OFD Sender: No OFD packet to send [02:12:56]OFD Sender: No OFD packet to send [02:13:01]OFD Sender: No OFD packet to send [02:13:06]OFD Sender: No OFD packet to send [02:13:11]OFD Sender: No OFD packet to send [02:13:16]OFD Sender: No OFD packet to send [02:13:21]OFD Sender: No OFD packet to send [02:13:26]OFD Sender: No OFD packet to send [02:13:31]OFD Sender: No OFD packet to send [02:13:36]OFD Sender: No OFD packet to send [02:13:41]OFD Sender: No OFD packet to send [02:13:46]OFD Sender: No OFD packet to send [02:13:51]OFD Sender: No OFD packet to send [02:13:56]OFD Sender: No OFD packet to send [02:14:01]OFD Sender: No OFD packet to send [02:14:06]OFD Sender: No OFD packet to send [02:14:11]OFD Sender: No OFD packet to send [02:14:16]OFD Sender: No OFD packet to send [02:14:21]OFD Sender: No OFD packet to send [02:14:26]OFD Sender: No OFD packet to send [02:14:31]OFD Sender: No OFD packet to send [02:14:36]OFD Sender: No OFD packet to send [02:14:41]OFD Sender: No OFD packet to send [02:14:46]OFD Sender: No OFD packet to send [02:14:51]OFD Sender: No OFD packet to send [02:14:56]OFD Sender: No OFD packet to send [02:15:01]OFD Sender: No OFD packet to send [02:15:06]OFD Sender: No OFD packet to send [02:15:11]OFD Sender: No OFD packet to send [02:15:16]OFD Sender: No OFD packet to send [02:15:21]OFD Sender: No OFD packet to send [02:15:26]OFD Sender: No OFD packet to send [02:15:31]OFD Sender: No OFD packet to send [02:15:36]OFD Sender: No OFD packet to send [02:15:41]OFD Sender: No OFD packet to send [02:15:46]OFD Sender: No OFD packet to send [02:15:51]OFD Sender: No OFD packet to send [02:15:56]OFD Sender: No OFD packet to send [02:16:01]OFD Sender: No OFD packet to send [02:16:06]OFD Sender: No OFD packet to send [02:16:11]OFD Sender: No OFD packet to send [02:16:16]OFD Sender: No OFD packet to send [02:16:21]OFD Sender: No OFD packet to send [02:16: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:21]OFD Sender: No OFD packet to send [02:29:26]OFD Sender: No OFD packet to send [02:29:31]OFD Sender: No OFD packet to send [02:29:36]OFD Sender: No OFD packet to send [02:29:41]OFD Sender: No OFD packet to send [02:29:46]OFD Sender: No OFD packet to send [02:29:51]OFD Sender: No OFD packet to send [02:29:56]OFD Sender: No OFD packet to send [02:30:01]OFD Sender: No OFD packet to send [02:30:06]OFD Sender: No OFD packet to send [02:30:11]OFD Sender: No OFD packet to send [02:30:16]OFD Sender: No OFD packet to send [02:30:21]OFD Sender: No OFD packet to send [02:30:26]OFD Sender: No OFD packet to send [02:30:31]OFD Sender: No OFD packet to send [02:30:36]OFD Sender: No OFD packet to send [02:30:41]OFD Sender: No OFD packet to send [02:30:46]OFD Sender: No OFD packet to send [02:30:51]OFD Sender: No OFD packet to send [02:30:56]OFD Sender: No OFD packet to send [02:31:01]OFD Sender: No OFD packet to send [02:31:06]OFD Sender: No OFD packet to send [02:31:11]OFD Sender: No OFD packet to send [02:31:16]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:47]OFD Sender: No OFD packet to send [02:45:52]OFD Sender: No OFD packet to send [02:45:57]OFD Sender: No OFD packet to send [02:46:02]OFD Sender: No OFD packet to send [02:46:07]OFD Sender: No OFD packet to send [02:46:12]OFD Sender: No OFD packet to send [02:46:17]OFD Sender: No OFD packet to send [02:46:22]OFD Sender: No OFD packet to send [02:46:27]OFD Sender: No OFD packet to send [02:46:32]OFD Sender: No OFD packet to send [02:46:37]OFD Sender: No OFD packet to send [02:46:42]OFD Sender: No OFD packet to send [02:46:47]OFD Sender: No OFD packet to send [02:46:52]OFD Sender: No OFD packet to send [02:46:57]OFD Sender: No OFD packet to send [02:47:02]OFD Sender: No OFD packet to send [02:47:07]OFD Sender: No OFD packet to send [02:47:12]OFD Sender: No OFD packet to send [02:47:17]OFD Sender: No OFD packet to send [02:47:22]OFD Sender: No OFD packet to send [02:47:27]OFD Sender: No OFD packet to send [02:47:32]OFD Sender: No OFD packet to send [02:47:37]OFD Sender: No OFD packet to send [02:47:42]OFD Sender: No OFD packet to send [02:47:47]OFD Sender: No OFD packet to send [02:47:52]OFD Sender: No OFD packet to send [02:47:57]OFD Sender: No OFD packet to send [02:48:02]OFD Sender: No OFD packet to send [02:48:07]OFD Sender: No OFD packet to send [02:48:12]OFD Sender: No OFD packet to send [02:48:17]OFD Sender: No OFD packet to send [02:48:22]OFD Sender: No OFD packet to send [02:48:27]OFD Sender: No OFD packet to send [02:48:32]OFD Sender: No OFD packet to send [02:48:37]OFD Sender: No OFD packet to send [02:48:42]OFD Sender: No OFD packet to send [02:48:47]OFD Sender: No OFD packet to send [02:48:52]OFD Sender: No OFD packet to send [02:48:57]OFD Sender: No OFD packet to send [02:49:02]OFD Sender: No OFD packet to send [02:49:07]OFD Sender: No OFD packet to send [02:49:12]OFD Sender: No OFD packet to send [02:49:17]OFD Sender: No OFD packet to send [02:49:22]OFD Sender: No OFD packet to send [02:49:27]OFD Sender: No OFD packet to send [02:49:32]OFD Sender: No OFD packet to send [02:49:37]OFD Sender: No OFD packet to send [02:49:42]OFD Sender: No OFD packet to send [02:49:47]OFD Sender: No OFD packet to send [02:49:52]OFD Sender: No OFD packet to send [02:49:57]OFD Sender: No OFD packet to send [02:50:02]OFD Sender: No OFD packet to send [02:50:07]OFD Sender: No OFD packet to send [02:50:12]OFD Sender: No OFD packet to send [02:50:17]OFD Sender: No OFD packet to send [02:50:22]OFD Sender: No OFD packet to send [02:50:27]OFD Sender: No OFD packet to send [02:50:32]OFD Sender: No OFD packet to send [02:50:37]OFD Sender: No OFD packet to send [02:50:42]OFD Sender: No OFD packet to send [02:50:47]OFD Sender: No OFD packet to send [02:50:52]OFD Sender: No OFD packet to send [02:50:57]OFD Sender: No OFD packet to send [02:51:02]OFD Sender: No OFD packet to send [02:51:07]OFD Sender: No OFD packet to send [02:51:12]OFD Sender: No OFD packet to send [02:51:17]OFD Sender: No OFD packet to send [02:51:22]OFD Sender: No OFD packet to send [02:51:27]OFD Sender: No OFD packet to send [02:51:32]OFD Sender: No OFD packet to send [02:51:37]OFD Sender: No OFD packet to send [02:51:42]OFD Sender: No OFD packet to send [02:51:47]OFD Sender: No OFD packet to send [02:51:52]OFD Sender: No OFD packet to send [02:51:57]OFD Sender: No OFD packet to send [02:52:02]OFD Sender: No OFD packet to send [02:52:08]OFD Sender: No OFD packet to send [02:52:13]OFD Sender: No OFD packet to send [02:52:18]OFD Sender: No OFD packet to send [02:52:23]OFD Sender: No OFD packet to send [02:52:28]OFD Sender: No OFD packet to send [02:52:33]OFD Sender: No OFD packet to send [02:52:38]OFD Sender: No OFD packet to send [02:52:43]OFD Sender: No OFD packet to send [02:52:48]OFD Sender: No OFD packet to send [02:52:53]OFD Sender: No OFD packet to send [02:52:58]OFD Sender: No OFD packet to send [02:53:03]OFD Sender: No OFD packet to send [02:53:08]OFD Sender: No OFD packet to send [02:53:13]OFD Sender: No OFD packet to send [02:53:18]OFD Sender: No OFD packet to send [02:53:23]OFD Sender: No OFD packet to send [02:53:28]OFD Sender: No OFD packet to send [02:53:33]OFD Sender: No OFD packet to send [02:53:38]OFD Sender: No OFD packet to send [02:53:43]OFD Sender: No OFD packet to send [02:53:48]OFD Sender: No OFD packet to send [02:53:53]OFD Sender: No OFD packet to send [02:53:58]OFD Sender: No OFD packet to send [02:54:03]OFD Sender: No OFD packet to send [02:54:08]OFD Sender: No OFD packet to send [02:54:13]OFD Sender: No OFD packet to send [02:54:18]OFD Sender: No OFD packet to send [02:54:23]OFD Sender: No OFD packet to send [02:54:28]OFD Sender: No OFD packet to send [02:54:33]OFD Sender: No OFD packet to send [02:54:38]OFD Sender: No OFD packet to send [02:54:43]OFD Sender: No OFD packet to send [02:54:48]OFD Sender: No OFD packet to send [02:54:53]OFD Sender: No OFD packet to send [02:54:58]OFD Sender: No OFD packet to send [02:55:03]OFD Sender: No OFD packet to send [02:55:08]OFD Sender: No OFD packet to send [02:55:13]OFD Sender: No OFD packet to send [02:55:18]OFD Sender: No OFD packet to send [02:55:23]OFD Sender: No OFD packet to send [02:55:28]OFD Sender: No OFD packet to send [02:55:33]OFD Sender: No OFD packet to send [02:55:38]OFD Sender: No OFD packet to send [02:55:43]OFD Sender: No OFD packet to send [02:55:48]OFD Sender: No OFD packet to send [02:55:53]OFD Sender: No OFD packet to send [02:55:58]OFD Sender: No OFD packet to send [02:56:03]OFD Sender: No OFD packet to send [02:56:08]OFD Sender: No OFD packet to send [02:56:13]OFD Sender: No OFD packet to send [02:56:18]OFD Sender: No OFD packet to send [02:56:23]OFD Sender: No OFD packet to send [02:56:28]OFD Sender: No OFD packet to send [02:56:33]OFD Sender: No OFD packet to send [02:56:38]OFD Sender: No OFD packet to send [02:56:43]OFD Sender: No OFD packet to send [02:56:48]OFD Sender: No OFD packet to send [02:56:53]OFD Sender: No OFD packet to send [02:56:58]OFD Sender: No OFD packet to send [02:57:03]OFD Sender: No OFD packet to send [02:57:08]OFD Sender: No OFD packet to send [02:57:13]OFD Sender: No OFD packet to send [02:57:18]OFD Sender: No OFD packet to send [02:57:23]OFD Sender: No OFD packet to send [02:57:28]OFD Sender: No OFD packet to send [02:57:33]OFD Sender: No OFD packet to send [02:57:38]OFD Sender: No OFD packet to send [02:57:43]OFD Sender: No OFD packet to send [02:57:48]OFD Sender: No OFD packet to send [02:57:53]OFD Sender: No OFD packet to send [02:57:58]OFD Sender: No OFD packet to send [02:58:03]OFD Sender: No OFD packet to send [02:58:08]OFD Sender: No OFD packet to send [02:58:13]OFD Sender: No OFD packet to send [02:58:18]OFD Sender: No OFD packet to send [02:58:23]OFD Sender: No OFD packet to send [02:58:28]OFD Sender: No OFD packet to send [02:58:33]OFD Sender: No OFD packet to send [02:58:38]OFD Sender: No OFD packet to send [02:58:43]OFD Sender: No OFD packet to send [02:58:48]OFD Sender: No OFD packet to send [02:58:53]OFD Sender: No OFD packet to send [02:58:58]OFD Sender: No OFD packet to send [02:59:03]OFD Sender: No OFD packet to send [02:59:08]OFD Sender: No OFD packet to send